Every tracked bill’s probability of passage, its history and what changed, as read-only JSON. Built for analysts, newsrooms and trading desks that want the tape in their own tools.
Overview
The BillOdds API is read-only JSON over HTTPS: every tracked bill, the probability that it passes, that probability’s history, and what changed since you last asked. It is the same data the site shows, scoped to your key’s plan.
It is a polling API. There are no webhooks and no streaming in v1 — call /changes on a schedule instead. Push delivery with an SLA is the enterprise feed, a separate product.
Base URL https://billodds.com/api/v1. The full description is an OpenAPI 3.1 document at /openapi.json — public, no key — which imports into Postman, Insomnia or any code generator. Everything under Endpoints is rendered from it.
Never put a key in a URL. URLs end up in server, proxy and CDN logs, so a request carrying a key in its query string is refused with a 400 key_in_query before it is authenticated. Keep keys on your server: the API sends no CORS headers, because a key in a browser is a key anyone can read.
Keys are issued by request: hello@billodds.com. A revoked key stops working within 60 seconds. Call /meta first: it returns your key’s own plan, so a client can discover what it may ask for.
Plans & scopes
Every key carries a plan: which states, sectors and endpoints it covers, how much history it reads, how fast it may call, and when it expires. /meta returns it as data.key.scopes.
Plan fields
Field
Meaning
states
The states whose bills your key can see, or "*" for all.
sectors
The sectors your key can see, or "*" for all.
endpoints
The endpoints your key may call, or "*" for all. /meta is always allowed.
history_days
How far back history reaches. null is unlimited.
rate_per_min
Requests per minute.
expires
When the key stops working, or null.
Lists are narrowed to your plan without comment. Asking for something outside it by name — a state in ?state=, a sector in a path, a bill’s address, history before your window — is a 403 whose code ends in _not_in_plan. It carries an upgrade block pointing back here, and the contact for a larger plan when one is configured.
A plan refusal
{
"error": {
"status": 403,
"code": "state_not_in_plan",
"message": "Your plan covers NY, NJ. TX is not included.",
"request_id": "7d8b0b0e-4d4f-4b8e-9a59-0c7e8d7a3f11",
"upgrade": {
"docs": "https://billodds.com/developers#plans"
}
}
}
To upgrade, ask for a new plan on the same key. Keys are issued by request: hello@billodds.com.
Rate limits
Each key may make rate_per_min requests per 60-second window. Every authenticated response says where you stand:
RateLimit-Limit — your requests per window.
RateLimit-Remaining — what is left in this one.
RateLimit-Reset — seconds until it resets.
Past the limit the answer is 429 rate_limited with a Retry-After header in seconds. Wait that long. Failed authentication is throttled per client too, so retrying a bad key only gets you 429s sooner.
Limits are enforced per region and are approximate. Your requests may be served from more than one place, each counting on its own, so treat the headers as guidance and stay comfortably under your limit rather than at it.
Caching
Successful responses carry a weak ETag and Cache-Control: private, max-age=60. Send the ETag back as If-None-Match and an unchanged response comes back as 304 Not Modified with no body.
A 304 still counts toward your rate limit. It saves bandwidth, not quota. Responses are private and vary on Authorization because each is scoped to the key that asked — never put them in a cache shared between keys. Errors are no-store.
Errors
Every error has the same envelope. Branch on code, never on message, which is for people and may be reworded. details lists the parameters a 400 refused; request_id matches the X-Request-Id header — quote it if you report a problem.
Error envelope
{
"error": {
"status": 400,
"code": "invalid_parameter",
"message": "One or more query parameters are not valid for this endpoint.",
"request_id": "0c1f6a52-58b4-4bb8-a5f2-5b8f8d1c2e90",
"details": [
{
"param": "per_page",
"issue": "Too big: expected number to be <=100"
}
]
}
}
Error codes
Code · status
Meaning
key_in_query400
Send the key in an Authorization: Bearer header, never in the URL.
invalid_parameter400
One or more query parameters are not valid for this endpoint.
invalid_cursor400
The since value is neither an RFC 3339 instant nor a next_since cursor this API issued.
unauthorized401
A valid API key is required: Authorization: Bearer bo_live_…
key_revoked401
This API key has been revoked.
key_expired401
This API key has expired.
endpoint_not_in_plan403
Your plan does not include this endpoint.Carries the upgrade block.
state_not_in_plan403
Your plan does not include this state.Carries the upgrade block.
sector_not_in_plan403
Your plan does not include this sector.Carries the upgrade block.
bill_not_in_plan403
Your plan does not include this bill.Carries the upgrade block.
history_not_in_plan403
Your plan does not include history that far back.Carries the upgrade block.
not_found404
No such endpoint or resource.
method_not_allowed405
This API is read-only. Use GET.
rate_limited429
Rate limit exceeded. Retry after the number of seconds in Retry-After.Carries the upgrade block.
internal500
Something went wrong on our side.
unavailable503
Too many requests are being authenticated right now. Retry shortly.
Endpoints
Every endpoint is a GET. Each block is rendered from the OpenAPI document; the curl samples run as written once BILLODDS_API_KEY is set in your shell.
GET/meta
Describe the API and this key
The vocabularies, the universe as your key sees it, and the key’s own entitlements. Every key may call it, whatever its plan. Call it first.
The list item plus the description, the model’s top factors, the AI summary with its disclosure, who is affected, the organizations it affects (`affected_organizations`: companies and brands from our registry, each with a `tier` and a `basis` — `named_in_text` only where the name or a known alias appears in the bill text, else `inferred`; `null` for bills outside the hot set that is mapped nightly), sponsors and the event history from your plan’s history floor.
Plan scope: bill
Parameters
Parameter
Description
statepath · required
Two-letter state code, either case.
billpath · required
The bill number as the bill page spells it, e.g. `s10153` or `AB 2446`.
session_idquery
A `sessions.id` from `/sessions`. Defaults to the bill’s newest session.
{
"data": {
"id": 48213,
"state": "NY",
"bill_number": "S10153",
"session": {
"id": 412,
"name": "2025-2026 General Assembly",
"year_start": 2025,
"year_end": 2026
},
"title": "Establishes the proposition betting task force to examine, evaluate and make recommendations concerning proposition betting",
"chamber": "senate",
"status": "in_committee",
"status_date": "2026-03-02",
"last_action": "Referred to Racing, Gaming and Wagering",
"last_action_date": "2026-03-02",
"sectors": [
"sports_betting"
],
"sector_sides": [
{
"sector": "sports_betting",
"side": "neutral_regulatory"
}
],
"p_pass": 0.18,
"p_pass_as_of": "2026-10-14T12:41:07Z",
"updated_at": "2026-10-14T12:41:09Z",
"change_1d": -1.2,
"change_7d": 3.4,
"url": "https://billodds.com/ny/s10153",
"description": "Establishes a task force to examine, evaluate and make recommendations on proposition betting.",
"committee_name": "Racing, Gaming and Wagering",
"introduced_date": "2026-01-07",
"has_fiscal_note": false,
"fiscal_note_url": null,
"source_url": null,
"factors": [
{
"feature": "stage",
"label": "Still in committee",
"direction": "down",
"contribution_logit": -0.82
}
],
"summary": {
"text": "Would set up a task force to study proposition betting and recommend how to regulate it.",
"generated_at": "2026-01-08T09:15:00Z",
"model": "summary-model",
"disclosure": "Written by a language model from the bill’s title and description, not from its full text. It is a description, not legal advice, and it is not a forecast — the probability above is the only prediction on this page. Check anything that matters against the bill itself."
},
"affected": null,
"affected_organizations": {
"items": [
{
"slug": "vgw",
"name": "VGW",
"kind": "operator",
"parent_slug": null,
"parent_name": null,
"tier": "direct",
"basis": "named_in_text",
"rationale": "The bill names VGW among operators whose dual-currency games it would bar."
},
{
"slug": "chumba-casino",
"name": "Chumba Casino",
"kind": "operator",
"parent_slug": "vgw",
"parent_name": "VGW",
"tier": "direct",
"basis": "inferred",
"rationale": "A dual-currency sweepstakes casino of the kind the bill would bar."
}
],
"model": "mapping-model",
"generated_at": "2026-01-08T09:20:00Z",
"dropped_count": 0
},
"sponsors": [
{
"name": "A. Senator",
"party": "democrat",
"role": "primary",
"district": "15",
"chamber": "senate"
}
],
"history": [
{
"id": 90117,
"type": "status_change",
"occurred_at": "2026-03-02T00:00:00Z",
"label": "Referred to Racing, Gaming and Wagering",
"payload_public": {
"from": "introduced",
"to": "in_committee"
}
}
],
"related": [
{
"id": 51877,
"state": "CA",
"bill_number": "AB2446",
"title": "Gaming: sports wagering study",
"url": "https://billodds.com/ca/ab2446",
"sectors": [
"sports_betting"
],
"similarity": 0.47,
"fate": "live",
"p_pass": 0.31
}
],
"companion_candidate": null
},
"meta": {
"as_of": "2026-10-14T13:00:00Z",
"generated_at": "2026-10-14T13:00:04.512Z",
"api_version": "v1",
"window": {
"start": "2026-07-16T13:00:00.000Z",
"truncated": false
}
}
}
GET/tape/{state}/{bill}
A bill’s probability history
Every published probability for one bill, oldest first, downsampled to `points`. Clamped to your plan’s history window; `meta.window.truncated` says when it was.
Plan scope: tape
Parameters
Parameter
Description
statepath · required
Two-letter state code, either case.
billpath · required
The bill number as the bill page spells it, e.g. `s10153` or `AB 2446`.
fromquery
RFC 3339 instant. The earliest point to return.
toquery
RFC 3339 instant. The latest point to return. Defaults to now.
pointsquery
Most points to return, 10–2000. Longer tapes are downsampled.Default: 600
session_idquery
A `sessions.id` from `/sessions`. Defaults to the bill’s newest session.
The summary plus the index series (clamped to your history window) and the sector’s bills.
Plan scope: sectors
Parameters
Parameter
Description
sectorpath · required
The sector, as its enum value (`sports_betting`) or its site slug (`sports-betting`).One of: prediction_markets, sports_betting, igaming, sweepstakes, skill_games, prediction-markets, sports-betting, skill-games
/changes is how you stay current without re-reading everything. Each page returns changes in the order they were published and a meta.next_since cursor. Pass that cursor back as since next time, and you see every change once — or, rarely, twice.
Start with an RFC 3339 instant as since. After that, only ever send the next_since you were given, and store it durably before you act on the page.
Loop while meta.has_more is true — there is more to read now. When it is false you are caught up: wait (a minute is plenty) and poll again.
De-duplicate by id. A probability change is identified by snapshot_id, a status or event change by event_id. The feed prefers a repeat to a gap, so apply changes idempotently.
Expect a short delay. The cursor never moves past 120 seconds ago, so a write still committing is never skipped. Data on /changes is always at least that old.
Mind the history clamp. A since older than your plan’s history window is moved forward to its start, and meta.window.truncated is true: you have a gap. Re-read the bills you care about from /bills rather than assume nothing changed.
A since that is neither an instant nor a cursor this API issued is a 400 invalid_cursor. Cursors are opaque: do not build or edit them.
Polling loop (shell + jq)
# First run: an RFC 3339 instant to start from. After that, always the saved cursor.
since="$(cat cursor.txt 2>/dev/null || echo 2026-10-14T00:00:00Z)"
while true; do
page="$(curl -sS -G "https://billodds.com/api/v1/changes" \
--data-urlencode "since=$since" --data-urlencode "limit=1000" \
-H "Authorization: Bearer $BILLODDS_API_KEY")"
# Apply each change idempotently: the same one can arrive twice.
# key = type + (snapshot_id for probability, event_id otherwise)
echo "$page" | jq -c '.data[]' | ./apply-change
since="$(echo "$page" | jq -r '.meta.next_since')"
echo "$since" > cursor.txt
# More waiting? Ask again now. Caught up? Wait before the next poll.
[ "$(echo "$page" | jq -r '.meta.has_more')" = true ] || sleep 60
done
Attribution & terms
Using the API means accepting these terms.
Attribute what you display. Wherever you show a BillOdds probability, show “Odds by BillOdds” beside it, linked to that bill’s page — the url field on every bill the API returns.
Present the numbers as what they are. Probabilities are model estimates of the chance a bill passes. They are not predictions of fact, and not investment, legal or betting advice; do not present them as any of those. AI-generated summaries must carry the disclosure text returned with them wherever they are shown.
Do not resell the feed. Build products and analysis on the data, but do not resell or redistribute the raw feed as a competing data product.
Keep it fresh. Cache responses for up to 24 hours, then fetch them again.
Keep your key to yourself. BillOdds may revoke a key for abuse — including sharing it, working around its rate limit or plan, or breaking these terms.