Skip to content
Scrappa Get API key
CoinMarketCap API 1 credit / request

CoinMarketCap Coin API Documentation

GET https://scrappa.co/api/coinmarketcap/coin

CoinMarketCap Coin API Documentation Read full detail for one coin in the requested currency. Pass the numeric id or the slug from listings or search. Other currencies return 422. The answer has price with currency, links, tags, ATH and ATL in USD with dates, supply details and token contract addresses. Non-USD current values use a shared daily conversion rate. Use the id in history and markets without changing it. An unknown id answers 404 and costs no credit. Cost: 1 credit per successful request. Scrappa is an independent service and is not affiliated with or endorsed by CoinMarketCap.

CoinMarketCap Coin API Documentation 1 credit / request

Endpoint

Request preview
GET
https://scrappa.co/api/coinmarketcap/coin
Auth header
x-api-key
Cost
1 credit / request
Response preview
200 OK
{
    "data": {
        "coin": {
            "id": 1,
            "ath": 109114,
            "atl": 67.81,
            "name": "Bitcoin",
            "rank": 1,
            "slug": "bitcoin",
            "tags": [
                {
                    "name": "Cryptocurrency",
                    "slug": "cryptocurrency"
                }
...

Parameters

Start with the required fields, then add optional filters only when your use case needs them.

Runnable path

This endpoint has no required query parameters.

3 optional filters available.

id integer Optional

Numeric CoinMarketCap id, e.g. 1 for Bitcoin. Use id or slug.

Example value 1234567890
slug string Optional

Coin slug, e.g. bitcoin. Use id or slug.

Example value example
currency string Optional

Quote currency: USD (default), EUR, GBP, BTC or ETH.

Example value USD

Response Schema

Example response fields are illustrative; inspect the JSON before integrating.

Example response fields

Scan these fields before integrating.

data meta success
JSON Response
200 OK
{
    "data": {
        "coin": {
            "id": 1,
            "ath": 109114,
            "atl": 67.81,
            "name": "Bitcoin",
            "rank": 1,
            "slug": "bitcoin",
            "tags": [
                {
                    "name": "Cryptocurrency",
                    "slug": "cryptocurrency"
                }
            ],
            "price": 67000.5,
            "symbol": "BTC",
            "ath_date": "2024-03-14T00:00:00+00:00",
            "currency": "USD",
            "contract_addresses": []
        }
    },
    "meta": {
        "source": "coinmarketcap",
        "credits": 1,
        "billable": true,
        "endpoint_family": "coin"
    },
    "success": true
}

Errors

Handle these documented responses before retrying or showing customer-facing failures.

404

Not Found

The id or slug is not known. This response is not billable.

{
    "error": {
        "code": "NOT_FOUND",
        "message": "CoinMarketCap has no data for this request."
    },
    "success": false
}
503

Service Unavailable

The upstream data is temporarily unavailable. This response is not billable.

{
    "error": {
        "code": "UPSTREAM_UNAVAILABLE",
        "message": "The CoinMarketCap data is temporarily unavailable. Please retry."
    },
    "success": false
}

Generate Code with AI

Copy a ready-made prompt with all the endpoint details, parameters, and example responses. Paste it into ChatGPT, Claude, or any AI assistant to instantly generate working code.

Try It Live

Test this endpoint in our interactive playground with real data.