Discussions
Does OpticOdds soccer timeline support disallowed / ruled-out / reversed goals?
7 hours ago by black zero
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:
goalyellow_cardred_cardsubstitution
I want to confirm how we should handle ruled-out goals / reversed goals / disallowed goals in soccer.
Example scenario:
- Score changes from
0-0to1-0 - A few seconds/minutes later, after VAR/offside/foul review, the goal is cancelled
- Score changes back from
1-0to0-0
My questions are:
- Will OpticOdds send any timeline event for a disallowed or ruled-out goal?
- Is there currently an
event_typelikedisallowed_goal,goal_removed,var_cancelled_goal, or similar? - If not, should we detect this only by comparing score changes, for example
1-0 → 0-0? - If a goal is reversed, will the original
goalevent be removed from theeventsarray, updated, or will a new correction event be added? - Will the payload include the reason, such as
offside,foul,handball, orVAR review? - Is this supported in
/v3/fixtures/resultsand also through the/stream/results/soccerSSE feed?
We want to correctly show this in our frontend timeline and avoid displaying a confirmed goal if it was later ruled out.
Thanks.