Errors and limits
{
"error": {
"code": "book_not_in_plan",
"message": "Your Starter plan does not include 'circa'.",
"fix": "Remove 'circa' from books= or upgrade to Growth.",
"docs_url": "https://pricedodds.com/docs/errors#book_not_in_plan",
"request_id": "req_x1y2z3"
}
}
| code | fix |
|---|---|
missing_key | No key sent. Use the Authorization header. |
invalid_key | Key not recognised. Copy it again or create a new one. |
trial_expired | Your trial ended. Choose a plan. |
payment_required | Subscription not active. Update payment. |
plan_lacks_ws | Your plan has no WebSocket. Add it, choose All-Access, or poll /v1/changes. |
book_not_in_plan | You asked for a book outside your plan. Remove it or upgrade. |
unknown_book | Use an id from /v1/books. |
unknown_market | Use a key from /v1/markets. |
unknown_league | Use an id from /v1/leagues or /v1/sports; did_you_mean lists the closest ones. |
event_not_found | Use an evt_ id from /v1/events. |
invalid_param | Check the parameter format. |
too_many_books | Your plan includes fewer books; send at most max_books ids or upgrade. |
book_change_too_soon | Book selection changes once every 24 h; retry after next_change_at. |
rate_limited | Wait Retry-After seconds. Use the WebSocket for real time. |
cursor_expired | Refetch a snapshot and continue from its cursor. |
data_temporarily_unavailable | A data source is degraded; affected_books lists which. Retry shortly. |
not_found | Unknown endpoint. |
unknown_sport | Use a sport id from /v1/sports; did_you_mean lists the closest ones. |
Suggestions: did_you_mean
unknown_sport, unknown_league, unknown_market and unknown_book carry did_you_mean, a list of the closest valid ids, and repeat it in fix. The same errors arrive as error frames on the WebSocket and as tool errors over MCP.
{
"error": {
"code": "unknown_sport",
"message": "Unknown sport 'socer'.",
"fix": "Did you mean soccer? Use a sport id from GET /v1/sports, e.g. basketball, soccer, tennis.",
"docs_url": "https://pricedodds.com/docs/errors#unknown_sport",
"request_id": "req_...",
"did_you_mean": [
"soccer"
]
}
}
Warnings: unknown parameters
An unknown query parameter does not fail the request: it is ignored and reported in a warnings array next to data, with the accepted parameters or the one you probably meant.
{
"data": [
"..."
],
"asOf": "...",
"warnings": [
"Unknown parameter 'event' was ignored. Did you mean 'event_id'?"
]
}
Rate limits
| Plan | Requests/second | WebSocket connections |
|---|---|---|
| Solo | 1 | 1 |
| Starter | 3 | 1 |
| Growth | 5 | 2 |
| All-Access | 10 | 3 |
Headers on every response: RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset, X-Request-Id, X-Data-As-Of; Retry-After on 429.