Javascript jqueryajax和soccerlivescoreapi

Javascript jqueryajax和soccerlivescoreapi,javascript,jquery,google-api,Javascript,Jquery,Google Api,有人能告诉我jQuery和Ajax是否可以使用像Google Finance API这样的Live Score API吗 我在谷歌上搜索了3个多小时,唯一发现的就是一个WordPress插件。您能告诉我使用jQuery和Ajax是否可行吗?谢谢欧足联或国际足联似乎没有提供直接的API来获取信息 使用或 例:用于 1) 请求开发人员密钥(注册) 2) 确认您的电子邮件地址 3) 放置API密钥: 然后您将获得json或XML格式的数据 http://api.espn.com/:version/:r

有人能告诉我jQuery和Ajax是否可以使用像Google Finance API这样的Live Score API吗


我在谷歌上搜索了3个多小时,唯一发现的就是一个WordPress插件。您能告诉我使用jQuery和Ajax是否可行吗?谢谢

欧足联或国际足联似乎没有提供直接的API来获取信息

使用或

例:用于

1) 请求开发人员密钥(注册)

2) 确认您的电子邮件地址

3) 放置API密钥:

然后您将获得json或XML格式的数据

http://api.espn.com/:version/:resource/:method?apikey=:yourkey
然后


ESPN已经停止了他们的公共API。。 检查这个
Hooks Data为美国主要体育项目提供实时API,包括NFL、MBL、NBA、足球、NHL

1) 在此处获取API密钥:

2) 订阅足球比赛结果:

curl -H "Content-type: application/json" -d '{
"query": "SELECT * FROM SoccerGames WHERE away_team.team_name = 'Real Madrid' OR home_team.team_name = 'Real Madrid' AND start_datetime.countdown = 3600"}' 'http://api.hooksdata.io/v1/subscriptions'
3) 可选:在要获取数据的位置添加Webhooks URL:

4) 使用fetch端点提取数据

5) 获取JSON中的所有数据:

{
"matches_count": 1,
"results": [
    {
        "_entity_type": "SoccerGame",
        "_id": "SoccerGame_490555",
        "away_score": null,
        "away_team": {
            "_entity_type": "SoccerTeam",
            "_id": "SoccerTeam_86",
            "espn_id": 86,
            "id": "SoccerTeam_86",
            "logo_url": "http://a.espncdn.com/combiner/i?img=/i/teamlogos/soccer/500/86.png&h=500",
            "team_name": "Real Madrid"
        },
        "competition": "Spanish Primera División",
        "game_id": "490555",
        "home_score": null,
        "home_team": {
            "_entity_type": "SoccerTeam",
            "_id": null,
            "team_name": "Leganes"
        },
        "link": "http://m.espn.go.com/soccer/gamecast?gameId=490555&lang=EN&wjb=",
        "start_datetime": {
            "countdown": 86970,
            "datetime": "2018-02-21T17:45:00+0000",
            "timestamp": 1519235100
        },
        "status": "FUTURE",
        "timestamp": 1519235100
    }
]}

如果您还想在您的网站上播放视频(目标、亮点)-ScoreBat为此提供了一个免费的API-

Hi RahulG,谢谢您的回复,但您能告诉我如何访问这些来源的分数XML或json数据吗?ESPN似乎从2014年12月8日起停止其公共API。
{
"matches_count": 1,
"results": [
    {
        "_entity_type": "SoccerGame",
        "_id": "SoccerGame_490555",
        "away_score": null,
        "away_team": {
            "_entity_type": "SoccerTeam",
            "_id": "SoccerTeam_86",
            "espn_id": 86,
            "id": "SoccerTeam_86",
            "logo_url": "http://a.espncdn.com/combiner/i?img=/i/teamlogos/soccer/500/86.png&h=500",
            "team_name": "Real Madrid"
        },
        "competition": "Spanish Primera División",
        "game_id": "490555",
        "home_score": null,
        "home_team": {
            "_entity_type": "SoccerTeam",
            "_id": null,
            "team_name": "Leganes"
        },
        "link": "http://m.espn.go.com/soccer/gamecast?gameId=490555&lang=EN&wjb=",
        "start_datetime": {
            "countdown": 86970,
            "datetime": "2018-02-21T17:45:00+0000",
            "timestamp": 1519235100
        },
        "status": "FUTURE",
        "timestamp": 1519235100
    }
]}