COVID-19

무료
Verified
분류별 API-SPORTS | 업데이트됨 a month ago | Health and Fitness
인기

9.9 / 10

지연 시간

389ms

서비스 수준

100%

Health Check

N/A

모든 토론으로 돌아가기

History route no giving back any result

Rapid account: Rey Just
ReyJust
a year ago

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

아래에 의견을 추가하고 토론에 참여하세요.

새 댓글을 게시하려면 로그인 / 가입