document · documents · data · document · pdf · docx · text · extraction

Document extraction

Extract clean text and metadata from supplied PDF, DOCX, HTML, Markdown, CSV, JSON, YAML, or plain-text documents.

$0.01 USDCBasex402 v2POST

Endpoint

https://apiacre.com/v1/document/extract

Send the JSON body below. An unpaid request returns HTTP 402 with a PAYMENT-REQUIRED header; an x402-compatible buyer signs the requirement and retries with PAYMENT-SIGNATURE.

Input example

{
  "filename": "report.txt",
  "content_base64": "SGVsbG8gd29ybGQ="
}

Response shape

{
  "request_id": "018f1f54-7f38-7ba2-8dc3-5f90272d9f1a",
  "service": "document.extract",
  "version": "1",
  "data": {
    "text": "example",
    "characters": 1,
    "words": 1,
    "metadata": {}
  },
  "meta": {
    "duration_ms": 42,
    "cached": false,
    "sources": [],
    "warnings": []
  }
}

Try the payment challenge

curl -i -X POST 'https://apiacre.com/v1/document/extract' \
  -H 'content-type: application/json' \
  --data '{"filename":"report.txt","content_base64":"SGVsbG8gd29ybGQ="}'