Site
Home / Forum / Developers / Including final result after extra time/penalty shooutout in API

Including final result after extra time/penalty shooutout in API


Posted: 07 Jul 2024 20:44
Greavel


Posts: 39
Joined: 2022

Hey,

I am using the following endpoint to get all matches and results for EURO 2024:
https://www.thesportsdb.com/api/v1/json/API-KEY/eventsseason.php?id=4502&s=2024

The game England vs Switzerland (id: 2084924) is listed with the result 1:1. However, this is only the result after 90 minutes. The game continued into extra time and a penalty shootout, with the final result being 5:3 for England.

Is it possible to add this additional information to the API? The current 1:1 result is misleading.

Thank you!

PS: Or is it at least possible that the V2 will have this information?

Posted: 08 Jul 2024 18:27

zag


Posts: 3,515
Joined: 2020

Sure anyone can edit the strResult field to add penalty details.

Posted: 11 Jul 2024 18:19
Greavel


Posts: 39
Joined: 2022

Okay, but there is no automatic solution for this? I mean the normal results are also not all updated manually, aren't they?

Posted: 11 Jul 2024 23:45

zag


Posts: 3,515
Joined: 2020

Okay, but there is no automatic solution for this? I mean the normal results are also not all updated manually, aren't they?

No automation on penalties sorry other than timeline, but anyone can update when they happen.

Normal scores are automated.

Posted: 12 Jul 2024 10:48
Greavel


Posts: 39
Joined: 2022

I have updated yesterday the scores here to 5:3:
https://www.thesportsdb.com/event/2084924-England-vs-Switzerland

But today it is back at 1:1

Posted: 12 Jul 2024 10:49

zag


Posts: 3,515
Joined: 2020

I have updated yesterday the scores here to 5:3:
https://www.thesportsdb.com/event/2084924-England-vs-Switzerland

But today it is back at 1:1


Yes because the official score was 1:1 at the end of the match.

Penalties are not counted on the final score. Hence why we use the strResult field instead.


Who is Online?

In total there are 68 users online :: 3 registered, 0 hidden and 65 guests (based on users active over the past 5 minutes) Most users ever online was 424 on Fri Nov 10, 2017 9:02 pm

About Us

Discussion forum for TheSportsDB.com site and related topics

Rules

- Be Polite
- Respect other users
- Always post log files with issues
- Try to be helpful
- No Piracy discussion

Showing 0 to 6 (Total: 6)