Bill Commons

Get a free key

Enter your email — we'll send a sign-in link. No password, no account form. First sign-in mints your Developer key automatically.

Authenticate

Send the key as a Bearer token. X-Api-Key is also accepted for clients that can't set Authorization. Never pass a key as a query string — query strings land in logs, Referer headers, and shared URLs.

curl
curl -H "Authorization: Bearer bc_live_..." \
  https://api.billcommons.org/api/v1/bills?jurisdiction=FL
Python
import httpx

resp = httpx.get(
    "https://api.billcommons.org/api/v1/bills",
    params={"jurisdiction": "FL"},
    headers={"Authorization": "Bearer bc_live_..."},
)
resp.raise_for_status()
MCP client config
{
  "mcpServers": {
    "billcommons": {
      "url": "https://mcp.billcommons.org/mcp",
      "headers": { "Authorization": "Bearer bc_live_..." }
    }
  }
}

Quota headers

Every keyed response carries both the per-minute burst budget and the daily quota — no need to discover your limit by getting throttled.

HeaderMeaning
X-RateLimit-LimitPer-minute burst ceiling for your plan.
X-RateLimit-RemainingBurst requests left in the current minute.
X-RateLimit-ResetSeconds until the burst window resets.
X-Quota-LimitYour plan's total daily request limit.
X-Quota-RemainingTotal requests left today.
X-Quota-ResetUnix timestamp of the next UTC midnight.
X-Quota-Heavy-LimitDaily limit for heavy routes (bill list, full bill, versions, compare, search).
X-Quota-Heavy-RemainingHeavy-route requests left today.
X-PlanYour current plan (developer, builder, scale, enterprise).

Past your daily quota, requests get 429 with a Retry-After header (seconds until the next UTC midnight) and an error.code of quota_exceeded. An unknown or revoked key gets 401 invalid_api_key.

Rotation and revocation

From your account page, rotate a key to mint a successor while the old one keeps working for 24 hours (so a deploy can roll without downtime), or revoke a key immediately if it leaks. We will never show a key again after it's revealed — if you lose it, rotate.