ReplayIQ‹ ReplayIQ home
ON THIS PAGE
Access and tokensAuthenticationAnalyze a replayAI coachResponses and errorsData handling
REPLAYIQ · API DOCUMENTATION

Developer API

Use the ReplayIQ API to analyze Rocket League replay files and get AI coaching based on the analysis. All endpoints require an approved developer account, an active API key, and available request tokens.

Access and request tokens

  1. Request developer access using your ReplayIQ account.
  2. An administrator reviews your request in the Admin dashboard.
  3. After approval, create an API key and buy request-token packs from the Developers page.

Each replay analysis request and each AI coach request costs one request token. The amount of money per token depends on the price and size of the token pack configured by ReplayIQ. An analysis token is deducted after the replay file passes request validation, before parsing starts. A coach token is deducted after the coach input passes validation, before contacting the AI provider; failed parsing or provider requests may therefore still consume a token. Requests rejected for invalid input or insufficient balance are not charged.

Token balance is returned in the X-ReplayIQ-Request-Tokens-Remaining response header for successful API responses. An insufficient balance returns HTTP 402.

Authentication

Send your API key as a Bearer token in the Authorization header with every request. Do not expose keys in browser code or public repositories.

Authorization: Bearer riq_live_YOUR_API_KEY

The full key is shown only once when created. Store it securely. If it is lost or exposed, revoke it on the Developers page and create a replacement.

Analyze a replay

POST /api/v1/analyze

Upload a Rocket League .replay file as multipart form data in the replay field. The maximum file size is 50 MB.

curl -X POST https://your-replayiq-domain/api/v1/analyze \
  -H "Authorization: Bearer YOUR_REPLAYIQ_API_KEY" \
  -F "replay=@match.replay"

On success, the JSON response contains:

  • Match details including game mode, duration, map, date and blue/orange score.
  • A players array with player/team, score, goals, assists, saves, shots, expected goals and available detailed stats.
  • Available heatmaps, team stats, warnings, xG method, advanced analytics availability and parser metadata.
  • rawOutput, containing the parser's raw analysis result.

API analyses are not saved to the developer's replay library. The persistence result indicates that the API analysis was not saved.

Ask the AI coach

POST /api/v1/coach

Send a JSON body containing an analysis object returned by the replay endpoint and a question of up to 1,500 characters. The request body is limited to 60,000 bytes.

curl -X POST https://your-replayiq-domain/api/v1/coach \
  -H "Authorization: Bearer YOUR_REPLAYIQ_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "analysis": { "players": [], "score": { "blue": 2, "orange": 1 } },
    "question": "What should I improve?"
  }'

A successful response contains the coach's answer:

{
  "answer": "Based on the match stats, focus on..."
}

The coach uses selected match and player statistics from the supplied analysis. Player names are replaced with generic labels before the context is sent to the AI provider.

Responses and errors

Successful requests return JSON. Errors have the form { "error": "..." }. Common HTTP statuses include:

  • 400 — invalid JSON, missing fields, or malformed request.
  • 401 — missing, invalid or revoked API key.
  • 402 — no request tokens remain.
  • 403 — developer account is not approved.
  • 413 — replay exceeds 50 MB or coach body exceeds 60,000 bytes.
  • 422 — replay could not be analyzed.
  • 502 — AI provider request failure.
  • 503 — API service dependency is not configured or available.
  • 504 — replay analysis timed out.

Data handling

Uploaded API replay files are processed to produce the analysis response and are not saved to the developer's replay library. AI coaching sends the question and selected match statistics to the AI provider; it does not send the original replay file or platform account IDs. Use replay files you have permission to process and share.

Manage developer access and API keys · Privacy policy

PrivacyTermsRefundsSupportGuidesDemo
© 2025 REPLAYIQ
PrivacyTermsRefundsSupportDev vlogStatus