82trust / 100Pdf
by pdf-to-markdown in Documents & files
x402 APIPassing, checked just now
Extract a public PDF (by HTTPS URL or base64) into clean Markdown - headings and tables preserved via layout-aware parsing, plus title/author/page count/date metadata and a real token count. Text content itself is never generated or altered, only its structure is inferred. Try GET /pdf/sample. Part of the AgentIndex content kit (pdf, web-read, extract, summarize, detect-language) - see GET /capabilities.
POST https://x402.agentindex.world/pdf
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 76 ms typical, 76 ms slowest 5%
- Last check
- just now
- Next check
- in 30 min
How to call it
# See the payment challenge (nothing is charged)
curl -i -X POST "https://x402.agentindex.world/pdf" \
-H "content-type: application/json" \
-d '{"url":"https://www.ohchr.org/sites/default/files/UDHR/Documents/UDHR_Translations/eng.pdf"}'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.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fx402.agentindex.world%2Fpdf
const res = await pay("https://x402.agentindex.world/pdf", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"url":"https://www.ohchr.org/sites/default/files/UDHR/Documents/UDHR_Translations/eng.pdf"}),
});
console.log(await res.json());Example input
{
"url": "https://www.ohchr.org/sites/default/files/UDHR/Documents/UDHR_Translations/eng.pdf"
}Example output
{
"markdown": "# Universal Declaration of Human Rights \n\n## Preamble \n\nWhereas recognition of the inherent dignity and of the equal and inalienable rights of all members of the human family is the foundation of freedom, justice and peace in the world, ...",
"metadata": {
"author": "lindner",
"date": "2001-09-10T01:04:58-07:00",
"pages": 8,
"title": null
},
"token_count": 2164
}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 |
|---|---|---|---|---|
| just now | Passed | 402 | 251 ms | $0.002 |
| 5 h ago | Passed | 402 | 76 ms | $0.002 |