Discover/DefiLlama API
live

DefiLlama APIdefillama.com

Access upcoming token unlock events from DefiLlama. Get unlock dates, USD values, supply percentages, and allocation categories for any tracked DeFi protocol.

Endpoint health
verified 2h ago
get_upcoming_unlocks
get_protocol_unlocks
1/2 passing latest checkself-healing
Endpoints
2
Updated
3h ago

What is the DefiLlama API?

The DefiLlama Token Unlocks API exposes upcoming token release schedules across tracked DeFi protocols via 2 endpoints. get_upcoming_unlocks returns a ranked list of all near-term unlock events with USD values and supply percentages, while get_protocol_unlocks returns per-protocol detail including 5+ response fields such as total locked tokens, token price, market cap, and a full breakdown of upcoming events by allocation category.

Try it
Maximum number of unlock events to return.
api.parse.bot/scraper/be6781dd-5455-4987-8956-077a42c1da35/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Call it over HTTPgrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/be6781dd-5455-4987-8956-077a42c1da35/get_upcoming_unlocks?limit=10' \
  -H 'X-API-Key: $PARSE_API_KEY'
Python SDK · recommended

Typed, relational, agent-ready

A generated client with real types, enums, and the links between objects — the structure a flat JSON response can't carry. Autocompletes in your editor and reads cleanly to coding agents.

  • Fully typed · autocompletes
  • Objects link to objects
  • Typed errors & pagination

Typed Python client. Set up the SDK in your uv project, then pull this API’s typed client:

uv add parse-sdk
uv run parse init
uv run parse add --marketplace defillama-com-api

uv run parse add --marketplace pulls a pinned snapshot of this canonical API — it won’t change underneath you. To customize it, subscribe and swap to your own copy.


"""Walkthrough: DefiLlama Token Unlocks SDK — upcoming unlocks and protocol detail."""
from parse_apis.defillama_com_api import DefiLlamaUnlocks, ProtocolNotFound

client = DefiLlamaUnlocks()

# List upcoming token unlock events, capped to 5 items.
for unlock in client.unlocks.list(limit=5):
    print(f"{unlock.name} ({unlock.symbol}): "
          f"unlocks {unlock.unlock_tokens:.0f} tokens on {unlock.next_unlock_date}, "
          f"value ${unlock.unlock_value_usd or 0:,.2f}, "
          f"category={unlock.category}")

# Drill into a specific protocol's full unlock schedule via the sub-resource.
first = client.unlocks.list(limit=1).first()
if first:
    detail = first.detail.get()
    print(f"\n{detail.name} ({detail.symbol}) — next event: {detail.event_countdown}")
    print(f"  Total unlock value: ${detail.total_unlock_value_usd:,.2f}")
    for evt in detail.upcoming_events[:3]:
        print(f"  {evt.date} | {evt.category} | {evt.token_amount:.2f} tokens ({evt.unlock_type})")

# Direct protocol lookup by slug with typed error handling.
try:
    arb = client.protocol_details.get(protocol_slug="arbitrum")
    print(f"\nArbitrum price: ${arb.token_price_usd}, locked: {arb.total_locked:,.0f}")
except ProtocolNotFound as exc:
    print(f"Protocol not found: {exc.protocol_slug}")

print("\nexercised: unlocks.list / detail.get / protocol_details.get / ProtocolNotFound")
All endpoints · 2 totalmissing one? ·

Retrieves a list of upcoming token unlock events across all tracked protocols, sorted by next unlock date. Each entry includes the token name, symbol, unlock date, unlock value in USD, percentage of circulating and max supply being unlocked, and the allocation category. Results are auto-iterated; pass limit to cap total items returned.

