Pyramid Index API
Read-only JSON access to the teams, leagues, results, schedules and rankings behind Pyramid Index: US pro and non-league soccer, rated on one scale.
Get your free API key. Enter your email and we'll send you a sign-in link. Once signed in, your key is filled into every example on this page.
Basics
- Base URL:
https://pyramidindex.com/v1 - Data refreshes once a night (US Eastern). Every response has
meta.as_of, the time of the last ratings run. - Call the API from your server, not from a browser or a shipped mobile app, so your key stays private.
Authentication
Send your key in a header on every request (X-API-Key also works). A missing or wrong key gets 401, a revoked key 403.
curl -H "Authorization: Bearer YOUR_API_KEY" "https://pyramidindex.com/v1/leagues"
Rate limits
Each key has its own limits, by default 60 requests a minute and 5,000 a day. Responses carry X-RateLimit-Limit and X-RateLimit-Remaining for the current minute. Over the limit you get 429 with a Retry-After header in seconds. If you need more, just ask.
Caching
Responses may be cached for 5 minutes and carry an ETag. Send it back as If-None-Match to get an empty 304 when nothing changed. Since data changes nightly, a nightly sync plus on-demand lookups is plenty.
Attribution
Where you show our ratings or rankings, please display "Rankings by Pyramid Index" with a link to pyramidindex.com (or to the team's url). Every response includes the text and link in attribution.
Responses, paging and errors
{ "data": [ ... ],
"meta": { "page": 1, "per_page": 100, "total": 734, "next_page": 2, "as_of": "2026-11-25T07:12:03Z" },
"attribution": { "text": "Rankings by Pyramid Index", "url": "https://pyramidindex.com" } }
Single records come as { "data": { ... }, "meta": ..., "attribution": ... }. Page with page (from 1) and per_page (default 100, max 500) until next_page is null. Errors look like { "error": { "code": "bad_request", "message": "..." } } with status 400, 401, 403, 404 or 429. Dates are YYYY-MM-DD, timestamps ISO 8601.
Stable IDs
Team id and slug are permanent. Store the id against your own team records, for example when a club claims its team in your app.
- A team keeps its
idandslugacross seasons and rating updates. - Teams are never deleted. One that drops out of our data is still returned by
GET /teams/{id}withactive: false. - If two records turn out to be the same team and we merge them, the retired one gets
replaced_by_id, the team it became. - One club can field several teams; each team's
clubhas its own stableidandslug. - League
codeandslugare stable. New leagues appear over time, so don't hard-code the list. - Match
ids are not permanent: a corrected result can reappear under a newid. To sync, re-fetch a date range and replace what you have for it.
GET /leagues
All leagues, pro and amateur, ordered by level. One league: /leagues/{slug or code}. season_type is year_round (fall and spring adult leagues), summer (May to August college and U23 leagues) or pro.
curl -H "Authorization: Bearer YOUR_API_KEY" "https://pyramidindex.com/v1/leagues/upsl"
{ "code": "UPSL", "slug": "upsl", "name": "United Premier Soccer League", "short_name": "UPSL", "level": 5,
"official_status": "Amateur", "season_type": "year_round", "non_league": true, "regional": false,
"teams_count": 402, "mean_rating": -0.412, "website": "https://premier.upsl.com",
"instagram_handle": "upslsoccer", "url": "https://pyramidindex.com/leagues/upsl" }
GET /teams
Active teams, ordered by id. Optional filters: league (code or slug, comma-separated for several), club (id or slug), ids (comma-separated), q (name contains), include_inactive=true. One team, active or not: /teams/{id or slug}.
curl -H "Authorization: Bearer YOUR_API_KEY" "https://pyramidindex.com/v1/teams?league=upsl&page=1"
{ "id": 486, "slug": "ny-renegades-fc", "name": "NY Renegades FC", "full_name": "NY Renegades FC",
"league": { "code": "UPSL", "slug": "upsl", "name": "UPSL" }, "division": "American North", "region": "Northeast",
"city": "New York", "state": "NY",
"club": { "id": 384, "slug": "ny-renegades-fc", "name": "NY Renegades FC", "claimed": false },
"active": true, "in_league": true, "replaced_by_id": null,
"rank": 85, "provisional": false, "rating": 2.203, "rating_se": 0.363, "offense": 1.089, "defense": 1.269,
"games_count": 60, "last_game_on": "2025-11-01", "season_type": "year_round",
"logo_url": "https://pyramidindex.com/logos/ny-renegades.png", "website": null, "instagram_handle": "nyrenegadesfc",
"url": "https://pyramidindex.com/teams/ny-renegades-fc", "updated_at": "2026-11-25T02:14:00-05:00" }
rating: goals better than an average team on one national scale;rating_seis its uncertainty.rank: national rank (null if unranked).provisional: fewer than 8 games.in_league: false: not in its league this season.club.claimed: the club has verified itself with us.
GET /matches
Played games (status: "final") and upcoming fixtures (status: "scheduled") in one list, oldest first. Parameters: team (id or slug), league (code(s) or slug(s); cup games have no league, so filter by team to get them), from (default 30 days ago), to (default 60 days ahead, at most 400 days after from), status (final, scheduled or all, the default).
curl -H "Authorization: Bearer YOUR_API_KEY" "https://pyramidindex.com/v1/matches?team=ny-renegades-fc&from=2026-08-01&to=2026-12-31"
{ "id": "4d6a410ec0c30f51", "status": "final", "date": "2025-11-01", "kickoff": null, "season": "2025",
"competition": "US Open Cup qualifying", "league": null, "division": null, "cup": true, "neutral": false,
"home": { "id": 486, "slug": "ny-renegades-fc", "name": "NY Renegades FC" },
"away": { "id": 488, "slug": "lansdowne-yonkers-fc", "name": "Lansdowne Yonkers FC" },
"home_goals": 5, "away_goals": 3, "decided": "reg", "source": "wikipedia",
"updated_at": "2026-11-25T02:14:00-05:00", "prediction": null }
{ "id": "c921ed2385d4109d", "status": "scheduled", "date": "2026-10-03", "kickoff": null,
"competition": "UPSL Premier", "league": { "code": "UPSL", "slug": "upsl", "name": "UPSL" },
"home": { "id": 486, "slug": "ny-renegades-fc", "name": "NY Renegades FC" },
"away": { "id": null, "slug": null, "name": "Red Hook Football Club" },
"home_goals": null, "away_goals": null, "source": "premier.upsl.com",
"prediction": { "p_home": 0.6295, "p_draw": 0.177, "p_away": 0.1935, "xg_home": 2.44, "xg_away": 1.42 } }
- A side we don't track yet has
id: nulland only aname. decided:reg,aet(extra time) orpens(decided by a shootout).source: where the result came from, such as a league feed (upsl,teampass,espn...),wikipedia,manual(reported by a club and checked) orinstagram(read from a club or league post).updated_atis when we last wrote the record.
GET /rankings
The table on our rankings page, ordered by national rank. Parameters: league, season (year_round, summer, pro), region, scope (listed, the default: ranked teams with 3+ recent games as on the site; headline: 8+ games; all: every rated team). league_rank is the team's place among established teams of its league.
curl -H "Authorization: Bearer YOUR_API_KEY" "https://pyramidindex.com/v1/rankings?league=upsl&per_page=25"
{ "rank": 85, "league_rank": 12, "provisional": false, "rating": 2.203, "rating_se": 0.363,
"rank_change_7d": -2, "rating_change_7d": 0.041, "games_count": 60, "last_game_on": "2025-11-01",
"team": { "id": 486, "slug": "ny-renegades-fc", "name": "NY Renegades FC",
"league": { "code": "UPSL", "slug": "upsl", "name": "UPSL" }, "logo_url": null } }
Changes
Fields may be added at any time. Existing fields won't be renamed or removed within /v1.