# red-web-utils New Pairs

> red-web-utils New Pairs is a paid API for AI agents from red-web-utils.agent-tools-x402.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-11-07).

Returns recently created DEX trading pairs on-chain, including token addresses, creator, and pair metadata, for a configurable time window.

## Facts

- Endpoint: POST https://red-web-utils.agent-tools-x402.workers.dev/api/newpairs?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-07
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/red-web-utils-new-pairs-2b44af66
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_629THqWKGJECbbxJ9k9Bt

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 red-web-utils-new-pairs-2b44af66 -d '<json body>'
```

Example prompt: Can you pull all the new DEX trading pairs that were created in the last 24 hours, including their token addresses, creator wallet, and whether the creator is an EOA or contract?

## When to prefer this

Use this endpoint when you need a real-time feed of newly created DEX trading pairs with on-chain provenance (tx hash, creator address, creator type). Prefer it over manual blockchain scanning or block explorer APIs when you need structured JSON output ready for agent consumption and are willing to pay $0.001 USDC per call via x402. Best suited for token discovery, bot detection, and DeFi monitoring workflows.

## Known failure modes

- Payment not provided or invalid — 402 response requiring x402 USDC payment on Base
- No pairs created in the requested window — empty pairs array with pairCount 0
- Invalid windowHours parameter — may return error or default to 24h
- Rate limiting or worker timeout for very large time windows
- Network or RPC issues causing incomplete on-chain data

## How this service works

Pay-per-call web and onchain utilities for AI agents (MPP + x402, USDC on Base).

## Output

A JSON object containing an array of newly created DEX pairs, each with a timestamp, transaction hash, pair contract address, token0 and token1 addresses, creator wallet address, and creator kind (eoa or contract), plus a total pair count and the queried window in hours.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "hours": {
   "type": "string"
  },
  "limit": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "pairs": [
   {
    "ts": "2026-10-27T00:00:00.000Z",
    "tx": "0x...",
    "pair": "0x...",
    "token0": "0x...",
    "token1": "0x...",
    "creator": "0x...",
    "creatorKind": "eoa"
   }
  ],
  "pairCount": 2,
  "windowHours": 24
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/red-web-utils-new-pairs-2b44af66/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from red-web-utils.agent-tools-x402.workers.dev](https://www.zero.xyz/host/red-web-utils.agent-tools-x402.workers.dev/llms.txt)
