Esc
GETAPI key
Vessel database size
GETapi.navo24.com/v1/vessel/stats
How many ships are in the vessel database.
Response schema
2 fields
Derived from the example response, nested as the JSON is.
data
The payload. Everything an endpoint returns sits under this key.
vessels
Errors
A failure carries { "ok": false, "error": { "code", "message", "severity" } }. Branch on the code, and log the message.
missing_key
No key in Authorization or x-api-key.
invalid_key
The key is unknown or revoked.
rate_limited
More than 40 requests in one minute from one client.
curl 'https://api.navo24.com/v1/vessel/stats' \
-H "Authorization: Bearer tmcp_YOUR_API_KEY"const res = await fetch("https://api.navo24.com/v1/vessel/stats", {
headers: {
"Authorization": "Bearer tmcp_YOUR_API_KEY"
}
});
const data = await res.json();import requests
res = requests.get(
"https://api.navo24.com/v1/vessel/stats",
headers={"Authorization": "Bearer tmcp_YOUR_API_KEY"},
)
data = res.json()Response
{
"data": {
"vessels": 3367
}
}