Beauty & Personal Care · x402 · early usage
pdfpeek (Tanod) PDF compression: lossless restructuring or image re-encoding
pdfpeek (Tanod) PDF compression: lossless restructuring or image re-encoding.
by tanod.dev · discovered, not yet claimed by its owner · updated 2026-10-08
30d calls2
30d payers2
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
pdfpeek (Tanod) PDF compression: lossless restructuring or image re-encoding.
Tags: pdfpeek · pdf · pdf-tools · ocr · documents · bazaar · builder-code
Call contract
- Method
- POST
- Input
- json
- Output
- json
- Last paid call
- 2026-10-08
Input example from Bazaar metadata
{
"level": "extreme",
"url": "https://www.irs.gov/pub/irs-pdf/fw9.pdf"
}Output example
{
"active_content_removed": {
"javascript": 1,
"xfa": 1
},
"bytes_after": 85124,
"bytes_before": 140815,
"file": {
"bytes": 85124,
"content_type": "application/pdf",
"data_base64": "JVBERi0xLjcKJb/3... (trimmed: 113,500 base64 characters in the reply)",
"name": "compressed.pdf",
"pages": 6
},
"images": {
"images": 0,
"recompressed": 0,
"skipped": 0
},
"input_bytes": 140815,
"input_pages": 6,
"level": "extreme",
"method": "lossless",
"operation": "compress",
"output_bytes": 85124,
"saved_percent": 39.5,
"unchanged": false,
"untrusted_content": true
}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/35986.jsonfor the price and payment options. - Pay. Call
GET https://tanod.dev/v1/pdf/compress. 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, Polygon, 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, Polygon
- Demand
- 2 calls · 2 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 | 0x593857A4a4F619543ea12394137C3004ce841720 | 300s |
| exact | Polygon eip155:137 | USDC | $0.01 | 0x593857A4a4F619543ea12394137C3004ce841720 | 300s |
accepts[] (raw JSON)
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0x593857A4a4F619543ea12394137C3004ce841720",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "10000",
"amountUsd": 0.01,
"maxTimeoutSeconds": 300
},
{
"scheme": "exact",
"network": "eip155:137",
"payTo": "0x593857A4a4F619543ea12394137C3004ce841720",
"asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
"amount": "10000",
"amountUsd": 0.01,
"maxTimeoutSeconds": 300
}
]Schemas
Output schema (JSON Schema)
{
"properties": {
"example": {
"properties": {
"active_content_removed": {
"type": "object"
},
"bytes_after": {
"type": "integer"
},
"bytes_before": {
"type": "integer"
},
"file": {
"properties": {
"bytes": {
"type": "integer"
},
"content_type": {
"type": "string"
},
"data_base64": {
"type": "string"
},
"dpi": {
"type": "integer"
},
"first_page": {
"type": "integer"
},
"height": {
"type": "integer"
},
"last_page": {
"type": "integer"
},
"name": {
"type": "string"
},
"page": {
"type": "integer"
},
"pages": {
"type": "integer"
},
"width": {
"type": "integer"
}
},
"required": [
"name",
"content_type",
"bytes",
"data_base64"
],
"type": "object"
},
"file_count": {
"type": "integer"
},
"files": {
"items": {
"properties": {
"bytes": {
"type": "integer"
},
"content_type": {
"type": "string"
},
"data_base64": {
"type": "string"
},
"dpi": {
"type": "integer"
},
"first_page": {
"type": "integer"
},
"height": {
"type": "integer"
},
"last_page": {
"type": "integer"
},
"name": {
"type": "string"
},
"page": {
"type": "integer"
},
"pages": {
"type": "integer"
},
"width": {
"type": "integer"
}
},
"required": [
"name",
"content_type",
"bytes",
"data_base64"
],
"type": "object"
},
"type": "array"
},
"images": {
"type": "object"
},
"input_bytes": {
"type": "integer"
},
"input_pages": {
"type": "integer"
},
"level": {
"type": "string"
},
"method": {
"type": "string"
},
"operation": {
"type": "string"
},
"output_bytes": {
"type": "integer"
},
"saved_percent": {
"type": "number"
},
"unchanged": {
"type": "boolean"
},
"untrusted_content": {
"type": "boolean"
}
},
"required": [
"operation",
"output_bytes",
"untrusted_content",
"file"
],
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}Example shape — generated from the schema, not a captured live response
{
"example": {
"active_content_removed": {},
"bytes_after": 0,
"bytes_before": 0,
"file": {
"bytes": 0,
"content_type": "string",
"data_base64": "string",
"dpi": 0,
"first_page": 0,
"height": 0,
"last_page": 0,
"name": "string",
"page": 0,
"pages": 0,
"width": 0
},
"file_count": 0,
"files": [
{
"bytes": 0,
"content_type": "string",
"data_base64": "string",
"dpi": 0,
"first_page": 0,
"height": 0,
"last_page": 0,
"name": "string",
"page": 0,
"pages": 0,
"width": 0
}
],
"images": {},
"input_bytes": 0,
"input_pages": 0,
"level": "string",
"method": "string",
"operation": "string",
"output_bytes": 0,
"saved_percent": 0,
"unchanged": true,
"untrusted_content": true
},
"type": "string"
}Examples
curl
curl "https://tanod.dev/v1/pdf/compress"
# -> 402 Payment Required, accepts[] lists how to pay
# retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paidJavaScript
const res = await fetch("https://tanod.dev/v1/pdf/compress");
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
res = httpx.get("https://tanod.dev/v1/pdf/compress")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerDetails
- Provider
- tanod.dev
- Endpoint
- https://tanod.dev/v1/pdf/compress
- Machine-readable
/resources/35986.json