COVID-19

फ़्री
Verified
द्वारा API-SPORTS | अपडेट किया गया vor einem Monat | Health and Fitness
लोकप्रियता

9.9 / 10

लेटेंसी

393ms

सेवा का स्तर

100%

Health Check

N/A

सभी चर्चाओं पर वापस जाएं

History route no giving back any result

Rapid account: Rey Just
ReyJust
vor einem Jahr

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

चर्चा में शामिल हों - नीचे टिप्पणी जोड़ें:

नई टिप्पणियाँ पोस्ट करने के लिए लॉग इन / साइनअप करें