Skip to content

Instantly share code, notes, and snippets.

@rwrrll
Created January 12, 2026 22:57
Show Gist options
  • Select an option

  • Save rwrrll/fca1ff401ae8e61799acc51fbd209011 to your computer and use it in GitHub Desktop.

Select an option

Save rwrrll/fca1ff401ae8e61799acc51fbd209011 to your computer and use it in GitHub Desktop.
Soundcharts: Different responses for identical GET requests
#!/bin/sh
APP_ID=x
API_KEY=x
URL="https://customer.api.soundcharts.com/api/v2/song/0d83293e-2f45-4990-8ae6-0ecd67ebc034/broadcasts?startDate=2025-11-26&endDate=2025-11-28"
curl -s "$URL" -H "x-app-id: $APP_ID" -H "x-api-key: $API_KEY" | jq -r '.items[]' > 1.json
curl -s "$URL" -H "x-app-id: $APP_ID" -H "x-api-key: $API_KEY" | jq -r '.items[]' > 2.json
cmp 1.json 2.json
if [ $? -eq 0 ]; then
echo "No differences found"
else
echo "Differences found"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment