Extract clean text and metadata from supplied PDF, DOCX, HTML, Markdown, CSV, JSON, YAM…
Extract clean text and metadata from supplied PDF, DOCX, HTML, Markdown, CSV, JSON, YAML, or plain-text documents.
by apiacre.com · 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
Extract clean text and metadata from supplied PDF, DOCX, HTML, Markdown, CSV, JSON, YAML, or plain-text documents.
Tags: documents · data · document · pdf · docx · bazaar · payment-identifier
Call contract
- Method
- POST
- Input
- json
- Output
- json
- Last paid call
- 2026-10-08
{
"content_base64": "SGVsbG8gd29ybGQ=",
"filename": "report.txt"
}{
"data": {
"characters": 11,
"metadata": {
"bytes": 11,
"filename": "report.txt",
"sha256": "64ec88ca00b268e5ba1a35678a1b5316d212f4f366b2477232534a8aeca37f3c"
},
"text": "Hello world",
"words": 2
},
"meta": {
"cached": false,
"duration_ms": 42,
"next_actions": [
{
"authorization_required": true,
"checkout_path": "/try/document.redact",
"executes_automatically": false,
"handoff_path": "/catalog/document.redact",
"handoff_payment_required": false,
"input_template": {
"text": "$result.data.text"
},
"maximum_atomic_usdc": "10000",
"method": "POST",
"path": "/v1/document/redact",
"price": "$0.01",
"reason": "Remove common personal-data patterns from the extracted text before reuse.",
"sample_path": "/samples/document.redact",
"service": "document.redact",
"title": "PII and personal-data redaction",
"use_output": "Use result.data.text as the redacted document and inspect the returned counts."
}
],
"sources": [],
"warnings": []
},
"request_id": "018f1f54-7f38-7ba2-8dc3-5f90272d9f1a",
"service": "document.extract",
"version": "1"
}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/27734.jsonfor the price and payment options. - Pay. Call
GET https://apiacre.com/v1/document/extract. 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.01 / request
- Protocol
- x402 v2
- Auth
- No account or API key. Pay per request.
- Networks
- Base, Solana
- 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 | 0xa0BFa4f07281c9b248DC3AED2217836BcA24869B | 300s |
| exact | Solana solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp | USDC | $0.01 | B4CHWQeQn7GDLZD2aW6hpGG2bEseisBFLZYECA3HDLan | 300s |
accepts[] (raw JSON)
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0xa0BFa4f07281c9b248DC3AED2217836BcA24869B",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "10000",
"amountUsd": 0.01,
"maxTimeoutSeconds": 300
},
{
"scheme": "exact",
"network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
"payTo": "B4CHWQeQn7GDLZD2aW6hpGG2bEseisBFLZYECA3HDLan",
"asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"amount": "10000",
"amountUsd": 0.01,
"maxTimeoutSeconds": 300
}
]Schemas
Output schema (JSON Schema)
{
"properties": {
"example": {
"properties": {
"data": {
"description": "Structured Document extraction result",
"properties": {
"characters": {
"type": "integer"
},
"metadata": {
"type": "object"
},
"text": {
"type": "string"
},
"words": {
"type": "integer"
}
},
"type": "object"
},
"meta": {
"properties": {
"cached": {
"type": "boolean"
},
"duration_ms": {
"minimum": 0,
"type": "integer"
},
"next_actions": {
"description": "Optional separately priced follow-up calls. Each action requires a new payment challenge and explicit buyer authorization.",
"items": {
"properties": {
"authorization_required": {
"const": true,
"type": "boolean"
},
"checkout_path": {
"pattern": "^/try/",
"type": "string"
},
"executes_automatically": {
"const": false,
"type": "boolean"
},
"handoff_path": {
"description": "Free full contract and spend-capped command handoff; reading it does not execute or purchase the follow-up.",
"pattern": "^/catalog/",
"type": "string"
},
"handoff_payment_required": {
"const": false,
"type": "boolean"
},
"input_template": {
"description": "Client-side template only: $request refers to the original input, $result to this response, and $json(...) serializes its argument. The server does not execute the follow-up.",
"type": "object"
},
"maximum_atomic_usdc": {
"pattern": "^[1-9][0-9]*$",
"type": "string"
},
"method": {
"const": "POST",
"type": "string"
},
"path": {
"pattern": "^/v1/",
"type": "string"
},
"price": {
"pattern": "^\\$[0-9]+",
"type": "string"
},
"reason": {
"type": "string"
},
"sample_path": {
"pattern": "^/samples/",
"type": [
"string",
"null"
]
},
"service": {
"type": "string"
},
"title": {
"type": "string"
},
"use_output": {
"type": "string"
}
},
"required": [
"service",
"title",
"reason",
"method",
"path",
"price",
"input_template",
"use_output",
"handoff_path",
"checkout_path",
"sample_path",
"maximum_atomic_usdc",
"handoff_payment_required",
"executes_automatically",
"authorization_required"
],
"type": "object"
},
"type": "array"
},
"sources": {
"items": {
"type": "string"
},
"type": "array"
},
"warnings": {
"items": {
"type": "string"
},
"type": "array"
}
},
"required": [
"duration_ms",
"cached",
"sources",
"warnings",
"next_actions"
],
"type": "object"
},
"request_id": {
"description": "Unique request identifier",
"type": "string"
},
"service": {
"const": "document.extract",
"type": "string"
},
"version": {
"const": "1",
"type": "string"
}
},
"required": [
"request_id",
"service",
"version",
"data",
"meta"
],
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}Example shape — generated from the schema, not a captured live response
{
"example": {
"data": {
"characters": 0,
"metadata": {},
"text": "string",
"words": 0
},
"meta": {
"cached": true,
"duration_ms": 0,
"next_actions": [
{
"authorization_required": true,
"checkout_path": "string",
"executes_automatically": true,
"handoff_path": "string",
"handoff_payment_required": true,
"input_template": {},
"maximum_atomic_usdc": "string",
"method": "string",
"path": "string",
"price": "string",
"reason": "string",
"sample_path": "string",
"service": "string",
"title": "string",
"use_output": "string"
}
],
"sources": [
"string"
],
"warnings": [
"string"
]
},
"request_id": "string",
"service": "string",
"version": "string"
},
"type": "string"
}Examples
curl -X POST 'https://apiacre.com/v1/document/extract' -H 'Content-Type: application/json' --data '{"content_base64":"SGVsbG8gd29ybGQ=","filename":"report.txt"}'
# -> 402 Payment Required; read PAYMENT-REQUIRED
# retry the identical request with PAYMENT-SIGNATUREconst res = await fetch("https://apiacre.com/v1/document/extract", {
"method": "POST",
"headers": {
"content-type": "application/json"
},
"body": "{\"content_base64\":\"SGVsbG8gd29ybGQ=\",\"filename\":\"report.txt\"}"
});
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
import json
res = httpx.request("POST", "https://apiacre.com/v1/document/extract", json=json.loads("{\"content_base64\":\"SGVsbG8gd29ybGQ=\",\"filename\":\"report.txt\"}"))
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerDetails
- Provider
- apiacre.com
- Endpoint
- https://apiacre.com/v1/document/extract
- Machine-readable
/resources/27734.json