VACCOVID - coronavirus, vaccine and treatment tracker

免费
通过 vaccovidlive | 已更新 a year ago | Data
人气

9.7 / 10

延迟

3,594ms

服务等级

80%

返回所有讨论

What is the baseURL?

Rapid account: Amandaalexandre
amandaalexandre
5 months ago

First of all, thank you for creating such an extensive and intuitive API for free. I was struggling to find an updated API whose endpoints are just as comprehensive as yours.

Today, I tried configuring my baseUrl in axios as:

https://vaccovid-coronavirus-vaccine-and-treatment-tracker.p.rapidapi.com

OR

https://vaccovid-coronavirus-vaccine-and-treatment-tracker.p.rapidapi.com/api/npm-covid-data

But got a 404 error on both instances. Requests work fine on Rapid API website, so I know I’m doing something wrong.

I prefer to use create.axios with a baseUrl first then repeating code with GET method.

Rapid account: Amandaalexandre
amandaalexandre Commented 5 months ago

I managed to get it to working. Thank you very much!

Rapid account: Vaccovid
vaccovid Commented 5 months ago

Hi there.
the base url is "https://vaccovid-coronavirus-vaccine-and-treatment-tracker.p.rapidapi.com/"
For fetching data on different endpoints, pleas use the assigned API as listed in Endpoints section.

if you faced any further error, inform me on Telegram and I will fix the issue ASAP.
Telegram id: @Arman_Feili
Bests.

Rapid account: Amandaalexandre
amandaalexandre Commented 5 months ago

I got it to work by using https://vaccovid-coronavirus-vaccine-and-treatment-tracker.p.rapidapi.com/api/npm-covid-data/countries, but I’ll stll need to use other endpoints in other features.

加入讨论 - 在下面添加评论:

登录/注册以发布新的评论
打分:4.1 - 投票:7