x402 Agent Services Dex Quote API

The Dex Quote API from x402 Agent Services — 1 operation(s) for dex quote.

Operations 1

POST /dex-quote On-chain long-tail DEX quote #

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/call402-com:call402-com-dex-quote-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

call402-com-dex-quote-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: x402 Agent Services Dex Quote API
  version: 1.0.0
  contact:
    name: x402 Agent Services
    url: https://call402.com/
  x-guidance: 'All /api/* endpoints are pay-per-call via x402 v2 (exact, Base mainnet, USDC). Call any endpoint without payment to receive the live 402 challenge with exact price, network, asset and payTo; the runtime 402 response is authoritative over this document. Pay with any x402 client (e.g. @x402/fetch) and retry with the PAYMENT-SIGNATURE header. Free endpoints: /, /pricing, /stats, /health, /openapi.json, /llms.txt, /.well-known/x402.json, /.well-known/agent.json, and POST /mcp for initialize/tools/list.'
  description: USDC pay-per-call APIs for AI agents via the x402 protocol (v2, exact, Base mainnet). Send a request, receive HTTP 402 with payment requirements, pay with @x402/fetch or any x402 client, retry with the PAYMENT-SIGNATURE header.
servers:
- url: https://call402.com
tags:
- name: Dex Quote
paths:
  /dex-quote:
    post:
      summary: On-chain long-tail DEX quote
      description: Self-computed long-tail EVM token quotes from public on-chain DEX pools on Base, BNB Smart Chain and Ethereum. Discovers Uniswap V2/V3 and PancakeSwap pools with eth_call; majors are excluded. V3 depth is estimated. Informational only.
      operationId: On_chain_long_tail_DEX_quote
      x-payment-info:
        price:
          mode: fixed
          currency: USD
          amount: '0.005'
        protocols:
        - x402: {}
        network: eip155:8453
        asset: '0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913'
        payTo: '0xAc6F1C3C3b17040730F16dC24Ee9993e9565BE4A'
        scheme: exact
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                chain:
                  type: string
                  enum:
                  - base
                  - bsc
                  - ethereum
                token:
                  type: string
              required:
              - chain
              - token
            example:
              chain: base
              token: '0x4ed4E862860beD51a9570b96d89aF5E1B0Efefed'
      responses:
        '200':
          description: Success (after x402 payment settles)
          content:
            application/json:
              schema:
                type: object
                description: Tool result payload; per-endpoint fields are documented in the docs page and llms.txt
              example:
                chain: base
                token: '0x4ed4E862860beD51a9570b96d89aF5E1B0Efefed'
                symbol: DEGEN
                price_usd: 0.0042
                pool: Uniswap V3
                note: Self-computed from public pool state; V3 depth estimated. Informational only.
        '400':
          description: Invalid input
        '402':
          description: Payment Required — x402 v2 challenge in PAYMENT-REQUIRED header
          headers:
            PAYMENT-REQUIRED:
              schema:
                type: string
              description: Base64-encoded PaymentRequired JSON
      tags:
      - Dex Quote
x-x402:
  version: 2
  network: eip155:8453
  asset: '0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913'
  payTo: '0xAc6F1C3C3b17040730F16dC24Ee9993e9565BE4A'
  facilitator: https://api.cdp.coinbase.com/platform/v2/x402