Introduction
What the New June Data API gives you, what it does not, and where to start.
New June collects and analyzes the context of your game during a round, then turns it into a post-round report, priorities, and practice plans. The Data API gives you that same data as JSON, so you can use it in your own spreadsheets, dashboards, databases, and scripts.
- Base URL
https://data.newjune.co/v1- Auth header
Authorization: Bearer $NEW_JUNE_API_KEY- Methods
GET only (read-only)- Format
JSON, snake_case, UTC timestamps- OpenAPI 3.1
/openapi.json
What you can build
- A personal archive. Export every round, hole score, and shot to CSV or your own database, and keep it in sync.
- Your own stats. Chart score to par by month, fairways and greens in regulation, or putts per round.
- Club distances. Compute carry and total distance by club from your shots, and compare them with the typical distances in your bag.
- Practice tracking. Show how each plan is going across rounds, using the evaluation New June makes of every active plan after every round.
- Agents and automations. Give a coding agent or a scheduled job a key with only the scopes it needs.
What the API gives you
| Area | Resources | Scope |
|---|---|---|
| Rounds | rounds, hole_scores, shots | rounds:read |
| Analysis | reports | reports:read |
| Practice | priorities, plans, evaluations, focus_sets | plans:read |
| Bag | clubs | clubs:read |
| Key | me | any key |
What it does not do
- It is read-only. Every endpoint is a
GET. You cannot create, change, or delete anything through the API. - It returns your data only. A key belongs to one New June account and can only see that account's data. There is no way to request another player's data, and an id from another account returns
404. - It is for servers and scripts. The API sends no CORS headers, so a web page cannot call it from the browser. Call it from your own backend, a script, a notebook, or a scheduled job, and keep the key there.
- It does not include everything in the app. Audio, transcripts, chat history, and course maps are not available. Test rounds are left out of every resource.
- There are no webhooks yet. To pick up new rounds, poll on a schedule. See Sync to your own database.
Preview
Version 1 is in preview. The contract is stable: changes to v1 are additive only. See Versioning.