REST API & Markdown
DesignMD Pro provides read-only HTTP endpoints for fetching raw DESIGN.md documents, querying the website catalog, extracting palettes, and tracking revisions.
All JSON endpoints under /api/* carry X-Robots-Tag: noindex, nofollow. Write endpoints (POST, PATCH, DELETE) are restricted to authenticated administrators.
Raw DESIGN.md endpoints
GET /websites/{slug}.md
Also available at /zh/websites/{slug}.md. Detail HTML pages advertise this URL via <link rel="alternate" type="text/markdown"> and every response includes Link: <https://designmdpro.app/websites/{slug}>; rel="canonical".
- Query parameters: optional
?version=<version-or-id> - Response content type:
text/markdown; charset=utf-8(Vary: Cookie) - Free websites: returns the full
DESIGN.mdsource (Cache-Control: public, max-age=0, s-maxage=300, stale-while-revalidate=3600) withContent-Disposition: inline; filename="{slug}.md". - Pro websites:
- Authenticated Pro session cookies receive the full
DESIGN.md(Cache-Control: private, no-store). - Unauthenticated or free sessions receive the public preview Markdown (title, summary, website metadata, primary color, font families, up to 8 preview palette colors, up to 6 preview type styles, the public prose body, and a link to Pricing) with
Cache-Control: private, no-store.
- Authenticated Pro session cookies receive the full
curl -fsSL https://designmdpro.app/websites/linear.mdCatalog endpoints
GET /api/websites
Returns paginated websites with server-side Pro paywall enforcement.
| Query parameter | Type | Default | Description |
|---|---|---|---|
search | string | — | Free-text filter on website name, domain, description, or slug |
category | string | — | Exact category name filter |
access | enum | all | all, free, or pro |
isPro | boolean | — | "true" or "false" |
sort | enum | recent | recent, name, tokens, versions, category, or access |
dir | enum | — | asc or desc |
limit | integer | 24 | Clamped to 1–100 |
offset | integer | 0 | Non-negative pagination offset |
domain | string | — | Filter by website domain |
withRawContent | "1" | — | Include rawContent on summary items when limit <= 24 (redacted for Pro items on free sessions) |
Response shape:
{
"success": true,
"data": [],
"categories": [],
"viewerIsPro": false,
"meta": { "total": 0, "limit": 24, "offset": 0, "count": 0 }
}GET /api/websites/{slug}
Returns a single website’s detail record, active design system, and revision history.
- Optional query parameters:
version,versionId, orv(selects a specific revision; Pro sites pin non-Pro viewers to the latest public preview and redact historical changelogs). - Response:
{ "success": true, "data": <WebsiteDetailResult> }, or404{ "success": false, "error": "Website not found" }.
Palette extraction
GET /api/palette?url=<site-url>[&limit=24]
Free, unauthenticated REST endpoint that statically analyzes a site’s HTML and stylesheets.
url: required full URL or bare domain (private, loopback, and internal targets are blocked via SSRF guards).limit: optional integer (1–64, default24per light/dark scheme).- Rate limit:
20requests/minute per IP and at most4concurrent extractions (429returnsRetry-After). Cacheable (public, max-age=300, s-maxage=3600).
See Color Palette Extractor for the full PaletteResult schema.
Changelog & feeds
GET /api/changelog
Returns recent website additions and design-system revisions.
- Offset mode (when
daysis omitted):limit(1–100, default50) andoffset(>= 0). - Day-window mode:
days(1–31) and optionalbefore(YYYY-MM-DD). - RSS feed:
GET /rss.xml(English) andGET /zh/rss.xml(Chinese). - Blog RSS feed:
GET /blog/rss.xml(English) andGET /zh/blog/rss.xml(Chinese; untranslated posts fall back to English).
MCP discovery card
GET /.well-known/mcp/server-card.json
Returns the live MCP Server Card generated directly from /mcp’s registered tools/list handler, including transport URL, authentication options, and tool JSON Schemas.
Agent text endpoints
DesignMD Pro also publishes English plain-text and Markdown endpoints for LLMs and agents, refreshed hourly at the CDN edge:
GET /llms.txt(text/plain; charset=utf-8): canonical definitions, site interpretation guide, docs/blog/tool index, and the full catalog linking to each website’s.mdendpoint.GET /llms-full.txt(text/plain; charset=utf-8): complete inlined text of docs, blog posts,/pricing.md, homepage FAQ, and every website’s publicDESIGN.md. Becausellms-full.txtis publicly cached, Pro websites always appear as their paywall-redacted public preview.GET /pricing.md(text/markdown; charset=utf-8): plan pricing, feature comparison matrix, and billing FAQ generated from the same data as/pricing.
Next steps
- MCP Server Reference — Streamable HTTP endpoint, tools, and API key auth
- Color Palette Extractor — detailed
PaletteResultfields - Versioning & Revisions — working with
?version=across HTML, Markdown, API, and MCP