New JuneDevelopers
API reference

shots

One shot from one of your rounds.

View .md
EndpointsScope rounds:read
  • GET/v1/shotsList shots
  • GET/v1/shots/{id}Get a shot

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

The shot object

FieldTypeDescription
objectstringAlways "shot".
idstringUnique id of the shot.
round_idstringThe round the shot was played in.
hole_numberintegerHole number, from 1.
sequence_numberintegerOrder of the shot on the hole, from 1.
played_atstring (timestamp)When the shot was played.
clubstring or nullClub used. Null when not known. See the enum in openapi.json for every value.
is_provisionalboolean or nullWhether this was a provisional ball.
penalty_strokesinteger or nullPenalty strokes from this shot, when any.
penalty_typestring or nullKind of penalty, for example water or out of bounds. Null when there was none. Free text, not a fixed list.
startobjectWhere the shot was played from: latitude, longitude, and altitude.
start.latitudenumber or nullLatitude where the shot was played from, in degrees.
start.longitudenumber or nullLongitude where the shot was played from, in degrees.
start.altitude_metersnumber or nullAltitude where the shot was played from, in meters.
endobjectWhere the ball finished: latitude, longitude, and altitude.
end.latitudenumber or nullLatitude where the ball finished, in degrees.
end.longitudenumber or nullLongitude where the ball finished, in degrees.
end.altitude_metersnumber or nullAltitude where the ball finished, in meters.
lieobjectThe lie the shot was played from.
lie.typestring or nullWhere the ball lay. Free text, not a fixed list.
lie.qualitystring or nullHow good the lie was. Free text, not a fixed list.
lie.descriptionstring or nullMore detail about the lie.
plannedobjectWhat the shot was meant to do: distance, shape, and target.
planned.distance_yardsnumber or nullIntended distance, in yards.
planned.curvestring or nullIntended curve. Free text, not a fixed list.
planned.trajectorystring or nullIntended trajectory. Free text, not a fixed list.
planned.shot_typestring or nullKind of shot. Free text, not a fixed list.
planned.target_latitudenumber or nullLatitude of the target, in degrees.
planned.target_longitudenumber or nullLongitude of the target, in degrees.
planned.notesstring or nullNotes about the plan.
resultobjectWhat the shot did: distance, shape, contact, and outcome.
result.distance_yardsnumber or nullDistance the ball traveled, in yards.
result.curvestring or nullActual curve. Free text, not a fixed list.
result.trajectorystring or nullActual trajectory. Free text, not a fixed list.
result.contactstring or nullQuality of contact. Free text, not a fixed list.
result.qualitystring or nullOverall outcome. Free text, not a fixed list.
notesstring or nullNotes about the shot.
confidencenumber or nullConfidence in the shot details, from 0 to 1.
created_atstring (timestamp)When the shot was recorded.
updated_atstring (timestamp)When the shot was last changed.

Example shot:

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

Endpoints

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

List 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.

GET/v1/shots
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: rounds: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.

round_id?string

Only shots from this round.

Formatuuid
hole_number?integer

Only shots on this hole. Requires round_id.

Range1 <= value <= 36
club?string

Only shots played with this club.

Value in"driver" | "3_wood" | "4_wood" | "5_wood" | "7_wood" | "9_wood" | "2_hybrid" | "3_hybrid" | "4_hybrid" | "5_hybrid" | "6_hybrid" | "7_hybrid" | "9_hybrid" | "1_iron" | "2_iron" | "3_iron" | "4_iron" | "5_iron" | "6_iron" | "7_iron" | "8_iron" | "9_iron" | "pitching_wedge" | "gap_wedge" | "sand_wedge" | "lob_wedge" | "46_wedge" | "48_wedge" | "50_wedge" | "52_wedge" | "54_wedge" | "56_wedge" | "58_wedge" | "60_wedge" | "62_wedge" | "64_wedge" | "putter"
played_after?string

Only shots played at or after this time (ISO 8601, with Z or an offset).

Formatdate-time
played_before?string

Only shots played before this time (ISO 8601, with Z or an offset).

Formatdate-time
updated_after?string

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.

Formatdate-time

Response Body

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

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

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

GET/v1/shots/{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: rounds:read

Path Parameters

idstring

The shot's id.

Response Body

curl "https://data.newjune.co/v1/shots/02cd3b84-a264-40b0-9af7-466c3874c512" \
  -H "Authorization: Bearer $NEW_JUNE_API_KEY"
{
  "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"
}

{
  "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 shot.",
    "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"
  }
}