Input
ParamTypeDescription
limitintegerMaximum number of unlock events to return.
Response
{
  "type": "object",
  "fields": {
    "total": "integer",
    "unlocks": "array of unlock event objects"
  },
  "sample": {
    "data": {
      "total": 5,
      "unlocks": [
        {
          "name": "Aptos",
          "symbol": "APT",
          "category": "noncirculating",
          "market_cap": 517521602.72,
          "max_supply": 2100000000,
          "unlock_type": "cliff",
          "protocol_slug": "aptos",
          "unlock_tokens": 3210144.664725,
          "pct_max_supply": 0.1529,
          "token_price_usd": 0.623649,
          "next_unlock_date": "2026-07-12T15:47:15Z",
          "unlock_value_usd": 2002003.51,
          "circulating_supply": 837812177.76,
          "pct_circulating_supply": 0.3832
        }
      ]
    },
    "status": "success"
  }
}

About the DefiLlama API

Endpoints and Response Shape

The get_upcoming_unlocks endpoint returns a paginated list of unlock events sorted by next unlock date. Each object in the unlocks array includes the token name, symbol, unlock date, unlock value in USD, the percentage of circulating supply and max supply being unlocked, and the allocation category (e.g. team, investors, ecosystem). Use the limit parameter to control how many results come back. The total field tells you the full count of tracked events.

Protocol-Level Detail

get_protocol_unlocks accepts a protocol_slug string (e.g. arbitrum, celestia, chainlink) and returns a richer data structure for that specific token. Top-level fields include name, symbol, market_cap, token_price_usd, max_supply, and total_locked. The categories array lists all allocation buckets tracked for that protocol. The upcoming_events array gives granular per-event data: date, description, token_amount, category, and unlock_type.

Coverage and Data Freshness

DefiLlama maintains unlock schedules for a wide range of protocols spanning L1s, L2s, DeFi applications, and infrastructure tokens. The event_countdown field on protocol responses gives a human-readable time-to-next-unlock string, useful for display or alerting. Coverage is limited to protocols that DefiLlama has manually modeled; not every token in the market is tracked.

Data Source

DefiLlama is a DeFi analytics platform that tracks TVL, yields, and token vesting schedules. It does not publish an official documented REST API for its unlock data. This API surfaces that data in a structured, queryable format.

Reliability & maintenanceVerified

The DefiLlama API is a managed, monitored endpoint for defillama.com — not a raw scraper you maintain. Every endpoint is automatically health-checked on a schedule, and when defillama.com changes and a check fails, the API is automatically queued for repair and re-verified. It is built to keep working as the site underneath it changes.

This isn't an official defillama.com API — it's an independent, maintained REST wrapper over public data. Where the source has no official API (or only a limited one), Parse gives you a stable contract over a source that never promised one, and keeps it current. Need a new endpoint or field? You can revise it yourself in plain English and the agent rebuilds it against the live site in minutes — contributing the change back to the shared API is free.

Last verified
2h ago
Latest check
1/2 endpoints passing
Maintenance
Monitored & self-healing
Will this API break when the source site changes?+
It's built not to. Every endpoint is health-checked on a schedule with automated test probes. When the source site changes and a check fails, the API is automatically queued for repair and re-verified — that's the self-healing layer. Each API page shows when its endpoints were last verified. And because marketplace APIs are shared, any fix reaches everyone using it.
Is this an official API from the source site?+
No — Parse APIs are independent, managed REST wrappers over publicly available data. That is the point: where a site has no official API (or only a limited one), Parse gives you a maintained, monitored endpoint for that data and keeps it working as the site changes — so you get a stable contract over a source that never promised one.
Can I fix or extend this API myself if I need a new endpoint or field?+
Yes — and you don't have to wait on us. This API was generated by the Parse agent, which stays attached. Describe the change in plain English ("add an endpoint that returns reviews", "fix the price field") in the revise box on the API page or via the revise_api MCP tool, and the agent rebuilds it against the live site in minutes. Contributing the change back to the public API is free.
What happens if I call an endpoint that has an issue?+
Errors are machine-readable: a bad call returns a clean status with the list of available endpoints and a repair hint, so an agent (or you) can recover or trigger a fix instead of failing silently. Confirmed failures feed the automatic repair queue.
Common use cases
  • Monitor upcoming unlock events above a USD threshold using the unlocks array value field to filter high-impact releases
  • Build a token unlock calendar by ingesting get_upcoming_unlocks and grouping events by date
  • Alert on large supply increases by comparing unlock percentage fields against circulating and max supply
  • Analyze vesting structure for a specific protocol using get_protocol_unlocks allocation categories and upcoming_events
  • Track total locked tokens over time for a protocol using the total_locked and market_cap fields
  • Correlate token price data from token_price_usd with upcoming unlock dates to model potential sell pressure
  • Classify unlock risk by unlock_type and category fields to distinguish investor unlocks from ecosystem distributions
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000100 req/min

