Make your first request
One base URL, one header, JSON back. These are the three calls almost every project starts with.
1. Base URL and key
Every endpoint lives under https://api.ufcalendar.com/v1. Send your key as a bearer token on every request:
Authorization: Bearer ufcalendar_<your key>No key yet? The free plan takes a minute.
2. The next card
curl "https://api.ufcalendar.com/v1/events?org=ufc&status=upcoming&limit=1" \
-H "Authorization: Bearer $UFCALENDAR_API_KEY"# pip install ufcalendar
import os
from ufcalendar import FightAPI
api = FightAPI(os.environ["UFCALENDAR_API_KEY"])
nxt = next(api.events(org="ufc", status="upcoming", limit=1))
print(nxt["title"], nxt["starts_at"])// npm install @ufcalendar/sdk
import { FightAPI } from '@ufcalendar/sdk';
const api = new FightAPI(process.env.UFCALENDAR_API_KEY);
for await (const ev of api.events({ org: 'ufc', status: 'upcoming', limit: 1 })) {
console.log(ev.title, ev.starts_at);
break;
}library(httr2)
resp <- request("https://api.ufcalendar.com/v1/events") |>
req_url_query(org = "ufc", status = "upcoming", limit = 1) |>
req_auth_bearer_token(Sys.getenv("UFCALENDAR_API_KEY")) |>
req_perform()
ev <- resp_body_json(resp)$data[[1]]
cat(ev$title, ev$starts_at, "\n")req, _ := http.NewRequest("GET", "https://api.ufcalendar.com/v1/events?org=ufc&status=upcoming&limit=1", nil)
req.Header.Set("Authorization", "Bearer "+os.Getenv("UFCALENDAR_API_KEY"))
res, err := http.DefaultClient.Do(req)
if err != nil { log.Fatal(err) }
defer res.Body.Close()
var out struct {
Data []struct {
Title string `json:"title"`
StartsAt string `json:"starts_at"`
} `json:"data"`
}
json.NewDecoder(res.Body).Decode(&out)
fmt.Println(out.Data[0].Title, out.Data[0].StartsAt)The response is {"data": [...], "meta": {...}}. data[0].slug is the handle for everything about that event.
3. The full card, with results
curl "https://api.ufcalendar.com/v1/events/<slug>" -H "Authorization: Bearer $UFCALENDAR_API_KEY"data.card is the running order, main event first. Every bout carries both corners, the weight class, the card section and, once it is over, result with the method, round and time. This is the exact response the board on the home page is drawn from.
4. One fight, round by round
curl "https://api.ufcalendar.com/v1/fights/<fight id>/rounds" -H "Authorization: Bearer $UFCALENDAR_API_KEY"One row per fighter per round: significant strikes landed and attempted, by target and position, knockdowns, takedowns, control time.
Pagination
Lists are cursor-paginated. Pass limit, then send meta.pagination.next_cursor back as cursor until has_more is false. Both SDKs do this for you.
Next
- API reference: all 63 operations with parameters and response fields.
- Python SDK and TypeScript SDK.
- Connect an AI agent over MCP.