AG
Developer Tool · x402 · early usage
Fetch a PDF and extract its text per page, with the document info
Fetch a PDF and extract its text per page, with the document info
by api.agentsouk.dev · discovered, not yet claimed by its owner · updated 2026-09-16
30d calls1
30d payers1
MethodPOST
Outputjson
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
Fetch a PDF and extract its text per page, with the document info
Tags: pdf · documents · extraction · text-extraction · parsing · bazaar
Call contract
- Method
- POST
- Input
- json
- Output
- json
- Last paid call
- 2026-09-16
Input example from Bazaar metadata
{
"url": "https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf"
}Output example
{
"bytes": 13264,
"clipped": false,
"content_type": "application/pdf",
"error": null,
"fetched_at": "2026-09-16T00:00:00.000Z",
"final_url": "https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf",
"http_status": 200,
"info": {
"author": "Evangelos Vlachogiannis",
"created_at": "2007-02-23T15:56:37.000Z",
"creator": "Writer",
"modified_at": null,
"producer": "OpenOffice.org 2.1",
"subject": null,
"title": null
},
"pages": [
{
"chars": 14,
"page": 1,
"start": 0
}
],
"pages_read": 1,
"pages_total": 1,
"text": "Dummy PDF file",
"text_chars": 14,
"text_layer": true,
"total_chars": 14,
"url": "https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf",
"word_count": 3
}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/38452.jsonfor the price and payment options. - Pay. Call
GET https://api.agentsouk.dev/v1/x402/lst_01M2N6GWB06867BFMSKJATK2QC. 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, 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.01 / request
- Protocol
- x402 v2
- Auth
- No account or API key. Pay per request.
- Networks
- Base
- Demand
- 1 calls · 1 unique payers in 30d (public x402 Bazaar data)
x402 payment requirements
| Scheme | Network | Asset | Amount | Pay to | Timeout |
|---|---|---|---|---|---|
| exact | Base eip155:8453 | USDC | $0.01 | 0xA0a2494006B72109137630bC026434a809731c07 | 900s |
accepts[] (raw JSON)
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0xA0a2494006B72109137630bC026434a809731c07",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "10000",
"amountUsd": 0.01,
"maxTimeoutSeconds": 900
}
]Schemas
Output schema (JSON Schema)
{
"properties": {
"example": {
"properties": {
"bytes": {
"type": "integer"
},
"clipped": {
"description": "true when max_chars, the 100-page cap or the output size cut something",
"type": "boolean"
},
"content_type": {
"description": "media type as served, parameters dropped",
"type": [
"string",
"null"
]
},
"error": {
"description": "set when the file beat the parse limits after it had been accepted",
"type": [
"string",
"null"
]
},
"fetched_at": {
"format": "date-time",
"type": "string"
},
"final_url": {
"type": "string"
},
"http_status": {
"type": "integer"
},
"info": {
"properties": {
"author": {
"type": [
"string",
"null"
]
},
"created_at": {
"format": "date-time",
"type": [
"string",
"null"
]
},
"creator": {
"type": [
"string",
"null"
]
},
"modified_at": {
"format": "date-time",
"type": [
"string",
"null"
]
},
"producer": {
"type": [
"string",
"null"
]
},
"subject": {
"type": [
"string",
"null"
]
},
"title": {
"type": [
"string",
"null"
]
}
},
"type": "object"
},
"pages": {
"description": "where each read page sits in text",
"items": {
"properties": {
"chars": {
"type": "integer"
},
"page": {
"type": "integer"
},
"start": {
"type": "integer"
}
},
"type": "object"
},
"type": "array"
},
"pages_read": {
"type": "integer"
},
"pages_total": {
"type": "integer"
},
"text": {
"description": "the read pages, separated by blank lines",
"type": "string"
},
"text_chars": {
"type": "integer"
},
"text_layer": {
"description": "false when no read page carried any text (a scan); null when the parse failed",
"type": [
"boolean",
"null"
]
},
"total_chars": {
"description": "characters of the pages the parser read (it stops one page after the text budget is spent), before clipping and without separators; null when nothing was parsed",
"type": [
"integer",
"null"
]
},
"url": {
"type": "string"
},
"word_count": {
"type": "integer"
}
},
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}Example shape — generated from the schema, not a captured live response
{
"example": {
"bytes": 0,
"clipped": true,
"content_type": "string",
"error": "string",
"fetched_at": "2026-01-01T00:00:00Z",
"final_url": "string",
"http_status": 0,
"info": {
"author": "string",
"created_at": "2026-01-01T00:00:00Z",
"creator": "string",
"modified_at": "2026-01-01T00:00:00Z",
"producer": "string",
"subject": "string",
"title": "string"
},
"pages": [
{
"chars": 0,
"page": 0,
"start": 0
}
],
"pages_read": 0,
"pages_total": 0,
"text": "string",
"text_chars": 0,
"text_layer": true,
"total_chars": 0,
"url": "string",
"word_count": 0
},
"type": "string"
}Examples
curl
curl -X POST 'https://api.agentsouk.dev/v1/x402/lst_01M2N6GWB06867BFMSKJATK2QC' -H 'Content-Type: application/json' --data '{"url":"https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf"}'
# -> 402 Payment Required; read PAYMENT-REQUIRED
# retry the identical request with PAYMENT-SIGNATUREJavaScript
const res = await fetch("https://api.agentsouk.dev/v1/x402/lst_01M2N6GWB06867BFMSKJATK2QC", {
"method": "POST",
"headers": {
"content-type": "application/json"
},
"body": "{\"url\":\"https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf\"}"
});
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}Python
import httpx
import json
res = httpx.request("POST", "https://api.agentsouk.dev/v1/x402/lst_01M2N6GWB06867BFMSKJATK2QC", json=json.loads("{\"url\":\"https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.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
- api.agentsouk.dev
- Endpoint
- https://api.agentsouk.dev/v1/x402/lst_01M2N6GWB06867BFMSKJATK2QC
- Machine-readable
/resources/38452.json