$0.01
per call · USD Coin on Base
Extract clean text and metadata from supplied PDF, DOCX, HTML, Markdown, CSV, JSON, YAML, or plain-text documents.
Endpoint
POST https://apiacre.com/v1/document/extract2
Calls / 30d
1
Unique payers / 30d
Aug 31
Last called
exact
Payment scheme
Call this service
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";
const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);
const res = await fetchWithPay("https://apiacre.com/v1/document/extract", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
"content_base64": "SGVsbG8gd29ybGQ=",
"filename": "report.txt"
}),
});
const data = await res.json();curl -X POST \
"https://apiacre.com/v1/document/extract" \
-H "Content-Type: application/json" \
-d '{"content_base64":"SGVsbG8gd29ybGQ=","filename":"report.txt"}' \
-H "X-PAYMENT: <signed x402 payment>"Example response
{
"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"
}Payment details
0xa0bfa4f07281c9b248dc3aed2217836bca24869bUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913Is this your API?
Pin it to the top of Media & Generation and the homepage with a featured placement.
More from API Acre & similar services
API Acre · Crypto Base Network Status
apiacre.com
Read the latest Base mainnet block and a bounded EIP-1559 fee history in one RPC batch, including gas utilization and priority-fee percentile samples.
API Acre · WEB Metadata
apiacre.com
Extract webpage metadata from one public URL: page title, meta description, canonical URL, headings, hreflang, icons, feeds, Open Graph, Twitter Cards, and JSON-LD Schema.org types, with redirect and response provenance plus privacy-safe, publisher-asserted Organization facts with field evidence.
API Acre · Data Schema
apiacre.com
Create and generate a nested JSON Schema Draft 2020-12 contract by inferring field types and required fields from representative JSON, CSV, TSV, JSON Lines, or YAML records, with equivalent CSV/TSV numeric and null inference, input evidence, and non-enforcing observed bounds.