Tratok Labs API reference
Every method is a POST to one endpoint. Send your app ID, your secret and the method name with each request, and read JSON back.
https://developer.tratok.net/data.php
application/x-www-form-urlencoded
Basics
Authentication
Create an app in your dashboard. Once it is approved you receive an app ID and a secret. Send them as the id and secret fields of every request, and keep the secret on your server, never in a browser or mobile app.
Billing
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.
Errors
A failed call answers with status Error and a message that says what to fix. Inventory and booking calls also return a short code, such as quote_expired, that your app can act on.
{ "status": "Error", "message": "Validation failed. Invalid API provided." }
Tools
Import the OpenAPI 3 specification or the Postman collection, or point an AI assistant at llms.txt.
Hotels
Hotel details, locations and photo galleries, by country or city.
Free tier, then 0.01 TRAT a call
Car rentals
Rental cities, pick-up venues and the car classes offered at each one.
Free tier, then 0.01 TRAT a call
Cruises New
Search 26,000+ upcoming sailings from 71 cruise lines, with ships, itineraries and fares.
Free tier, then 0.01 TRAT a call
Translation
Translate text and detect its language in 44 languages, with answers in seconds.
Free tier, then 0.01 TRAT a call
Tara AI
Add Tratok's AI travel assistant to your app with one call, conversation memory included. Billed per token in TRAT.
1 TRAT per 1,000 input tokens, 4 per 1,000 output
Inventory and Booking
Search bookable stays, activities and restaurants on Tratok, get a price in TRAT and book for members who sign in with Tratok.
Free tier, then 0.01 TRAT a call
Ready to build?
Create a free developer account and submit your first app for review.
