Skip to content
Fourohtwo

Current spot price and market data for crypto assets

2s.io/api/crypto/token-price

Current spot price and market data for crypto assets. Pass ids as comma-separated CoinGecko asset ids (e.g. bitcoin, ethereum, solana, usd-coin — lowercase id, not ticker symbol; up to 25 per call) and optionally vs (comma-separated fiat/crypto quote currencies, default usd). Returns per-asset price, market cap, 24h volume, and 24h percent change, plus the data timestamp. Live market data past any

BaseSolanaAnswering
GEThttps://2s.io/api/crypto/token-price

Uptime100% of 1 check in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://2s.io/api/crypto/token-price?ids=bitcoin%2Cethereum&vs=usd");
console.log(await res.json());

Example input

{
  "ids": "bitcoin,ethereum",
  "vs": "usd"
}

More from 2s