How to get 'Last 5' in the standings?

 

There is NO direct api to display 'Last 5' data in the standings. This part is done by Aiscore itself.

 

If you want to display 'Last 5' as Aiscore, you can try the following way:

  1. Use 'Match(recent)' api or 'Match' api to get all match schedules for the competition you need.
  2. Filter the matches with the team id to get all matches the team played.
  3. List the latest 5 matches and record the results with 'W', 'D', or 'L'.
@2022 TheSports All Rights Reserved