New JuneDevelopers
API reference

clubs

A club in your bag.

View .md
EndpointsScope clubs:read
  • GET/v1/clubsList clubs
  • GET/v1/clubs/{id}Get a club

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

The club object

FieldTypeDescription
objectstringAlways "club".
idstringUnique id of the club.
clubstring or nullWhich club this is. Null when it does not match a known club. See the enum in openapi.json for every value.
typestring or nullKind of club. Null when not recognized. One of: driver, wood, hybrid, iron, wedge, putter.
display_namestringName shown in the app.
positionintegerOrder in your bag, ascending.
typical_total_yardsinteger or nullYour usual total distance with this club, in yards.
typical_carry_yardsinteger or nullYour usual carry distance, in yards, when known.
loft_degreesnumber or nullLoft, in degrees, when known.
dispersionobject or nullShot pattern for this club. Null until there is enough data.
dispersion.center_long_yardsnumberHow far the center of your shots lands past (+) or short of (-) the target, in yards.
dispersion.center_lateral_yardsnumberHow far the center of your shots lands right (+) or left (-) of the target, in yards.
dispersion.forward_yardsnumberSpread past the center, in yards.
dispersion.backward_yardsnumberSpread short of the center, in yards.
dispersion.left_yardsnumberSpread left of the center, in yards.
dispersion.right_yardsnumberSpread right of the center, in yards.
dispersion.rotation_degreesnumberTilt of the pattern, in degrees, clockwise positive.
created_atstring (timestamp)When the club was added.
updated_atstring (timestamp)When the club was last changed.

Example club:

{
  "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"
}

Endpoints

Responses carry Request-Id, RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset, and a 429 adds Retry-After. See Headers.

List clubs

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

GET/v1/clubs
AuthorizationBearer <token>

A personal API key (nj_live_...), sent as a bearer token. Create one on the Developer page at https://newjune.co/golf/developer. The scopes listed on each operation are the key scopes it needs.

In: header

Scope: clubs:read

Query Parameters

limit?integer

How many items to return, 1 to 100. Defaults to 25.

Default25
Range1 <= value <= 100
cursor?string

The next_cursor value from the previous page, passed back unchanged with the same filters.

updated_after?string

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.

Formatdate-time

Response Body

curl "https://data.newjune.co/v1/clubs" \
  -H "Authorization: Bearer $NEW_JUNE_API_KEY"
{
  "object": "list",
  "data": [
    {
      "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"
    }
  ],
  "has_more": true,
  "next_cursor": "eyJ2IjoxLCJrIjpbIjciLCJhN2Q0YTRkYy1lMzhhLTRmOTgtODU5ZC0zMjI3OTUxMTk0MjgiXX0"
}

{
  "error": {
    "type": "invalid_request_error",
    "code": "invalid_cursor",
    "message": "The cursor is not valid. Use the next_cursor value from a previous response.",
    "param": "cursor",
    "request_id": "req_5f0c6e2a9b1d4c7e8f3a2b10",
    "doc_url": "https://developers.newjune.co/errors#invalid_cursor"
  }
}

{
  "error": {
    "type": "authentication_error",
    "code": "api_key_expired",
    "message": "This API key has expired. Create a new key on the Developer page at newjune.co/golf/developer.",
    "param": null,
    "request_id": "req_5f0c6e2a9b1d4c7e8f3a2b10",
    "doc_url": "https://developers.newjune.co/errors#api_key_expired"
  }
}

{
  "error": {
    "type": "permission_error",
    "code": "account_suspended",
    "message": "API access is suspended for this account.",
    "param": null,
    "request_id": "req_5f0c6e2a9b1d4c7e8f3a2b10",
    "doc_url": "https://developers.newjune.co/errors#account_suspended"
  }
}

{
  "error": {
    "type": "rate_limit_error",
    "code": "daily_limit_exceeded",
    "message": "This account has reached its daily request limit. It resets at midnight UTC.",
    "param": null,
    "request_id": "req_5f0c6e2a9b1d4c7e8f3a2b10",
    "doc_url": "https://developers.newjune.co/errors#daily_limit_exceeded"
  }
}

{
  "error": {
    "type": "api_error",
    "code": "internal_error",
    "message": "Something went wrong on our side. Try again later.",
    "param": null,
    "request_id": "req_5f0c6e2a9b1d4c7e8f3a2b10",
    "doc_url": "https://developers.newjune.co/errors#internal_error"
  }
}

{
  "error": {
    "type": "api_error",
    "code": "service_unavailable",
    "message": "The API is temporarily unavailable. Try again later.",
    "param": null,
    "request_id": "req_5f0c6e2a9b1d4c7e8f3a2b10",
    "doc_url": "https://developers.newjune.co/errors#service_unavailable"
  }
}

Get a club

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

GET/v1/clubs/{id}
AuthorizationBearer <token>

A personal API key (nj_live_...), sent as a bearer token. Create one on the Developer page at https://newjune.co/golf/developer. The scopes listed on each operation are the key scopes it needs.

In: header

Scope: clubs:read

Path Parameters

idstring

The club's id.

Response Body

curl "https://data.newjune.co/v1/clubs/a7d4a4dc-e38a-4f98-859d-322795119428" \
  -H "Authorization: Bearer $NEW_JUNE_API_KEY"
{
  "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"
}

{
  "error": {
    "type": "authentication_error",
    "code": "api_key_expired",
    "message": "This API key has expired. Create a new key on the Developer page at newjune.co/golf/developer.",
    "param": null,
    "request_id": "req_5f0c6e2a9b1d4c7e8f3a2b10",
    "doc_url": "https://developers.newjune.co/errors#api_key_expired"
  }
}

{
  "error": {
    "type": "permission_error",
    "code": "account_suspended",
    "message": "API access is suspended for this account.",
    "param": null,
    "request_id": "req_5f0c6e2a9b1d4c7e8f3a2b10",
    "doc_url": "https://developers.newjune.co/errors#account_suspended"
  }
}

{
  "error": {
    "type": "not_found_error",
    "code": "resource_not_found",
    "message": "No such club.",
    "param": null,
    "request_id": "req_5f0c6e2a9b1d4c7e8f3a2b10",
    "doc_url": "https://developers.newjune.co/errors#resource_not_found"
  }
}

{
  "error": {
    "type": "rate_limit_error",
    "code": "daily_limit_exceeded",
    "message": "This account has reached its daily request limit. It resets at midnight UTC.",
    "param": null,
    "request_id": "req_5f0c6e2a9b1d4c7e8f3a2b10",
    "doc_url": "https://developers.newjune.co/errors#daily_limit_exceeded"
  }
}

{
  "error": {
    "type": "api_error",
    "code": "internal_error",
    "message": "Something went wrong on our side. Try again later.",
    "param": null,
    "request_id": "req_5f0c6e2a9b1d4c7e8f3a2b10",
    "doc_url": "https://developers.newjune.co/errors#internal_error"
  }
}

{
  "error": {
    "type": "api_error",
    "code": "service_unavailable",
    "message": "The API is temporarily unavailable. Try again later.",
    "param": null,
    "request_id": "req_5f0c6e2a9b1d4c7e8f3a2b10",
    "doc_url": "https://developers.newjune.co/errors#service_unavailable"
  }
}