How to acquire API key for Airbnb

♀尐吖头ヾ 提交于 2019-12-03 10:13:53

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 ;)

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>"}

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

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.

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

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