旅行/酒店 API? [英] Travel/Hotel API's?

查看:22
本文介绍了旅行/酒店 API?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在从事一个大型项目,该项目涉及创建一个全球酒店数据库,其中包含地址、图片、描述、政策、坐标、设施、评论、当地描述及其便利设施等丰富的数据.

I am working on a large project involving creating a worldwide hotel database with rich data such as Addresses, Images, Descriptions, Policies, Coordinates, Facilities, Reviews, Local area descriptions and their amenities etc.

我正在寻找一个公共酒店 API,我可以在其中检索数据并运行(最好是 RESTful)特定位置和可用房间的实时查询,然后我可以让我的客户预订.

I am looking for a public hotel API where I can both retrieve the data and run (preferably RESTful) real-time queries for specific locations and available rooms, and where I can subsequently let my customers make bookings.

任何人都可以分享此类项目的经验、知识和可能的指导方针,哪些 API 是合适的,以及最佳实践是什么?

Can anyone share experience, knowledge and possible guidelines for such a project, which APIs are suitable and what are the best practices?

推荐答案

在我搜索酒店 API 的过程中,我发现只有一个 API 可以不受限制地开放访问他们的酒店数据库并允许您预订他们的酒店:

In my search for hotel APIs I have found only one API giving unrestricted open access to their hotel database and allowing you to book their hotels:

Expedia 的 EAN http://developer.ean.com/

Expedia's EAN http://developer.ean.com/

您需要签署他们的联盟计划,这很容易.您可以立即访问他们的酒店数据库,并且您可以使用多种响应选项(包括 JSON)来提出可用性/预订请求,这比(不幸的是)更广泛的 XML 更方便和轻量级.

You need to sign for their affiliate program, which is very easy. You get immediate access to their hotel databases plus you can make availability/booking requests with several response options, including JSON, which is more convenient and lightweight than the (unfortunately) more widespread XML.

当您立即访问他们的 API 时,您可以开始开发和测试,但仍需要他们的批准才能启动网站,基本上是为了确保它提供所需的质量和安全性,这是合理的.

As you immediately access their API, you can start developing and testing, but still need their approval to launch the site, basically to make sure it provides the needed quality and security, which is reasonable.

他们还提供深度链接",即您可以通过添加参数来自定义您的请求.然后,如果它足以满足您的目的(对我来说不是),您甚至不需要将它们的内容存储在您的服务器上.

They also offer "deep linking", i.e. you may customize your requests by adding parameters. Then if it sufficient for your purpose (for mine it is not), you don't even need to store their content on your server.

我还签署了 HotelsCombined 计划:(链接已删除,因为该站点似乎不允许我放置更多链接)

I have also signed for HotelsCombined program: (link removed as this site doesn't seem to let me put more links)

但是,即使是为了测试,它们也不会立即允许您使用它们的 API.从他们的回答:

However, they do not immediately allow you to use their API even for testing. From their answer:

对于给您带来的不便深表歉意,但限制访问我们丰富的酒店内容只是一个商业决定.请在接下来的 2-3 个月内回来查看,我们将能够判断您的流量,然后反过来判断您在标准数据 Feed 上的状态."

"Apologies for the inconvenience caused, but it’s simply a business decision to limit access to our rich hotel content. Please kindly check back within the next 2-3 months, where we will be able to judge your traffic, and in turn judge your status on standard data feeds."

我还签署了 Booking.com 联盟计划:(链接已删除,因为该站点似乎不允许我放置更多链接)

I have also signed for Booking.com affiliate program: (link removed as this site doesn't seem to let me put more links)

不幸的是,他们再次限制访问,从他们的回答来看:请注意,由于 XML 集成涉及大量时间和成本,我们只能向少数具有高潜力的合作伙伴提供 XML 集成."

Unfortunately, again, they limit access, from their answer: "Please do note that, since there's a high amount of time and cost involved in the XML integration, we are only able to offer the XML integration to a small amount of partners with a high potential."

我没有探索 Tripadvisor,因为他们似乎只提供排名前 10 的酒店,而且只是作为小工具,但对我来说最重要的是,他们不允许通过他们预订.

I did not explore Tripadvisor as they seem only to offer top 10 hotels and only as widgets, but most importantly for me, they wouldn't allow booking through them.

我检查了上面提到的hotelbase.org,他们有非常广泛的列表,但没有Expedia 丰富,而且他们似乎没有图片,也不允许预订.

I've checked the hotelbase.org mentioned above, they have very extensive list but not as rich as by Expedia, also they don't seem to have images and don't allow booking either.

这篇关于旅行/酒店 API?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