PeumeAPI

Finance & crypto

Blockchain Structured Query

Query on-chain tables with structured JSON filters — no SQL text.

$0.036 per call

Call it

curl https://api.peume.com/v1/call/blockchain-structured-query \
  -H "Authorization: Bearer $PEUME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "source": "your source"
  }
}'

Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: blockchain-structured-query.

Parameters

sourceRequiredstring

Fully-qualified table name. Discover tables with /onchain/schema. Example: agent.ethereum_dex_trades.

fieldsarray

Columns to return. Omit to return all columns. Example: ["block_time", "amount_usd"].

filtersarray

WHERE conditions, ANDed together. ALWAYS include a block_date bound on large tables — without it the query times out. Example: [{"field": "block_date", "op": "gte", "value": "2026-07-01"}].

sortarray

ORDER BY clauses. Example: [{"field": "amount_usd", "order": "desc"}].

limitinteger

Max rows to return. Example: 20. Defaults to 20 (server-side), capped at 10000.

offsetinteger

Rows to skip for pagination. Example: 0. Defaults to 0.

Start free · $1 of calls included

Every API your product needs. One key.

7,267 endpoints, one bill, and you only pay for calls that work.