Pay-per-query CoinGecko crypto data agent via Questflow's x402 endpoint on Base
What it does
This endpoint exposes a CoinGecko-powered AI agent hosted on Questflow's platform, accessible via the x402 payment protocol. Callers send a natural-language message (e.g., "What is the current price of Bitcoin?") as a POST request with an X-PAYMENT header, and the agent returns a text response drawing on CoinGecko's cryptocurrency data aggregation — covering real-time pricing, market data, and information on thousands of crypto assets across many exchanges.
Payment is handled on the Base network using USDC (asset 0x8335…2913) with a maximum charge of 0.1 USDC per request (maxAmountRequired: 100000, i.e. 100,000 units at 6 decimals). The x402 challenge is live and conforms to x402 version 1. The agent has a maximum timeout of 1,200 seconds, suggesting it may perform multi-step lookups or reasoning before responding.
Documentation is sparse — Questflow does not expose an OpenAPI spec or dedicated docs page for this agent endpoint. The input/output schema is simple: POST a JSON body with an "input" string field and receive a JSON response with a "response" string field. Because the agent's exact capabilities and data freshness are not documented beyond the CoinGecko description, callers should treat responses as informational and verify critical data independently.
Capabilities
Use cases
- —Query real-time cryptocurrency prices and market caps via natural language
- —Get information on specific tokens or exchanges without navigating CoinGecko directly
- —Integrate crypto market data into autonomous agent workflows with micropayments
- —Ask comparative or analytical questions about crypto assets
Fit
Best for
- —AI agents needing on-demand crypto market data with pay-per-query pricing
- —Developers prototyping x402 payment flows with a live crypto data endpoint
- —Quick natural-language lookups of token prices and market information
Not for
- —High-frequency trading requiring sub-second latency (max timeout is 1200s)
- —Bulk historical data downloads or full exchange order-book data
- —Users who need free or unlimited crypto data access
Quick start
curl -X POST https://api.questflow.ai/x402/agent/qrn:agent:687df68fb234010b7d33175c \
-H "Content-Type: application/json" \
-H "X-PAYMENT: <x402_payment_token>" \
-d '{"input": "What is the current price of Bitcoin?"}'Example
Request
{
"input": "What is the current price of Bitcoin?"
}Response
{
"response": "The current price of Bitcoin (BTC) is approximately $68,432 USD, with a 24-hour trading volume of $28.5 billion and a market cap of $1.35 trillion."
}Endpoint
Quality
The x402 challenge is live and provides a clear input/output schema, but there is no OpenAPI spec, no dedicated documentation, and no example responses from the actual agent. The agent's exact capabilities and data freshness are inferred from the CoinGecko description in the challenge payload. The example response is fabricated for illustration purposes.
Warnings
- —No OpenAPI spec or dedicated documentation available for this endpoint
- —Agent capabilities are inferred solely from the x402 challenge description — actual behavior may differ
- —Example response is illustrative, not captured from a real call
- —The 1200-second max timeout suggests potentially slow responses
- —Data freshness and accuracy of the underlying CoinGecko integration are unknown
Citations
- —x402 challenge returns 402 with USDC payment on Base network, maxAmountRequired 100000https://api.questflow.ai/x402/agent/qrn:agent:687df68fb234010b7d33175c
- —CoinGecko provides real-time information on over 17,000 crypto assets across more than 1,000 exchangeshttps://api.questflow.ai/x402/agent/qrn:agent:687df68fb234010b7d33175c
- —Questflow is an AI agent platform aggregating onchain marketshttps://api.questflow.ai