Agent API
Read published fight analyses
Five read-only calls. The same five tools are on the MCP server. A fight is available at the same moment it appears on the site. Before that, the call returns "not released yet" and the release time.
Informational only. Not betting advice. No wagers are placed.
Quickstart
Send your key on every call. OttoBet stores a hash of the key, not the key. The key is shown once when it is issued.
curl -s -H "Authorization: Bearer $OTTOBET_API_KEY" \ "$HOST/api/agent/v1/events"
MCP is one JSON-RPC POST to /api/agent/mcp. There is no session. Ask for tools/list, then tools/call. Each tool is read-only. Use response: "concise" or "detailed". Names come back with the ids.
curl -s -H "Authorization: Bearer $OTTOBET_API_KEY" \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}' \
"$HOST/api/agent/mcp"The contract is the OpenAPI 3.1 file. Terms are in beta terms (draft, pending legal review). Changes are on the changelog. A short map for agents is llms.txt.
The five tools
list_cards—GET /api/agent/v1/events. Upcoming and past cards: id, title, date, release time, published yes or no.get_card—GET /api/agent/v1/events/{id}. Fights on that card: id, corners, weight class, rounds, published yes or no.get_fight_analysis—GET /api/agent/v1/fights/{id}. The pinned analysis: win, method, and round probabilities, cohort size and base rates, records as used in that analysis, sentiment summary and source count, SWOT, confidence tier.compare_fighters—GET /api/agent/v1/fights/{id}/compare. Side-by-side records and matchup factors from that same stored run.price_bet—POST /api/agent/v1/fights/{id}/price. Your side and your own price, American or decimal. Optional bankroll and risk:conservative,moderate, oraggressive.
Example calls
curl -s -H "Authorization: Bearer $OTTOBET_API_KEY" \
"$HOST/api/agent/v1/events/539"
curl -s -H "Authorization: Bearer $OTTOBET_API_KEY" \
"$HOST/api/agent/v1/fights/6002"
curl -s -H "Authorization: Bearer $OTTOBET_API_KEY" \
"$HOST/api/agent/v1/fights/6002/compare"
curl -s -H "Authorization: Bearer $OTTOBET_API_KEY" \
-H "Content-Type: application/json" \
-d '{"side":"Jane Doe","price":-102,"bankroll":1000,"risk":"moderate"}' \
"$HOST/api/agent/v1/fights/6002/price"The price call returns the implied probability of the price you sent, the edge against the stored win probability, and EV per $100. When EV is positive and you sent a bankroll and a risk, it also returns the full Kelly fraction, the multiplier (1/2, 5/8, or 3/4), and the stake. When EV is zero or negative, the stake is 0 and the reason is "no value at this price". Bankroll is not stored.
A worked example of that arithmetic, not a past result: a stored 54% win probability against a caller price of −102 is +$6.94 per $100. On a $1,000 bankroll at moderate risk the stake is $44.25.
curl -s -H "Authorization: Bearer $OTTOBET_API_KEY" \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"get_fight_analysis","arguments":{"fight":"Jane Doe vs Alex Roe","response":"concise"}}}' \
"$HOST/api/agent/mcp"Glossary
- Tier. 1 is the UFC. Tiers 2 and 3 are meaningful opposition. Tier 4 is weak evidence.
levelisprooramateur. An amateur bout has a null tier, so the null is not a missing tier. Amateur bouts are left out ofpro_record.method_classisko_tko,submission,decision, orother, next to the method text.pro_recordandufc_recordare from bouts in our data at analysis time.record_completeis false when the stored analysis noted known-missing UFC bouts. - Records. On
/fights/{id}and/compare,records(and compare's matching fields) are what the analysis used at the time.records.as_ofequalsanalysis_published_at. Note: "Record as used in this analysis (pre-event). Later fixes to historical data do not change published analyses." On analyses published before 2026-11-23,ufc_bouts_known_missingis omitted when it came from the old free-text note;record_completestays. - Confidence tier.
low,medium,high, orunrated. It describes how much of the usual evidence the stored run had. It is not a grade of a past pick. - Cohort. The historical fights the engine compared this matchup with. The response keeps the size, sex, weight class, year range, and rates. It does not include the price band that selected them.
- Basis. What a rate table counts.
cohort_fightsis every fight in the cohort.fights_won_by_favoriteis the favorite's wins.decisions_won_by_favoriteis the favorite's decision wins. R3 is the share of favorite wins whose finish round is 3. A decision is stored with the finish round equal to the scheduled rounds, so a three-round decision is inside R3 together with a finish in round 3. R3 and the Decision method rate overlap.
model_version is the cohort settings id plus the probability schema, for example cohort-settings/1+prompts/distribution-1. It is not the name of the language model. analysis_published_at is when the pin was published. event_first_bout_start is the card's first bout, UTC, from the publish log. fight_start is that bout's own UTC start when one is stored. Comparing the publish time with the card start shows the analysis was published before the event. analysis_version starts at 1 and increments if the fight is re-run. ?version=1 reads an older one. Concise mode is ?response=concise and stays under 400 bytes. Each fighter is an object with fighter, corner, win_pct, and top_method, plus confidence_tier and cohort_size.
What every response carries
as_of, the run id, the model version, the event id, and this line: Informational only. Not betting advice. No wagers are placed.
A missing or unknown key is refused. A revoked key is refused and should not be retried. A key that has used its monthly limit gets HTTP 429 and a Retry-After header. If the key tables are not installed yet, the call is 503 and nothing is written.