# X Data Gateway — Token Trading Pairs Lookup

> X Data Gateway — Token Trading Pairs Lookup is a paid API for AI agents from x-data-gateway.annushka1190.workers.dev, paid per call via x402, $0.004/call, status unknown (last checked 2026-09-14).

Fetches all trading pairs for a given Base token contract address, including DEX pair data and liquidity info

## Facts

- Endpoint: GET https://x-data-gateway.annushka1190.workers.dev/v1/token/pairs
- Price: $0.004/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x-data-gateway-token-trading-pairs-lookup-bf469e36
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_FM2OJ8yswdeqbdIfWrdyj

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability x-data-gateway-token-trading-pairs-lookup-bf469e36
```

Example prompt: Look up all the trading pairs for the Base token at contract address 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 — I want to see which DEXes it's listed on and what the liquidity looks like.

## When to prefer this

Use this endpoint when you need comprehensive DEX pair coverage for a specific Base token contract — it aggregates all trading venues and liquidity pools in one call. Prefer it over spot-price endpoints when you need the full market structure (multiple pairs, multiple DEXes) rather than a single price quote. Ideal for DeFi research, liquidity analysis, and pre-trade market structure checks on Base.

## Known failure modes

- Invalid or malformed contract address returns an error or empty result
- Token not listed on any tracked DEX returns empty pairs array
- Network timeout from upstream DexScreener data source
- Missing required 'address' query parameter returns 400-level error
- Non-Base EVM address may return no results or cross-chain confusion

## How this service works

Top liquidity pairs for a token address from DexScreener. e.g. GET /v1/token/pairs?address=0x...

## Output

Returns a JSON object containing all known trading pairs for the specified token contract on Base, including DEX names, pair addresses, liquidity figures, price data, and volume metrics sourced from DexScreener.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "address"
     ],
     "properties": {
      "address": {
       "type": "string",
       "description": "Token contract 0x..."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {}
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x-data-gateway-token-trading-pairs-lookup-bf469e36/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x-data-gateway.annushka1190.workers.dev](https://www.zero.xyz/host/x-data-gateway.annushka1190.workers.dev/llms.txt)
