# CoinGecko Trending API Documentation

<p><strong>CoinGecko Trending API Documentation</strong> 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.</p>

- **Documentation:** [https://scrappa.co/docs/coingecko-api/coingecko_trending](https://scrappa.co/docs/coingecko-api/coingecko_trending)
- **API group:** CoinGecko API
- **Endpoint:** `GET https://scrappa.co/api/coingecko/trending`

## Authentication

Send your Scrappa API key in the `X-API-KEY` request header. Paid endpoints also support accountless x402 payments when called without an API key.

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `currency` | string | No | Quote currency for the 24h change, e.g. USD (default). |

## Example response

```json
{
    "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

| Status | Error | Description |
| --- | --- | --- |
| 503 | Service Unavailable | The upstream data is temporarily unavailable. This response is not billable. |

## More Scrappa resources

- [API documentation](https://scrappa.co/docs)
- [Full LLM-readable API reference](https://scrappa.co/llms-full.txt)
- [OpenAPI specification](https://scrappa.co/docs/api.json)
- [Pricing](https://scrappa.co/pricing)
