# Scrapling x402 DeFi Pool Lookup

> Scrapling x402 DeFi Pool Lookup is a paid API for AI agents from scraplingdata.xyz, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-22).

Looks up DeFi liquidity pool data (TVL, APY, project) by pool ID via a pay-per-call HTTP 402 endpoint

## Facts

- Endpoint: GET https://scraplingdata.xyz/v1/lookup/pool?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-22
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/scrapling-x402-defi-pool-lookup-2b3a4217
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_xCl3cPHdiXZhUBudihHTg

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 scrapling-x402-defi-pool-lookup-2b3a4217
```

Example prompt: What's the current APY and TVL for the Aave V3 liquidity pool with ID aa70268e? Pull the pool stats for me.

## When to prefer this

Use this endpoint when you need on-demand DeFi pool metrics (TVL and APY) for a specific pool by ID, especially within an x402 pay-per-call agent workflow where micropayment-gated data access is acceptable.

## Known failure modes

- Missing or invalid pool_id returns an error
- Unknown pool_id returns empty or 404 response
- Payment failure (HTTP 402) if USDC payment is not settled correctly
- Rate limiting or access denial if payment protocol is not followed

## How this service works

Details for one DeFi yield pool by DefiLlama pool id: APY split into base/reward, 30-day mean APY, TVL, impermanent-loss risk and 0-100 risk score. Example: pool_id=aa70268e-4b52-42bf-a116-608b370f9501. Refreshed about every 30 min

## Output

Returns a JSON object with pool_id, project name (e.g. 'aave-v3'), tvl_usd (total value locked in USD), and apy_pct (annual percentage yield as a float).

## 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"
    },
    "headers": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    },
    "queryParams": {
     "type": "object",
     "required": [
      "pool_id"
     ],
     "properties": {
      "pool_id": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "apy_pct": 4.2,
  "pool_id": "aa70268e-...",
  "project": "aave-v3",
  "tvl_usd": 1200000000
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/scrapling-x402-defi-pool-lookup-2b3a4217/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from scraplingdata.xyz](https://www.zero.xyz/host/scraplingdata.xyz/llms.txt)
