# clubs

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

> A club in your bag.

A club in your bag.

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

Your bag, in bag order, with your typical distances for each club.

## Endpoints

- `GET /v1/clubs`: List clubs
- `GET /v1/clubs/{id}`: Get a club

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

| Field | Type | Description |
| --- | --- | --- |
| `object` | string | Always "club". |
| `id` | string | Unique id of the club. |
| `club` | string or null | Which club this is. Null when it does not match a known club. See the enum in openapi.json for every value. |
| `type` | string or null | Kind of club. Null when not recognized. One of: `driver`, `wood`, `hybrid`, `iron`, `wedge`, `putter`. |
| `display_name` | string | Name shown in the app. |
| `position` | integer | Order in your bag, ascending. |
| `typical_total_yards` | integer or null | Your usual total distance with this club, in yards. |
| `typical_carry_yards` | integer or null | Your usual carry distance, in yards, when known. |
| `loft_degrees` | number or null | Loft, in degrees, when known. |
| `dispersion` | object or null | Shot pattern for this club. Null until there is enough data. |
| `dispersion.center_long_yards` | number | How far the center of your shots lands past (+) or short of (-) the target, in yards. |
| `dispersion.center_lateral_yards` | number | How far the center of your shots lands right (+) or left (-) of the target, in yards. |
| `dispersion.forward_yards` | number | Spread past the center, in yards. |
| `dispersion.backward_yards` | number | Spread short of the center, in yards. |
| `dispersion.left_yards` | number | Spread left of the center, in yards. |
| `dispersion.right_yards` | number | Spread right of the center, in yards. |
| `dispersion.rotation_degrees` | number | Tilt of the pattern, in degrees, clockwise positive. |
| `created_at` | string (timestamp) | When the club was added. |
| `updated_at` | string (timestamp) | When the club was last changed. |

Example club:

```json
{
  "object": "club",
  "id": "a7d4a4dc-e38a-4f98-859d-322795119428",
  "club": "7_iron",
  "type": "iron",
  "display_name": "7 Iron",
  "position": 7,
  "typical_total_yards": 155,
  "typical_carry_yards": 147,
  "loft_degrees": 34,
  "dispersion": {
    "center_long_yards": -4,
    "center_lateral_yards": 3,
    "forward_yards": 9,
    "backward_yards": 12,
    "left_yards": 14,
    "right_yards": 10,
    "rotation_degrees": 8
  },
  "created_at": "2026-03-02T18:20:00.000Z",
  "updated_at": "2026-06-14T20:10:12.000Z"
}
```

### List clubs

`GET /v1/clubs`

The clubs in your bag, in bag order: position ascending, then id. Needs a key with the clubs:read scope.

Scope: `clubs:read`. Operation id: `listClubs`.

#### 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. |
| `updated_after` | string (timestamp) | no | Only clubs 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/clubs" \
  -H "Authorization: Bearer $NEW_JUNE_API_KEY"
```

TypeScript:

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

`GET /v1/clubs/{id}`

One club by id. Needs a key with the clubs:read scope.

Scope: `clubs:read`. Operation id: `getClub`.

#### Path parameters

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

#### Example request

curl:

```bash
curl "https://data.newjune.co/v1/clubs/a7d4a4dc-e38a-4f98-859d-322795119428" \
  -H "Authorization: Bearer $NEW_JUNE_API_KEY"
```

TypeScript:

```ts
const response = await fetch('https://data.newjune.co/v1/clubs/a7d4a4dc-e38a-4f98-859d-322795119428', {
  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/clubs/a7d4a4dc-e38a-4f98-859d-322795119428",
    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.
