The SwapHunt API
Every number on this site comes from the same API. Agents and developers can call it directly: 39 endpoints for prices, market indicators, funding, volatility, news and macro events, from $0.001 to $0.005 per call.
For AI agents: x402
Pay per call in USDC on Base. No account, no API key, no subscription. The server answers an unpaid request with 402 Payment Required and the price; an x402 client pays and retries automatically.
Interactive docs, OpenAPI spec, Agentic Market listing
For developers: API key
Prefer a classic key and monthly plans? The same endpoints are on RapidAPI.
SwapHunt on RapidAPI
Try it
An unpaid request returns 402 Payment Required. The price and payment details are in the payment-required header, base64-encoded:
curl -i https://x402.swaphunt.dev/v1/market/fear-greed
HTTP/2 402
payment-required: eyJ4NDAyVmVyc2lvbiI6Mi...
# decoded:
{"x402Version": 2,
"accepts": [{"scheme": "exact",
"network": "eip155:8453", # Base
"asset": "0x8335...2913", # USDC
"amount": "1000", # 0.001 USDC (6 decimals)
"payTo": "0xD6b5...23a8"}]}
An x402 client library reads that header, signs a USDC payment from your wallet and repeats the request with the payment attached. The response is the JSON you asked for. Clients exist for JavaScript, Python and Go.
See the x402 documentation for client setup.
Endpoints and prices
Prices in USDC per successful call. Base URL https://x402.swaphunt.dev.
Prices
| Endpoint | What you get | Price |
/v1/tools/price |
Get asset priceasset, currency |
$0.001 |
/v1/tools/price/multi |
Get multiple asset pricesassets, currency |
$0.003 |
/v1/tools/price/supported |
Get supported assets |
$0.001 |
Market
| Endpoint | What you get | Price |
/v1/market/alt-season |
Is it alt season?days |
$0.003 |
/v1/market/coin-strength |
Coin strength vs BTCcoin, period, quote |
$0.003 |
/v1/market/correlation |
Coin correlation with BTCcoin, period, quote |
$0.003 |
/v1/market/dominance |
Get BTC/ETH dominance |
$0.001 |
/v1/market/fear-greed |
Get Fear & Greed Index |
$0.001 |
/v1/market/fear-greed/compare |
Get Fear & Greed with historical comparison |
$0.002 |
/v1/market/fear-greed/history |
Get Fear & Greed historydays, start_date, end_date |
$0.005 |
/v1/market/global |
Get global market data |
$0.002 |
/v1/market/halving |
Get halving countdowncoin |
$0.001 |
/v1/market/momentum-rank |
Top momentum coinsperiod, limit, quote |
$0.003 |
Derivatives
| Endpoint | What you get | Price |
/v1/derivatives/funding-rates |
Get funding ratessymbols |
$0.003 |
/v1/derivatives/funding-rates/top |
Get top funding rateslimit, sort |
$0.003 |
Volatility
| Endpoint | What you get | Price |
/v1/vol/compression-alert |
Detect volatility squeezeasset, timeframe, quote |
$0.003 |
/v1/vol/expected-move |
Expected price rangeasset, period, quote |
$0.003 |
/v1/vol/realized |
Get realized volatilityasset, period |
$0.002 |
/v1/vol/silence |
Get market silence scoreasset, lookback |
$0.002 |
Market regime
| Endpoint | What you get | Price |
/v1/regime/chop-detection |
Is market choppy or trending?asset, timeframe, quote |
$0.003 |
/v1/regime/current |
Get current market regime |
$0.002 |
News and sentiment
| Endpoint | What you get | Price |
/v1/sentiment/news |
Get scored crypto newscategory, min_score, limit, hours |
$0.005 |
/v1/sentiment/summary |
Get aggregated news sentimentcategory, hours |
$0.003 |
Macro events
| Endpoint | What you get | Price |
/v1/events/macro |
Get upcoming macro eventsdays, country, high_impact_only |
$0.003 |
/v1/events/macro/history |
Get macro events historydays, start_date, end_date, country |
$0.005 |
Timing and cycles
| Endpoint | What you get | Price |
/v1/cycle/daily-range-used |
How much of daily range is usedasset, quote |
$0.002 |
/v1/cycle/hourly-pattern |
Historical volatility by hourasset, days, quote |
$0.004 |
/v1/cycle/monthly-pattern |
Historical performance by monthasset, years |
$0.004 |
/v1/cycle/weekly-pattern |
Historical performance by day of weekasset, days |
$0.004 |
Trading context
| Endpoint | What you get | Price |
/v1/context/session |
What trading session is it? |
$0.001 |
/v1/context/weekend-liquidity |
Is it weekend/low liquidity time? |
$0.001 |
Sanity checks
| Endpoint | What you get | Price |
/v1/sanity/is-this-a-breakout |
Is this breakout confirmed?symbol, level*, direction, quote |
$0.003 |
/v1/sanity/is-this-a-dip |
Is this actually a dip?symbol, quote |
$0.003 |
/v1/sanity/is-this-oversold |
Is this actually oversold?symbol, quote |
$0.003 |
/v1/sanity/is-this-support |
Is this actually support?symbol, level*, quote |
$0.003 |
Anti-FOMO
| Endpoint | What you get | Price |
/v1/fomo/already-extended |
Is price already extended?symbol, quote |
$0.003 |
/v1/fomo/green-candles-streak |
How many green candles in a row?symbol, interval, quote |
$0.003 |
/v1/fomo/how-late-am-i |
How late am I to this move?symbol, quote |
$0.003 |
/v1/fomo/pump-age |
How old is this pump?symbol, quote |
$0.003 |
Where the data comes from
Prices and derivatives data are collected from exchange APIs (Binance, Hyperliquid and others) by SwapHunt's own loggers. Market indicators come from CoinMarketCap and Alternative.me; news is collected from Finnhub and RSS and scored for crypto relevance. Each endpoint's documentation names its source.