API reference
Opono Goal Types
Copy as Markdown
Opono Goal Types
GET /v1/fixtures/{fixture_id}/goal_types
Read Opono Robin's goal types for a played match for 1 credit: for each goal of a match played in the 30 days before the publication, its kind and the chances of each detail of how it came about. Each detail's chances add up to 1. For a penalty or an own goal, the details are the chances a regular goal would carry, so read event_type first. assist, fast_break, high_turnover and build_up are as if the goal came from open play. measured gives each detail's scores on goals from competition-seasons the model did not learn from. A match's goal types stay on sale for the 30 days after it is played.
Authentication: Bearer API key with data.read; active Plus or Pro plan required.
Parameters
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
fixture_id | integer | Yes | Use a returned fixture ID instead of home, away, and date; minimum: 1. |
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
| — | — | — | None. |
Body parameters
| Name | Type | Required | Description |
|---|---|---|---|
| — | — | — | None. |
Example request
curl 'https://api.opono.com/v1/fixtures/19609874/goal_types' \
--header "Authorization: Bearer $OPONO_API_KEY"Response
| Field | Type | Description |
|---|---|---|
object | string | goal_types. |
fixture_id | integer | Selected fixture. |
kickoff | string | Kick-off in ISO 8601 UTC. |
goals | array | The match's goals in the order they were scored: by minute, then extra_minute, then the order they were recorded. A goal without a minute comes last. |
goals[].event_id | integer | The goal's event. |
goals[].event_type | string | goal, a regular goal; penalty; or owngoal, an own goal. A penalty's and an own goal's details are the chances a regular goal would carry. |
goals[].minute / extra_minute | integer or null / integer or null | The goal's minute and its minutes into stoppage time: minute 45, extra_minute 2 is 45+2. extra_minute is null outside stoppage time; both are null where the minute is not available. |
goals[].details | object | Each detail's chances, one per value, adding up to 1. |
goals[].details.origin | object | How the goal started: open_play; corner, free_kick or throw_in, when the goal came within 15 seconds of that restart with no pass by the opponent in between; or direct_free_kick, scored straight from a free kick. |
goals[].details.body | object | What it was scored with: head, right_foot or left_foot. |
goals[].details.zone | object | Where it was scored from: six_yard_box; centre_of_the_box, inside the box within the six-yard box's width; side_of_the_box, inside the box and wider; or outside_the_box. |
goals[].details.assist | object | The final pass, as if the goal came from open play: cross, through_ball, cut_back (from near the goal line, wide of the six-yard box, back toward the penalty spot), headed_pass or pass. Without one: rebound (the side shot in the 5 seconds before), solo (the scorer ran 10 m or more with the ball, or beat an opponent, in the 10 seconds before) or unassisted. |
goals[].details.fast_break | object | true: as if from open play, the side won the ball in its own half and scored within 15 seconds; false otherwise. |
goals[].details.high_turnover | object | true: as if from open play, the side won the ball 40 m or less from the opponent's goal and scored within 15 seconds; false otherwise. |
goals[].details.build_up | object | How long from winning the ball to the goal, as if from open play: under_10_s, 10_30_s (10 to 30 seconds) or over_30_s. |
measured | object | Each detail's scores, from the publication: origin, body, zone, assist, fast_break, high_turnover and build_up. |
measured.origin.n | integer | Goals the detail was measured on: from competition-seasons the model did not learn from, with the detail recorded. The same fields apply to every detail. |
measured.origin.accuracy | number | The share of those goals whose likeliest value was the recorded one. |
measured.origin.accuracy_commonest | number | The same share for always choosing the detail's commonest value. |
measured.origin.log_loss | number | The mean of minus the log of the chance given to the recorded value; lower is closer. |
as_of | string | The day the goal types were worked out, from that day's results. |
publication | string | The publication's day. Each day's publication is a new paid read of a match; the same one replays for free. |
model.public_name / model.version | string / string | Opono Robin and its release. |
credits_charged | number | One credit on first live delivery; zero for a same-publication replay or test key. |
livemode | boolean | False for synthetic test output. |
receipt | object | Credit receipt on live delivery or replay. |
replay | boolean | Whether your organisation already read this match from this publication. |
Example response
200 synthetic test response; zero credits. Its figures are synthetic: a live read carries the publication's own.
{
"object": "goal_types",
"fixture_id": 19609874,
"kickoff": "2026-10-28T19:45:00.000Z",
"goals": [
{
"event_id": 1,
"event_type": "goal",
"minute": 23,
"extra_minute": null,
"details": {
"origin": {
"open_play": 0.6,
"corner": 0.1,
"free_kick": 0.1,
"throw_in": 0.1,
"direct_free_kick": 0.1
},
"body": {
"head": 0.8,
"right_foot": 0.1,
"left_foot": 0.1
},
"zone": {
"six_yard_box": 0.7,
"centre_of_the_box": 0.1,
"side_of_the_box": 0.1,
"outside_the_box": 0.1
},
"assist": {
"cross": 0.3,
"through_ball": 0.1,
"cut_back": 0.1,
"headed_pass": 0.1,
"pass": 0.1,
"rebound": 0.1,
"solo": 0.1,
"unassisted": 0.1
},
"fast_break": {
"false": 0.9,
"true": 0.1
},
"high_turnover": {
"false": 0.9,
"true": 0.1
},
"build_up": {
"under_10_s": 0.8,
"10_30_s": 0.1,
"over_30_s": 0.1
}
}
},
{
"event_id": 2,
"event_type": "penalty",
"minute": 45,
"extra_minute": 2,
"details": {
"origin": {
"open_play": 0.1,
"corner": 0.6,
"free_kick": 0.1,
"throw_in": 0.1,
"direct_free_kick": 0.1
},
"body": {
"head": 0.1,
"right_foot": 0.8,
"left_foot": 0.1
},
"zone": {
"six_yard_box": 0.1,
"centre_of_the_box": 0.7,
"side_of_the_box": 0.1,
"outside_the_box": 0.1
},
"assist": {
"cross": 0.1,
"through_ball": 0.3,
"cut_back": 0.1,
"headed_pass": 0.1,
"pass": 0.1,
"rebound": 0.1,
"solo": 0.1,
"unassisted": 0.1
},
"fast_break": {
"false": 0.1,
"true": 0.9
},
"high_turnover": {
"false": 0.1,
"true": 0.9
},
"build_up": {
"under_10_s": 0.1,
"10_30_s": 0.8,
"over_30_s": 0.1
}
}
}
],
"measured": {
"origin": {
"n": 1000,
"accuracy": 0.8,
"accuracy_commonest": 0.5,
"log_loss": 0.6
},
"body": {
"n": 1000,
"accuracy": 0.8,
"accuracy_commonest": 0.5,
"log_loss": 0.6
},
"zone": {
"n": 1000,
"accuracy": 0.8,
"accuracy_commonest": 0.5,
"log_loss": 0.6
},
"assist": {
"n": 1000,
"accuracy": 0.8,
"accuracy_commonest": 0.5,
"log_loss": 0.6
},
"fast_break": {
"n": 1000,
"accuracy": 0.8,
"accuracy_commonest": 0.5,
"log_loss": 0.6
},
"high_turnover": {
"n": 1000,
"accuracy": 0.8,
"accuracy_commonest": 0.5,
"log_loss": 0.6
},
"build_up": {
"n": 1000,
"accuracy": 0.8,
"accuracy_commonest": 0.5,
"log_loss": 0.6
}
},
"as_of": "2026-10-29",
"publication": "synthetic",
"model": {
"public_name": "Opono Robin",
"version": "synthetic"
},
"credits_charged": 0,
"replay": false,
"livemode": false
}Errors
| Status | Code | Meaning |
|---|---|---|
| 400 | parameter_invalid | A parameter has an invalid value. |
| 401 | invalid_api_key | The credential cannot authenticate. |
| 401 | key_revoked | The API key has been revoked. |
| 401 | key_expired | The API key has expired. |
| 403 | scope_missing | The key lacks the required scope. |
| 403 | tier_restricted | The organisation plan does not include this operation. |
| 403 | org_suspended | Your account is suspended. |
| 403 | ip_not_allowed | The caller is outside the key's IP allowlist. |
| 429 | rate_limited | A request or authentication rate limit was exceeded. |
| 503 | dependency_unavailable | Request admission is unavailable. |
| 503 | maintenance | The API is paused for maintenance. |
| 402 | balance_too_low | Your available balance cannot cover the request. |
| 404 | goal_types_not_found | No goal types exist for this fixture. |