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

CoinGecko Coin API Documentation

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

CoinGecko Coin API Documentation Read full detail for one coin. Pass the lowercase id from listings or search. The answer has price with currency, platforms and token contract addresses, categories, links, ATH and ATL with dates, and supply. 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 CoinGecko.

CoinGecko Coin API Documentation 1 credit / request

Endpoint

Request preview
GET
https://scrappa.co/api/coingecko/coin
Auth header
x-api-key
Cost
1 credit / request
id = 1234567890
Response preview
200 OK
{
    "data": {
        "coin": {
            "id": "bitcoin",
            "ath": 109114,
            "name": "Bitcoin",
            "rank": 1,
            "price": 67000.5,
            "symbol": "btc",
            "ath_date": "2024-03-14T00:00:00+00:00",
            "currency": "USD",
            "categories": [
                "Cryptocurrency"
            ],
...

Parameters

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

Runnable path

1 required parameter needed before sending a request.

1 optional filter available.

id string Required

Lowercase CoinGecko id, e.g. bitcoin.

Example value 1234567890
currency string Optional

Quote currency: USD (default), EUR, GBP or BTC. Other values return 422.

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": "bitcoin",
            "ath": 109114,
            "name": "Bitcoin",
            "rank": 1,
            "price": 67000.5,
            "symbol": "btc",
            "ath_date": "2024-03-14T00:00:00+00:00",
            "currency": "USD",
            "categories": [
                "Cryptocurrency"
            ],
            "contract_addresses": []
        }
    },
    "meta": {
        "source": "coingecko",
        "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 is not known. This response is not billable.

{
    "error": {
        "code": "NOT_FOUND",
        "message": "CoinGecko 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 CoinGecko 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.