{"slug":"1gateway-dev-v1-convert-markdown-1add44","title":"Use when an agent must read a document as clean Markdown","host":"1gateway.dev","method":"GET","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). Over the per-format size cap → 413 before payment (see /openapi.json). Output: ","price_listed":0.0027,"price_asked":0.0027,"state":"answering","state_label":"Answering","checks_7d":1,"answered_7d":1,"latency_ms_median":34,"reported_calls_30d":3,"reported_payers_30d":2,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"method":"GET","queryParams":{"type":"html","url":"https://example.com/"},"type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"method":{"enum":["GET"],"type":"string"},"queryParams":{"additionalProperties":false,"properties":{"type":{"description":"Optional expected type; a mismatch is rejected before payment (415, not charged)","enum":["html","text","pdf","docx","hwp","hwpx"],"examples":["html"],"type":"string"},"url":{"description":"Public http(s) URL of a web page, PDF, DOCX, HWP or HWPX within the per-format size caps (see 413 in /openapi.json). For uploads use POST instead.","examples":["https://example.com/"],"maxLength":2048,"pattern":"^https?://","type":"string"}},"required":[],"type":"object"},"type":{"const":"http","type":"string"}},"required":["type","method"],"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-10","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.0027,"price_match":true,"latency_ms":34,"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). Over the per-format size cap → 413 before payment (see /openapi.json). Output: JSON markdown, title, pages, sourceType, bytes, warnings. Price by detected type: HTML $0.0027, PDF/DOCX $0.0045, HWP/HWPX $0.02. Example: ?url=https://example.com/","last_updated":"2026-10-10T08:02:24.49Z","schemes":["exact"]}