80trust / 100
Convert Markdown
by 1gateway in Documents & files
x402 APIPassing, checked 3 h ago
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/
GET https://1gateway.dev/v1/convert/markdown
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 55 ms typical, 55 ms slowest 5%
- Last check
- 3 h ago
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -X GET "https://1gateway.dev/v1/convert/markdown?type=html&url=https%3A%2F%2Fexample.com%2F"import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client().register(
"eip155:8453",
new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? Preflight it first for $0.03:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2F1gateway.dev%2Fv1%2Fconvert%2Fmarkdown
const res = await pay("https://1gateway.dev/v1/convert/markdown?type=html&url=https%3A%2F%2Fexample.com%2F");
console.log(await res.json());Example input
{
"type": "html",
"url": "https://example.com/"
}Example output
{
"bytes": 577,
"chars": 174,
"markdown": "# Example Domain\n\nThis domain is for use in documentation examples without needing permission. This is not a service; avoid relying on it for testing and monitoring purposes.",
"priceTier": "basic",
"sourceType": "html",
"sourceUrl": "https://example.com/",
"title": "Example Domain",
"warnings": []
}Security scan
- No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 3 h ago | Passed | 402 | 55 ms | $0.0027 |