by UFCalendar

Conventions

The rules every endpoint follows, so you only learn them once.

Base URL and authentication

All endpoints live under https://api.ufcalendar.com/v1 over HTTPS. Send your key as a bearer token:

Authorization: Bearer ufcalendar_<40 hex characters>

GET /v1/plans is the only call that needs no key. Keys are created and revoked in your UFCalendar account; you can hold up to 5 on a paid plan.

The envelope

Every response is JSON in one shape:

{ "data": { }, "meta": { } }

data is an object for one thing and an array for a list. meta is always present, {} at minimum. Keys are snake_case. Response objects are closed: a field the spec does not list is never sent, and a nullable field is typed [T, "null"] in the spec, so generated clients get real types.

Pagination

Lists use cursors. Pass limit, read meta.pagination.next_cursor, send it back as cursor, stop when meta.pagination.has_more is false. Cursors are opaque; do not build them yourself.

Time

Timestamps are UTC ISO-8601 (2026-12-05T15:00:00.000Z). Events also carry tz, the venue's IANA time zone, so you can show local start times without guessing. A card has up to three section clocks: early_prelims_at, prelims_at, main_card_at; starts_at is the first bell.

Quotas and rate limits

Each response carries your monthly quota:

HeaderMeaning
X-RateLimit-Limitrequests your plan allows this month
X-RateLimit-Remainingrequests left this month
X-RateLimit-Resetwhen the month resets
Retry-Afteron a 429, seconds to wait

The per-minute limit is 10 on the free plan and up to 600 on Business. Caps are hard: there is no overage billing.

Caching

Every GET that answers 200 carries a weak ETag and Cache-Control: private, no-cache. Send the tag back as If-None-Match; an unchanged payload answers 304 with no body. Polling a card on fight night this way is cheap for both of us.

Conditional data

A few datasets are plan-gated. Below Pro, a Pro-only endpoint answers 403 with code tier_required; the reference marks each one.