How do you access the NFL API?

I tried to access or access data from NFL.com, but have not found it yet. These sites have official documentation:

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

but these documents do not tell you how to get the client ID or client secret.

I also tried:

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

The documentation says that you need to send an email to fantasy.football@nfl.com in order to get the application key. I sent an email a while ago and received the answers, and I did not receive any answers.

You can send requests to this API, and they will respond by indicating that you have invalid credentials.

Have you had any success in this? Am I doing something wrong? Are these sites obsolete?

EDIT: I emailed them 10/30/2015

+19
source share
3 answers

While I have not had any success with api.nfl.com, I can get some data from api.fantasy.nfl.com. You must have read access to all endpoints / players / * (e.g. http://api.fantasy.nfl.com/v1/players/stats?statType=seasonStats&season=2010&week=1&format=json ). I think you need an auth token for league endpoints and record endpoints.

How long have you been emailing?

EDIT : I emailed the NFL, and that’s what they had to say: β€œWe passed your API request along with our product and strategy teams. NFL.com Fantasy APIs are available for use on a case-by-case basis for NFL partners. Our team checks other requests, but our APIs are generally not available for external use otherwise. "

+22
source

TheSportsDB has an NFL API available for free

https://www.thesportsdb.com/api.php

Registration is not required either.

0
source

Hooks Data provides a real-time API for major sports in the US, including the NFL.

1) Get the API key here: https://www.hooksdata.io/signup?invite=SM4555

2) Subscribe to football matches:

 curl -H "Content-type: application/json" -d '{ "query": "SELECT * FROM NFLGames WHERE away_team.team_name = 'New England Patriots' OR home_team.team_name = 'New England Patriots' AND start_datetime.countdown = 3600"}' 'http://api.hooksdata.io/v1/subscriptions' 

DOCUMENTS: https://www.hooksdata.io/docs/api/datasources/nflgames/

3) Optional: Add the URL of the Webhooks where you want the data: https://www.hooksdata.io/webhooks

4) Extract data using the sample endpoint https://www.hooksdata.io/docs/api/api-reference/#query-datasource

5) Get all the data in JSON format:

 { "matches_count": 1, "results": [ { "_entity_type": "NFLGame", "_id": "NFLGame_400999173", "away_score": null, "away_team": { "_entity_type": "NFLTeam", "_id": "NFLTeam_NE", "acronym": "NE", "division": "AFC East", "id": "NFLTeam_NE", "team_name": "New England Patriots" }, "game_id": "400999173", "home_score": null, "home_team": { "_entity_type": "NFLTeam", "_id": "NFLTeam_PHI", "acronym": "PHI", "division": "NFC East", "id": "NFLTeam_PHI", "team_name": "Philadelphia Eagles" }, "link": "http://espn.go.com/nfl/game?gameId=400999173", "start_datetime": null, "status": "FUTURE" } ] 

}

-1
source

All Articles