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
הצטרף לדיון - הוסף תגובה למטה: