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

CoinGecko Trending API Documentation

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

CoinGecko Trending API Documentation List coins trending on CoinGecko right now with rank, USD price, currency-aware 24h change, price in BTC and a full-size image URL. Filter by an optional currency. An empty answer and every failed request cost no credit. Cost: 1 credit per successful request. Scrappa is an independent service and is not affiliated with or endorsed by CoinGecko.

CoinGecko Trending API Documentation 1 credit / request

Endpoint

Request preview
GET
https://scrappa.co/api/coingecko/trending
Auth header
x-api-key
Cost
1 credit / request
Response preview
200 OK
{
    "data": {
        "trending": [
            {
                "id": "bitcoin",
                "name": "Bitcoin",
                "rank": 1,
                "image": "https://coin-images.coingecko.com/coins/images/1/large/bitcoin.png",
                "price": 64399.5,
                "symbol": "btc",
                "currency": "USD",
                "price_btc": 1,
                "change_24h": -1.19
            }
...

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.

1 optional filter available.

currency string Optional

Quote currency for the 24h change, e.g. USD (default).

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": {
        "trending": [
            {
                "id": "bitcoin",
                "name": "Bitcoin",
                "rank": 1,
                "image": "https://coin-images.coingecko.com/coins/images/1/large/bitcoin.png",
                "price": 64399.5,
                "symbol": "btc",
                "currency": "USD",
                "price_btc": 1,
                "change_24h": -1.19
            }
        ]
    },
    "meta": {
        "source": "coingecko",
        "credits": 1,
        "billable": true,
        "endpoint_family": "trending"
    },
    "success": true
}

Errors

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

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.