How do you access the NFL's API's?
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."
Related videos on Youtube
GDub
Updated on August 31, 2022Comments
-
GDub over 1 year
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
-
d219 over 3 yearsConfirmed not available to the public here; stackoverflow.com/questions/40680510/…
-
-
GDub over 8 yearsYou are correct. Ideally I was hoping to be able to access information, from a user's league and I would indeed need an Auth token to do that. It doesn't look like they make it readily available to get one
-
GDub over 8 yearsThank you.If I could I would mark this comment as an answer. That makes sense. It's slightly surprising that the api docs are public.
-
Michael T Johnson over 6 yearsDoes anyone know what the stats are? No headers to them
-
DPac over 5 yearsI found the documentation for the stat headers api.fantasy.nfl.com/v1/docs/service?serviceName=gameStats