Send travellers to book
Show each hotel's booking links, open them in the traveller's browser, and know what each link promises and how long it lasts.
Every hotel in an answer comes with booking_links: addresses that open the hotel on a travel site with the dates and guests filled in. The traveller books on that site. The API never books, holds or charges anything.
What a link looks like
These are the links of one hotel from a search, with their tokens shortened:
[
{
"site": "hotels_com",
"name": "Hotels.com",
"url": "https://api.voyagelabs.ai/r/hl_GPr_mc0vhVHege…",
"lands_on": "property",
"found_by": "id",
"verified": false,
"checked": "2026-12-05",
"note": "The hotel's id here is worked out from ours and not confirmed, so now and then it opens a missing page."
},
{
"site": "google",
"name": "Google Hotels",
"url": "https://api.voyagelabs.ai/r/hl__Az-XUQMD3fXhn…",
"lands_on": "search_results",
"found_by": "name",
"verified": false,
"checked": "2026-12-05",
"note": "Finds the hotel by its name, which is right for most hotels but not all."
},
{
"site": "booking_com",
"name": "Booking.com",
"url": "https://api.voyagelabs.ai/r/hl_TC02KWLxid5pp5…",
"lands_on": "search_results",
"found_by": "name",
"verified": true,
"checked": "2026-12-05",
"note": "Searches by the hotel's name; the hotel is normally the first result."
}
]| Field | Meaning |
|---|---|
site | Where the link opens: hotels_com, trip_com, expedia, agoda, booking_com or google (Google Hotels) |
name | The site's name, to show the traveller |
url | The address to open. It lasts 24 hours |
lands_on | property: the hotel's own page on the site. pinned_results: the site's results for the stay, with this hotel first. search_results: the site's results for a search by the hotel's name |
found_by | id: the link carries the site's own id for this hotel, so no other hotel can open. name: the site is searched by the hotel's name |
verified | true when this kind of link was opened in a real browser and did what lands_on says |
checked | The day this kind of link was last checked in a browser, or null |
note | What the link cannot promise, in a sentence, or null |
Which links a hotel gets
Every hotel has a Google Hotels link and a Booking.com link. A site that the service holds the hotel's own id for also gets a link that opens on that hotel, with found_by set to id. Links are listed best first: links by id, then Google Hotels, then Booking.com searched by name where there is no Booking.com link by id. Keep that order when you show them.
Some links say plainly what they cannot promise:
- Google Hotels found by its own id for the hotel opens the hotel and lists each seller's price for the stay. Found by name, it lands on results and is not verified.
- For a stay of more than one room, every link is unverified. Its
notesays the site's way of writing rooms has not been opened in a browser yet, except on Google Hotels found by name, which keeps its own note. - A Hotels.com link whose id was worked out from the hotel's own id is not verified, and now and then opens a missing page.
Open the link in the traveller's browser
A link's url is an address on api.voyagelabs.ai. It needs no key: the traveller's browser opens it, and the API sends it on to the travel site.
GET /r/hl_TC02KWLxid5pp5… HTTP/1.1
Host: api.voyagelabs.ai
HTTP/1.1 302 Found
location: https://www.booking.com/searchresults.html?ss=Motel+6+San+Francisco%2C+CA+%E2%80%93+Civic+Center&checkin=2027-02-09&checkout=2027-02-12&group_adults=2&group_children=1&age=7&no_rooms=1&selected_currency=USDShow the url exactly as given
Never build, edit or shorten a link, and never add your key to it. A changed link opens nothing: it answers 403 forbidden.
Each open is recorded as a click on that link, so open links only for travellers, not from your server to check them.
How long a link lasts
A link lasts 24 hours from the answer that carried it. Each answer seals its links afresh, so reading a search again by its search_id gives new links, for as long as the search is kept. After 24 hours, opening a link answers 410 gone in the traveller's browser instead of the travel site.
Don't show a link from an answer more than a day old. Read the search again while it is kept, or search again.
What to tell the traveller
- Which site the link opens, from
name. - That the site shows its own price, which can differ from the one in your answer.
- That they choose the room and rate on the site. No travel site accepts a link that picks them.
- Where
lands_onissearch_results, that they may need to pick the hotel from the site's results.
Nothing is booked by the API
The API is read-only. It never books, holds or charges. The booking, its payment and its confirmation all happen on the travel site, between the traveller and that site.