# shots

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

> One shot from one of your rounds.

One shot from one of your rounds.

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

Each shot belongs to one round and one hole. List them across every round or for a single round in playing order.

## Endpoints

- `GET /v1/shots`: List shots
- `GET /v1/shots/{id}`: Get a shot

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 shot object

| Field | Type | Description |
| --- | --- | --- |
| `object` | string | Always "shot". |
| `id` | string | Unique id of the shot. |
| `round_id` | string | The round the shot was played in. |
| `hole_number` | integer | Hole number, from 1. |
| `sequence_number` | integer | Order of the shot on the hole, from 1. |
| `played_at` | string (timestamp) | When the shot was played. |
| `club` | string or null | Club used. Null when not known. See the enum in openapi.json for every value. |
| `is_provisional` | boolean or null | Whether this was a provisional ball. |
| `penalty_strokes` | integer or null | Penalty strokes from this shot, when any. |
| `penalty_type` | string or null | Kind of penalty, for example water or out of bounds. Null when there was none. Free text, not a fixed list. |
| `start` | object | Where the shot was played from: latitude, longitude, and altitude. |
| `start.latitude` | number or null | Latitude where the shot was played from, in degrees. |
| `start.longitude` | number or null | Longitude where the shot was played from, in degrees. |
| `start.altitude_meters` | number or null | Altitude where the shot was played from, in meters. |
| `end` | object | Where the ball finished: latitude, longitude, and altitude. |
| `end.latitude` | number or null | Latitude where the ball finished, in degrees. |
| `end.longitude` | number or null | Longitude where the ball finished, in degrees. |
| `end.altitude_meters` | number or null | Altitude where the ball finished, in meters. |
| `lie` | object | The lie the shot was played from. |
| `lie.type` | string or null | Where the ball lay. Free text, not a fixed list. |
| `lie.quality` | string or null | How good the lie was. Free text, not a fixed list. |
| `lie.description` | string or null | More detail about the lie. |
| `planned` | object | What the shot was meant to do: distance, shape, and target. |
| `planned.distance_yards` | number or null | Intended distance, in yards. |
| `planned.curve` | string or null | Intended curve. Free text, not a fixed list. |
| `planned.trajectory` | string or null | Intended trajectory. Free text, not a fixed list. |
| `planned.shot_type` | string or null | Kind of shot. Free text, not a fixed list. |
| `planned.target_latitude` | number or null | Latitude of the target, in degrees. |
| `planned.target_longitude` | number or null | Longitude of the target, in degrees. |
| `planned.notes` | string or null | Notes about the plan. |
| `result` | object | What the shot did: distance, shape, contact, and outcome. |
| `result.distance_yards` | number or null | Distance the ball traveled, in yards. |
| `result.curve` | string or null | Actual curve. Free text, not a fixed list. |
| `result.trajectory` | string or null | Actual trajectory. Free text, not a fixed list. |
| `result.contact` | string or null | Quality of contact. Free text, not a fixed list. |
| `result.quality` | string or null | Overall outcome. Free text, not a fixed list. |
| `notes` | string or null | Notes about the shot. |
| `confidence` | number or null | Confidence in the shot details, from 0 to 1. |
| `created_at` | string (timestamp) | When the shot was recorded. |
| `updated_at` | string (timestamp) | When the shot was last changed. |

Example shot:

```json
{
  "object": "shot",
  "id": "02cd3b84-a264-40b0-9af7-466c3874c512",
  "round_id": "498fe851-9796-4fcb-abbe-95e3a176e444",
  "hole_number": 7,
  "sequence_number": 2,
  "played_at": "2026-06-14T16:35:48.000Z",
  "club": "7_iron",
  "is_provisional": false,
  "penalty_strokes": 0,
  "penalty_type": null,
  "start": {
    "latitude": 44.04712,
    "longitude": -121.35218,
    "altitude_meters": 1102.4
  },
  "end": {
    "latitude": 44.04825,
    "longitude": -121.35161,
    "altitude_meters": 1104.1
  },
  "lie": {
    "type": "fairway",
    "quality": "good",
    "description": "Ball sitting cleanly in the fairway."
  },
  "planned": {
    "distance_yards": 150,
    "curve": "draw",
    "trajectory": "mid",
    "shot_type": "approach",
    "target_latitude": 44.04829,
    "target_longitude": -121.35166,
    "notes": "Aim at the center of the green."
  },
  "result": {
    "distance_yards": 146,
    "curve": "straight",
    "trajectory": "low",
    "contact": "thin",
    "quality": "missed green"
  },
  "notes": "Wind into the face.",
  "confidence": 0.82,
  "created_at": "2026-06-14T19:34:56.000Z",
  "updated_at": "2026-06-14T19:34:56.000Z"
}
```

### List shots

`GET /v1/shots`

Your shots. Without round_id: newest first, ordered by played_at descending, then id descending. With round_id: in playing order, by hole_number, sequence_number, then id, all ascending. Shots from test rounds are not included. Needs a key with the rounds:read scope.

Scope: `rounds:read`. Operation id: `listShots`.

#### 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 shots from this round. |
| `hole_number` | integer | no | Only shots on this hole. Requires round_id. |
| `club` | string | no | Only shots played with this club. |
| `played_after` | string (timestamp) | no | Only shots played at or after this time (ISO 8601, with Z or an offset). |
| `played_before` | string (timestamp) | no | Only shots played before this time (ISO 8601, with Z or an offset). |
| `updated_after` | string (timestamp) | no | Only shots whose own updated_at is strictly after this time (ISO 8601, with Z or an offset). Use it to sync changes since your last run; the list order does not change. |

#### Example request

curl:

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

TypeScript:

```ts
const response = await fetch('https://data.newjune.co/v1/shots', {
  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/shots",
    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 shot

`GET /v1/shots/{id}`

One shot by id. Needs a key with the rounds:read scope.

Scope: `rounds:read`. Operation id: `getShot`.

#### Path parameters

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

#### Example request

curl:

```bash
curl "https://data.newjune.co/v1/shots/02cd3b84-a264-40b0-9af7-466c3874c512" \
  -H "Authorization: Bearer $NEW_JUNE_API_KEY"
```

TypeScript:

```ts
const response = await fetch('https://data.newjune.co/v1/shots/02cd3b84-a264-40b0-9af7-466c3874c512', {
  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/shots/02cd3b84-a264-40b0-9af7-466c3874c512",
    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.