One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does DefiLlama have an official developer API for token unlock data?+
DefiLlama provides a public API at https://defillama.com/docs/api covering TVL, protocols, and yields, but it does not include a documented endpoint for the token unlock tracker data. This API fills that gap.
What does get_protocol_unlocks return beyond basic unlock dates?+
It returns the full allocation structure for a protocol: categories lists every vesting bucket (e.g. team, investors, ecosystem), upcoming_events gives each event's token amount, category, and unlock type, and market context fields — market_cap, token_price_usd, max_supply, and total_locked — are included so you can assess the unlock relative to current market conditions.
Can I filter get_upcoming_unlocks by allocation category or minimum USD value?+
The endpoint accepts only a limit parameter to control result count; server-side filtering by category or value is not currently supported. You can filter the returned unlocks array client-side on any field, including allocation category and USD value. You can also fork this API on Parse and revise it to add server-side filter parameters.
Is historical unlock data (past events) available through these endpoints?+
Not currently. Both endpoints focus on upcoming events. get_upcoming_unlocks is sorted by next unlock date and get_protocol_unlocks surfaces upcoming events only. You can fork this API on Parse and revise it to add a historical events endpoint if past unlock records are exposed by the source.
How complete is protocol coverage — are all tokens tracked?+
Coverage is limited to protocols that DefiLlama has modeled with vesting schedules, which skews toward larger L1s, L2s, and established DeFi tokens. Newly launched or less prominent tokens may not appear. The total field on get_upcoming_unlocks reflects only the protocols currently tracked.
Page content last updated . Spec covers 2 endpoints from defillama.com.
Related APIs in Crypto Web3See all →
uniqum.io API
Discover real-time crypto arbitrage opportunities and funding rate differentials across multiple exchanges to identify profitable trading spreads instantly. Monitor top-performing deals from the last 24 hours and track live market performance statistics to optimize your trading strategy.
cryptocraft.com API
Track real-time cryptocurrency prices across 20+ exchanges, analyze historical OHLC data and coin fundamentals, and stay informed with upcoming economic events and market news. Monitor thousands of coins and instruments to make data-driven investment decisions.
airdrops.io API
Discover and track crypto airdrops in real-time by browsing latest opportunities, searching by category, and viewing detailed project information including participation requirements and token details. Monitor live cryptocurrency prices and stay updated on hot and potential airdrops all in one place.
moondev.com API
Access live crypto market data from MoonDev's public endpoints: aggregated Hyperliquid positions near liquidation, fees leaderboard, PnL share stats by address, Polymarket sweep trades, and soon-to-expire Polymarket markets — plus a single aggregate endpoint that pulls all major datastreams at once.
gmgn.ai API
Monitor real-time Solana token trends and analyze detailed token statistics, security data, holder information, and trading activity all in one place. Track top traders and their wallet performance to make informed decisions about emerging cryptocurrencies on the Solana blockchain.
debank.com API
Retrieve cryptocurrency wallet balances and DeFi positions across multiple protocols on DeBank. Access complete portfolio overviews including protocol-level breakdowns, idle token balances, asset exposure buckets, and wallet profile information.
dilutiontracker.com API
Track stock dilution events and analyze how company offerings impact share value with access to SEC filings, financial statements, institutional holdings, and market data. Search companies by ticker to get detailed dilution history, pending offerings, and compare performance metrics all in one place.
theblock.co API
Access real-time cryptocurrency prices, breaking news, and in-depth research articles from The Block's crypto intelligence platform. Search and browse news by category, discover articles from expert authors, and learn about blockchain topics all in one place.