PDF to text: give a PDF URL, get the text of every page with the title, author and page…
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.
by web.tollkit.dev · discovered, not yet claimed by its owner · updated 2026-10-08
Mirrored from Coinbase's public x402 Bazaar. The description is the provider's own text and has not been reviewed here; the payment requirements are copied as published.
What it does
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.
Tags: pdf · text · document · extract · rag · bazaar
Call contract
- Method
- POST
- Input
- json
- Output
- json
- Last paid call
- 2026-10-08
{
"url": "https://www.irs.gov/pub/irs-pdf/fw9.pdf"
}{
"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"
}Use with an agent
- Discover. Agents find this listing with
GET https://bazaar.saylorinnovations.com/discovery/search?query=…, the MCP toolsearch_resources, or/discovery/resources. - Inspect. Fetch
/resources/33413.jsonfor the price and payment options. - Pay. Call
GET https://web.tollkit.dev/pdf. The provider answers402with its payment requirements. An x402 client signs one of the options below and retries withPAYMENT-SIGNATURE. - Execute. The provider returns
200with the data. Agent Bazaar is not in the request path and never sees your payment.
For humans
You don't need an account or an API key; you need a wallet holding a small amount of USDC on Base, Solana, and an x402-capable client (see the examples below). Call the endpoint unpaid first to see exactly what it asks for.
Pricing & payment
- Price
- $0.005 / request
- Protocol
- x402 v2
- Auth
- No account or API key. Pay per request.
- Networks
- Base, Solana
- Demand
- 4 calls · 4 unique payers in 30d (public x402 Bazaar data)
x402 payment requirements
| Scheme | Network | Asset | Amount | Pay to | Timeout |
|---|---|---|---|---|---|
| exact | Base eip155:8453 | USDC | $0.005 | 0xBbfCE2D320dE6aB328Ba93A771c531ebFC9cE704 | 300s |
| exact | Solana solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp | USDC | $0.005 | HBasGEGD1szEkNCWckRoZg2vZGhzt7yLSixLgSHi3gYf | 300s |
accepts[] (raw JSON)
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0xBbfCE2D320dE6aB328Ba93A771c531ebFC9cE704",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "5000",
"amountUsd": 0.005,
"maxTimeoutSeconds": 300
},
{
"scheme": "exact",
"network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
"payTo": "HBasGEGD1szEkNCWckRoZg2vZGhzt7yLSixLgSHi3gYf",
"asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"amount": "5000",
"amountUsd": 0.005,
"maxTimeoutSeconds": 300
}
]Schemas
Output schema (JSON Schema)
{
"properties": {
"example": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"author": {
"type": [
"string",
"null"
]
},
"bytes": {
"type": "integer"
},
"created": {
"type": [
"string",
"null"
]
},
"fetched_at": {
"type": "string"
},
"final_url": {
"type": "string"
},
"page_count": {
"type": "integer"
},
"pages": {
"items": {
"properties": {
"page": {
"type": "integer"
},
"text": {
"type": "string"
}
},
"type": "object"
},
"type": "array"
},
"pages_read": {
"type": "integer"
},
"text_length": {
"type": "integer"
},
"title": {
"type": [
"string",
"null"
]
},
"truncated": {
"type": "boolean"
},
"url": {
"type": "string"
}
},
"required": [
"url",
"page_count",
"pages"
],
"type": "object"
}
},
"type": "object"
}Example shape — generated from the schema, not a captured live response
{
"example": {
"author": "string",
"bytes": 0,
"created": "string",
"fetched_at": "string",
"final_url": "string",
"page_count": 0,
"pages": [
{
"page": 0,
"text": "string"
}
],
"pages_read": 0,
"text_length": 0,
"title": "string",
"truncated": true,
"url": "string"
}
}Examples
curl "https://web.tollkit.dev/pdf"
# -> 402 Payment Required, accepts[] lists how to pay
# retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paidconst res = await fetch("https://web.tollkit.dev/pdf");
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}import httpx
res = httpx.get("https://web.tollkit.dev/pdf")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerDetails
- Provider
- web.tollkit.dev
- Endpoint
- https://web.tollkit.dev/pdf
- Machine-readable
/resources/33413.json