Opono
Skip to content
Documentation menu Opono Goal Types ▾

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

NameTypeRequiredDescription
fixture_idintegerYesUse a returned fixture ID instead of home, away, and date; minimum: 1.

Query parameters

NameTypeRequiredDescription
———None.

Body parameters

NameTypeRequiredDescription
———None.

Example request

bash
curl 'https://api.opono.com/v1/fixtures/19609874/goal_types' \
  --header "Authorization: Bearer $OPONO_API_KEY"

Response

FieldTypeDescription
objectstringgoal_types.
fixture_idintegerSelected fixture.
kickoffstringKick-off in ISO 8601 UTC.
goalsarrayThe 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_idintegerThe goal's event.
goals[].event_typestringgoal, 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_minuteinteger or null / integer or nullThe 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[].detailsobjectEach detail's chances, one per value, adding up to 1.
goals[].details.originobjectHow 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.bodyobjectWhat it was scored with: head, right_foot or left_foot.
goals[].details.zoneobjectWhere 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.assistobjectThe 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_breakobjecttrue: as if from open play, the side won the ball in its own half and scored within 15 seconds; false otherwise.
goals[].details.high_turnoverobjecttrue: 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_upobjectHow 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.
measuredobjectEach detail's scores, from the publication: origin, body, zone, assist, fast_break, high_turnover and build_up.
measured.origin.nintegerGoals 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.accuracynumberThe share of those goals whose likeliest value was the recorded one.
measured.origin.accuracy_commonestnumberThe same share for always choosing the detail's commonest value.
measured.origin.log_lossnumberThe mean of minus the log of the chance given to the recorded value; lower is closer.
as_ofstringThe day the goal types were worked out, from that day's results.
publicationstringThe 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.versionstring / stringOpono Robin and its release.
credits_chargednumberOne credit on first live delivery; zero for a same-publication replay or test key.
livemodebooleanFalse for synthetic test output.
receiptobjectCredit receipt on live delivery or replay.
replaybooleanWhether 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.

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

StatusCodeMeaning
400parameter_invalidA parameter has an invalid value.
401invalid_api_keyThe credential cannot authenticate.
401key_revokedThe API key has been revoked.
401key_expiredThe API key has expired.
403scope_missingThe key lacks the required scope.
403tier_restrictedThe organisation plan does not include this operation.
403org_suspendedYour account is suspended.
403ip_not_allowedThe caller is outside the key's IP allowlist.
429rate_limitedA request or authentication rate limit was exceeded.
503dependency_unavailableRequest admission is unavailable.
503maintenanceThe API is paused for maintenance.
402balance_too_lowYour available balance cannot cover the request.
404goal_types_not_foundNo goal types exist for this fixture.