82trust / 100Pdf
by PDF to Text in Documents & files
x402 APIPassing, checked 2 h ago
PDF to text: give a PDF URL, get the text of every page with the title, author and page count. For RAG, research and summarizing reports, filings and papers.
POST https://web.tollkit.dev/pdf
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 201 ms typical, 201 ms slowest 5%
- Last check
- 2 h ago
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -X POST "https://web.tollkit.dev/pdf" \
-H "content-type: application/json" \
-d '{"url":"https://www.irs.gov/pub/irs-pdf/fw9.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%2Fweb.tollkit.dev%2Fpdf
const res = await pay("https://web.tollkit.dev/pdf", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"url":"https://www.irs.gov/pub/irs-pdf/fw9.pdf"}),
});
console.log(await res.json());Example input
{
"url": "https://www.irs.gov/pub/irs-pdf/fw9.pdf"
}Example output
{
"author": "SE:W:CAR:MP",
"bytes": 140815,
"created": "2024-03-06",
"fetched_at": "2026-10-05T00:25:27.940Z",
"final_url": "https://www.irs.gov/pub/irs-pdf/fw9.pdf",
"page_count": 6,
"pages": [
{
"page": 1,
"text": "Form W-9(Rev. March 2024)\nRequest for Taxpayer\nIdentification Number and Certification\nDepartment of the Treasury\nInternal Revenue Service Go to www.irs.gov/FormW9 for instructions and the latest information.\nGive form to the\nrequester. Do not\nsend to the IRS.\nBefore you begin. …"
},
{
"page": 2,
"text": "Form W-9 (Rev. 3-2024) Page 2\nmust obtain your correct taxpayer identification number (TIN), which\nmay be your social security number (SSN), individual taxpayer\nidentification number (ITIN), adoption taxpayer identification number\n(ATIN), or employer identification number (EIN),…"
}
],
"pages_read": 2,
"text_length": 13826,
"title": "Form W-9 (Rev. March 2024)",
"truncated": true,
"url": "https://www.irs.gov/pub/irs-pdf/fw9.pdf"
}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 |
|---|---|---|---|---|
| 2 h ago | Passed | 402 | 277 ms | $0.005 |
| 8 h ago | Passed | 402 | 201 ms | $0.005 |