Closed gianlucaromito closed 5 years ago
get_calendar
returns just the information available to the guests, so on their side, they just know if certain dates are available or not for a listing.
Unfortunately, I don't have an Airbnb host account to reverse-engineer those API requests. Out of curiosity, why do you need the information about the number of guests through the API?
Now it is clear to me... I tried to make a small python script to get this info so I can pass it to the cleaning service. So they know how many items like coffe and breakfast they should prepare :) I've asked to airbnb to have a host account (https://www.airbnb.it/partner) but they have never answered to me.
I've played a bit with a host profile, and found a way to get a listing calendar which might contain the data your are looking for (since I have no live reservations, it would be difficult to verify). Check out api.get_listing_calendar()
with your listing id.
I will try... now I'm getting the VerificationError like https://github.com/nderkach/airbnb-python/issues/3
Is it possible to get the Api(access_token=
The web app appears to use a different authentication flow. To be honest I don't know a consistent way to bypass the verification error. I'd recommend setting up a MITM proxy and intercept the app requests yourself, for example following this tutorial. Thankfully, it's pretty straightforward to do with Airbnb's mobile apps.
@gianlucaromito did you figure out how to get the number of guests from airbnb?
No. but I'm trying to use the "export calendar" feature of airbnb and read it via python. It seems that the info is "hidden" inside the ics file... work in progress :)
Il lun 25 giu 2018, 21:56 Patrick3131 notifications@github.com ha scritto:
@gianlucaromito https://github.com/gianlucaromito did you figure out how to get the number of guests from airbnb?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/nderkach/airbnb-python/issues/4#issuecomment-400075242, or mute the thread https://github.com/notifications/unsubscribe-auth/AZ-XC7KTRnODRvaOrLSy3iskN14Sqxz6ks5uAUBdgaJpZM4TP606 .
My current solution is, that I add the number of guests as a note to the calendar. Then the guest information can also be seen via ical link by the cleaning company.
Yes that should work. Great idea! Hopefully they give an API to get that info too. I've the same thing with Booking.com...
Il mar 26 giu 2018, 09:12 Patrick3131 notifications@github.com ha scritto:
My current solution is, that I add the number of guests as a note to the calendar. Then the guest information can also be seen via ical link by the cleaning company.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/nderkach/airbnb-python/issues/4#issuecomment-400204063, or mute the thread https://github.com/notifications/unsubscribe-auth/AZ-XC_qaHfCzRsQzl63DekoOptrob44Vks5uAd7pgaJpZM4TP606 .
Since I don't have a host account on Airbnb, I'm gonna close this issue for now. Would be happy to reverse-engineer it otherwise :)
Hello. First of all... very nice work! It is something I was searching and you made it :) Now the question... is there a way I can have, from the api.get_calendar, the number of guests that have reserved my room? I see that the calendar rerturns me some info about if a certain date is available or not but not about the number of guests that are coming. Thanks very much for your help/support!
Gianluca