{"openapi":"3.1.0","info":{"title":"LeTrot Horse Racing Data API (x402 & MCP)","version":"0.1.0","description":"Public data only; not a gambling operator; no wagering; not betting advice. 21+. Data source: LeTrot. Horse racing cards and results, one row per entity.","x-guidance":"Structured real-time web intelligence APIs paid per delivered row in USDC via x402 on Base, Polygon, Arbitrum, Monad, World Chain and Solana. All endpoints are synchronous at POST /s/<site>/v1/<endpoint> and also exposed over stateless MCP at POST /mcp. Supports x402 v2 'upto' (Permit2) and 'exact' (EIP-3009) on EVM chains, and 'exact' (SPL USDC transfer, facilitator-paid fees) on Solana. 'upto' charges only for the rows delivered. 'exact' settles the full quoted amount (quoted rows x the row price) even when fewer rows than maxResults are delivered, so use 'upto' when the row count is uncertain. Empty/0-row (404), invalid input (422), and upstream failures or timeouts (503, see error.code) are never charged. If a paid reply never arrives (for example a 502 or 522 from Cloudflare), send the same request again with the same PAYMENT-SIGNATURE within 1 hour: a result already paid for comes back without a second charge. New wallets: the first 10 rows are free on 12 trial sites (apps-apple-com, booking-com, github-com, hackernews-com, huggingface-co, imdb-com, play-google-com, polymarket-com, tripadvisor-com, upwork-com, walmart-com, zillow-com), up to 5 per call; with exact, a call is free when maxResults <= 5. The wallet must hold at least the quoted USDC to pass payment verification, but free rows are not charged and never settled on-chain.","contact":{"email":"ops@opendata.best"}},"servers":[{"url":"https://x402.opendata.best"}],"paths":{"/s/letrot-com/v1/racing":{"post":{"operationId":"letrot_com_racing","summary":"LeTrot Horse Racing Data API: Racing data from one source","description":"Public data only; not a gambling operator; no wagering; not betting advice. 21+. Horse racing meetings, racecards, runners, odds, results and horse profiles from one source (LeTrot), in the same row shape as the multi-source API. Public data only, for informational and research purposes. Not a gambling operator; no wagering. Not betting advice. 21+. Odds data belongs to the respective bookmakers; we are not affiliated. Unit price: $0.002000/row USDC (default quote 5 rows, max 20 rows). Unsettled / 0-row / error responses are never charged.","tags":["letrot-com","Sports"],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","amount":"0.010000","min":"0.002000","max":"0.040000"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"mode":{"type":"string","description":"meetings: race meetings of a day. racecards: races and runners (horse, number, jockey, trainer). odds: win prices per runner. results: finishing positions, plus dividends when includeDividends is on. horses: one horse's profile and past starts. auto picks per query: horse ids read horses, meeting or race ids read racecards, past dates read results, other dates read meetings.","default":"auto","enum":["auto","meetings","racecards","odds","results","horses"]},"dates":{"type":"array","items":{"type":"string"},"description":"Race days to read: YYYY-MM-DD, today, tomorrow or yesterday. today means today in each source's own time zone. Each date is one query."},"countries":{"type":"array","items":{"type":"string"},"description":"Keep only sources from these countries for date queries: US, CA, AU, NZ, JP, FR, ZA, ZW, AE, GB, IE."},"meetingIds":{"type":"array","items":{"type":"string"},"description":"Meetings as <source>:<meeting id>, copied from the source and meetingId fields of a meetings run, for example equibase-com:2026-12-03/USA/AQU. Each id is one query."},"raceIds":{"type":"array","items":{"type":"string"},"description":"Races as <source>:<race id>, copied from a meetings or racecards run, for example sportsbet-com-au:11237893. Each id is one query."},"horseIds":{"type":"array","items":{"type":"string"},"description":"Horses as <source>:<horse id>, for example equibase-com:10448103/T. Each id is one query in mode horses."},"queries":{"type":"array","items":{"type":"object"},"description":"Queries as objects, each with its own mode, one target (date, meetingId, raceId or horseId) and optional sources, includeOdds and includeDividends. Example: [{\"mode\": \"results\", \"date\": \"yesterday\", \"sources\": [\"jra-com\"]}]."},"includeOdds":{"type":"boolean","description":"Racecards also return one odds row per runner where the source has prices. Each odds row is a billed row.","default":false},"includeDividends":{"type":"boolean","description":"Results also return pool dividends (win, place, exotics) where the source publishes them. Each dividend row is a billed row.","default":false},"maxResults":{"type":"integer","description":"Most rows this call returns, 1 to 20 (default 5). All row types count toward it. The 402 payment quote is maxResults x $0.0020/row USDC: with the upto scheme you pay only for the rows delivered, with exact you pay the quoted amount, so use upto when the row count is uncertain. Calls that return 0 rows or fail are not charged.","default":5,"minimum":1,"maximum":20}},"additionalProperties":false},"example":{"dates":["today"],"maxResults":5}}}},"responses":{"200":{"description":"Synchronous data rows with x402 PAYMENT-RESPONSE receipt header.","headers":{"PAYMENT-RESPONSE":{"description":"Base64-encoded x402 v2 SettleResponse receipt.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Response_letrot_com"},"example":{"jobId":"job_letrot-c_example","status":"succeeded","done":true,"rowCount":1,"rowsBilled":1,"rowsDelivered":1,"rows":[{"source":"example_source","rowType":"example_rowType","raceDate":"example_raceDate","venue":"example_venue","raceNumber":"example_raceNumber","raceName":"example_raceName"}],"meta":{"site":"letrot-com","endpoint":"racing","maxResults":5,"payment":{"scheme":"upto","network":"eip155:8453","quotedMicrousd":10000,"settledMicrousd":2000,"transaction":"0x0000000000000000000000000000000000000000000000000000000000000000"}}}}}},"402":{"description":"Payment required or invalid/declined payment authorization (never charged).","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded x402 v2 PaymentRequired quote.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"no_results: 0 rows matched the query; aborted before settlement (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"payment_id_conflict: payment-identifier reused with different parameters.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Invalid or missing request parameters (validated before /verify; charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit or payer cooldown exceeded (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"error.code collection_failed / source_blocked (upstream source failed or blocked) or upstream_timeout (synchronous deadline reached, task cancelled): charged=false. Also settlement_pending or facilitator_unavailable; retry same payment to reconcile.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/s/letrot-com/v1/health":{"get":{"operationId":"letrot_com_health","summary":"LeTrot Horse Racing Data API: health check","description":"Free readiness check (never returns 402 and never starts a collection).","tags":["letrot-com","health"],"responses":{"200":{"description":"Operational","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthStatus"}}}},"503":{"description":"Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthStatus"}}}}}}}},"components":{"schemas":{"ErrorDetail":{"type":"object","required":["code","message","retryable"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"retryable":{"type":"boolean"},"charged":{"type":"boolean"}}},"ErrorResponse":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/ErrorDetail"}}},"HealthStatus":{"type":"object","required":["ok","site","status","endpoints","rowsBilled"],"properties":{"ok":{"type":"boolean"},"site":{"type":"string"},"status":{"type":"string","enum":["operational","unavailable"]},"endpoints":{"type":"array","items":{"type":"string"}},"rowsBilled":{"type":"integer"}}},"Row_letrot_com":{"type":"object","properties":{"source":{"type":["string","null"],"title":"Source"},"rowType":{"type":["string","null"],"title":"Row type"},"raceDate":{"type":["string","null"],"title":"Date"},"venue":{"type":["string","null"],"title":"Venue"},"raceNumber":{"type":["string","null"],"title":"Race"},"raceName":{"type":["string","null"],"title":"Race name"},"startTime":{"type":["string","null"],"title":"Starts"},"horseName":{"type":["string","null"],"title":"Horse"},"runnerNumber":{"type":["string","null"],"title":"No."},"jockeyName":{"type":["string","null"],"title":"Jockey"},"oddsDecimal":{"type":["string","null"],"title":"Decimal odds"},"finishPosition":{"type":["string","null"],"title":"Finish"}},"additionalProperties":true},"Response_letrot_com":{"type":"object","properties":{"jobId":{"type":"string"},"status":{"type":"string"},"done":{"type":"boolean"},"rowCount":{"type":"integer","minimum":1},"rowsBilled":{"type":"integer","minimum":1},"rowsDelivered":{"type":"integer","minimum":1},"rows":{"type":"array","items":{"$ref":"#/components/schemas/Row_letrot_com"}},"meta":{"type":"object","properties":{"site":{"type":"string"},"endpoint":{"type":"string"},"maxResults":{"type":"integer"},"payment":{"type":"object","properties":{"scheme":{"type":"string"},"network":{"type":"string"},"quotedMicrousd":{"type":"integer"},"settledMicrousd":{"type":"integer"},"transaction":{"type":"string"},"payer":{"type":"string"}}}}}},"required":["jobId","status","done","rowCount","rows"]}}},"x-discovery":{"ownershipProofs":["0xdb7c562a3ef6f9f29da4672abdab1489e82e910a91b863e3c22b905df6522b7223798a84245e0452cab689483b6cbb7cd8c13141319df982b213dea31ee7e4311c"]}}