How to acquire API key for Airbnb

霸气de小男生 提交于 2019-12-21 03:20:18

问题


I know that Airbnb haven't opened their API to the public yet, but searching the internet I found some people are using it.

I tried to contact them, and also Airbnb, but without any answers.

Does anyone here knows any contact email, page, or phone number that I can refer to?


回答1:


I have read here that you can find your API key by looking at the requests that AirBNB uses in their own website. So use the web-developer tools in chrome, or firefox, or firebug in firefox and search trough the requests in the network panel until you find the key being used in any JSON request. Some urls contain this key param, you copy that :) works for me!

Oh BTW, i'd like to remind you that the API is currently not officially released to fetch data in the background while you are logged in. When you use this key, they'll know your identity. You might get blocked or at least warned by AirBNB for using their API while you are maybe not allowed to. Read their terms & conditions to make sure. I am not taking any responsibility, of course ;)




回答2:


You can now find your API key on the meta tags of the source code when logged in to your dashboard. Search for canonical_host and you will find:

{"canonical_host":"www.airbnb.com","api_config":{"key":"<your-api-key>"}



回答3:


Just to update this set of answers, the api is on the following address but you need to request access first.

https://www.airbnb.com/partner

It offere an FAQ that informs you about the process and it will always be updated :)

Hope this helps Theodore




回答4:


As far as I can tell, they have shut down this service as of today. "Unfortunately, this is no longer available" will be what the API returns.

EDIT: It started working again after a few days. Very odd, maybe an internal problem, or we were rate limited or something.




回答5:


Log into Airbnb.com, open up the web developer console, go to the network tab, filter by type json, and look at the url and find "client_id". I found this answer here



来源:https://stackoverflow.com/questions/38243819/how-to-acquire-api-key-for-airbnb

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!