0
Feature
Archived
Apr 05, 2026 · Artonis
Red cards
Is it possible to include red card data in the API? Currently, yellow cards are available in live_stats, but red cards are missing. I'm aware they can be calculated by fetching data from incidents, but since yellow cards are already provided, it would be a great addition to have red cards there as well.
Comments (1)
Bzzoiro
Admin
Apr 05, 2026 00:59
Hi Artonis,
Good catch! Red cards are actually already available in live_stats — they appear as red_cards in both home and away objects. The difference is that yellow_cards always shows (even if 0), but red_cards only appears when there's at least one red card in the match.
For example, in Atlético Madrid vs Barcelona:
- live_stats.home.yellow_cards: 4
- live_stats.home.red_cards: 1
You can also get them from incidents with the exact minute and player:
- incidents[].type: "card", card_type: "red" or "yellowRed"
So both are already in the API response — no changes needed. Let me know if you're not seeing them in a specific match!
Bzzoiro