Discover/sofascore.com API
live

sofascore.com APIwww.sofascore.com

Access Sofascore head-to-head stats, daily sports events, and streak metrics across football, basketball, tennis, and 6 more sports via 5 structured endpoints.

Endpoints
5
Updated
14d ago
Try it
Date in YYYY-MM-DD format. Omitting uses today's date.
Comma-separated sports: football,basketball,tennis,ice-hockey,baseball,handball,rugby,amer
Maximum events to process (0 = all).
Minimum number of historical meetings required for a matchup to be included.
Maximum streak percentage threshold.
Minimum streak percentage threshold.
api.parse.bot/scraper/ca85c1b5-deac-4378-826d-742eddac6785/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Use it in your codegrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/ca85c1b5-deac-4378-826d-742eddac6785/get_h2h_streaks_ranked?date=2025-06-15&sports=football&max_events=10&min_meetings=3&max_percentage=100&min_percentage=80' \
  -H 'X-API-Key: $PARSE_API_KEY'
All endpoints · 5 totalclick to expand

Fetches all daily events across specified sports, extracts H2H statistics for each matchup, computes streak metrics (home win %, away win %, draw %, home unbeaten %, away unbeaten %, manager duel %), and returns only those streaks occurring between min_percentage and max_percentage of the time, ranked in descending order by percentage.

Input
ParamTypeDescription
datestringDate in YYYY-MM-DD format. Omitting uses today's date.
sportsstringComma-separated sports: football,basketball,tennis,ice-hockey,baseball,handball,rugby,american-football,volleyball,cricket,esports. Omitting queries all sports.
max_eventsintegerMaximum events to process (0 = all).
min_meetingsintegerMinimum number of historical meetings required for a matchup to be included.
max_percentagenumberMaximum streak percentage threshold.
min_percentagenumberMinimum streak percentage threshold.
Response
{
  "type": "object",
  "fields": {
    "date": "string, date queried in YYYY-MM-DD format",
    "streaks": "array of streak objects with event_id, sport, tournament, category, home_team, away_team, matchup, metric, count, total_meetings, percentage",
    "min_meetings": "integer, minimum meetings filter applied",
    "events_skipped": "integer, events skipped due to no/insufficient H2H data",
    "max_percentage": "number, maximum percentage filter applied",
    "min_percentage": "number, minimum percentage filter applied",
    "sports_queried": "array of sport name strings",
    "events_with_h2h": "integer, events that had H2H data meeting min_meetings",
    "events_processed": "integer, events with sufficient H2H data",
    "total_events_found": "integer, total events collected across sports",
    "total_streaks_found": "integer, number of qualifying streaks"
  },
  "sample": {
    "data": {
      "date": "2026-04-24",
      "streaks": [
        {
          "count": 7,
          "sport": "football",
          "metric": "Villarreal unbeaten (away)",
          "matchup": "Real Oviedo vs Villarreal",
          "category": "Spain",
          "event_id": 14083282,
          "away_team": "Villarreal",
          "home_team": "Real Oviedo",
          "percentage": 100,
          "tournament": "LaLiga",
          "total_meetings": 7
        }
      ],
      "min_meetings": 3,
      "events_skipped": 0,
      "max_percentage": 100,
      "min_percentage": 80,
      "sports_queried": [
        "football"
      ],
      "events_with_h2h": 10,
      "events_processed": 10,
      "total_events_found": 10,
      "total_streaks_found": 8
    },
    "status": "success"
  }
}

About the sofascore.com API

This API exposes 5 endpoints for extracting head-to-head statistics, streak rankings, and event schedules from Sofascore across up to 9 sports. The get_h2h_streaks_ranked endpoint computes and ranks H2H metrics — home win rate, away win rate, draw rate, unbeaten rates, and manager duel records — filtered by configurable percentage thresholds and a minimum meetings requirement, returning only statistically meaningful matchup patterns for any given date.

Daily Events and Event Details

The get_daily_events endpoint returns all scheduled events for a given date across any combination of football, basketball, tennis, ice-hockey, baseball, handball, rugby, american-football, and volleyball. Each event object includes event_id, sport, tournament, tournament_category, home_team, away_team, status_type, and start_timestamp. The limit and sports parameters let you narrow results to specific sports or cap total volume. The event_id values returned here are the keys used by all other endpoints.

The get_event_details endpoint accepts an event_id and returns structured metadata: home_team and away_team objects (each with name, id, short_name), score objects (home_score, away_score — structure varies by sport), status with code and description, season, round_info, and a URL slug. Score structure is sport-dependent, so callers should expect variation between a football match and a tennis match.

Head-to-Head Data

The get_event_h2h endpoint returns a team_duel summary with home_wins, away_wins, draws, and total_meetings, alongside manager_duel win/draw/loss counts, pregame_form arrays with recent form and ratings for both sides, and a fun_facts array of text strings. Manager duel and pregame form fields return empty objects when the data is unavailable for a given matchup.

