本文介绍了您如何访问 NFL 的 API?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在尝试从 NFL.com 访问或寻找访问数据,但尚未找到.这些网站上有公开文档:

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

但这些文档没有告诉您如何获取客户端 ID 或客户端机密.

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

我也试过:

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

文档说您需要发送电子邮件至 [email protected] 以获取应用密钥.我前段时间发了一封电子邮件并进行了跟进,但没有收到任何回复.

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.

您可以向这些 API 发送请求,他们会做出回应,告诉您您的凭据无效.

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?

我在 2015 年 10 月 30 日给他们发了电子邮件

I emailed them on 10/30/2015

推荐答案

虽然我在 api.nfl.com 上没有取得任何成功,但我可以从 api.fantasy.nfl.com 获取一些数据.您应该拥有对所有/players/* 端点的读取权限(例如 http://api.fantasy.nfl.com/v1/players/stats?statType=seasonStats&season=2010&week=1&format=json).我认为您需要一个用于联盟端点和写入端点的身份验证令牌.

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?

编辑:我给 NFL 发了电子邮件,他们不得不这么说:我们已经将您的 API 请求传递给了我们的产品和战略团队.NFL.com Fantasy API 可根据 NFL 的每次使用情况逐个使用合作伙伴.我们的团队会审查其他请求,但我们的 API 通常不可供外部使用."

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

这篇关于您如何访问 NFL 的 API?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-19 01:11