{"slug":"1gateway-dev-v1-convert-markdown-f785dd","title":"Use when an agent must read a document as clean Markdown","host":"1gateway.dev","method":"POST","resource":"https://1gateway.dev/v1/convert/markdown","category":"market","description":"Use when an agent must read a document as clean Markdown: web page, PDF, DOCX or Korean HWP/HWPX, tables kept. Input: url (http/https) via GET, or POST a file (multipart 'file', raw body, or JSON contentBase64+filename). Free-plan size cap → 413 before payment: HWP 48 KB, HWPX 100 KB XML. Output: JS","price_listed":0.0027,"price_asked":0.0027,"state":"answering","state_label":"Answering","checks_7d":1,"answered_7d":1,"latency_ms_median":43,"reported_calls_30d":4,"reported_payers_30d":1,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"url":"https://example.com/"},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"anyOf":[{"required":["url"]},{"required":["contentBase64"]}],"properties":{"contentBase64":{"description":"The document bytes, base64 (alternative to url; max 10 MB decoded)","type":"string"},"filename":{"description":"Original file name, e.g. report.hwp (helps detection)","maxLength":255,"type":"string"},"type":{"description":"Optional expected type; mismatch → 415 before payment (not charged)","enum":["html","text","pdf","docx","hwp","hwpx"],"type":"string"},"url":{"description":"Public http(s) URL of the document (alternative to contentBase64)","maxLength":2048,"pattern":"^https?://","type":"string"}}},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"method":{"enum":["POST"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"properties":{"example":{"properties":{"bytes":{"type":"integer"},"chars":{"type":"integer"},"markdown":{"type":"string"},"pages":{"type":"integer"},"priceTier":{"type":"string"},"sections":{"type":"integer"},"sourceType":{"type":"string"},"sourceUrl":{"type":"string"},"title":{"type":"string"},"warnings":{"items":{},"type":"array"}},"required":["markdown","title","sourceType","priceTier","bytes","chars","warnings"],"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-10-18","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.0027,"price_match":true,"latency_ms":43,"error":null}],"description_full":"Use when an agent must read a document as clean Markdown: web page, PDF, DOCX or Korean HWP/HWPX, tables kept. Input: url (http/https) via GET, or POST a file (multipart 'file', raw body, or JSON contentBase64+filename). Free-plan size cap → 413 before payment: HWP 48 KB, HWPX 100 KB XML. Output: JSON markdown, title, pages, sourceType, warnings. Price by detected type: HTML $0.0027, PDF/DOCX $0.0045, HWP/HWPX $0.009. Example: ?url=https://example.com/","last_updated":"2026-10-12T05:42:25.032Z","schemes":["exact"]}