Discover/fbref.com API
live

fbref.com APIfbref.com

Access FBRef football data via API: player career stats, team squads, league standings, and match reports across major competitions.

Endpoints
5
Updated
3mo ago
Try it
Search query (player or team name)
Type of entity to search for. Accepted values: players, squads.
api.parse.bot/scraper/1a8fe9ae-251c-43bc-abda-4d7469597ce8/<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/1a8fe9ae-251c-43bc-abda-4d7469597ce8/search?query=Messi' \
  -H 'X-API-Key: $PARSE_API_KEY'
All endpoints · 5 totalclick to expand

Search for players or squads by name. Returns matches with their IDs and profile URLs. If an exact match is found, FBRef redirects directly to the entity page and a single result with exact=true is returned.

Input
ParamTypeDescription
queryrequiredstringSearch query (player or team name)
entity_typestringType of entity to search for. Accepted values: players, squads.
Response
{
  "type": "object",
  "fields": {
    "matches": "array of search result objects each containing name, url, id, and description"
  },
  "sample": {
    "data": {
      "matches": [
        {
          "id": "f49c4ae9",
          "url": "https://fbref.com/en/players/f49c4ae9/Junior-Messias",
          "name": "Junior Messias",
          "description": "Junior Messias · 2019-2026  · BRA /en/players/f49c4ae9/Junior-Messias Clubs: Genoa, Crotone, Milan"
        }
      ]
    },
    "status": "success"
  }
}

About the fbref.com API

The FBRef API exposes 5 endpoints covering football player profiles, squad statistics, league standings, and match reports drawn from FBRef.com's deep statistical database. The get_player_stats endpoint returns career-long season breakdowns including goals, assists, minutes, and per-90 metrics across every competition a player has appeared in. The search endpoint lets you resolve player and team names to the IDs required by the other endpoints.

Endpoints and Data Coverage

The API covers five distinct data surfaces. search accepts a query string and an optional entity_type filter (players or squads), returning an array of matches each with a name, url, id, and description. When FBRef identifies an exact match, the response includes a single result with exact: true. The id values returned here feed directly into get_player_stats and get_team_stats.

League Standings and Team Data

get_league_standings takes a comp_id (for example, 9 for the Premier League or 12 for La Liga) and an optional season string in YYYY-YYYY format. The response includes a standings array where each entry carries rank, team, games, wins, ties, losses, goals_for, goals_against, points, and goal difference. Omitting season returns the current season's table. get_team_stats takes a team_id (obtainable from search or standings results) and returns team_info — containing name, record, and manager — alongside a squad array with per-player rows covering position, age, games, goals, assists, cards, and per-90 metrics.

Player and Match Endpoints

get_player_stats accepts a player_id and returns a profile object (name, position, born) plus a career_stats array. Each entry in that array represents one season with a specific club and competition, providing year_id, team, comp_level, games, goals, assists, minutes played, and per-90 figures. get_match_report takes a match_id and returns a match_info object with home_team, home_score, away_team, away_score, competition, venue, and date. Match IDs can be sourced from league standings last_5_id fields or team schedule pages.

ID Resolution Workflow

All entity-specific endpoints depend on FBRef's internal ID strings rather than names. The recommended workflow is to call search first to retrieve the id for a player or squad, then pass that ID to get_player_stats or get_team_stats. Competition IDs for get_league_standings are fixed values documented in the endpoint description — for example, 20 for the Bundesliga.

Common use cases
  • Build a season comparison tool using career_stats entries across multiple players to track goals and assists per-90 over time.
  • Populate a live league table widget by polling get_league_standings with a specific comp_id each matchday.
  • Resolve player names to IDs via search as part of a fantasy football data pipeline.
  • Display squad depth charts by iterating over the squad array from get_team_stats for a given team and season.
  • Enrich a match results feed with venue, competition, and scoreline data from get_match_report.
  • Track manager changes by monitoring the manager field in team_info across consecutive seasons.
  • Cross-reference a player's comp_level history from career_stats to filter only top-division seasons.
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 FBRef have an official developer API?+
No. FBRef does not offer a public developer API or documented programmatic access. Data is accessible only through their website at fbref.com.
What does `get_player_stats` return and how granular is the breakdown?+
get_player_stats returns a career_stats array where each row represents one season at one club in one competition. Fields include year_id, team, comp_level, games, goals, assists, minutes, and per-90 metrics. This means a player who appeared in both a league and a cup in the same season will have separate rows for each competition.
Does the API cover advanced metrics like expected goals (xG) or passing statistics?+
Not currently. The endpoints expose standard stats: goals, assists, games, minutes, cards, and per-90 equivalents. FBRef itself hosts xG and detailed passing/shot data tables, but those fields are not part of the current response shapes. You can fork this API on Parse and revise it to add endpoints that pull those additional stat tables.
Are historical seasons available for all competitions, or only recent ones?+
The season parameter on get_league_standings and get_team_stats accepts any YYYY-YYYY string, so historical seasons are requestable. Coverage depth depends on what FBRef has indexed for each competition — major leagues like the Premier League and La Liga have deeper historical records than lower divisions. For competitions with limited historical data, responses may be incomplete.
Does the API return player photos, contract details, or transfer history?+
No. The profile object from get_player_stats contains name, position, and born. Contract details and transfer history are not covered by any current endpoint. You can fork this API on Parse and revise it to extract those fields if FBRef surfaces them on a player's page.
Page content last updated . Spec covers 5 endpoints from fbref.com.
Related APIs in SportsSee all →
ncaa.com API
Access live college sports scores, game schedules, detailed boxscores, play-by-play breakdowns, and team statistics across NCAA sports. Search for specific contests and retrieve comprehensive game information for any NCAA sport, division, or team.
bet365.bet.br API
Access live betting odds, featured sports events, and real-time scores directly from bet365 Brazil's platform across multiple sports including Formula 1 and in-play markets. Get current match results, browse available betting categories, and view homepage promotions all through structured data endpoints.
nfl.com API
Access real-time NFL data including game schedules, scores, player statistics, team rosters, standings, injury reports, fantasy rankings, and the latest news — all from nfl.com.
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.
axs.com API
Search for events, performers, and venues across AXS.com to find tickets, pricing, and availability information in your area or by category. Browse featured events, explore venues by city, and access detailed event information all in one place.
pdga.com API
Access player profiles, ratings history, tournament events, live scoring, world rankings, and the course directory from the Professional Disc Golf Association.
bwfbadminton.com API
Track badminton tournaments worldwide by browsing the BWF calendar, viewing tournament draw brackets, and retrieving detailed match results with player stats and scores. Stay updated on competitions and analyze matchups with comprehensive tournament data from the Badminton World Federation.
formula1.com API
Get comprehensive Formula 1 data including race results, qualifying sessions, practice sessions, pit stops, and driver/team standings from 1950 to present. Track live race schedules, fastest laps, starting grids, and historical world champions to stay updated on all F1 season information.
FBRef API – Football Stats & Standings · Parse