HTTP endpoints
The public addresses for agents, crawlers and other programs. Private projects never appear in them.
On this page
All the endpoints are public and read-only. Absolute links use the public address set in Settings.
API
rest
GET /{project}/{version}/{section}/{page}.md
A page and all its entries as Markdown, with a YAML header.
GET /{project}/{version}/{section}/{page}.mdReturns text/markdown
curl https://docs.example.com/documents/1/guides/introduction.md
rest
GET /llms.txt
The index of every public project and version, following llmstxt.org.
GET /llms.txtReturns text/plain
rest
GET /{project}/{version}/llms.txt
Every page of a version, by section, with a link to its Markdown.
GET /{project}/{version}/llms.txtReturns text/plain
rest
GET /{project}/{version}/llms-full.txt
The whole version in one Markdown file.
GET /{project}/{version}/llms-full.txtReturns text/plain
rest
GET /{project}/{version}/dataset.jsonl
One JSON line per page and language: id, url, project, version, section, language, title, summary, markdown, entries, license and update date.
GET /{project}/{version}/dataset.jsonlReturns application/x-ndjson
rest
GET /sitemap.xml
Every public page in every language, with hreflang alternates.
GET /sitemap.xmlReturns application/xml
rest
GET /api/search/
Searches pages and entries.
GET /api/search/| Parameter | Type | Description |
|---|---|---|
q |
String |
The words to search for. |
project? |
String |
A project slug. |
version? |
String |
A version slug. |
type? |
String |
page or an entry type such as method. |
language? |
String |
A language code. |
take? |
Number |
Maximum results, up to 50. Default: 10 |
Returns Array Results with kind, type, title, url, project, version, section and summary.
curl "https://docs.example.com/api/search/?q=versions&project=documents"
rest
GET /api/projects/
The public projects with their versions and the address of their llms.txt.
GET /api/projects/Returns Array
rest
GET /api/page/
A page as Markdown.
GET /api/page/| Parameter | Type | Description |
|---|---|---|
url |
String |
The address or path of the page. |
Returns Object { url, language, markdown }
rest
GET /api/entry/
API entries by exact name, as Markdown.
GET /api/entry/| Parameter | Type | Description |
|---|---|---|
name |
String |
The entry name, with or without (). |
project? |
String |
|
version? |
String |
|
language? |
String |
Returns Array
rest
POST /mcp/
The MCP server (Streamable HTTP, JSON answers). See MCP tools.
POST /mcp/Returns application/json