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

26,072

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."

Share:
26,072

Related videos on Youtube

GDub
Author by

GDub

Updated on August 31, 2022

Comments

  • GDub
    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

  • GDub
    GDub over 8 years
    You 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
    GDub over 8 years
    Thank 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
    Michael T Johnson over 6 years
    Does anyone know what the stats are? No headers to them
  • DPac
    DPac over 5 years
    I found the documentation for the stat headers api.fantasy.nfl.com/v1/docs/service?serviceName=gameStats