COVID-19

БЕЗКОШТОВНО
(Ким) API-SPORTS | Оновлено il y a un mois | Health and Fitness
Популярність

9.9 / 10

Затримки

388ms

Рівень обслуговування

100%

Health Check

N/A

Повернутися до всіх обговорень

History route no giving back any result

Rapid account: Rey Just
ReyJust
il y a un an

Hello, 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

Приєднуйтесь до обговорення — додайте повідомлення нижче:

Вхід / Реєстрація, щоб публікувати нові повідомлення