Site
Home / Forum / Developers / NFL 2020 Live score updates

NFL 2020 Live score updates


Posted: 08 Sep 2020 20:49
Brains

Posts: 11
Joined: 2020

Hey! Loving the site and all it provides. I was using the NFL's scorestrip last year to feed a pick'em style game I created for my family and friends but the NFL has locked all that behind a partnership this season (jerks). I noticed the live data example you provided has the same format/data that the NFL provided in their scorestrip api. Is the 2020 live score (patreon subscription of course) following the same format or are you guys locked out of that data also? If you guys have the same format, I'll be jumping on the patreon bandwagon for the NFL seasons so I don't have to redesign my entire website to handle week creation and picks by hand haha.
Thanks!

zag
Posted: 08 Sep 2020 20:52

zag


Posts: 3,527
Joined: 2020

Hey! Loving the site and all it provides. I was using the NFL's scorestrip last year to feed a pick'em style game I created for my family and friends but the NFL has locked all that behind a partnership this season (jerks). I noticed the live data example you provided has the same format/data that the NFL provided in their scorestrip api. Is the 2020 live score (patreon subscription of course) following the same format or are you guys locked out of that data also? If you guys have the same format, I'll be jumping on the patreon bandwagon for the NFL seasons so I don't have to redesign my entire website to handle week creation and picks by hand haha.
Thanks!


I think it may have changed sorry, we have various feeds but some broken last season, we now have another now which is still working.

I will try to update the example. Its hard to know before the games actually start but it should work fine with similar simple JSON. You can also look at our v2 API which is very simple to use and links to teams and events directly on the site.

Posted: 09 Sep 2020 13:34
Brains

Posts: 11
Joined: 2020

Thanks for the info. Just purchased the $5 option. I'll go ahead with your APIs and just tailor my site to your data.


Posted: 09 Sep 2020 16:44
Brains

Posts: 11
Joined: 2020

Hey, gave the key a try and encountered some issues with the link:

Seems to be a parsing error from an xml file?

Should I go through the PHP library route or is there a link to grab the info ?

Thanks.

Posted: 09 Sep 2020 16:45
Brains

Posts: 11
Joined: 2020

The link I used was: https://www.thesportsdb.com/api/v1/json/MYAPIKEY/latestamericanfootball.php

Posted: 09 Sep 2020 18:36

zag


Posts: 3,527
Joined: 2020

Whoops Checking it out now....

EDIT: Thanks for spotting this, seems I didn't check the source changed from XML to JSON

Should be all working again now, lets see how we go on the first games of the season. The JSON is quite comprehensive.

Posted: 09 Sep 2020 20:35
Brains

Posts: 11
Joined: 2020

Wow you weren't kidding. That's some serious in-depth data!
Thank you very much. This is excellent.

Posted: 10 Sep 2020 15:06
Brains

Posts: 11
Joined: 2020

Hate to be a bother, just noticed that the event round data for NFL (4391) has fields for soccer related events.
Would it be possible for this event round view to have the same kind of data that the live view for NFL has? Thanks!

Posted: 11 Sep 2020 10:20

zag


Posts: 3,527
Joined: 2020

Hate to be a bother, just noticed that the event round data for NFL (4391) has fields for soccer related events.
Would it be possible for this event round view to have the same kind of data that the live view for NFL has? Thanks!


Since the database structure is the same for all sports this is not possible, but can't you just ignore them in your code?

Posted: 11 Sep 2020 11:59
Brains

Posts: 11
Joined: 2020

I certainly will just ignore the fields I don't need, but I was mainly just looking for a unique identifier to tie the event round data with the live data.
In the v1 live NFL feed, the 'events' array has 'id' and 'uid' as identifiers but in the live NFL feed there is only 'idEvent' in the 'events' array and neither number exists in the other feed.
It's not a big deal since I can just create a unique identifier using the names/dates/etc but was just making sure that the live v1 feed was correct.
Thanks.

Posted: 11 Sep 2020 14:29

zag


Posts: 3,527
Joined: 2020

I certainly will just ignore the fields I don't need, but I was mainly just looking for a unique identifier to tie the event round data with the live data.
In the v1 live NFL feed, the 'events' array has 'id' and 'uid' as identifiers but in the live NFL feed there is only 'idEvent' in the 'events' array and neither number exists in the other feed.
It's not a big deal since I can just create a unique identifier using the names/dates/etc but was just making sure that the live v1 feed was correct.
Thanks.


Yeh V1 API livefeed data is has no unique ID's that relate to our site unless its soccer.

V2 was created for exactly that, but is still under development. Things can change

As you say, you can create a unique ID from the filename or even eventname I think.

Posted: 11 Sep 2020 14:37
Brains

Posts: 11
Joined: 2020

Yup, I'll make it work.
Looking forward to v2!!!!


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 12 (Total: 12)