World Cup API
  • 0D
  • 0H
  • 0M
  • 0S

Advice and answers from TheSports team

  • How to display the injury info for a single match?

  • What's the difference between 'injury' field in 'Single match lineup' api and 'Team injury' api?

  • 'start_time' field and 'end_time' field in 'Team injury' api

  • >>
Injury data

How to display the injury info for a single match?

It is suggested to use 'Single match lineup' api with 'injury' field to display the injury data for both teams directly.

 

 

 

What's the difference between 'injury' field in 'Single match lineup' api and 'Team injury' api?

  • 'injury' field in 'Single match lineup' api display the injury player info for the target single match directly. There is no need to check for the competition id or do other operation of relating data.
  • 'Team injury' api display ALL injury players for the target team. The 'competition_id' field in this api needs to be checked according to the results of 'type' field:
    • If the type is 1-injured, there is no need to check the 'competition_id' field we provide. You need to display the injured state of the player in all competitions he plays.
    • If the type is 2-suspended, then you need to check the 'comeptition_id' field. The 'competition_id' only relates to the latest match. And you need to display the suspended state of the player ONLY in the competition_id we provided.
      • If the type is 2-suspended and the 'competition_id' field is empty, it means this player is suspended for all competitions.

 

 

 

'start_time' field and 'end_time' field in 'Team injury' api

If the 'start_time' field or 'end_time' field is 0, it means we don't have the data.

 

The 'start_time' field and 'end_time' field are for display only and should not be used to determine whether the player has recovered from an injury or not. The player recovery status is determined by whether this player is returned from this api. If not, it means this player has recovered from the injury.

Did this answer your question?

😞 😐 😄