AirVisual

פרמיום
Verified
על ידי Api Dojo | מְעוּדכָּן 한 달 전 | Health and Fitness
פּוֹפּוּלָרִיוּת

9.3 / 10

חֶבִיוֹן

3,749ms

רמת שירות

100%

Health Check

N/A

חזרה לכל הדיונים

Location specificity

Rapid account: Tordevries
tordevries
일 년 전

Hello. Thank you for this API. I am playing around with it and trying to figure out the location specificity for the location value “q”.

For example: suppose I wanted results for Portland, OR (Oregon). I can submit “Portland” to the API and get 10 results for several cities named Portland, including the one in Oregon. But, I can’t figure out how to submit the specific value for just Portland, OR. For example, if I try anything like these…

Portland, OR
Portland, Oregon
Portland OR
Portland Oregon
Oregon Portland
etc.

…I get a successful response from the API, but it includes zero cities.

Can you clarify the formatting for the location value in order to more directly target specific locations?

Thank you.

Rapid account: Apidojo
apidojo Commented 10달 전

Then, you should have a look at https://docs.rapidapi.com/docs/basics-creating-a-project to get started.

Rapid account: Rishabh 391
Rishabh391 Commented 10달 전

i tried to extract data from this api but t get 401 error how may i resolve it

Rapid account: Tordevries
tordevries Commented 일 년 전

OK, thank you for that clarification!

Rapid account: Apidojo
apidojo Commented 일 년 전

Hello,

This API reproduces PUBLIC data and features of airvisual.com. The endpoint is mapped to the search bar on top of the site, the hint is “Your country, city, or location” https://prnt.sc/BQ5J7UAFKlKd We do not design the system of AirVisual to answer your specific question at work, you may try what term or phrase that you are familar with. The result should be as same as each other https://prnt.sc/l_ltae_Ux-Ik

Regards.

הצטרף לדיון - הוסף תגובה למטה:

התחבר / הירשם כדי לפרסם תגובות חדשות