Created
January 12, 2026 22:57
-
-
Save rwrrll/fca1ff401ae8e61799acc51fbd209011 to your computer and use it in GitHub Desktop.
Soundcharts: Different responses for identical GET requests
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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