+SofaScore API
Live scores, match stats, lineups with player ratings, standings and odds from SofaScore as clean JSON.
The API.SH SofaScore API returns the data SofaScore shows for every sport as structured JSON. Get live and scheduled events, then open any event for team statistics, the incident timeline, lineups with player ratings, the shot map with xG, attack momentum, head-to-head and betting odds. Tournament endpoints return seasons, standings, rounds, fixtures and player stat leaderboards; team and player endpoints return squads, fixtures, season statistics and transfer histories.
- 28 endpoints
- from $1 / 1,000 calls
- 1,000 free credits / month
- failed calls free
GET https://api.api.sh/sofascore/v1/ team
{"id": 42,"name": "Arsenal","short_name": "Arsenal","code": "ARS","slug": "arsenal","country": "England","url": "https://www.sofascore.com/football/team/arsenal/42","logo": "https://img.sofascore.com/api/v1/team/42/image","sport": "football","gender": "M","national": false,"full_name": "Arsenal","manager": {"id": 794075,"name": "Mikel Arteta"},"venue": {"id": 624,"name": "Emirates Stadium","city": "London","capacity": 60704},"founded": null,"primary_tournament": {"id": 17,"name": "Premier League"},"tournaments": [{"id": 7,"name": "UEFA Champions League","slug": "uefa-champions-league"},{"id": 17,"name": "Premier League","slug": "premier-league"},"… 3 more"],"previous_event": {"id": 16363907,"custom_id": "HQfh","slug": "liverpool-fc-arsenal","url": "https://www.sofascore.com/football/match/liverpool-fc-arsenal/HQfh#id:16363907","sport": "football","start_time": "2026-11-01T16:30:00.000Z","status": "finished","status_description": "Ended","status_code": 100,"home_team": {"id": 44,"name": "Liverpool FC","short_name": "Liverpool","code": "LIV","slug": "liverpool","country": null,"url": "https://www.sofascore.com/football/team/liverpool/44","logo": "https://img.sofascore.com/api/v1/team/44/image"},"away_team": {"id": 42,"name": "Arsenal","short_name": "Arsenal","code": "ARS","slug": "arsenal","country": null,"url": "https://www.sofascore.com/football/team/arsenal/42","logo": "https://img.sofascore.com/api/v1/team/42/image"},"home_score": 0,"away_score": 1,"winner": "away","tournament": {"id": 17,"name": "Premier League","slug": "premier-league"},"category": {"id": 1,"name": "England","country_code": "EN"},"season": {"id": 96668,"name": "Premier League 26/27","year": "26/27"},"round": 9},"next_event": {"id": 16939009,"custom_id": "RsqU","slug": "sk-slavia-praha-arsenal","url": "https://www.sofascore.com/football/match/sk-slavia-praha-arsenal/RsqU#id:16939009","sport": "football","start_time": "2026-11-04T20:00:00.000Z","status": "notstarted","status_description": "Not started","status_code": 0,"home_team": {"id": 2216,"name": "SK Slavia Praha","short_name": "Slavia Praha","code": "SLA","slug": "slavia-praha","country": null,"url": "https://www.sofascore.com/football/team/slavia-praha/2216","logo": "https://img.sofascore.com/api/v1/team/2216/image"},"away_team": {"id": 42,"name": "Arsenal","short_name": "Arsenal","code": "ARS","slug": "arsenal","country": null,"url": "https://www.sofascore.com/football/team/arsenal/42","logo": "https://img.sofascore.com/api/v1/team/42/image"},"home_score": null,"away_score": null,"winner": null,"tournament": {"id": 7,"name": "UEFA Champions League","slug": "uefa-champions-league"},"category": {"id": 1465,"name": "Europe","country_code": null},"season": {"id": 96518,"name": "UEFA Champions League 26/27","year": "26/27"},"round": 4},"pregame_form": {"avgRating": "7.79","position": 1,"value": "24","form": ["L","W","… 3 more"]},"cached": false,"credits_used": 1} What you can build with the SofaScore API
Live score apps and bots
Poll live events for a sport and send score, status and incident updates to your app, Discord or Telegram channel.
Football analytics and models
Collect team statistics, shot maps with xG and xGOT, attack momentum and player ratings per match to build expected-goals and rating models. Best-player ratings and the minute-by-minute attack momentum add context.
Betting research
Compare pre-match form, team streaks, head-to-head records and odds across markets before a match.
League tables and fixtures
Keep standings, rounds and upcoming fixtures of any tournament up to date on a website or in a spreadsheet, and list a day's events by country or tournament.
Scouting and player datasets
Rank players by rating, goals or expected goals in a season, then pull each player's profile, season statistics, recent matches and transfer history.
Club pages, squads and transfers
Build a club page with squad, market values and contract ends, latest results and next fixtures, and transfers in and out, or search teams, players and managers by name across sports.
SofaScore data you get
Field names from real responses. Numbers come parsed, URLs absolute, dates in ISO 8601.
SofaScore API endpoints and prices
Every SofaScore endpoint costs 1 credit per call: credits are $1 per 1,000 on a monthly plan, $2 pay-as-you-go. Pricing
| SofaScore search /sofascore/ | $1 · $2 PAYG 1 credit |
| SofaScore live events /sofascore/ | $1 · $2 PAYG 1 credit |
| SofaScore player transfer history /sofascore/ | $1 · $2 PAYG 1 credit |
| SofaScore event detail /sofascore/ | $1 · $2 PAYG 1 credit |
| SofaScore best players of an event /sofascore/ | $1 · $2 PAYG 1 credit |
| SofaScore pre-match form and streaks /sofascore/ | $1 · $2 PAYG 1 credit |
| SofaScore head-to-head /sofascore/ | $1 · $2 PAYG 1 credit |
| SofaScore event incidents /sofascore/ | $1 · $2 PAYG 1 credit |
| SofaScore event line-ups /sofascore/ | $1 · $2 PAYG 1 credit |
| SofaScore attack momentum /sofascore/ | $1 · $2 PAYG 1 credit |
| SofaScore event odds /sofascore/ | $1 · $2 PAYG 1 credit |
| SofaScore event shot map /sofascore/ | $1 · $2 PAYG 1 credit |
| SofaScore event statistics /sofascore/ | $1 · $2 PAYG 1 credit |
| SofaScore categories (countries) by date /sofascore/ | $1 · $2 PAYG 1 credit |
| SofaScore matches by date /sofascore/ | $1 · $2 PAYG 1 credit |
| SofaScore player /sofascore/ | $1 · $2 PAYG 1 credit |
| SofaScore player matches /sofascore/ | $1 · $2 PAYG 1 credit |
| SofaScore player season statistics /sofascore/ | $1 · $2 PAYG 1 credit |
| SofaScore tournaments playing on a date /sofascore/ | $1 · $2 PAYG 1 credit |
| SofaScore team /sofascore/ | $1 · $2 PAYG 1 credit |
| SofaScore team matches /sofascore/ | $1 · $2 PAYG 1 credit |
| SofaScore team squad /sofascore/ | $1 · $2 PAYG 1 credit |
| SofaScore team transfers /sofascore/ | $1 · $2 PAYG 1 credit |
| SofaScore tournament /sofascore/ | $1 · $2 PAYG 1 credit |
| SofaScore tournament matches /sofascore/ | $1 · $2 PAYG 1 credit |
| SofaScore player statistics leaderboard /sofascore/ | $1 · $2 PAYG 1 credit |
| SofaScore tournament rounds /sofascore/ | $1 · $2 PAYG 1 credit |
| SofaScore standings /sofascore/ | $1 · $2 PAYG 1 credit |
Call the SofaScore API
SofaScore team: GET https://api.api.sh/sofascore/
curl "https://api.api.sh/sofascore/v1/team?team_id=42" \
-H "x-api-key: $APISH_KEY" import os, requests
res = requests.get(
"https://api.api.sh/sofascore/v1/team",
params={"team_id": "42"},
headers={"x-api-key": os.environ["APISH_KEY"]},
timeout=120,
)
res.raise_for_status()
data = res.json() const url = new URL("https://api.api.sh/sofascore/v1/team");
url.searchParams.set("team_id", "42");
const res = await fetch(url, { headers: { "x-api-key": process.env.APISH_KEY } });
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
const data = await res.json(); # Google Sheets (API.SH add-on)
=APISH("/sofascore/v1/team", "team_id", "42")
# Zapier, Make, n8n (verified node): pick the API.SH app,
# choose "SofaScore" and "SofaScore team".
# AI agents (Claude, ChatGPT, Cursor): add the
# API.SH MCP server https://api.sh/mcp - Create a free accountConfirm your email and get 1,000 free credits every month. No card needed.
- Create an API keyOne key works for all 921 platforms.
- Send the requestJSON back in one call. Add
output=csvoroutput=ndjsonfor files.
Why API.SH for SofaScore data
- Public data only: no SofaScore login, cookies or account needed
- One key and one response shape for SofaScore and 920 other platforms
- Built and maintained by API.SH, not third-party publishers
- Pay per call; errors on our side cost nothing
- No rate limits: run as many calls in parallel as you need
- Live status for every endpoint
API.SH vs the official SofaScore API
SofaScore does not offer an official public API for developers; it sells data and widgets to businesses through its corporate site. API.SH returns the public data SofaScore pages show, with one key and documented JSON, so you do not have to maintain calls to its internal endpoints yourself.
Instead of maintaining a Python scraper or a community wrapper that breaks when the site changes, or comparing RapidAPI and Apify listings, use one API.SH key with a fixed price per call across every sport.
SofaScore API questions
What SofaScore data can I get?+
Live events (/sofascore/v1/live), events by date (/sofascore/v1/matches, /sofascore/v1/categories, /sofascore/v1/scheduled-tournaments), event detail, statistics, incidents, lineups, head-to-head, odds, shot map, momentum, best players and form (/sofascore/v1/event and its sub-routes), tournaments with standings, rounds, matches and player stats (/sofascore/v1/tournament/*), teams with squads, matches and transfers (/sofascore/v1/team/*), players with statistics, matches and transfers (/sofascore/v1/player/*) and search (/sofascore/v1/search).
How much does the SofaScore API cost?+
Every SofaScore endpoint costs 1 credit per call. On a monthly plan 1,000 credits cost $1 (Starter is $50/month for 50,000 credits). Pay-as-you-go is $2 per 1,000 credits, with top-ups from $15 that never expire.
Is there a free trial?+
Yes. Every account gets 1,000 free credits every month. That is 1,000 calls to /sofascore/v1/categories at 1 credit each.
Does SofaScore have an official API?+
No public one. SofaScore offers widgets and business data deals, but no open developer API. API.SH reads the public data the SofaScore website shows and returns it as documented JSON.
Do I need a SofaScore account or login?+
No. API.SH reads public SofaScore data only. No endpoint uses a login, cookies or anyone's account.
Which sports are covered?+
Football, basketball, tennis, ice hockey, American football, baseball, handball, volleyball, cricket, rugby, MMA, motorsport, esports, table tennis, darts, snooker and more. Pass the sport to the live, categories and scheduled routes.
Can I use the SofaScore API from Python?+
Yes. Every endpoint is a plain HTTPS GET with your key in the x-api-key header, so requests or httpx work, and there is an API.SH Python SDK. Responses are JSON with named fields plus the site's original record under raw.
How do I get started?+
1. Sign up at api.sh. 2. Copy your API key. 3. Call /sofascore/v1/live?sport=football, or /sofascore/v1/event with an event id or match link. Request examples and every parameter are in the docs at https://api.sh/docs. You can also use the JS or Python SDK, Google Sheets, Zapier, Make, n8n or the MCP server at https://api.sh/mcp.
Does the SofaScore API have a rate limit?+
No. API.SH puts no rate limit on your key: send as many SofaScore calls in parallel as you need and pay only for the calls that run. If SofaScore itself slows down, the call returns 503 with a retry-after header and is not charged.