Discover/datagolf.com API
live

datagolf.com APIdatagolf.com

Access DataGolf.com player rankings and round-level strokes gained (SG) data by tournament, round, and category via a simple REST API.

Endpoints
2
Updated
3mo ago
Try it

No input parameters required.

api.parse.bot/scraper/903e8876-c2eb-4278-ad16-a13a031e2c86/<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/903e8876-c2eb-4278-ad16-a13a031e2c86/get_top_players' \
  -H 'X-API-Key: $PARSE_API_KEY'
All endpoints · 2 totalclick to expand

Fetch the current top-ranked players from Data Golf, including their unique dg_id, rank, and country. Returns all players listed on the rankings page.

Input

No input parameters required.

Response
{
  "type": "object",
  "fields": {
    "players": "array of player objects each containing dg_id, name, rank, and country"
  },
  "sample": {
    "data": {
      "players": [
        {
          "name": "Scottie Scheffler",
          "rank": 1,
          "dg_id": "18417",
          "country": "USA"
        },
        {
          "name": "Jon Rahm",
          "rank": 20,
          "dg_id": "19195",
          "country": "ESP"
        },
        {
          "name": "Cameron Young",
          "rank": 3,
          "dg_id": "26651",
          "country": "USA"
        }
      ]
    },
    "status": "success"
  }
}

About the datagolf.com API

This 2-endpoint API surfaces DataGolf.com player rankings and detailed historical strokes gained (SG) data for professional golfers. The get_top_players endpoint returns each player's unique dg_id, rank, and country, while get_player_sg_data delivers per-round SG breakdowns across five categories — OTT, APP, ARG, PUTT, and total — organized by tournament and sorted newest first.

Player Rankings

The get_top_players endpoint returns the current DataGolf rankings with no required inputs. Each player object in the response includes a dg_id (the stable identifier used across the API), name, rank, and country. This list is the primary way to discover which players are covered and to obtain the dg_id values needed for the second endpoint.

Round-Level Strokes Gained Data

The get_player_sg_data endpoint accepts a single required parameter — dg_id — and returns a player object plus a tournaments array. Tournaments are ordered newest first. Each tournament entry includes event_name, tournament_num, year, tour, course_name, and finish. Within each tournament, a rounds array provides per-round SG figures broken into five categories: off-the-tee (OTT), approach (APP), around-the-green (ARG), putting (PUTT), and total SG.

Data Shape and Coverage

All SG data is tied to the players listed on DataGolf's rankings page. The dg_id field is consistent across both endpoints, making it straightforward to join ranking position with historical performance. Tournament entries include tour and year fields, so filtering to a specific circuit or season is possible client-side once the full array is retrieved.

Common use cases
  • Build a strokes-gained trend chart for a specific player across a full season using the rounds array from get_player_sg_data
  • Compare approach-shot (APP) SG across top-ranked players to identify ball-striking leaders
  • Filter historical tournament data by tour field to analyze performance on a specific circuit (PGA, European, etc.)
  • Rank top players by putting (PUTT) SG to surface short-game specialists from the rankings list
  • Cross-reference finish and total SG per tournament to study how scoring efficiency correlates with final standing
  • Populate a fantasy golf dashboard with current rankings and each player's recent round-level SG metrics
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 DataGolf have an official developer API?+
Yes. DataGolf offers a paid developer API documented at https://datagolf.com/api-access. It covers a broader range of data including live scoring, predictions, and field updates. This Parse API focuses specifically on top-player rankings and historical round-level SG data.
What exactly does get_player_sg_data return, and how is it organized?+
It returns a player object (dg_id, name, country, pro status) and a tournaments array sorted newest first. Each tournament entry includes event_name, tournament_num, year, tour, course_name, and finish. Inside each tournament is a rounds array with per-round SG values across five categories: OTT (off-the-tee), APP (approach), ARG (around-the-green), PUTT (putting), and total SG.
Does this API cover players outside the current DataGolf top rankings?+
The get_top_players endpoint returns the players listed on DataGolf's rankings page, and get_player_sg_data is keyed to those same dg_id values. Players not appearing in the current rankings are not directly discoverable through this API. You can fork it on Parse and revise to add an endpoint that accepts a known dg_id directly, bypassing the rankings list.
Is live or in-round scoring data available?+
Not currently. The API covers historical round-level SG data organized by completed tournaments and rounds. Live scoring during an active round is not exposed. You can fork the API on Parse and revise it to add a live-scoring endpoint if that data is available from the source.
Can I filter tournaments by tour or year within the API?+
The get_player_sg_data endpoint returns the full tournament history for a player in a single response; filtering by tour or year is not a server-side parameter. Each tournament object includes tour and year fields, so you can apply that filtering client-side after receiving the array. You can also fork the API on Parse and revise it to add query-time filtering as a parameter.
Page content last updated . Spec covers 2 endpoints from datagolf.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.