Sofascore API

Sofascore API for scores, xG and match statistics

Fixtures, live and final scores, expected goals, shots, lineups, odds, standings and player statistics as JSON, for football, tennis, basketball, cricket and more. Send a team, match or date. 1 credit per call.

  • No card needed
  • Failed calls are free
  • Pack credits never expire
Team
Endpoint
curl "https://api.toolzerhub.com/v1/sofascore/search/teams?query=Barcelona" \
  -H "x-api-key: $TOOLZERHUB_API_KEY"
200 OK
Real response, 13 Nov 2026
{
  "data": {
    "results": [
      {
        "entity": {
          "id": 2817,
          "name": "FC Barcelona",
          "nameCode": "BAR",
          "slug": "barcelona",
          "national": false,
          "sport": {
            "id": 1,
            "slug": "football",
            "name": "Football"
          },
          "userCount": 7554405,
          "teamColors": {
            "primary": "#154284",
            "secondary": "#9d1009",
            "text": "#9d1009"
          },
          "type": 0,
          "gender": "M",
          "country": {
            "alpha2": "ES",
            "name": "Spain",
            "slug": "spain"
          }
        },
        "score": 382430.78,
        "type": "team"
      },
      {
        "entity": {
          "id": 77889,
          "name": "Fútbol Club Barcelona",
          "nameCode": "FCB",
          "slug": "barcelona",
          "national": false,
          "sport": {
            "id": 1,
            "slug": "football",
            "name": "Football"
          },
          "userCount": 317922,
          "teamColors": {
            "primary": "#154284",
            "secondary": "#9d1009",
            "text": "#9d1009"
          },
          "type": 0,
          "gender": "F",
          "country": {
            "alpha2": "ES",
            "name": "Spain",
            "slug": "spain"
          }
        },
        "score": 78453.74,
        "type": "team"
      }
    ]
  }
}

2 of 20 results shown.

1
1 credit per call
100%
finished without a server error
0.5 s
median response time
287
Sofascore endpoints

From 24 test calls we made across 12 endpoints on 13 Nov 2026. Every endpoint costs 1 credit.

Endpoints

What you can get

One request each, 1 credit per call. Open one to see its parameters and a real response.

See all 287 Sofascore endpoints in the docs(opens in new tab)

Response

What comes back

Field names and types read off the real responses in the demo above.

  • Search teams/v1/sofascore/search/teams3 fields
    • entityobject{ id, name }
    • scorenumber382,430.78
    • typestring"team"
  • Team results/v1/sofascore/team/events12 fields
    • idnumber16,421,091
    • slugstring"deportivo-alaves-fc-bar…"
    • start_timestring"2026-10-31T20:00:00Z"
    • statusobject{ code, type }
    • homeobject{ id, name }
    • awayobject{ id, name }
    • home_scoreobject{ current, periods }
    • away_scoreobject{ current, periods }
    • winnerstring"home"
    + 3 more
  • Match statistics/v1/sofascore/event/statistics2 fields
    • periodstring"ALL"
    • groupsarray[1 items]

Use cases

What people build with it

  • 01Pull a matchday's results and statsEvents on a dayMatch statistics
  • 02Track a team's formSearch teamsTeam resultsStandings
  • 03Build an xG or player modelMatch statisticsMatch lineupsMatch timelinePlayer career statistics
  • 04Compare odds with resultsBetting oddsMatch timeline

How it works

From key to JSON

  1. 01x-api-key••••••••••Get a key100 free credits a month, no card
  2. 02GET/v1/sofascore/search/teamsSend a requestAny HTTP client, no SDK needed
  3. 03{ data, status }200Get JSONFailed calls cost nothing

Pricing

What it costs

Every endpoint on this page costs 1 credit per call. Failed calls cost nothing.

  • Free$0every month
    • 100 credits a month
    • No card needed
  • 10K pack$19one time
    • 10,000 credits
    • Never expire
    • $1.90 per 1,000
  • Starter$29a month
    • 20,000 credits a month
    • Cancel anytime
    • $1.45 per 1,000

Per 1,000 credits

  • 10K pack$1.90
  • Starter$1.45
  • Growth$1.32
  • Scale$1.21
  • Business$0.99
  • Customfrom $0.99

Plans renew monthly and cancel anytime. Custom plans start at 1M+ credits. Full pricing

Compare

Why not build it yourself

Three ways to get Sofascore data into your app.

CompareToolzer HubSofascore widgetsYour own scraper
SetupOne API keyCopy an iframe; no data accessProxies, sessions, retries
When Sofascore changesWe fix itSofascore keeps it workingYou fix the parser
Cost to start100 free credits a monthFree, display onlyProxies and your time

Official API access rules: Sofascore widgets (opens in new tab)

FAQ

Questions

Is this the official Sofascore API?
No. Toolzer Hub is not affiliated with Sofascore. Ours returns the same public data as JSON you can store and query: scores, xG, lineups, odds and standings, with one key.
What does the official Sofascore API allow?
Sofascore publishes no data API. It offers free embeddable widgets, which you add by copying an iframe code; "Using widgets is completely free and without any limitations." The JSON its own site loads is undocumented.
What data does it return?
Events on a day, Search teams, Team results and fixtures, Match statistics, Match lineups, Match timeline, Betting odds, Standings, Player career statistics, Rankings, as JSON.
What does it cost?
1 credit per call. New workspaces get 100 credits a month at no cost; plans work out to $0.99 to $1.45 per 1,000 credits. Failed calls are not charged.

Try the Sofascore API free

Every new workspace gets 100 credits a month. Buy credits only when you need more.

Not affiliated with Sofascore.