The CoasterDB API
Read-only data about roller coasters, parks and manufacturers, with the source and the confidence of every number. Free with a free account and a free key.
What it is
And who it is for.
The API gives you the same records the website shows, as JSON: coasters, parks, manufacturers, models and countries, plus search and rankings. It is for people building a map, a ride tracker, a school project, a spreadsheet or a stats page, and for researchers who want data they can cite.
Two promises shape the data. Unknown is never zero: if we do not know a height, it is null and its status says unknown. Every number names its source and the date we read it, and says whether it is confirmed by two sources or an estimate from one.
It is read-only: you can look things up, not change them. Corrections go through the site.
Quick start
Three requests to copy.
Every request needs a key. Create a free account, then a free key on the API keys page, and put it in a variable called COASTERDB_KEY. Then paste these into a terminal.
# 1. Put your free key in a variable (create it on the keys page)
export COASTERDB_KEY=cdb_your_key_here
# 2. The three tallest coasters
curl -H "Authorization: Bearer $COASTERDB_KEY" "https://coasterdb-production.up.railway.app/api/v1/coasters?sort=-height_m&limit=3&fields=name,height_m,speed_kmh"
# 3. Search by name
curl -H "Authorization: Bearer $COASTERDB_KEY" "https://coasterdb-production.up.railway.app/api/v1/search?q=millennium"Every answer has the same outer shape. This is a shortened one:
{
"data": [
{
"id": "CDB-COA-000047",
"name": "Millennium Force",
"height_m": {
"value": 94.5,
"unit": "m",
"status": "confirmed",
"source": "wikidata",
"source_url": "https://www.wikidata.org/wiki/Q1065056",
"retrieved_at": "2026-11-06",
"flags": []
}
}
],
"meta": { "api_version": "1", "count": 1, "next_cursor": null }
}Lists give you a next_cursor when there is more. Send it back as ?cursor=... with the same filters. The full list of endpoints and filters, with real example answers, is in the API reference.
Tiers and limits
Free and developer are in force today.
| Tier | Requests | Fields | How to get it |
|---|---|---|---|
| Free key | 1,000 per day | Core fields | Create it yourself on the keys page. |
| Developer key | 20,000 per day | Core and extra fields (technical detail, previous names, restraint and more) | Coming soon. Join the waitlist. Early requests are still read by the site owner. |
| Commercial | Not set | To be decided | Not available yet. It needs written terms from the site owner first, and it would leave out the fields whose source licences do not allow commercial use (see pricing). A key of this tier is refused with a clear message. |
Big requests cost more than small ones: a page of more than 50 items, a search and a ranking each count as 2 requests. A single walk through a list is capped at 5,000 with a free key and 50,000 with a developer key; narrow the filters instead of paging forever. Billing does not exist yet: nothing here takes payment.
Licence and attribution
The rules, in plain words.
Facts (heights, dates, places) come mostly from Wikidata, which is public domain (CC0), and from Wikipedia infoboxes. Each value says which source it came from. Please credit CoasterDB and the sources when you publish; every object carries a ready-made attribution line.
Descriptions are text from Wikipedia contributors under CC BY-SA 4.0. If you show one, show its attribution line and link to the article, and share your adaptation under the same licence. They are only on single-item endpoints, never in lists, so the API does not become a bulk copy of Wikipedia.
Photos are links to Wikimedia Commons with the author, licence and file page. We do not serve the image files and claim no rights in them: follow each licence.
Some values are held back. A value whose only evidence comes from a source that does not allow bulk redistribution (Coasterpedia) is left out of every endpoint, on every tier. If an open source also reports the same value, we serve it and cite the open source. Queue times are not offered: the providers' terms forbid passing their feed on through another API.
User data is never served. GET /meta returns this summary as data.
Rate limits
How to read the headers.
Every answer tells you where you stand:
RateLimit-Limit: how many requests you may make in the current window.RateLimit-Remaining: how many are left.RateLimit-Reset: seconds until the window resets. Windows follow the UTC clock: the day.
When you run out you get a 429 with a Retry-After header in seconds. Wait that long; do not retry in a loop. Responses can be cached for a minute, and you can send If-None-Match with the ETag to get a cheap 304.
Errors
One format for all of them.
Errors use the standard problem details format (RFC 9457) with the content type application/problem+json. Branch on code, not on the wording. Quote request_id if you ask for help.
{
"type": "https://coasterdb-production.up.railway.app/developers/docs#problem-rate-limited",
"title": "Rate limit exceeded",
"status": 429,
"code": "rate_limited",
"detail": "Rate limit reached: 1,000 request units per day. Try again after the time in Retry-After.",
"instance": "/api/v1/coasters",
"request_id": "req_3f9c1a2b4d5e6f70"
}The codes are: invalid_parameter, invalid_cursor, unprocessable_query, api_key_required, invalid_api_key, field_not_available, tier_not_available, not_found, method_not_allowed, gone, rate_limited, internal_error, query_timeout, service_unavailable. Each is explained in the API reference.
To check whether the service is up, read the health report (JSON).
Change policy
What can change, and when.
The version is in the path: /api/v1. Within v1 we may add fields, optional parameters and endpoints at any time, so write your code to ignore fields it does not know. We will not rename or remove a field, or change what it means, inside v1.
A breaking change gets a new version path. v1 keeps working for at least six months after the new version is announced here. IDs such as CDB-COA-000047 are permanent. If two records are merged, the old ID answers with a redirect to the survivor, so stored IDs keep working.
Download the machine-readable description: OpenAPI 3.1 file.