Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. See our Privacy Policy and
Terms.
openapi: 3.2.0
info:
title: Best Time To Book Hotels Public Content API
version: 1.0.0
summary: Read-only JSON access to hotel booking-timing research, last-minute deal history, and agent-readable Markdown.
description: 'Free, unauthenticated, read-only endpoints backed by the same price-observation
dataset that powers the site. Every response describes observed historical prices,
not a forecast for a specific stay.
There is no API key. Requests are rate limited per client IP (60 requests per
minute per endpoint); exceeding the limit returns 429 with `Retry-After`.
Conversational access to the same data is available through the MCP server at
/api/mcp, described separately by /server.json.'
contact:
name: Best Time To Book Hotels
url: https://www.besttimetobookhotels.com/docs/api
servers:
- url: https://www.besttimetobookhotels.com
security: []
tags:
- name: Content
description: Agent-readable Markdown for public pages.
paths:
/agent-markdown:
get:
tags:
- Content
operationId: renderPageMarkdown
summary: Render a public page as Markdown
description: 'Discovery endpoint for the site''s Markdown representation. The same Markdown is returned by the page URL itself when the request sends `Accept: text/markdown`, and that page URL — not this endpoint — is the URL to cite.'
parameters:
- name: path
in: query
required: true
description: Public page path, e.g. `/cities/paris`.
schema:
type: string
example: /cities/paris
responses:
'200':
description: Markdown for the page.
headers:
X-Markdown-Tokens:
description: Estimated token count of the body, for context sizing.
schema:
type: integer
content:
text/markdown:
schema:
type: string
'404':
description: The path has no Markdown representation.
content:
text/markdown:
schema:
type: string
externalDocs:
description: Public API documentation
url: https://www.besttimetobookhotels.com/docs/api