New JuneDevelopers
API reference

rounds

A round of golf you played or set up.

View .md
EndpointsScope rounds:read
  • GET/v1/roundsList rounds
  • GET/v1/rounds/{id}Get a round

A round is the root of your data. Hole scores, shots, reports, and evaluations point back to it with round_id.

The round object

FieldTypeDescription
objectstringAlways "round".
idstringUnique id of the round.
statusstringWhere the round is in its life. One of: scheduled, in_progress, paused, completed, cancelled.
started_atstring (timestamp)When the round started.
ended_atstring (timestamp) or nullWhen the round ended. Null while it is still going.
timezonestring or nullIANA time zone where the round was played, when known.
play_modestringStandard rounds are analyzed after you play. Casual rounds are played for fun and are not analyzed. One of: standard, casual.
holes_plannedinteger or nullHow many holes the round was set up for (9 or 18), when known.
holes_scoredintegerHoles with a score entered.
total_strokesinteger or nullSum of hole scores entered so far. Null when no hole has a score.
par_totalinteger or nullPar of the holes scored so far, from the round scorecard or the course. Null when no hole has a score or any scored hole has no known par.
score_to_parinteger or nullThe total_strokes value minus par_total. Null when either is null.
courseobject or nullThe course the round was played on. Null when the course is not available to you.
course.idstringUnique id of the course.
course.namestringCourse name.
course.facility_namestringName of the club or facility.
course.citystring or nullCity, when known.
course.state_provincestring or nullState or province, when known.
course.countrystring or nullCountry, when known.
teeobject or nullThe tee played from. Null when not chosen.
tee.idstringUnique id of the tee.
tee.namestringTee name as shown on the card.
created_atstring (timestamp)When the round was created.
updated_atstring (timestamp)When the round itself was last changed: its status, times, course, tee, scorecard, or other round details, including some the API does not show. Entering or editing hole scores does not change it, even though holes_scored, total_strokes, par_total, and score_to_par change with them.

Example round:

{
  "object": "round",
  "id": "498fe851-9796-4fcb-abbe-95e3a176e444",
  "status": "completed",
  "started_at": "2026-06-14T15:02:11.000Z",
  "ended_at": "2026-06-14T19:08:40.000Z",
  "timezone": "America/Los_Angeles",
  "play_mode": "standard",
  "holes_planned": 18,
  "holes_scored": 18,
  "total_strokes": 87,
  "par_total": 72,
  "score_to_par": 15,
  "course": {
    "id": "f5a90a93-88b7-4aea-99a4-8aee6cbe414f",
    "name": "Ridge Course",
    "facility_name": "Larkspur Ridge Golf Club",
    "city": "Bend",
    "state_province": "OR",
    "country": "US"
  },
  "tee": {
    "id": "c92eb9f5-2a8c-4c12-b470-b87d90a6bcd3",
    "name": "Blue"
  },
  "created_at": "2026-06-14T14:58:30.000Z",
  "updated_at": "2026-06-14T19:21:05.000Z"
}

Endpoints

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

List rounds

Your rounds, newest first: ordered by started_at descending, then id descending. Test rounds are not included. With updated_after, only rounds whose own updated_at is later; hole score changes do not move a round's updated_at. Needs a key with the rounds:read scope.

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

status?string

Only rounds with this status.

Value in"scheduled" | "in_progress" | "paused" | "completed" | "cancelled"
started_after?string

Only rounds that started at or after this time (ISO 8601, with Z or an offset).

Formatdate-time
started_before?string

Only rounds that started before this time (ISO 8601, with Z or an offset).

Formatdate-time
updated_after?string

Only rounds 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. A round's updated_at does not move when its hole scores change, so sync hole scores with their own updated_after filter.

Formatdate-time

Response Body

curl "https://data.newjune.co/v1/rounds" \
  -H "Authorization: Bearer $NEW_JUNE_API_KEY"
{
  "object": "list",
  "data": [
    {
      "object": "round",
      "id": "498fe851-9796-4fcb-abbe-95e3a176e444",
      "status": "completed",
      "started_at": "2026-06-14T15:02:11.000Z",
      "ended_at": "2026-06-14T19:08:40.000Z",
      "timezone": "America/Los_Angeles",
      "play_mode": "standard",
      "holes_planned": 18,
      "holes_scored": 18,
      "total_strokes": 87,
      "par_total": 72,
      "score_to_par": 15,
      "course": {
        "id": "f5a90a93-88b7-4aea-99a4-8aee6cbe414f",
        "name": "Ridge Course",
        "facility_name": "Larkspur Ridge Golf Club",
        "city": "Bend",
        "state_province": "OR",
        "country": "US"
      },
      "tee": {
        "id": "c92eb9f5-2a8c-4c12-b470-b87d90a6bcd3",
        "name": "Blue"
      },
      "created_at": "2026-06-14T14:58:30.000Z",
      "updated_at": "2026-06-14T19:21:05.000Z"
    }
  ],
  "has_more": true,
  "next_cursor": "eyJ2IjoxLCJrIjpbIjIwMjYtMDYtMTRUMTU6MDI6MTEuMDAwMDAwWiIsIjQ5OGZlODUxLTk3OTYtNGZjYi1hYmJlLTk1ZTNhMTc2ZTQ0NCJdfQ"
}

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

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

GET/v1/rounds/{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 round's id.

Response Body

curl "https://data.newjune.co/v1/rounds/498fe851-9796-4fcb-abbe-95e3a176e444" \
  -H "Authorization: Bearer $NEW_JUNE_API_KEY"
{
  "object": "round",
  "id": "498fe851-9796-4fcb-abbe-95e3a176e444",
  "status": "completed",
  "started_at": "2026-06-14T15:02:11.000Z",
  "ended_at": "2026-06-14T19:08:40.000Z",
  "timezone": "America/Los_Angeles",
  "play_mode": "standard",
  "holes_planned": 18,
  "holes_scored": 18,
  "total_strokes": 87,
  "par_total": 72,
  "score_to_par": 15,
  "course": {
    "id": "f5a90a93-88b7-4aea-99a4-8aee6cbe414f",
    "name": "Ridge Course",
    "facility_name": "Larkspur Ridge Golf Club",
    "city": "Bend",
    "state_province": "OR",
    "country": "US"
  },
  "tee": {
    "id": "c92eb9f5-2a8c-4c12-b470-b87d90a6bcd3",
    "name": "Blue"
  },
  "created_at": "2026-06-14T14:58:30.000Z",
  "updated_at": "2026-06-14T19:21:05.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 round.",
    "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"
  }
}