{"openapi":"3.1.0","info":{"title":"AU Odds API","version":"1.0.0"},"paths":{"/v1/latest":{"get":{"summary":"Latest","description":"Latest snapshot per event/market/selection/bookmaker within the lookback window.","operationId":"latest_v1_latest_get","parameters":[{"name":"sport_key","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by sport, eg basketball_nba","title":"Sport Key"},"description":"Filter by sport, eg basketball_nba"},{"name":"bookmaker_key","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by bookmaker key","title":"Bookmaker Key"},"description":"Filter by bookmaker key"},{"name":"market_key","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by market key, eg h2h","title":"Market Key"},"description":"Filter by market key, eg h2h"},{"name":"since_hours","in":"query","required":false,"schema":{"type":"integer","maximum":72,"minimum":1,"description":"Snapshot lookback","default":24,"title":"Since Hours"},"description":"Snapshot lookback"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":200,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Latest V1 Latest Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/history":{"get":{"summary":"History","description":"Time-ordered snapshots (ascending) with per-series line velocity in odds/hour.","operationId":"history_v1_history_get","parameters":[{"name":"event_id","in":"query","required":true,"schema":{"type":"string","description":"Event identifier","title":"Event Id"},"description":"Event identifier"},{"name":"market_key","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Market Key"}},{"name":"selection","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Selection"}},{"name":"bookmaker_key","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bookmaker Key"}},{"name":"player_name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Player Name"}},{"name":"line","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Line"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":1,"default":2000,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response History V1 History Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/consensus":{"get":{"summary":"Consensus","description":"Consensus probabilities per selection from `1/odds`-normalised devigging.","operationId":"consensus_v1_consensus_get","parameters":[{"name":"event_id","in":"query","required":true,"schema":{"type":"string","description":"Event identifier","title":"Event Id"},"description":"Event identifier"},{"name":"market_key","in":"query","required":false,"schema":{"type":"string","default":"h2h","title":"Market Key"}},{"name":"player_name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Player Name"}},{"name":"line","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Line"}},{"name":"since_hours","in":"query","required":false,"schema":{"type":"integer","maximum":72,"minimum":1,"default":24,"title":"Since Hours"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Consensus V1 Consensus Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/key":{"get":{"summary":"Billing Key","description":"Payment Link success page: mint and show a key once, or offer rotation.","operationId":"billing_key_billing_key_get","parameters":[{"name":"session_id","in":"query","required":true,"schema":{"type":"string","description":"Checkout Session id","title":"Session Id"},"description":"Checkout Session id"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/rotate":{"post":{"summary":"Billing Rotate","description":"Rotate a paid key, proving possession of the current key.\n\nWith a (fresh) Checkout Session the supplied key must match that subscription's\nstored hash. Without a session the supplied key alone identifies the row, so a\ncustomer can still rotate once the 24 h checkout link has expired.","operationId":"billing_rotate_billing_rotate_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_billing_rotate_billing_rotate_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/webhook":{"post":{"summary":"Billing Webhook","description":"Verify Stripe's signature, then mirror subscription state onto key rows.","operationId":"billing_webhook_billing_webhook_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}}},"components":{"schemas":{"Body_billing_rotate_billing_rotate_post":{"properties":{"session_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"},"current_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Current Key"}},"type":"object","title":"Body_billing_rotate_billing_rotate_post"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}}}