# reports

Source: https://developers.newjune.co/api-reference/reports

> Analysis of one of your rounds. When a round was analyzed more than once, only the newest report is available.

Analysis of one of your rounds. When a round was analyzed more than once, only the newest report is available.

Scope: `reports:read`. Base URL: `https://data.newjune.co`.

A report is the analysis New June produces after a round. It names the areas to work on, which feed your priorities.

## Endpoints

- `GET /v1/reports`: List reports
- `GET /v1/reports/{id}`: Get a report

Responses carry `Request-Id`, `RateLimit-Limit`, `RateLimit-Remaining`, `RateLimit-Reset`, and a `429` adds `Retry-After`. See [Headers](https://developers.newjune.co/conventions#headers).

## The report object

| Field | Type | Description |
| --- | --- | --- |
| `object` | string | Always "report". |
| `id` | string | Unique id of the report. |
| `round_id` | string | The round this report analyzes. |
| `headline` | string or null | One-line takeaway, when the report has one. |
| `narrative` | string or null | The written analysis of the round. Paragraphs are separated by a blank line. |
| `priorities` | array of objects | Areas to work on, most important first. May be empty. |
| `priorities[].title` | string or null | Short name of the area to work on. |
| `priorities[].description` | string or null | Why it matters in this round. |
| `holes` | array of objects | Per-hole analysis, by hole number. May be empty. |
| `holes[].hole_number` | integer | Hole number, from 1. |
| `holes[].summary` | string or null | What happened on the hole. |
| `holes[].key_insight` | string or null | The main thing to take from the hole. |
| `holes[].weight` | string or null | How much the hole mattered to the analysis. Null when not given. One of: `high`, `medium`, `low`. |
| `created_at` | string (timestamp) | When the report was written. |

Example report:

```json
{
  "object": "report",
  "id": "791a868a-8cfc-48db-8690-70421a68ee7c",
  "round_id": "498fe851-9796-4fcb-abbe-95e3a176e444",
  "headline": "Solid ball striking, costly putting",
  "narrative": "You hit 9 of 14 fairways and gave most of the strokes back on the greens.\n\nThree of your four three-putts started outside 30 feet.",
  "priorities": [
    {
      "title": "Lag putting from long range",
      "description": "Three of your four three-putts started outside 30 feet."
    }
  ],
  "holes": [
    {
      "hole_number": 7,
      "summary": "Found the fairway, then left the 7 iron approach short of the green.",
      "key_insight": "Club up when the wind is in your face.",
      "weight": "medium"
    }
  ],
  "created_at": "2026-06-14T20:02:37.000Z"
}
```

### List reports

`GET /v1/reports`

The analysis of each of your rounds, newest first: ordered by created_at descending, then id descending. One report per round. Needs a key with the reports:read scope.

Scope: `reports:read`. Operation id: `listReports`.

#### Query parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `limit` | integer | no | How many items to return, 1 to 100. Defaults to 25. |
| `cursor` | string | no | The next_cursor value from the previous page, passed back unchanged with the same filters. |
| `round_id` | string | no | Only the report for this round. |

#### Example request

curl:

```bash
curl "https://data.newjune.co/v1/reports" \
  -H "Authorization: Bearer $NEW_JUNE_API_KEY"
```

TypeScript:

```ts
const response = await fetch('https://data.newjune.co/v1/reports', {
  headers: { Authorization: `Bearer ${process.env.NEW_JUNE_API_KEY}` },
});
const body = await response.json();
console.log(body);
```

Python:

```python
import os
import requests

response = requests.get(
    "https://data.newjune.co/v1/reports",
    headers={"Authorization": f"Bearer {os.environ['NEW_JUNE_API_KEY']}"},
    timeout=30,
)
print(response.json())
```

#### Responses

- `200`: A page of results.
- `400`: A query parameter is unknown, missing, or has an invalid value.
- `401`: The API key is missing, not valid, revoked, or expired.
- `403`: The key lacks the scope this endpoint needs, or the account is suspended.
- `429`: Too many requests. See the RateLimit and Retry-After headers.
- `500`: Something went wrong on our side.
- `503`: The API is temporarily unavailable.

### Get a report

`GET /v1/reports/{id}`

One report by id. An older version of a round report is not found. Needs a key with the reports:read scope.

Scope: `reports:read`. Operation id: `getReport`.

#### Path parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | string | yes | The report's id. |

#### Example request

curl:

```bash
curl "https://data.newjune.co/v1/reports/791a868a-8cfc-48db-8690-70421a68ee7c" \
  -H "Authorization: Bearer $NEW_JUNE_API_KEY"
```

TypeScript:

```ts
const response = await fetch('https://data.newjune.co/v1/reports/791a868a-8cfc-48db-8690-70421a68ee7c', {
  headers: { Authorization: `Bearer ${process.env.NEW_JUNE_API_KEY}` },
});
const body = await response.json();
console.log(body);
```

Python:

```python
import os
import requests

response = requests.get(
    "https://data.newjune.co/v1/reports/791a868a-8cfc-48db-8690-70421a68ee7c",
    headers={"Authorization": f"Bearer {os.environ['NEW_JUNE_API_KEY']}"},
    timeout=30,
)
print(response.json())
```

#### Responses

- `200`: The item.
- `401`: The API key is missing, not valid, revoked, or expired.
- `403`: The key lacks the scope this endpoint needs, or the account is suspended.
- `404`: No such resource for this account.
- `429`: Too many requests. See the RateLimit and Retry-After headers.
- `500`: Something went wrong on our side.
- `503`: The API is temporarily unavailable.
