GET/v1/html/fetch-markdown Fetch a URL and convert its HTML content to Markdown. Handles redirects, downloads the HTML, and returns clean Markdown suitable for LLM context windows or document processing. Use this to read and summarize web pages, documentation, or articles. Send {"url": "https://..."}. Remote fetch timeout: 5s, max download size: 2 MB. | 100% | 12 ms | $0.003 |
GET/v1/html/to-markdown Convert an HTML string to clean Markdown. Strips navigation, scripts, styles, and non-content elements. Use when you have an HTML string in memory and want Markdown for an LLM context window, document processing, or storage. Send {"html": "<html string>"}. Also accepts a raw text/html body. Max 5 MB. | 100% | 98 ms | $0.003 |
GET/v1/url/metadata Fetch a URL and extract structured metadata from its HTML: title, description, canonical URL, language, favicon URL, RSS/Atom feed links, Open Graph tags (og:title, og:image, og:type, og:description, og:url), Twitter Card tags, and other meta tags (author, keywords, robots). Use this to get Open Graph data, preview cards, or site information without parsing HTML yourself. Send {"url": "https://..."}. Remote fetch timeout: 5s, max download size: 2 MB. | 100% | 16 ms | $0.003 |
GET/v1/diff Compare two JSON objects or arrays and get a structured list of differences. Returns RFC 6902-style patch operations (add, remove, replace) with JSON Pointer paths (RFC 6901). Useful for change detection, audit logging, config comparison, and finding what changed between two API responses. Send {"left": <original>, "right": <modified>}. Optional: includeUnchanged (bool) includes unchanged paths; maxDepth (int 1–256, default 64) limits traversal depth. | — | — | $0.003 |
GET/v1/text/fetch-content Fetch a URL and return its text content. Auto-detects the format: HTML is converted to Markdown, JSON is returned as formatted text, and Markdown or plain text is returned as-is. Use when you need to read any URL without knowing its content type in advance. Send {"url": "https://..."}. Remote fetch timeout: 5s, max download size: 2 MB. | — | — | $0.003 |
GET/v1/utilities/count-tokens Count the number of tokens in a text string using the specified tokenizer encoding. Supports cl100k_base (GPT-4/GPT-3.5, exact BPE), o200k_base (GPT-4o, exact BPE), claude (Claude models, estimated), and gemini (Gemini models, estimated). Use before sending text to an LLM to estimate cost, check context window fit, or enforce token budgets. For base64-encoded images, set content_type='image' for tile-based token estimation. Send {"text": "...", "encoding": "cl100k_base"}. Max 50 MB text. | — | — | $0.003 |