The get_h2h_streaks_ranked endpoint aggregates H2H data across all events for a date and ranks matchups by computed streak metrics. The min_percentage and max_percentage parameters define the window of interest (e.g., 70–100 for high-confidence streaks), min_meetings filters out low-sample matchups, and max_events caps processing load. Each streak object in the response includes metric, count, total_meetings, sport, tournament, category, home_team, away_team, and matchup. Response metadata fields — events_processed, events_with_h2h, events_skipped, total_events_found — give visibility into how much of the day's slate had usable H2H history.

Common use cases
  • Build a daily H2H streak digest that surfaces matchups where one side has won 80%+ of historical meetings, using get_h2h_streaks_ranked with min_percentage=80.
  • Populate a pre-match stats widget with head-to-head records, manager duel history, and pregame form via get_event_h2h.
  • Monitor all daily football and basketball fixtures with team names, tournament context, and start times using get_daily_events.
  • Generate automated pre-match editorial notes for football games using fun facts from get_event_fun_facts.
  • Track live and final scores across multiple sports for a specific event day using get_event_details with sport-specific score structures.
  • Filter H2H streaks to a specific percentage band (e.g., 60–75%) to identify competitive but historically skewed matchups for analysis.
  • Cross-reference manager duel win rates from get_event_h2h against team-level H2H records to separate team vs. tactical patterns.
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000250 req/min

One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does Sofascore have an official developer API?+
Sofascore does not publish an official public developer API with documented access and credentials. There is no developer portal or API key program listed on sofascore.com.
What does `get_h2h_streaks_ranked` actually return, and how does the percentage filtering work?+
The endpoint computes six metrics per matchup — home win %, away win %, draw %, home unbeaten %, away unbeaten %, and manager duel % — then returns only those where the computed value falls between min_percentage and max_percentage. Results are ranked in descending order. The min_meetings parameter removes matchups with too few historical encounters to be meaningful. Response metadata includes events_processed, events_skipped, and events_with_h2h so you can see how much of the day's slate qualified.
Are fun facts available for all sports?+
get_event_fun_facts is primarily available for football events. For non-football events it typically returns a 'not found' response. get_event_h2h also includes a fun_facts field, but it returns an empty array when the data is not available for a given matchup.
Does the API return player-level statistics or lineups?+
Not currently. The API covers team-level H2H records, event schedules, scores, pregame form, manager duels, and fun facts. Player stats, lineups, and in-match incident data are not included. You can fork this API on Parse and revise it to add endpoints targeting player or lineup data for specific events.
How does the score structure differ across sports in `get_event_details`?+
The home_score and away_score fields vary by sport — a football event may return period scores and extra time, while a tennis event structures scores by set. The endpoint does not normalize these into a single schema, so callers should handle the response shape conditionally based on the sport field.
Page content last updated . Spec covers 5 endpoints from www.sofascore.com.
Related APIs in SportsSee all →
athletic.net API
Search and analyze cross country and track & field performance data across the US, including athlete profiles, meet results, team rosters, and rankings. Access comprehensive meet information, historical records, and state-level competition data to track athlete progress and discover top performers.
maxpreps.com API
Access high school sports data from MaxPreps. Search for schools, retrieve team rosters and schedules, look up athlete profiles, and browse national or state rankings across all sports.
vg.no API
Access VG.no's latest news, articles, sports scores, and TV guides through a single interface where you can browse the front page, search articles by topic, view category-specific content, and find related stories. Get real-time sports scores and television schedules alongside comprehensive news coverage from Norway's leading news outlet.
vegasinsider.com API
Retrieve MLB betting odds from major sportsbooks including bet365, FanDuel, and DraftKings, covering Moneyline, Total, and Runline markets for any supported date. Easily compare odds across books to identify the best available lines.
puntoticket.com API
Browse and search events happening in Chile with PuntoTicket, viewing featured shows, filtering by category, and checking detailed pricing and availability for concerts, theater, sports, and more. Find the perfect event by exploring all listings or discovering what's trending right now.
130point.com API
Search for sold trading cards across eBay, Goldin, Heritage Auctions, Pristine Auction, MySlabs, and Fanatics Collect to find historical prices, sale dates, and marketplace information all in one place. Get comprehensive sales data to research card values and track market trends across multiple platforms instantly.
wynncraft.com API
Access detailed Wynncraft game information to look up item metadata and search across the complete item database, retrieve player statistics and character inventories, and browse guild information and global search results. Use this data to compare gear, track player progress, analyze guild rosters, or build tools for the Wynncraft community.
whoscored.com API
Search for players and teams, then dive deep into their performance metrics, match statistics, and detailed passing data to analyze football games and player abilities. Get comprehensive insights on team performance, individual player stats, and play-by-play event information to power your football analysis and decision-making.