Hotels
Hotel details, locations and photo galleries, by country or city.
hotelsInCountryhotelsInCitygetHotelInformationgetHotelGallery Hotels, car rentals, 26,000+ cruise sailings, translation in 44 languages and Tara, Tratok's AI travel assistant. One POST endpoint, with 1,000 free requests a month.
curl https://developer.tratok.net/data.php \
-d request=searchCruises \
-d id=YOUR_APP_ID -d secret=YOUR_SECRET \
-d region=caribbean \
-d nightsMin=7 -d nightsMax=7 \
-d sort=price_low -d limit=1
const res = await fetch('https://developer.tratok.net/data.php', {
method: 'POST',
body: new URLSearchParams({
request: 'searchCruises', id: APP_ID, secret: SECRET,
region: 'caribbean', nightsMin: 7, nightsMax: 7,
sort: 'price_low', limit: 1
})
});
const { items } = await res.json();
import requests
r = requests.post('https://developer.tratok.net/data.php', data={
'request': 'searchCruises', 'id': APP_ID, 'secret': SECRET,
'region': 'caribbean', 'nightsMin': 7, 'nightsMax': 7,
'sort': 'price_low', 'limit': 1,
})
print(r.json()['items'][0]['ship'])
{
"status": "Ok",
"total": 278,
"items": [{
"cruiseId": 5717,
"ship": "MSC Grandiosa",
"line": { "id": 34, "name": "MSC Cruises" },
"departureDate": "2026-11-14",
"nights": 7,
"embarkPort": "Port Canaveral",
"priceFromUsd": 447.12,
"url": "https://tratok.net/cruise.php?id=5717"
}]
}
Every call is a POST to /data.php with your app ID and secret. The data spans 222 countries and territories.
Hotel details, locations and photo galleries, by country or city.
hotelsInCountryhotelsInCitygetHotelInformationgetHotelGallery Rental cities, pick-up venues and the car classes offered at each one.
getListOfCarCitiesgetListOfAllCarVenuesInCitygetListOfCarsAtVenue Search 26,000+ upcoming sailings from 71 cruise lines, with ships, itineraries and fares.
searchCruisesgetCruisegetCruiseRegionsgetCruiseLines Translate text and detect its language in 44 languages, with answers in seconds.
translatedetectLanguagesupportedLanguages Add Tratok's AI travel assistant to your app with one call, conversation memory included. Billed per token in TRAT.
taraChattaraReset Search bookable stays, activities and restaurants on Tratok, get a price in TRAT and book for members who sign in with Tratok.
No subscription. Top up your balance with TRAT and every paid call is deducted automatically.
Create your free developer account and tell us about your project.
Submit your application for review. Once approved, you get API credentials.
Use your API key to query hotels, cars, translations, and more.
Search 26,000+ upcoming sailings from 71 cruise lines, with ships, itineraries and fares.
Translation and language detection now run on the Tara engine, with answers in seconds.
Pricing, access and documentation at a glance.
Tratok Labs is the developer platform of Tratok, the travel ecosystem built around the TRAT token. One API gives you hotel, car rental and cruise data, translation, live Tratok inventory and Tara, Tratok's AI travel assistant, so you can build travel and hospitality apps in any programming language.
Every developer gets 1,000 free requests a month across every module except Tara AI. After that, each request costs 0.01 TRAT. Tara AI is billed separately at 1 TRAT per 1,000 input tokens and 4 TRAT per 1,000 output tokens, and is never part of the free tier.
Hotel details by country or city; car rental cities, venues and cars; translation and language detection; Tara AI chat; upcoming cruise sailings with ships and itineraries; and searches of live Tratok listings for stays, activities and restaurants. The data covers 1.2M+ hotel rooms, 118,000+ car rental packages and 26,000+ cruise sailings, and translation works in 44 languages.
Create a free developer account, verify your email and submit your app for review. Once it is approved you receive an app ID and secret, which you send with each POST request to https://developer.tratok.net/data.php.
Any language that can make HTTPS requests. The documentation includes ready-made samples for cURL, JavaScript, Node.js, PHP, Python and Go.
Send TRAT, Tratok's ERC-20 token on Ethereum, to the deposit address shown in your dashboard. Deposits are detected on the blockchain and credited automatically, and each paid request is deducted from your balance.
The full reference, with code samples in six languages, is public on the API reference page. You can also import the OpenAPI specification or the Postman collection.