DripMetrics AI On Chain API
The On-chain API from DripMetrics AI — 4 operation(s) for on-chain.
The On-chain API from DripMetrics AI — 4 operation(s) for on-chain.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/dripmetrics-ai:dripmetrics-ai-on-chain-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: DripMetrics On Chain API
version: 1.0.0
description: DripMetricsAI provides on-demand crypto market microstructure, risk, prediction-market, Hyperliquid, and on-chain metrics. Paid endpoints use x402 (USDC on Base or USDG on Robinhood Chain) and return structured JSON without subscriptions or API keys. Also available over MCP (Streamable HTTP) at https://mcp.dripmetrics.ai/mcp with free discovery tools.
x-mcp: https://mcp.dripmetrics.ai/mcp
x-guidance: 'Use /openapi.json for discovery. Routes with x-payment-info are x402-paid resources: first call the endpoint without PAYMENT-SIGNATURE to receive a 402 challenge, then retry with a valid x402 v2 PAYMENT-SIGNATURE. Routes with security: [] are public discovery or health routes and should not be probed for payment.'
contact:
email: drip@dripmetrics.ai
url: https://dripmetrics.ai/
servers:
- url: https://api.dripmetrics.ai
tags:
- name: On-chain
paths:
/metrics/onchain/stablecoin-flow:
get:
operationId: getOnchainStablecoinFlow
summary: Compute on-chain stablecoin-flow
description: Computes a DefiLlama-derived on-chain metric. Invalid or unsupported requests fail before payment.
tags:
- On-chain
parameters:
- name: chain
in: query
required: true
description: DefiLlama chain slug.
schema:
type: string
example: base
- name: window
in: query
required: true
description: Lookback window.
schema:
type: string
enum:
- 1d
- 7d
- 30d
- 90d
security:
- x402: []
x-payment-info:
price:
fixed:
mode: fixed
currency: USD
amount: '0.05'
protocols:
- x402: {}
x-dripmetrics-paid: true
x-x402:
priceUsd: '0.05'
asset: USDC
network: eip155:8453
scheme: exact
paymentOptions:
- network: eip155:8453
asset: USDC
scheme: exact
- network: eip155:4663
asset: USDG
scheme: exact
responses:
'200':
description: Successful paid response.
content:
application/json:
schema:
$ref: '#/components/schemas/OnchainMetricResult'
'400':
$ref: '#/components/responses/BadRequest'
'402':
$ref: '#/components/responses/PaymentRequired'
'422':
$ref: '#/components/responses/MetricNotComputable'
'503':
$ref: '#/components/responses/UpstreamUnavailable'
/metrics/onchain/tvl-momentum:
get:
operationId: getOnchainTvlMomentum
summary: Compute on-chain tvl-momentum
description: Computes a DefiLlama-derived on-chain metric. Invalid or unsupported requests fail before payment.
tags:
- On-chain
parameters:
- name: chain
in: query
required: false
description: DefiLlama chain slug. Provide exactly one of chain or protocol.
schema:
type: string
example: base
- name: protocol
in: query
required: false
description: DefiLlama protocol slug. Provide exactly one of chain or protocol.
schema:
type: string
example: uniswap
- name: window
in: query
required: true
description: Lookback window.
schema:
type: string
enum:
- 1d
- 7d
- 30d
- 90d
security:
- x402: []
x-payment-info:
price:
fixed:
mode: fixed
currency: USD
amount: '0.05'
protocols:
- x402: {}
x-dripmetrics-paid: true
x-x402:
priceUsd: '0.05'
asset: USDC
network: eip155:8453
scheme: exact
paymentOptions:
- network: eip155:8453
asset: USDC
scheme: exact
- network: eip155:4663
asset: USDG
scheme: exact
responses:
'200':
description: Successful paid response.
content:
application/json:
schema:
$ref: '#/components/schemas/OnchainMetricResult'
'400':
$ref: '#/components/responses/BadRequest'
'402':
$ref: '#/components/responses/PaymentRequired'
'422':
$ref: '#/components/responses/MetricNotComputable'
'503':
$ref: '#/components/responses/UpstreamUnavailable'
/metrics/onchain/protocol-fee-yield:
get:
operationId: getOnchainProtocolFeeYield
summary: Compute on-chain protocol-fee-yield
description: Computes a DefiLlama-derived on-chain metric. Invalid or unsupported requests fail before payment.
tags:
- On-chain
parameters:
- name: protocol
in: query
required: true
description: DefiLlama protocol slug.
schema:
type: string
example: uniswap
- name: window
in: query
required: true
description: Lookback window.
schema:
type: string
enum:
- 7d
- 30d
- 90d
security:
- x402: []
x-payment-info:
price:
fixed:
mode: fixed
currency: USD
amount: '0.05'
protocols:
- x402: {}
x-dripmetrics-paid: true
x-x402:
priceUsd: '0.05'
asset: USDC
network: eip155:8453
scheme: exact
paymentOptions:
- network: eip155:8453
asset: USDC
scheme: exact
- network: eip155:4663
asset: USDG
scheme: exact
responses:
'200':
description: Successful paid response.
content:
application/json:
schema:
$ref: '#/components/schemas/OnchainMetricResult'
'400':
$ref: '#/components/responses/BadRequest'
'402':
$ref: '#/components/responses/PaymentRequired'
'422':
$ref: '#/components/responses/MetricNotComputable'
'503':
$ref: '#/components/responses/UpstreamUnavailable'
/metrics/onchain/dex-efficiency:
get:
operationId: getOnchainDexEfficiency
summary: Compute on-chain dex-efficiency
description: Computes a DefiLlama-derived on-chain metric. Invalid or unsupported requests fail before payment.
tags:
- On-chain
parameters:
- name: chain
in: query
required: false
description: DefiLlama chain slug. Provide exactly one of chain or protocol.
schema:
type: string
example: base
- name: protocol
in: query
required: false
description: DefiLlama protocol slug. Provide exactly one of chain or protocol.
schema:
type: string
example: uniswap
- name: window
in: query
required: true
description: Lookback window.
schema:
type: string
enum:
- 7d
- 30d
- 90d
security:
- x402: []
x-payment-info:
price:
fixed:
mode: fixed
currency: USD
amount: '0.05'
protocols:
- x402: {}
x-dripmetrics-paid: true
x-x402:
priceUsd: '0.05'
asset: USDC
network: eip155:8453
scheme: exact
paymentOptions:
- network: eip155:8453
asset: USDC
scheme: exact
- network: eip155:4663
asset: USDG
scheme: exact
responses:
'200':
description: Successful paid response.
content:
application/json:
schema:
$ref: '#/components/schemas/OnchainMetricResult'
'400':
$ref: '#/components/responses/BadRequest'
'402':
$ref: '#/components/responses/PaymentRequired'
'422':
$ref: '#/components/responses/MetricNotComputable'
'503':
$ref: '#/components/responses/UpstreamUnavailable'
components:
schemas:
ErrorResponse:
type: object
properties:
error:
type: string
message:
type: string
metric:
type: string
components:
type: object
additionalProperties: true
required:
- error
additionalProperties: true
OnchainMetricResult:
type: object
properties:
metric:
type: string
enum:
- stablecoin-flow
- tvl-momentum
- protocol-fee-yield
- dex-efficiency
chain:
type: string
protocol:
type: string
targetType:
type: string
enum:
- chain
- protocol
target:
type: string
window:
type: string
enum:
- 1d
- 7d
- 30d
- 90d
value:
type: number
unit:
type: string
components:
type: object
additionalProperties: true
computedAt:
type: string
format: date-time
required:
- metric
- window
- value
- unit
- components
- computedAt
additionalProperties: true
responses:
UpstreamUnavailable:
description: Upstream data source unavailable or insufficient.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
PaymentRequired:
description: x402 payment required. Programmatic clients should read payment requirements and retry with a valid PAYMENT-SIGNATURE header.
headers:
PAYMENT-REQUIRED:
description: Base64-encoded x402 v2 payment requirements.
schema:
type: string
PAYMENT-RESPONSE:
description: Base64-encoded x402 payment response after verification or settlement.
schema:
type: string
content:
application/json:
schema:
type: object
additionalProperties: true
MetricNotComputable:
description: Metric could not be computed from available data.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
BadRequest:
description: Invalid request.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
securitySchemes:
x402:
type: apiKey
in: header
name: PAYMENT-SIGNATURE
description: x402 v2 payment signature header supplied after reading the 402 PAYMENT-REQUIRED response.