APIs / Web Page to Markdown API
Web Page to Markdown API
Converts public web pages into clean Markdown for LLMs and RAG: main content only (navigation, ads and scripts removed), title, description, language, word count and optional retrieval chunks split along headings. Respects robots.txt.
Request
curl "https://gmpsignal.com/v1/apis/web-to-markdown?url=https%3A%2F%2Fdeveloper.mozilla.org%2Fen-US%2Fdocs%2FWeb%2FHTTP%2FGuides%2FOverview" \ -H "X-API-Key: YOUR_API_KEY"
Parameters
| Parameter | Type | Description |
|---|---|---|
url | string | Page URL, or up to 5 comma separated URLs. Example: https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/Overview |
chunkSize | integer | Optional chunk size in characters (300-8000) to also return RAG chunks; 0 returns Markdown only. Example: 0 |
includeLinks | string | Keep link targets in the Markdown (true or false). Example: true |
includeImages | string | Keep images as Markdown images (true or false). Example: false |
Use it from an AI agent
The same API is a tool named web_to_markdown on the MCP server https://gmpsignal.com/mcp. See MCP setup.
Each call uses one call from your plan.