COVID-19

GRATIS
Verified
Door API-SPORTS | Bijgewerkt il y a un mois | Health and Fitness
Populariteit

9.9 / 10

Latency

389ms

Serviceniveau

100%

Health Check

N/A

Terug naar alle discussies

No results

Rapid account: Passignment 123
passignment123
il y a un an

endpoints return sucess code 200 although their results are empty ?

Rapid account: Rey Just
ReyJust Commented il y a un an

Hello, Since one or two days I have the same problem, the “response” key value is empty.

/history does not return records. I tried different countries [ ‘France’, ‘USA’, ‘Spain’, ‘Mauritius’, ‘China’ ] and different dates [‘2020-01-11’, ‘2022-01-11’, ‘2021-07-15’, ‘2023-01-15’].

My latest successfull attempt to recieved data was recorded on February 8, 2023, 20:04:24 (UTC+04:00).

An faulty example request and response using Postman:

import requests

url = "https://covid-193.p.rapidapi.com/history?country=China&day=2023-01-15"

payload={}
headers = {
  'X-RapidAPI-Key': 'XXXXXX',
  'X-RapidAPI-Host': 'XXXXXX'
}

response = requests.request("GET", url, headers=headers, data=payload)

print(response.text)
{
    "get": "history",
    "parameters": {
        "country": "China",
        "day": "2023-01-15"
    },
    "errors": [],
    "results": 0,
    "response": []
}

/countries work perfectly
/statistics seems to be responding correctly too.

I am doing a university project requiring you API. Can you help me asap? Hope I provided enough details for you to diagnose the problem quickly!

Best

Rapid account: Passignment 123
passignment123 Commented il y a un an

I was using the testing endpoints provided, however it seems it might have been a temporary outage as it returns the populated results now.

Rapid account: Api Sports
api-sports Commented il y a un an

Hi

What’s endpoint are you calling ?

Best

Doe mee aan de discussie - voeg hieronder een opmerking toe

Log in / Schrij u in om nieuwe opmerkingen te plaatsen