rounds
A round of golf you played or set up.
- 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
| Field | Type | Description |
|---|---|---|
object | string | Always "round". |
id | string | Unique id of the round. |
status | string | Where the round is in its life. One of: scheduled, in_progress, paused, completed, cancelled. |
started_at | string (timestamp) | When the round started. |
ended_at | string (timestamp) or null | When the round ended. Null while it is still going. |
timezone | string or null | IANA time zone where the round was played, when known. |
play_mode | string | Standard rounds are analyzed after you play. Casual rounds are played for fun and are not analyzed. One of: standard, casual. |
holes_planned | integer or null | How many holes the round was set up for (9 or 18), when known. |
holes_scored | integer | Holes with a score entered. |
total_strokes | integer or null | Sum of hole scores entered so far. Null when no hole has a score. |
par_total | integer or null | Par 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_par | integer or null | The total_strokes value minus par_total. Null when either is null. |
course | object or null | The course the round was played on. Null when the course is not available to you. |
course.id | string | Unique id of the course. |
course.name | string | Course name. |
course.facility_name | string | Name of the club or facility. |
course.city | string or null | City, when known. |
course.state_province | string or null | State or province, when known. |
course.country | string or null | Country, when known. |
tee | object or null | The tee played from. Null when not chosen. |
tee.id | string | Unique id of the tee. |
tee.name | string | Tee name as shown on the card. |
created_at | string (timestamp) | When the round was created. |
updated_at | string (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.
/v1/roundsA 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
How many items to return, 1 to 100. Defaults to 25.
251 <= value <= 100The next_cursor value from the previous page, passed back unchanged with the same filters.
Only rounds with this status.
"scheduled" | "in_progress" | "paused" | "completed" | "cancelled"Only rounds that started at or after this time (ISO 8601, with Z or an offset).
date-timeOnly rounds that started before this time (ISO 8601, with Z or an offset).
date-timeOnly 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.
date-timeResponse 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.
/v1/rounds/{id}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
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"
}
}