Skip to content
Chateaupedia

API

Plug into the data

The full dataset, one endpoint per château, under an open licence. The key is free and only tells us who consumes what.

Photo : Château de Saumur Carsten Steger, CC BY-SA 4.0

Five entry points

GET /api/dataset.json
The full set, paginated (limit, offset). Nested fields: hours by season, prices by category.
GET /api/dataset.csv
One row per château, flat columns. UTF-8 with BOM so it opens correctly in Excel.
GET /api/chateau/{slug}.json
A single entry. Each practical field carries its source and verification date.
GET /en/castle/{slug}.md
The same entry in Markdown, with no navigation and no script. Append .md to any entry URL, in all three languages. No key needed.
GET /llms.txt
Corpus description, licence, how to cite us, and entry points. No key needed.

Authentication

The key goes in the Authorization header. A ?key= parameter is accepted for tools that cannot send headers, but it ends up in proxy logs: prefer the header.

curl -H "Authorization: Bearer ck_live_…" \
  https://chateaupedia.com/api/dataset.json?limit=100

Limits

Licence

ODbL 1.0. You may reuse, modify and redistribute, commercially included, provided you credit Chateaupedia and share the same freedoms on derived data.

Request a key

Keys are issued by hand for now: we read every request. Allow 48 working hours.

Two lines is plenty. It lets us warn you before a schema change — it is not a filter.