I tried this :
const options = {
method: ‘GET’,
url: ‘https://airbnb-listings.p.rapidapi.com/v2/getadmins’,
params: {
countrycode: ‘FR’,
admin1: ‘11’,
admin2: ‘75’
},
and I have a result:
admin3:"751"
admin3_name:“Paris”
But when I try you analytics api avgRoomPricesByAdmins with these params:
params: {
country_code: ‘FR’,
year: ‘2024’,
month: ‘1’,
admin1: ‘11’,
admin2: ‘75’,
bedrooms: ‘2’
},
There is no result
Is it normal?
Do I miss something?
Or do you miss data?
चर्चा में शामिल हों - नीचे टिप्पणी जोड़ें:
Yes it worked thank you very much!
Hi. In this endpoins, as for the demo code on rapidAPI, you should use admin names (not IDs).
So:
country_code=FR
year=2024
month=01
admin1=Ile-de-France
admin2=Paris
admin3=Paris
Let me know if that works!!