Your first call in five minutes
From nothing to a real answer from the API in four steps. You need an email address and a place to run a command.
Create your account
Sign up with your email and confirm it with the link we send you. If you are a Tratok member, one tap is enough and nothing needs confirming.
Sign Up Continue with TratokAsk for your key
In your dashboard, tell us in a sentence or two what your app will do and which data it needs. A person reads every request. We usually answer within one working day and email you when your key is ready.
Ask for my keyA key is two values: an app ID and a secret. Keep the secret on your server, never in a web page or a mobile app.
Make the call
Every call is a POST to one address, with your app ID, your secret and the name of the method. This one asks for the three cheapest week-long cruises in the Caribbean.
curl -X POST https://developer.tratok.net/v1/ \
-d "request=searchCruises" \
-d "id=YOUR_APP_ID" \
-d "secret=YOUR_SECRET" \
-d "region=caribbean" \
-d "nightsMin=7" \
-d "sort=price_low" \
-d "limit=3"
No key yet? Run the same search here and see the real answer:
Put your own app ID and secret in place of the two placeholders.
Read the answer
The answer is JSON. A call that worked says status Ok; total is how many voyages match, and items holds the ones you asked for. Pass a cruiseId to getCruise for the ship, the fares and the other departure dates.
{
"status": "Ok",
"count": 3,
"total": 253,
"offset": 0,
"items": [
{
"cruiseId": 5717,
"title": "7 Night Caribbean Cruise",
"line": { "id": 34, "name": "MSC Cruises" },
"ship": "MSC Grandiosa",
"region": { "slug": "caribbean", "name": "Caribbean" },
"departureDate": "2027-01-09",
"nights": 7,
"embarkPort": "Port Canaveral",
"priceFromUsd": 447.12,
"soldOut": false,
"departures": 12,
"url": "https://tratok.net/cruise.php?id=5717"
}
],
"catalogueDate": "2026-12-01"
}The figures in this sample are an illustration of the shape; your own call returns today's catalogue.
Good to know before you build
Free calls
1,000 free calls every calendar month for every module except Tara AI. They refill on the 1st. After them a call costs 0.01 TRAT from your balance.
Limits
Each app may make 120 calls a minute. Above that the answer is rate_limited with the number of seconds to wait. Every answer carries headers with what is left.
One address
POST to https://developer.tratok.net/v1/ with a request field, or put the method in the address: /v1/searchCruises. Send form fields or JSON.
When a call is refused
An answer that did not work says status Error, with a short code your program can act on, a message for a person and a requestId to quote if you write to us.
| Code | Status | What it means and what to do |
|---|---|---|
invalid_credentials | 401 | The app ID and secret do not match. Copy both again from your dashboard. |
app_not_active | 403 | The app is still in review or was suspended. Your dashboard shows which. |
payment_required | 402 | The month's free calls are used and the balance does not cover the call. Add TRAT, or wait for the 1st. |
insufficient_balance | 402 | Tara AI or a booking needs more TRAT than the balance holds. |
rate_limited | 429 | Too many calls this minute. Wait the number of seconds in retryAfter. |
invalid_request | 400 | A field is missing or wrong; the message names it. Such a call is not counted. |
unknown_method | 400 | The request field names no method. Check the spelling against the reference. |
not_found | 404 | Nothing matches: a city without hotels, an unknown cruise number. |
unavailable | 503 | A part of the service is not answering. Try again shortly; the status page says more. |
