{"openapi":"3.1.0","info":{"title":"Markdown API","version":"1.0.0","description":"A fast, fully-local Markdown toolkit: render GitHub-flavored Markdown to HTML that is sanitized by default (scripts, style/iframe tags, inline event handlers and javascript: URLs are stripped), strip Markdown down to clean plain text, and extract a heading table of contents with levels, text and URL slugs. Every endpoint accepts input via the query string or the request body (up to 1 MB). Pure server-side compute, no third-party upstream, so responses are instant and always available. Ideal for CMS and documentation tools, comment systems, static-site pipelines and content rendering.","contact":{"name":"PremiumApi","url":"https://www.oanor.com/by/premiumapi"}},"servers":[{"url":"https://api.oanor.com/markdown-api","description":"oanor gateway"}],"tags":[{"name":"Markdown"}],"components":{"securitySchemes":{"oanorKey":{"type":"apiKey","in":"header","name":"x-oanor-key","description":"Get your key at https://www.oanor.com/developer/keys"}}},"security":[{"oanorKey":[]}],"paths":{"/v1/render":{"get":{"operationId":"get_v1_render","tags":["Markdown"],"summary":"Render Markdown to sanitized HTML","description":"","parameters":[{"name":"markdown","in":"query","required":true,"description":"Markdown text","schema":{"type":"string"},"example":"# Hello\n\n**world**"},{"name":"sanitize","in":"query","required":false,"description":"Sanitize HTML (default true)","schema":{"type":"string"},"example":"true"}],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"html":"<h1 id=\"hello\">Hello</h1>\n<p><strong>world</strong></p>\n","length":56,"sanitized":true},"meta":{"timestamp":"2026-05-30T09:00:23.835Z","request_id":"998add67-e4ac-49de-94cd-70281ba338bb"},"status":"ok","message":"OK","success":true}}}},"401":{"description":"Missing or invalid x-oanor-key header"},"402":{"description":"Active subscription required"},"429":{"description":"Rate-limit or monthly quota reached"},"502":{"description":"Upstream did not respond"}}}},"/v1/strip":{"get":{"operationId":"get_v1_strip","tags":["Markdown"],"summary":"Strip Markdown to plain text","description":"","parameters":[{"name":"markdown","in":"query","required":true,"description":"Markdown text","schema":{"type":"string"},"example":"# Title\n\nHello **world**."}],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"text":"Title\n\nHello world.","length":19},"meta":{"timestamp":"2026-05-30T09:00:23.902Z","request_id":"e61e41a1-373b-4eb5-893d-a4275c18adb8"},"status":"ok","message":"OK","success":true}}}},"401":{"description":"Missing or invalid x-oanor-key header"},"402":{"description":"Active subscription required"},"429":{"description":"Rate-limit or monthly quota reached"},"502":{"description":"Upstream did not respond"}}}},"/v1/toc":{"get":{"operationId":"get_v1_toc","tags":["Markdown"],"summary":"Extract a table of contents","description":"","parameters":[{"name":"markdown","in":"query","required":true,"description":"Markdown text","schema":{"type":"string"},"example":"# A\n## B\n### C"}],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"toc":[{"slug":"a","text":"A","level":1},{"slug":"b","text":"B","level":2},{"slug":"c","text":"C","level":3}],"count":3},"meta":{"timestamp":"2026-05-30T09:00:23.955Z","request_id":"c98711e8-676a-4288-8b04-591af98f8ea6"},"status":"ok","message":"OK","success":true}}}},"401":{"description":"Missing or invalid x-oanor-key header"},"402":{"description":"Active subscription required"},"429":{"description":"Rate-limit or monthly quota reached"},"502":{"description":"Upstream did not respond"}}}}},"x-oanor-pricing":[{"slug":"free","name":"Free","price_cents_month":0,"monthly_call_quota":13000,"rps_limit":2,"hard_limit":true},{"slug":"basic","name":"Basic","price_cents_month":400,"monthly_call_quota":220000,"rps_limit":12,"hard_limit":true},{"slug":"pro","name":"Pro","price_cents_month":1400,"monthly_call_quota":1300000,"rps_limit":40,"hard_limit":true},{"slug":"mega","name":"Mega","price_cents_month":3700,"monthly_call_quota":6500000,"rps_limit":120,"hard_limit":true}],"x-oanor-marketplace-url":"https://www.oanor.com/api/markdown-api"}