# Scrapling x402 DeFi Protocol Lookup

> Scrapling x402 DeFi Protocol 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 a DeFi protocol by DefiLlama slug or name and returns its TVL, name, and recent performance metrics.

## Facts

- Endpoint: GET https://scraplingdata.xyz/v1/lookup/protocol?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-protocol-lookup-9056b6b5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_T7as8AIi5oL6eSz-oPSYA

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-protocol-lookup-9056b6b5
```

Example prompt: What is the current TVL and 7-day change for Aave? Look it up by its DefiLlama slug.

## When to prefer this

Choose this endpoint when you need quick, structured TVL and performance data for a specific DeFi protocol by name or DefiLlama slug, especially in agent workflows that pay per call via x402 micropayments. Prefer over scraping DefiLlama directly when you need a pay-as-you-go, agent-friendly API with structured JSON output.

## Known failure modes

- Unknown or misspelled protocol slug returns empty or error response
- Protocol not indexed by DefiLlama returns no results
- Missing required 'q' query parameter returns a validation error
- Payment not settled correctly via x402 returns HTTP 402 without data
- Rate limiting or upstream DefiLlama outage causes failure

## How this service works

DeFi protocol TVL and trend: total value locked in USD, 1d/7d TVL % change, category, chains and token market cap (DefiLlama data). Example: q=aave, q=uniswap, q=lido. Refreshed about every 30 min

## Output

Returns a JSON object with the protocol's canonical name, its DefiLlama slug, current TVL in USD, and the 7-day percentage change in TVL. Example: {name: 'Aave', slug: 'aave', tvl_usd: 25000000000, change_7d_pct: 3.1}.

## 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": [
      "q"
     ],
     "properties": {
      "q": {
       "type": "string",
       "description": "DefiLlama slug or protocol name"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "name": "Aave",
  "slug": "aave",
  "tvl_usd": 25000000000,
  "change_7d_pct": 3.1
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/scrapling-x402-defi-protocol-lookup-9056b6b5/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)
