Public API
A read-only REST API over TheBoatDB's catalogue: every boat model and manufacturer we publish, with
filtering, sorting and pagination. Responses are JSON, versioned under /v1, and shaped by us —
you are not querying our CMS, so the fields you build against do not move when our content model
does.
Every endpoint is served from https://api.theboatdb.com.
Use of the API is governed by the Terms of Service, the User Agreement (see "API Data and Business Use") and the Privacy Policy. Wherever you display API Data, attribute TheBoatDB, for example "Data by TheBoatDB".
What you can read
| Resource | Endpoints |
|---|---|
| Boats | GET /v1/boats, GET /v1/boats/:idOrSlug |
| Manufacturers | GET /v1/manufacturers, GET /v1/manufacturers/:idOrSlug, .../:idOrSlug/boats |
Everything is GET. There is no write surface — the catalogue is editorial, and corrections go
through us rather than through the API.
Before you start
You need an active subscription to a plan that our Pricing page shows as including API access, and an API key. Keys are self-service:
- Sign in and open API keys in your dashboard.
- Create a key and give it a name you will recognise in six months ("staging importer", not "key 2").
- Copy it. The full key is shown once, at creation — after that we only ever show you a prefix.
A key is a bearer credential: anyone holding it can read the catalogue as you, against your rate limit. Store it as a secret in your deployment environment, never in a repository, a front-end bundle, or a URL.
If your plan does not include API access, compare the plans.
Your first request
curl -s "https://api.theboatdb.com/v1/boats?limit=2" \
-H "Authorization: Bearer $THEBOATDB_API_KEY"A successful list response looks like this — a data array and a pagination object, on every
list endpoint without exception:
{
"data": [
{
"id": "boat-3f9c1a",
"slug": "albin-vega-27",
"model": "Vega 27",
"version": null,
"manufacturer": {
"id": "mfr-71b0",
"name": "Albin Marine",
"slug": "albin-marine",
"website": "https://example.com"
},
"type": { "id": "type-sail", "name": "Sail", "slug": "sail" },
"production": { "firstYear": 1966, "lastYear": 1979 },
"unit": "metric",
"lengthOverall": 8.25,
"lengthOverallMetres": 8.25,
"referencePrice": null,
"image": { "url": "https://cdn.sanity.io/...", "alt": null, "width": 1600, "height": 1067, "format": "jpg" }
}
],
"pagination": { "total": 1482, "limit": 2, "offset": 0 }
}Fetching one boat returns the full record under data, with the manufacturer, type, hull type and
categories expanded inline:
curl -s "https://api.theboatdb.com/v1/boats/albin-vega-27" \
-H "Authorization: Bearer $THEBOATDB_API_KEY"Try it without writing any code
Every endpoint is also callable from the browser in the API explorer: paste your key into the authentication box and send a real request. It is the fastest way to see the response shape before you write against it. The explorer is our own tool: it keeps your key only in that browser tab, and its requests count against your quota like any other. Do not copy this pattern into your own browser or mobile application. See OpenAPI reference.
Verifying your setup
GET /v1 is unauthenticated and returns the version descriptor. If that responds but your
authenticated calls do not, the problem is the key, not the network:
curl -s https://api.theboatdb.com/v1GET /health is a plain uptime check, also unauthenticated. Neither counts against your rate limit.
The API is provided without an uptime guarantee unless a written agreement with us says otherwise.
Terms of use in brief
The User Agreement has the full terms. In short:
- Call the API from your own server only. Never place a key in a browser, a mobile app or public code.
- Attribute TheBoatDB wherever you display API Data.
- Cache API Data only to serve the users of your own application. Do not export it, share it or assemble it into a dataset, mirror the catalogue, or pre-load or publish the full list of model and manufacturer names.
- Do not resell or sub-license API Data or your keys, build a wrapper, proxy or public API that relays it, or use extra accounts, subscriptions, keys or trials to obtain more quota.
- Retrieving API Data at run time to answer a question from a user of your application, and showing the answer with attribution, is permitted. Using it to train, fine-tune or evaluate an AI or machine-learning model is not.
- During a free trial, use test keys only. Live use needs a paid subscription that includes API access.
- API Data is provided as is. Reference prices are indicative only, and measurements are in the units the manufacturer published.
- Acting reasonably and, where practicable, after notice, we may throttle, suspend or revoke API access if these limits or terms are breached.
Where to go next
- Authentication — scopes, test vs live keys, and what each failure means.
- Conventions — the envelope, pagination and sorting rules shared by every endpoint.
- Errors — the full error-code table, and which ones are worth retrying.
- Rate limits — your monthly quota and per-minute limit, the headers on every response, and how to back off.
- Boats and Manufacturers — the endpoint reference.
- Versioning — what
/v1guarantees, and how much notice a breaking change gets. - OpenAPI reference — the machine-readable spec, and generating a client from it.
Legal
Use of the API is subject to the Terms of Service, the User Agreement and the Privacy Policy.