Mart402 Samples API

The Samples API from Mart402 — 9 operation(s) for samples.

GitHub OpenAPI

Operations 9

GET /samples Samples Index #
GET /samples/{product} Sample Response #
GET /samples/assets/article.html Sample Asset Article #
GET /samples/assets/company-jp.html Sample Asset Company Jp #
GET /samples/assets/meal.jpg Sample Asset Meal #
GET /samples/assets/portrait-1.jpg Sample Asset Portrait 1 #
GET /samples/assets/portrait-2.jpg Sample Asset Portrait 2 #
GET /samples/assets/receipt.png Sample Asset Receipt #
GET /samples/assets/doc.pdf Sample Asset Pdf #

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-samples-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-samples-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Mart402 Samples 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: Samples
paths:
  /samples:
    get:
      summary: Samples Index
      description: List free recorded sample responses (see /samples/{product}).
      operationId: samples_index_samples_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json; charset=utf-8:
              schema: {}
      tags:
      - Samples
  /samples/{product}:
    get:
      summary: Sample Response
      description: Free recorded sample response for one product (real production runs).
      operationId: sample_response_samples__product__get
      parameters:
      - name: product
        in: path
        required: true
        schema:
          type: string
          title: Product
      responses:
        '200':
          description: Successful Response
          content:
            application/json; charset=utf-8:
              schema: {}
        '404':
          description: Unknown id (no_sample_for_product). Not charged.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
      tags:
      - Samples
  /samples/assets/article.html:
    get:
      summary: Sample Asset Article
      description: 'Free sample article: the declared example input of extract/structured.'
      operationId: sample_asset_article_samples_assets_article_html_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json; charset=utf-8:
              schema: {}
      tags:
      - Samples
  /samples/assets/company-jp.html:
    get:
      summary: Sample Asset Company Jp
      description: 'Free sample (fictional) Japanese company profile: jp-company example.'
      operationId: sample_asset_company_jp_samples_assets_company_jp_html_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json; charset=utf-8:
              schema: {}
      tags:
      - Samples
  /samples/assets/meal.jpg:
    get:
      summary: Sample Asset Meal
      description: 'Free sample meal photo (fish tacos + rice): meal-vision example.'
      operationId: sample_asset_meal_samples_assets_meal_jpg_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json; charset=utf-8:
              schema: {}
      tags:
      - Samples
  /samples/assets/portrait-1.jpg:
    get:
      summary: Sample Asset Portrait 1
      description: 'Free sample portrait (AI-generated person, CC0): portrait-analysis example.'
      operationId: sample_asset_portrait_1_samples_assets_portrait_1_jpg_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json; charset=utf-8:
              schema: {}
      tags:
      - Samples
  /samples/assets/portrait-2.jpg:
    get:
      summary: Sample Asset Portrait 2
      description: 'Free sample portrait (AI-generated person, CC0): style-profile / style-report example.'
      operationId: sample_asset_portrait_2_samples_assets_portrait_2_jpg_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json; charset=utf-8:
              schema: {}
      tags:
      - Samples
  /samples/assets/receipt.png:
    get:
      summary: Sample Asset Receipt
      description: 'Free sample (fictional) Japanese receipt image: ocr example.'
      operationId: sample_asset_receipt_samples_assets_receipt_png_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json; charset=utf-8:
              schema: {}
      tags:
      - Samples
  /samples/assets/doc.pdf:
    get:
      summary: Sample Asset Pdf
      description: 'Free sample PDF (1-page invoice-style). The declared example inputs of

        the PDF products point here, so every published sample body is runnable

        verbatim.'
      operationId: sample_asset_pdf_samples_assets_doc_pdf_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json; charset=utf-8:
              schema: {}
      tags:
      - Samples
components:
  schemas:
    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