Demo downloads
Retrieve the original game evidence, resume downloads and verify bytes.
Find a published demo
GET /v1/matches/{id}/recordings returns ready DEM files selected in the current match publication. It requires matches.read. Each item has id, matchId, source, format, completeness, byteLength, sha256, mapKeys, createdAt, completedAt and downloadPath. No pending jobs or storage credentials are exposed. An empty list means no downloadable demo is published.
source identifies upload or CSTV capture. completeness=unknown does not promise a full match; partial explicitly marks missing intervals. These originals are distinct from external broadcast/video/highlight links returned by /media-links.
curl --fail-with-body "$SCORERIVER_API_URL/v1/matches/$MATCH_ID/recordings" \
-H "Authorization: Bearer $SCORERIVER_API_KEY"Download and verify
Resolve downloadPath against the API base URL and authenticate every request. Downloads return application/octet-stream with Content-Disposition, Accept-Ranges: bytes and ETag containing the SHA-256. Keep the response streaming; do not buffer multi-gigabyte files in memory. Verify the complete file against metadata.sha256 after all ranges are assembled.
curl --fail --location "$SCORERIVER_API_URL$DOWNLOAD_PATH" \
-H "Authorization: Bearer $SCORERIVER_API_KEY" -o match.dem
# Resume an interrupted download of the same immutable file:
curl --fail --location --continue-at - "$SCORERIVER_API_URL$DOWNLOAD_PATH" \
-H "Authorization: Bearer $SCORERIVER_API_KEY" -o match.dem
shasum -a 256 match.demHandle partial responses and access
A single valid Range returns 206 and Content-Range. An out-of-bounds range returns 416. No credential returns 401; insufficient scope returns 403. An unpublished match/file or wrong match/file pair returns 404. Wait for Retry-After on 429. All requests share the account quota, including resumed downloads.
Access follows the current publication. A historical match revision does not retain download permission after the demo is removed or the match is archived. An admitted download may finish. MCP provides metadata; download the bytes through REST.