Make your first API call in 3 steps! For free, no credit card required.

You can also make requests directly in our API Playground. Visit GET Ticker by ID to try it out.
In the next steps, we will make a GET request to the Ticker endpoint to get the latest price of Bitcoin (BTC). All you need is the Coin ID.
  • Coin ID: btc-bitcoin
1

Make a GET request

Simply make a GET request to the following endpoint to fetch the latest ticker data for any coin. We’ll use the Bitcoin ID to populate the endpoint in the format https://api.coinpaprika.com/v1/tickers/{coin_id}.
curl -X GET "https://api.coinpaprika.com/v1/tickers/btc-bitcoin"
2

Get latest data for Bitcoin (BTC)

This will return a detailed response with the latest data for Bitcoin (BTC), which will look similar to this. In the next step, we will extract just the price of BTC in USD.
Response
{
    "id": "btc-bitcoin",
    "name": "Bitcoin",
    "symbol": "BTC",
    "rank": 1,
    "total_supply": 19883231,
    "max_supply": 21000000,
    "beta_value": 0.879448,
    "first_data_at": "2010-07-17T00:00:00Z",
    "last_updated": "2025-06-25T10:47:48Z",
    "quotes": {
        "USD": {
            "price": 107077.69661924685,
            "volume_24h": 23175936198.924427,
            "volume_24h_change_24h": -44.15,
            "market_cap": 2129051326372,
            "market_cap_change_24h": 1.74,
            "percent_change_15m": 0.04,
            "percent_change_30m": 0.08,
            "percent_change_1h": 0.37,
            "percent_change_6h": 0.78,
            "percent_change_12h": 0.92,
            "percent_change_24h": 1.74,
            "percent_change_7d": 2.27,
            "percent_change_30d": -2.88,
            "percent_change_1y": 73.78,
            "ath_price": 111923.79452175781,
            "ath_date": "2025-05-22T18:42:03Z",
            "percent_from_price_ath": -4.33
        }
    }
}
3

Extract the price

The response contains rich data. You can extract the USD price by navigating to the quotes.USD.price field. Here is how you can modify the request to get just the price:
curl -s "https://api.coinpaprika.com/v1/tickers/btc-bitcoin" | jq '.quotes.USD.price'
And as a result, you will get the price of BTC in USD:
quotes.USD.price
107077.69661924685
Congratulations! You’ve successfully retrieved the latest price of Bitcoin!

Ready to go professional? Explore our API plans for higher rate limits and advanced features.

Explore on-chain & DeFi data

Looking for DEX & on-chain data?

For latest data from Decentralized Exchanges (DEXes), including liquidity pools, swaps, and on-chain analytics, check out our sister project, DexPaprika.

Get support

We’re here to help you build with CoinPaprika.
Need more? We offer enterprise plans with dedicated support, higher rate limits, and custom solutions. Contact our team to learn more.