API-FOOTBALL

FREEMIUM
Verified
Door API-SPORTS | Bijgewerkt 14 days ago | Sports
Populariteit

10 / 10

Latency

369ms

Serviceniveau

100%

Health Check

N/A

Terug naar alle discussies

can not get the response with fixtureID

I can not get the response like this :
Fixture id belong live match.

What s the reason ?

fetch(“https://api-football-v1.p.rapidapi.com/v3/fixtures/statistics?fixture=7809993”, {
“method”: “GET”,
“headers”: {
“x-rapidapi-host”: “api-football-v1.p.rapidapi.com”,
“x-rapidapi-key”: “XXXXXXXXXX”
}
})

Rapid account: Nurdankaramann 1 H 1 Mt Ab 7 Y 9 M
nurdankaramann-1h1MtAb7y9M Commented 2 years ago

here fixtureID=770975 and league id= 172 and I called this :https://api-football-v1.p.rapidapi.com/v3/leagues?id=172 and atistics_fixtures is coming true . After I called with this fixtureID “https://api-football-v1.p.rapidapi.com/v3/fixtures/statistics?fixture=770975” still can not get the response.

“fixture”: {
“id”: 770975,
“referee”: null,
“timezone”: “UTC”,
“date”: “2021-12-02T13:00:00+00:00”,
“timestamp”: 1638450000,
“periods”: {
“first”: 1638450000,
“second”: null
},
“venue”: {
“id”: 10547,
“name”: “Huvepharma Arena”,
“city”: “Razgrad”
},
“status”: {
“long”: “First Half”,
“short”: “1H”,
“elapsed”: 12
}
},
“league”: {
“id”: 172,
“name”: “A PFG”,
“country”: “Bulgaria”,
“logo”: “https://media.api-sports.io/football/leagues/172.png”,
“flag”: “https://media.api-sports.io/flags/bg.svg”,
“season”: 2021,
“round”: “Regular Season - 17”
},

					0:{5 items

“year”:2018
"start":“2018-07-20"
“end”:“2019-05-28"
“current”:false
"coverage”:{9 items
"fixtures”:{4 items
"events":true
"lineups":true
"statistics_fixtures":true
"statistics_players":false
}
“standings”:true

Rapid account: Api Sports
api-sports Commented 2 years ago

Hi,

This fixture id don’t existe in the API. And for other fixtures you can check if the competition cover this feature by calling the endpoint “leagues” field “coverage” ==> https://www.api-football.com/documentation-v3#operation/get-leagues

Best

Rapid account: Nurdankaramann 1 H 1 Mt Ab 7 Y 9 M
nurdankaramann-1h1MtAb7y9M Commented 2 years ago

My purpose that is getting “Shots on Goal”

Doe mee aan de discussie - voeg hieronder een opmerking toe

Log in / Schrij u in om nieuwe opmerkingen te plaatsen