# Introduction

Source: https://developers.newjune.co/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 fields, explicit nulls, ISO 8601 UTC timestamps
- OpenAPI 3.1 document: https://developers.newjune.co/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](https://developers.newjune.co/api-reference/rounds), [hole_scores](https://developers.newjune.co/api-reference/hole-scores), [shots](https://developers.newjune.co/api-reference/shots) | `rounds:read` |
| Analysis | [reports](https://developers.newjune.co/api-reference/reports) | `reports:read` |
| Practice | [priorities](https://developers.newjune.co/api-reference/priorities), [plans](https://developers.newjune.co/api-reference/plans), [evaluations](https://developers.newjune.co/api-reference/evaluations), [focus_sets](https://developers.newjune.co/api-reference/focus-sets) | `plans:read` |
| Bag | [clubs](https://developers.newjune.co/api-reference/clubs) | `clubs:read` |
| Key | [me](https://developers.newjune.co/api-reference/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](https://developers.newjune.co/guides/incremental-sync).

> **Preview.** Version 1 is in preview. The contract is stable: changes to v1 are additive only. See [Versioning](https://developers.newjune.co/versioning).

## Where to start

  - [Quickstart](https://developers.newjune.co/quickstart): Create a key and make your first request in under two minutes.
  - [Data model](https://developers.newjune.co/data-model): How rounds, reports, priorities, plans, and evaluations connect.
  - [Guides](https://developers.newjune.co/guides/export-rounds-to-csv): Complete scripts for common jobs.
  - [API reference](https://developers.newjune.co/api-reference): Every endpoint, parameter, and field.
