Skip to content

Golf v2 API

by sportsdata.io

API keyHTTPSEntertainment
Open documentation ↗

Overview

Live sports data provider with scores, odds, projections, stats, news, and images for NFL football, MLB Baseball, NBA Basketball, NHL Hockey, PGA Golf, NASCAR, Tennis Data, Soccer, and ESports. SportsDataIO provides sports API feeds and database downloads to power your website and mobile applications

Golf v2 is an entertainment API from sportsdata.io. Requests are authenticated with an API key. It is served over HTTPS. Its OpenAPI description documents 15 endpoints.

At a glance

Authentication
API key
HTTPS
Yes
CORS
Unknown
Base URL
http://azure-api.sportsdata.io/golf/v2
Version
1.0
Endpoints
15
Spec updated
2023-03-05

Make a first request

Replace the placeholders; the documentation says exactly where credentials go.

cURL
curl -X GET "http://azure-api.sportsdata.io/golf/v2/FORMAT/CurrentSeason" \
  -H "Accept: application/json" \
  -H "X-API-Key: YOUR_API_KEY"
JavaScript
const response = await fetch("http://azure-api.sportsdata.io/golf/v2/FORMAT/CurrentSeason", {
  method: "GET",
  headers: {
    "Accept": "application/json",
    "X-API-Key": "YOUR_API_KEY",
  },
});
const data = await response.json();
console.log(data);
Python
import requests

response = requests.request(
    "GET",
    "http://azure-api.sportsdata.io/golf/v2/FORMAT/CurrentSeason",
    headers={
    "Accept": "application/json",
    "X-API-Key": "YOUR_API_KEY",
    },
    timeout=30,
)
print(response.json())

Endpoints

MethodPathWhat it does
GET/{format}/CurrentSeasonCurrent Season
GET/{format}/DfsSlatesByTournament/{tournamentid}DFS Slates
GET/{format}/InjuriesInjuries
GET/{format}/InjuriesByHistoricalInjuries (Historical)
GET/{format}/Leaderboard/{tournamentid}Leaderboard
GET/{format}/NewsNews
GET/{format}/NewsByDate/{date}News by Date
GET/{format}/NewsByPlayerID/{playerid}News by Player
GET/{format}/Player/{playerid}Player
GET/{format}/PlayerSeasonStats/{season}Player Season Stats (w/ World Golf Rankings)
GET/{format}/PlayerTournamentProjectionStats/{tournamentid}Player Tournament Projected Stats (w/ DraftKings Salaries)
GET/{format}/PlayerTournamentStatsByPlayer/{tournamentid}/{playerid}Player Tournament Stats By Player
GET/{format}/PlayersPlayers
GET/{format}/TournamentsSchedule
GET/{format}/Tournaments/{season}Schedule by Season

Questions

Does the Golf v2 API need an API key?

Yes. The Golf v2 API uses API key authentication; the documentation explains how to get credentials.

Does the Golf v2 API support HTTPS?

Yes, the Golf v2 API is served over HTTPS.

How many endpoints does the Golf v2 API have?

Its OpenAPI description lists 15 endpoints in version 1.0. All of them are shown on this page.

What are alternatives to the Golf v2 API?

Other Entertainment APIs include Techy, Imgflip, Official Joke, Betfair: Exchange Streaming API, Listen API: Podcast Search, Directory, and Insights API.

Compare alternatives →

Listed from APIs.guru (CC0).