# fastapi.online — DeFi Protocols Lookup

> fastapi.online — DeFi Protocols Lookup is a paid API for AI agents from api.fastapi.online, paid per call via x402, $0.0015/call, status unknown (last checked 2026-10-12).

Returns information about decentralized finance (DeFi) protocols, likely including protocol names, categories, TVL, and related metadata

## Facts

- Endpoint: POST https://api.fastapi.online/defi-protocols?utm_source=zero.xyz
- Price: $0.0015/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fastapi-online-defi-protocols-lookup-596d991b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_AJ-5QyW_TWEdmAtenFEDW

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 fastapi-online-defi-protocols-lookup-596d991b -d '<json body>'
```

Example prompt: Can you fetch me a list of DeFi protocols from the fastapi.online defi-protocols endpoint — I want to see what protocols are available along with their metadata?

## When to prefer this

Choose this endpoint when you need a quick, pay-per-call lookup of DeFi protocol data without signing up for a dedicated DeFi data API like DeFiLlama or CoinGecko. Useful for lightweight agent workflows that occasionally need protocol metadata without a monthly subscription.

## Known failure modes

- Empty or missing body may cause a 400 Bad Request if required fields are not provided
- Invalid bodyType enum value causes schema validation failure
- Payment not fulfilled results in 402 Payment Required
- Rate limiting or server-side errors return 5xx responses
- Endpoint may return empty results if no protocols match applied filters

## How this service works

Chat, embeddings, OCR, speech-to-text, image editing, image understanding (captioning/Q&amp;A), text-to-speech, translation, writing tools, classification tools, developer tools, local utilities, format/checksum validators, encoding &amp; crypto utilities, date/time calculators, geo/coordinate math, math &amp; finance calculators, novelty tools, and business/social writing generators — 179 endpoints in all, across multiple specialized self-hosted models. Pay per call with crypto — no signup — or get an API key.

## Output

Returns a list or structured dataset of DeFi protocols with associated metadata such as protocol names, categories (DEX, lending, yield, etc.), TVL figures, and other relevant on-chain finance data points.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [],
     "properties": {}
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/fastapi-online-defi-protocols-lookup-596d991b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.fastapi.online](https://www.zero.xyz/host/api.fastapi.online/llms.txt)
