Mart402 Parse API

The Parse API from Mart402 — 2 operation(s) for parse.

GitHub OpenAPI

Operations 3

POST /v1/parse/quote Parse Quote #
POST /v1/parse Parse Endpoint #
GET /v1/parse Payment terms for discovery (use POST with a JSON body to call) #

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/mart402-com:mart402-com-parse-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

mart402-com-parse-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Mart402 Parse API
  description: 'Pay-per-call APIs for AI agents with verifiable results, in three lines: documents & web (extract, PDF parsing with hallucination-guarded OCR, invoice verification, company enrichment), Japan statutory calculations (deterministic, primary-source cited) and calibrated vision. Payment via x402 (USDC on Base) - no account, no API key. Docs: /agents.md'
  version: 0.1.0
tags:
- name: Parse
paths:
  /v1/parse/quote:
    post:
      summary: Parse Quote
      description: 'Free quote: fetches the PDF and returns page count, route, and the final price.'
      operationId: parse_quote_v1_parse_quote_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/QuoteReq'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json; charset=utf-8:
              schema: {}
        '422':
          description: Input error (action fix_input). Not charged.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '429':
          description: Free quote limit (20/hour per IP; rate_limited, action slow_down).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
      tags:
      - Parse
  /v1/parse:
    post:
      summary: Parse Endpoint
      operationId: parse_endpoint_v1_parse_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ParseReq'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json; charset=utf-8:
              schema: {}
        '422':
          description: Input error (action fix_input). Not charged.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '402':
          description: Payment required (x402). No charge until a valid payment is attached; work failures after payment are not settled.
          headers:
            PAYMENT-REQUIRED:
              schema:
                type: string
              description: base64 JSON of the challenge
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaymentRequired'
        '409':
          description: The same payment is already being processed (payment_in_flight). Retry shortly; you are not charged twice.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '503':
          description: Temporarily unavailable (Retry-After header). Not charged.
          headers:
            Retry-After:
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '429':
          description: Unpaid one-step {url} shares the free quote limit (20/hour per IP; rate_limited). Paid calls are not limited.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
      tags:
      - Parse
    get:
      summary: Payment terms for discovery (use POST with a JSON body to call)
      operationId: discover_v1_parse
      responses:
        '402':
          description: x402 payment terms (same as an unpaid POST).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaymentRequired'
        '405':
          description: 'Sent with a payment header: use_post_with_json_body.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
      tags:
      - Parse
components:
  schemas:
    PaymentRequired:
      type: object
      description: x402 payment challenge. The same JSON is base64-encoded in the PAYMENT-REQUIRED header. Pay with the PAYMENT-SIGNATURE header (x402 v2) or X-PAYMENT (v1) and retry the same request.
      required:
      - x402Version
      - accepts
      properties:
        x402Version:
          type: integer
        error:
          type: string
        resource:
          type: object
        accepts:
          type: array
          items:
            type: object
            properties:
              scheme:
                type: string
              network:
                type: string
              amount:
                type: string
                description: Atomic units of the asset (USDC has 6 decimals).
              maxAmountRequired:
                type: string
              asset:
                type: string
              payTo:
                type: string
              maxTimeoutSeconds:
                type: integer
              description:
                type: string
              extra:
                type: object
              outputSchema:
                type: object
        docs:
          type: object
        extensions:
          type: object
      additionalProperties: true
    ParseReq:
      properties:
        quote_id:
          type: string
          title: Quote Id
          default: ''
        url:
          type: string
          title: Url
          default: ''
      type: object
      title: ParseReq
      x-required-one-of:
      - url
      - quote_id
      anyOf:
      - required:
        - url
      - required:
        - quote_id
    ErrorEnvelope:
      type: object
      required:
      - ok
      - code
      - retryable
      - action
      - billed_usd
      properties:
        ok:
          type: boolean
          const: false
        code:
          type: string
          description: Machine-readable error code; see GET /catalog errors and error_http.
        retryable:
          type: boolean
        action:
          type: string
          enum:
          - fix_input
          - retry
          - requote
          - retry_payment
          - wait
          - slow_down
          - contact
        billed_usd:
          type: number
          const: 0
          description: 'Always 0: errors are never charged.'
        detail:
          description: 'Human-readable string, or an object with field-level info (jp line: {missing:[...]} or {field, got, ...}).'
          oneOf:
          - type: string
          - type: object
        hint:
          type: string
          description: Legacy alias of detail on some endpoints.
        error:
          type: object
          description: 'jp line only: nested copy {code, retryable, action}.'
      additionalProperties: true
    QuoteReq:
      properties:
        url:
          type: string
          title: Url
      type: object
      required:
      - url
      title: QuoteReq