New JuneDevelopers
API reference

reports

Analysis of one of your rounds. When a round was analyzed more than once, only the newest report is available.

View .md
EndpointsScope reports:read
  • GET/v1/reportsList reports
  • GET/v1/reports/{id}Get a report

A report is the analysis New June produces after a round. It names the areas to work on, which feed your priorities.

The report object

FieldTypeDescription
objectstringAlways "report".
idstringUnique id of the report.
round_idstringThe round this report analyzes.
headlinestring or nullOne-line takeaway, when the report has one.
narrativestring or nullThe written analysis of the round. Paragraphs are separated by a blank line.
prioritiesarray of objectsAreas to work on, most important first. May be empty.
priorities[].titlestring or nullShort name of the area to work on.
priorities[].descriptionstring or nullWhy it matters in this round.
holesarray of objectsPer-hole analysis, by hole number. May be empty.
holes[].hole_numberintegerHole number, from 1.
holes[].summarystring or nullWhat happened on the hole.
holes[].key_insightstring or nullThe main thing to take from the hole.
holes[].weightstring or nullHow much the hole mattered to the analysis. Null when not given. One of: high, medium, low.
created_atstring (timestamp)When the report was written.

Example report:

{
  "object": "report",
  "id": "791a868a-8cfc-48db-8690-70421a68ee7c",
  "round_id": "498fe851-9796-4fcb-abbe-95e3a176e444",
  "headline": "Solid ball striking, costly putting",
  "narrative": "You hit 9 of 14 fairways and gave most of the strokes back on the greens.\n\nThree of your four three-putts started outside 30 feet.",
  "priorities": [
    {
      "title": "Lag putting from long range",
      "description": "Three of your four three-putts started outside 30 feet."
    }
  ],
  "holes": [
    {
      "hole_number": 7,
      "summary": "Found the fairway, then left the 7 iron approach short of the green.",
      "key_insight": "Club up when the wind is in your face.",
      "weight": "medium"
    }
  ],
  "created_at": "2026-06-14T20:02:37.000Z"
}

Endpoints

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

List reports

The analysis of each of your rounds, newest first: ordered by created_at descending, then id descending. One report per round. Needs a key with the reports:read scope.

GET/v1/reports
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: reports: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 the report for this round.

Formatuuid

Response Body

curl "https://data.newjune.co/v1/reports" \
  -H "Authorization: Bearer $NEW_JUNE_API_KEY"
{
  "object": "list",
  "data": [
    {
      "object": "report",
      "id": "791a868a-8cfc-48db-8690-70421a68ee7c",
      "round_id": "498fe851-9796-4fcb-abbe-95e3a176e444",
      "headline": "Solid ball striking, costly putting",
      "narrative": "You hit 9 of 14 fairways and gave most of the strokes back on the greens.\n\nThree of your four three-putts started outside 30 feet.",
      "priorities": [
        {
          "title": "Lag putting from long range",
          "description": "Three of your four three-putts started outside 30 feet."
        }
      ],
      "holes": [
        {
          "hole_number": 7,
          "summary": "Found the fairway, then left the 7 iron approach short of the green.",
          "key_insight": "Club up when the wind is in your face.",
          "weight": "medium"
        }
      ],
      "created_at": "2026-06-14T20:02:37.000Z"
    }
  ],
  "has_more": true,
  "next_cursor": "eyJ2IjoxLCJrIjpbIjIwMjYtMDYtMTRUMjA6MDI6MzcuMDAwMDAwWiIsIjc5MWE4NjhhLThjZmMtNDhkYi04NjkwLTcwNDIxYTY4ZWU3YyJdfQ"
}

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

One report by id. An older version of a round report is not found. Needs a key with the reports:read scope.

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

Path Parameters

idstring

The report's id.

Response Body

curl "https://data.newjune.co/v1/reports/791a868a-8cfc-48db-8690-70421a68ee7c" \
  -H "Authorization: Bearer $NEW_JUNE_API_KEY"
{
  "object": "report",
  "id": "791a868a-8cfc-48db-8690-70421a68ee7c",
  "round_id": "498fe851-9796-4fcb-abbe-95e3a176e444",
  "headline": "Solid ball striking, costly putting",
  "narrative": "You hit 9 of 14 fairways and gave most of the strokes back on the greens.\n\nThree of your four three-putts started outside 30 feet.",
  "priorities": [
    {
      "title": "Lag putting from long range",
      "description": "Three of your four three-putts started outside 30 feet."
    }
  ],
  "holes": [
    {
      "hole_number": 7,
      "summary": "Found the fairway, then left the 7 iron approach short of the green.",
      "key_insight": "Club up when the wind is in your face.",
      "weight": "medium"
    }
  ],
  "created_at": "2026-06-14T20:02:37.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 report.",
    "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"
  }
}