Skip to content
datasportsAPI

ReferenceAll endpoints

Documentation

/

Type to filter the docs by title or path.

API v2116 endpoints16 groups

API reference

Every endpoint DataSportsAPI serves, sorted into the groups you will reach for. REST calls share one base URL, one bearer key and one data envelope, so the row tells you what changes: the method, the path and the plan it needs.
  • 112 GET
  • 3 POST
  • 1 WS

Base URL and authentication

Your first call
export BASE="https://api.datasportsapi.com"
export DATASPORTSAPI_API_KEY="dsa_live_…"

curl -H "Authorization: Bearer $DATASPORTSAPI_API_KEY" "$BASE/v2/sports"
Base URL
https://api.datasportsapi.com
Auth
Authorization: Bearer dsa_live_… on every call. Keys
When it goes wrong
A real HTTP status plus { error: { code, message } }. Codes

Plan tiers

All plans80

Open to every key: Free, Starter, Pro and Business.

its colour in the group bars
Pro + Business30

Pro and Business keys. A Free or Starter key gets 403 endpoint_not_in_plan.

its colour in the group bars
Business6

Business keys only. Covers Bulk exports, Webhooks and WebSocket.

its colour in the group bars

Each plan also reads only as far back as its history window. Prices, quotas and windows are on Pricing; how requests are counted is in Plans, quota & rate limits.

16 groups

Jump to a group. The bar under each count is its split across the tiers above.

  1. 101Catalog
  2. 102Live scores
  3. 2803Fixtures
  4. 2004Teams
  5. 1305Players
  6. 2206Leagues
  7. 507Discovery
  8. 908Race sports
  9. 409Referees & managers
  10. 210Venues
  11. 111Search
  12. 312Betting odds
  13. 113Widgets
  14. 314Bulk exports
  15. 115Webhooks
  16. 216WebSocket

01 · 1 endpoint

Catalog

Group overview

The starting point: which sports the API covers, which endpoint family serves each of them, and how many of its matches are being played right now.

02 · 1 endpoint

Live scores

Group overview

Fixtures that are in play right now. If you are building a live feature, the WebSocket is the better fit: it delivers the same objects and then pushes deltas.

03 · 28 endpoints

Fixtures

Group overview

Look up fixtures by date, or fetch one match together with its detail sub-resources.

04 · 20 endpoints

Teams

Group overview

A team is whoever takes part: a club, a national side, a tennis player, a fighter, a driver or a constructor. Profiles, fixtures, squads, transfers, season numbers, trophies and rankings live here.

05 · 13 endpoints

Players

Group overview

The people in a squad: profile, transfer history, the seasons they have numbers for, career tables, match ratings and heatmaps.

06 · 22 endpoints

Leagues

Group overview

A competition and everything inside one of its seasons: the table, rounds and fixtures, leaderboards, knockout brackets, team of the week and the season awards.

07 · 5 endpoints

Discovery

Group overview

Starting points for finding ids: world rankings, plus the full set of a sport’s leagues by country or by category.

08 · 9 endpoints

Race sports

Group overview

Motorsport and cycling — the sports with kind races in /v2/sports. Here a series takes the place of a league (Formula 1, MotoGP; in cycling, the full men’s or women’s calendar). Each race is either a Grand Prix weekend or one cycling race, split into sessions — the timed parts such as practice, qualifying, a sprint, the race itself or a cycling stage. Drivers and riders, like their teams, are TeamRefs, which /v2/teams/{id} resolves. Times are always in milliseconds and distances in metres. The WebSocket does not carry these sports yet; while a session runs, poll /v2/races/{id} and its /results.

09 · 4 endpoints

Referees & managers

Group overview

Fixture.referee carries referee ids; TeamDetail.manager and Fixture.homeManager / awayManager carry manager ids. Both kinds can also be found through /v2/search.

10 · 2 endpoints

Venues

Group overview

Venue ids appear on Fixture.venue and TeamDetail.venue, and /v2/search can look venues up too.

12 · 3 endpoints

Betting odds

Group overview

Prices from a single bookmaker (bet365, supplied through our data source), both before kick-off and in play, available since 2026-11-04. Odds live exclusively on dedicated endpoints and a dedicated WebSocket channel: fixtures, lists and deltas never include betting fields, so your match data contains no odds unless you request them. Included in the Pro and Business plans, with live prices on odds:{id} for Business. Odds are third-party prices provided for information only — neither betting advice nor an offer to place a bet; make sure you follow the rules on displaying betting odds wherever your users are.

13 · 1 endpoint

Widgets

Group overview

For Pro and Business plans. Two lines of HTML put live scores, a match centre or league tables on any web page — no backend needed, and the widgets carry no DataSportsAPI branding. Generate a widget key under the dashboard’s Widgets tab and register the sites allowed to use it.

14 · 3 endpoints

Bulk exports

Group overview

For the Business plan. Get a whole league season as files: create an export, poll its status, then download. Exports are generated in the background from the same data the endpoints above serve; each account may create up to 20 per UTC day, and each one is kept for 7 days.

15 · 1 endpoint

Webhooks

Group overview

For the Business plan. Add your https:// endpoints under the dashboard’s Webhooks tab and every event is sent to them as a JSON POST, so there is no socket to maintain. You can filter by event type, sport, league id and fixture id; every filter is optional, and they are combined with AND.

16 · 2 endpoints

WebSocket

Group overview

Live deltas for scores and statuses. Obtain a single-use ticket via REST and then open the connection, so your API key never appears in a WebSocket URL. Available only on the Business plan (Full grade), with up to five simultaneous connections per account.