Discussions

Ask a Question
Back to all

Does OpticOdds soccer timeline support disallowed / ruled-out / reversed goals?

Hi OpticOdds team,

I saw the new changelog update: Soccer fixture results now have populated events for /v3/fixtures/results.

The new timeline events currently include:

  • goal
  • yellow_card
  • red_card
  • substitution

I want to confirm how we should handle ruled-out goals / reversed goals / disallowed goals in soccer.

Example scenario:

  1. Score changes from 0-0 to 1-0
  2. A few seconds/minutes later, after VAR/offside/foul review, the goal is cancelled
  3. Score changes back from 1-0 to 0-0

My questions are:

  1. Will OpticOdds send any timeline event for a disallowed or ruled-out goal?
  2. Is there currently an event_type like disallowed_goal, goal_removed, var_cancelled_goal, or similar?
  3. If not, should we detect this only by comparing score changes, for example 1-0 → 0-0?
  4. If a goal is reversed, will the original goal event be removed from the events array, updated, or will a new correction event be added?
  5. Will the payload include the reason, such as offside, foul, handball, or VAR review?
  6. Is this supported in /v3/fixtures/results and also through the /stream/results/soccer SSE feed?

We want to correctly show this in our frontend timeline and avoid displaying a confirmed goal if it was later ruled out.

Thanks.