Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you access the NFL's API's?

Tags:

rest

oauth

web

api

I've been trying to access or find away to access data from NFL.com, but have not found it yet. There is public documentation on these sites:

https://api.nfl.com/docs/identity/oauth2/index.html 

but these docs do not tell you how to get a client id or client secret.

I've also tried:

http://api.fantasy.nfl.com/v2/docs 

The documentation says that you need to send an email to [email protected] to get the app key. I sent an email a while ago and a follow up and I've received no responses.

You can send requests to these API's and they will respond telling you that you have invalid credentials.

Have you had any success with this? Am I doing something wrong? Are these sites out of date?

EDIT: I emailed them on 10/30/2015

like image 844
GDub Avatar asked Nov 03 '15 00:11

GDub


People also ask

Does NFL have a public API?

An introduction to the NFL PortalNFL's API is a set of REST APIs, which essentially provides a structured way for other computer applications to get NFL content and data in a predictable, flexible and powerful way.

Is the NFL API free?

Get started for free! The fastest and most accurate real-time odds, scores, schedules, and stats from major sportsbooks. NFL, NBA, WNBA, MLB, NHL, NCAA Football, & NCAA Basketball with more sports soon.


1 Answers

While I haven't had any success with api.nfl.com, I am able to get some data from the api.fantasy.nfl.com. You should have read access to all of the /players/* endpoints (e.g. http://api.fantasy.nfl.com/v1/players/stats?statType=seasonStats&season=2010&week=1&format=json). I would think you need an auth token for the league endpoints and the write endpoints.

How long ago did you email them?

EDIT: I emailed the NFL and this is what they had to say: "We've passed your API request along to our product and strategy teams. NFL.com Fantasy APIs are available on a per-use, case-by- case basis for NFL partners. Our team reviews other requests, but our APIs are typically not available for external usage otherwise."

like image 60
synthrom Avatar answered Oct 13 '22 20:10

synthrom