Data API v1 preview
Your golf data, ready for your own tools.
A read-only REST API for the rounds, scores, shots, reports, and plans in your New June account. Create a key, send one request, get JSON back.
curl "https://data.newjune.co/v1/me" \
-H "Authorization: Bearer $NEW_JUNE_API_KEY"{
"object": "api_key_context",
"key": {
"object": "api_key",
"id": "53e13cb8-f578-4bf4-958c-3c3faea4c7d4",
"name": "Spreadsheet sync",
"prefix": "nj_live_3f9a",
"scopes": [
"plans:read",
"rounds:read"
],
"expires_at": "2027-06-01T00:00:00.000Z"
},
"limits": {
"requests_per_minute": 60,
"requests_per_day": 1000
}
}Quickstart
From key to first response in three steps
- 01
Create a key
Open the Developer page in your New June account, pick scopes, and copy the key. It is shown once.
Open the Developer pageexport NEW_JUNE_API_KEY="nj_live_..." - 02
Check it
Call /v1/me. A 200 confirms the key and shows its scopes and limits.
How keys workcurl https://data.newjune.co/v1/me \ -H "Authorization: Bearer $NEW_JUNE_API_KEY" - 03
List your rounds
Newest first, 25 per page. Pass next_cursor back to get the next page.
Full quickstartcurl "https://data.newjune.co/v1/rounds?limit=5" \ -H "Authorization: Bearer $NEW_JUNE_API_KEY"
Resources
Everything in your account, one collection each
- /v1/meThe API key making the request, and its limits.
- /v1/roundsA round of golf you played or set up.
- /v1/hole_scoresYour score on one hole of a round.
- /v1/shotsOne shot from one of your rounds.
- /v1/reportsAnalysis of one of your rounds. When a round was analyzed more than once, only the newest report is available.
- /v1/prioritiesAn area of your game that your rounds point to.
- /v1/plansA practice plan for one of your priorities.
- /v1/evaluationsA check of how a plan went in one of your rounds.
- /v1/focus_setsThe plans you were focusing on for a period of time.
- /v1/clubsA club in your bag.
For coding agents
Every page also ships as markdown
Add .md to any docs URL, or point your agent at the files below.