Api Endpoint

x402.agentindex.world

Extract a public PDF (by HTTPS URL or base64) into clean Markdown - headings and tables preserved via layout-aware parsing, plus title/author/page count/date metadata and a real token count. Text content itself is never generated or altered, only its structure is inferred. Try GET /pdf/sample. Part of the AgentIndex content kit (pdf, web-read, extract, summarize, detect-language) - see GET /capabilities.

Open interactive test console

Offering

Provider
x402.agentindex.world
Method
GET
Offering type
Api Endpoint
Transport type
http
Category
Data
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://x402.agentindex.world/pdf
MIME type
application/json
First seen
2026-10-16T02:29:51.670Z
Last seen
Tags
pdf, documents, markdown

Payment pricing

x402 payment terms are the authoritative price for calling this endpoint.

Payment option 1
0.002 USDC
Atomic price: 2000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "2000",
    "payTo": "0xb3F32bdfe8D07825BC0D7387295aB1D7559BA69d"
  }
]

Observed health

Status
Healthy
Latest latency
306 ms
Average latency
636 ms
HTTP status
402
Last checked
Reachability
100% over 15 checks

Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.

Input schema

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "http"
    },
    "method": {
      "type": "string",
      "enum": [
        "POST",
        "PUT",
        "PATCH"
      ]
    },
    "bodyType": {
      "type": "string",
      "enum": [
        "json",
        "form-data",
        "text"
      ]
    },
    "body": {
      "properties": {
        "url": {
          "type": "string",
          "description": "Public HTTPS URL of a PDF file. Provide this or pdf_base64, not both."
        },
        "pdf_base64": {
          "type": "string",
          "description": "Base64-encoded PDF file content. Provide this or url, not both."
        }
      },
      "required": []
    }
  },
  "required": [
    "type",
    "method",
    "bodyType",
    "body"
  ],
  "additionalProperties": false
}

Output schema

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string"
    },
    "example": {
      "type": "object",
      "properties": {
        "markdown": {
          "type": "string",
          "description": "Extracted Markdown - headings and tables preserved via layout-aware parsing."
        },
        "metadata": {
          "type": "object",
          "properties": {
            "title": {
              "description": "Document title from PDF metadata, when present."
            },
            "author": {
              "description": "Document author from PDF metadata, when present."
            },
            "pages": {
              "type": "integer",
              "description": "Number of pages in the PDF."
            },
            "date": {
              "description": "Document creation date from PDF metadata, when present."
            }
          }
        },
        "token_count": {
          "type": "integer",
          "description": "Real BPE token count (cl100k_base) of the extracted markdown."
        },
        "x402_receipt": {
          "type": "object",
          "description": "Billing and provenance receipt for this call."
        }
      },
      "required": [
        "markdown",
        "metadata",
        "token_count"
      ]
    }
  },
  "required": [
    "type"
  ]
}