Quick start
Make your first request: get a match list, pick a match and fetch its details.
1. Create an API key
Open API keys in your account and create a key with matches.read. Save the secret when it is shown: you cannot view it again. Keep it in an environment variable or a secret store on your server.
2. Request matches
Set SCORERIVER_API_URL to the API base address, for example https://api.scoreriver.com, without /v1. Set SCORERIVER_API_KEY to your key. The request below returns the first page with up to ten matches. Do not put the key in browser code or a URL.
curl --fail-with-body "$SCORERIVER_API_URL/v1/matches?limit=10" \
--header "Authorization: Bearer $SCORERIVER_API_KEY"3. Read the response
data is an array of matches. page contains limit, nextCursor and total. An empty array is a valid result. For the next page, send cursor=page.nextCursor with the original filters. Stop when nextCursor is null; the cursor preserves the same published snapshot.
Use a match id from data in GET /v1/matches/{id}. Match details include report: lineups, maps, veto and per-map statistics. These fields are not included in the list response.
curl --fail-with-body "$SCORERIVER_API_URL/v1/matches/$MATCH_ID" \
--header "Authorization: Bearer $SCORERIVER_API_KEY"4. Add filters and error handling
Filter matches by tournamentId, teamId, matchStatus or date range. Handle unsuccessful HTTP responses before reading data: 401 means the key was not accepted, 403 means a required scope is missing, and 429 means a limit was reached.