ExchangeRebel Quote Diff API

The Quote Diff API from ExchangeRebel — 7 operation(s) for quote diff.

GitHub OpenAPI

Operations 7

GET /toll/quote-diff Quote-Pair Diff service catalog #
GET /toll/quote-diff/health Quote-Pair Diff service health #
GET /toll/quote-diff/criteria The published quote-pair diff criteria #
GET /toll/quote-diff/corpus The pinned public test corpus identity #
POST /toll/quote-diff/precheck Free headline pre-check of one submitted challenge pair #
POST /toll/quote-diff/diff Full signed quote-pair diff for two captured challenges of one endpoint #
GET /toll/quote-diff/metrics Quote-Pair Diff aggregate counters #

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/exchangerebel-com:exchangerebel-com-quote-diff-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. See our Privacy Policy and Terms.

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

OpenAPI Specification

exchangerebel-com-quote-diff-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: ExchangeRebel — pay-per-call APIs for AI agents (x402 on…
  version: 1.0.0
  contact:
    name: 'ExchangeRebel (operator: Rebel Data)'
    url: https://exchangerebel.com
    email: sound.money.investing@gmail.com
  x-guidance: 'All paid operations use x402 on Solana: call without payment to get a 402 challenge (SOL recipient + USDC token account + fresh memo), pay with the memo attached via the Solana Memo program, then retry with header X-Payment-Tx: <signature> and ?toll_memo=<memo>. Challenges are dual-version: the PAYMENT-REQUIRED header carries the x402 v2 PaymentRequired object and the response body carries the same challenge in x402 v1 form for compatibility. Free operations (security: []) include each service''s /health catalog with full response shapes. Prices in x-payment-info are USD per call unless the summary says otherwise (RPC is per 1,000-request block; Telegram provisioning is per bot-month; transcription is per minute of audio).'
  description: '67 data and utility APIs behind x402 tolls, settled in SOL or USDC on Solana. Call a paid endpoint without payment to receive a 402 x402 challenge (recipient + fresh memo), pay with the memo attached via the Solana Memo program, then retry with the X-Payment-Tx header and toll_memo query parameter. Free catalog/health endpoints are marked without x-payment-info. Full catalogs: GET /toll/discovery and each service''s /health.'
servers:
- url: https://exchangerebel.com
tags:
- name: Quote Diff
paths:
  /toll/quote-diff:
    get:
      tags:
      - Quote Diff
      summary: Quote-Pair Diff service catalog
      responses:
        '200':
          description: 'Success. Returns the service catalog: what a quote-pair diff includes, the price ($0.01 per pair), the published criteria (payability/v1, op diff), the pinned test corpus, and the scope statement (a deterministic diff of two captured 402 challenges for the same endpoint across eight payment-term fields; no composite score; nothing is fetched and payability is not graded).'
      security: []
      operationId: getTollQuoteDiff
      x-operation-id-source: derived
  /toll/quote-diff/health:
    get:
      tags:
      - Quote Diff
      summary: Quote-Pair Diff service health
      responses:
        '200':
          description: Success. Returns service liveness and the report signer address.
      security: []
      operationId: getTollQuoteDiffHealth
      x-operation-id-source: derived
  /toll/quote-diff/criteria:
    get:
      tags:
      - Quote Diff
      summary: The published quote-pair diff criteria
      responses:
        '200':
          description: 'Success. Returns the full published criteria (payability/v1, op diff): the pair rule, the normalisation rule, the eight graded fields and the grade set, and the pinned public test corpus identity; every report is reproducible from them.'
      security: []
      operationId: getTollQuoteDiffCriteria
      x-operation-id-source: derived
  /toll/quote-diff/corpus:
    get:
      tags:
      - Quote Diff
      summary: The pinned public test corpus identity
      responses:
        '200':
          description: 'Success. Returns the public test corpus identity for the quote-pair diff: corpus id quote-diff-corpus/v1 and its SHA-256 pin 98cf171eb6d485a6f37b4fbcf2603e197f2b8d6ef0b19543618a3c348969235c (the SHA-256 of the corpus''s canonical serialization, verifiable with the published harness). The corpus is buyer-runnable before paying.'
      security: []
      operationId: getTollQuoteDiffCorpus
      x-operation-id-source: derived
  /toll/quote-diff/precheck:
    post:
      tags:
      - Quote Diff
      summary: Free headline pre-check of one submitted challenge pair
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                caller:
                  type: string
                  description: Solana base58 wallet of the operator; keys the free allowance (100/day per wallet).
                first:
                  type: object
                  description: 'One captured 402 challenge in the published submission form: {status?, body (object, JSON string, or null), payment_required_header (base64 string or null)}; at least one carrier present. Processed in memory only, never stored.'
                second:
                  type: object
                  description: 'One captured 402 challenge in the published submission form: {status?, body (object, JSON string, or null), payment_required_header (base64 string or null)}; at least one carrier present. Processed in memory only, never stored.'
              required:
              - caller
              - first
              - second
      responses:
        '200':
          description: 'Success. Returns assessability only: whether the pair is a valid pair of 402 artefacts for the same endpoint. No diff is computed and no field value is returned. A not-a-pair submission is refused free. When the caller''s free allowance is exhausted, the response is the /toll/quote-diff/diff payment challenge instead.'
      security: []
      operationId: postTollQuoteDiffPrecheck
      x-operation-id-source: derived
  /toll/quote-diff/diff:
    post:
      tags:
      - Quote Diff
      summary: Full signed quote-pair diff for two captured challenges of one endpoint
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                first:
                  type: object
                  description: 'One captured 402 challenge in the published submission form: {status?, body (object, JSON string, or null), payment_required_header (base64 string or null)}; at least one carrier present. Processed in memory only, never stored.'
                second:
                  type: object
                  description: 'One captured 402 challenge in the published submission form: {status?, body (object, JSON string, or null), payment_required_header (base64 string or null)}; at least one carrier present. Processed in memory only, never stored.'
              required:
              - first
              - second
      responses:
        '200':
          description: 'Success. Returns the full signed report: the eight payment-term fields each graded SAME, CHANGED (old to new), PRESENT-ONLY-IN-FIRST, PRESENT-ONLY-IN-SECOND, or UNPARSEABLE, the pair-identity check, the description-length factors, and an as-of timestamp. Submitted challenges are processed in memory only and are never stored.'
        '402':
          description: 'Payment Required (x402). A per-item fee: $0.01 per pair - each submitted pair of captured 402 challenges is charged at $0.01; the payment includes one quote-pair diff — the two challenges you submit are normalised under the published rules of payability/v1 (header-carried and body-carried forms are normalised before comparison) and compared field by field across the eight published fields (price, asset, network, payTo, token account, timeout, description, and memo presence/form), each graded SAME, CHANGED (old to new), PRESENT-ONLY-IN-FIRST, PRESENT-ONLY-IN-SECOND, or UNPARSEABLE, returned as one signed report with the pair-identity check, the description-length factors, and an as-of timestamp. No composite score is computed. A free pre-check validates the pair (artefact validity and pair-ness) before any payment and returns no diff. Both submitted challenges are processed in memory only and are never stored; the payments ledger records only the payer, the time, the price, the grade census counts, and the verdict line. The response body carries the payment instructions in x402 v1 form: payTo (the operator''s Solana wallet), the amount (10000 USDC units = $0.01 per pair) and a fresh memo. Pay in USDC on Solana with the memo attached via the Solana Memo program, then resubmit the same request with the payment transaction in the X-Payment-Tx header and ?toll_memo=<memo>, re-sending the request body. The PAYMENT-REQUIRED response header carries the same object in x402 v2 form.'
      x-payment-info:
        protocols:
        - x402
        price:
          mode: fixed
          currency: USD
          amount: '0.01'
      security:
      - x402Payment: []
      operationId: postTollQuoteDiffDiff
      x-operation-id-source: derived
  /toll/quote-diff/metrics:
    get:
      tags:
      - Quote Diff
      summary: Quote-Pair Diff aggregate counters
      responses:
        '200':
          description: Success. Returns aggregate counters (paid diffs, distinct payers, free pre-checks today). Aggregate only - no payer identities, no submitted challenge content.
      security: []
      operationId: getTollQuoteDiffMetrics
      x-operation-id-source: derived
components:
  securitySchemes:
    x402Payment:
      type: apiKey
      in: header
      name: X-Payment-Tx
      description: 'x402 toll payment proof: the Solana transaction signature of a payment carrying the memo from the 402 challenge; send together with ?toll_memo=<memo>. Payment itself is made on-chain in SOL or USDC to the recipient named in the challenge.'