Skip to content
DataLayer
Developers

DataLayer REST API

Programmatic access to decoded Pump.fun, PumpSwap and Raydium LaunchLab activity: tokens, trades, candles, wallets, developers, risk signals and read-only SQL over the full warehouse. JSON over HTTPS, the same data that powers this website.

Base URL
https://datalayer.fun/api/v1
Authentication header
x-api-key: dl_…
Endpoints
loading…

Authentication

  • Create a key in Settings after signing in with your wallet. Keys start with dl_, are shown once and stored hashed.
  • Send it as x-api-key: dl_… or Authorization: Bearer dl_….
  • A key inherits the tier of the wallet that created it. Creating keys requires a tier with API access.
  • Public read endpoints also work without a key at anonymous limits, e.g. /status and /config.

Rate limits by tier

Response & error format

Every response is a JSON envelope. Errors carry a machine-readable kind and a human message; details are never leaked.

json
// success
{ "ok": true, "data": { ... }, "meta": { ... } }

// error
{ "ok": false, "kind": "quota", "error": "sql limit reached (500 per day) for tier 'holder'." }

Query results: {columns, types, rows, row_count, truncated, ms, sql, watermark}. watermark is the latest data timestamp included.

HTTP status codes

From GET /errors

Quick start

curl
# Latest tokens
curl -s "https://datalayer.fun/api/v1/tokens?limit=5" \
  -H "x-api-key: $DATALAYER_API_KEY"

# Read-only SQL over the warehouse
curl -s -X POST "https://datalayer.fun/api/v1/query" \
  -H "x-api-key: $DATALAYER_API_KEY" \
  -H "content-type: application/json" \
  -d '{"sql": "SELECT symbol, mint, launch_ts FROM tokens ORDER BY launch_ts DESC LIMIT 10"}'

The SQL dialect is DuckDB; browse tables and columns in the SQL Explorer or via GET /schema.

Endpoints

Generated from the live OpenAPI specification. Paths are relative to the base URL.

Full request/response schemas and a “try it” console: interactive docs · raw spec: openapi.json

Using an AI agent? Try the MCP server

DataLayer ships a Model Context Protocol server that exposes the same data as tools for MCP-capable assistants. It authenticates with your API key and is subject to the same tier limits.

MCP setup guide