x402tools Doc Parse API

The DocParse API from x402tools — 1 operation(s) for docparse.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 1

POST /parse Parse HTML/PDF to Structured JSON #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/x402tools-xyz:x402tools-xyz-docparse-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

x402tools-xyz-docparse-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: x402tools Doc Parse API
  description: Pay-per-call utility APIs for AI agents. No API keys, no subscriptions. USDC micropayments on Base via x402 protocol.
  version: 1.1.0
  contact:
    name: x402tools
    url: https://x402tools.xyz
    email: admin@x402tools.xyz
  x-payment-protocol: x402
  x-payment-network: eip155:8453 (Base)
  x-payment-token: USDC
servers:
- url: https://qr.x402tools.xyz
  description: QR Code Generator
- url: https://snap.x402tools.xyz
  description: Screenshot Capture
- url: https://dns.x402tools.xyz
  description: DNS Lookup
- url: https://docparse.x402tools.xyz
  description: DocParse (HTML/PDF → JSON)
- url: https://guard.x402tools.xyz
  description: Guardex — Prompt Injection Screening
- url: https://mailcheck.x402tools.xyz
  description: Mailcheck — Email Validation
- url: https://rendex.x402tools.xyz
  description: Rendex — HTML/URL → PDF
- url: https://visionex.x402tools.xyz
  description: Visionex — Image OCR
tags:
- name: DocParse
paths:
  /parse:
    servers:
    - url: https://docparse.x402tools.xyz
      description: DocParse (HTML/PDF → JSON)
    post:
      operationId: parseDocument
      summary: Parse HTML/PDF to Structured JSON
      description: Send any public URL (HTML page or PDF) and get back clean, structured JSON. Auto-detects document type (article, invoice, research paper, generic). Costs $0.01 USDC per call.
      x-price: $0.01
      x-server: https://docparse.x402tools.xyz
      tags:
      - DocParse
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DocparseRequest'
            example:
              url: https://arxiv.org/abs/2301.00001
              options:
                output_schema: research
      responses:
        '200':
          description: Document parsed successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DocparseResponse'
        '400':
          description: Invalid request (missing URL, unsupported type)
        '402':
          description: Payment Required
        '422':
          description: Extraction failed — could not parse content
        '504':
          description: URL fetch timeout
components:
  schemas:
    DocparseResponse:
      type: object
      properties:
        doc_type:
          type: string
          enum:
          - article
          - invoice
          - research
          - generic
        title:
          type: string
        metadata:
          type: object
          properties:
            source_url:
              type: string
            detected_content_type:
              type: string
              enum:
              - html
              - pdf
            author:
              type: string
              nullable: true
            published_date:
              type: string
              nullable: true
            language:
              type: string
            page_count:
              type: integer
              nullable: true
            word_count:
              type: integer
            truncated:
              type: boolean
            parse_duration_ms:
              type: integer
        content:
          type: object
          description: 'Structured content — shape varies by doc_type (article: summary/sections/key_points/topics, invoice: vendor/client/line_items/total, research: abstract/authors/findings, generic: sections/key_entities)'
    DocparseRequest:
      type: object
      required:
      - url
      properties:
        url:
          type: string
          format: uri
          description: Public URL of HTML page or PDF to parse
        options:
          type: object
          properties:
            output_schema:
              type: string
              enum:
              - auto
              - article
              - invoice
              - research
              - generic
              default: auto
              description: Force a specific output schema or let auto-detect choose
            include_raw_text:
              type: boolean
              default: false
              description: Include raw extracted text in response
            max_sections:
              type: integer
              minimum: 1
              maximum: 100
              default: 20
              description: Maximum sections to extract
            language:
              type: string
              description: Preferred output language (ISO 639-1)