# CoinMarketCap Trending API Documentation

<p><strong>CoinMarketCap Trending API Documentation</strong> List coins trending on CoinMarketCap over an interval with rank and price. Filter by interval (24h), page and per_page (1 to 250). Prices are numbers with a currency. Non-USD values use a shared daily conversion rate. 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 CoinMarketCap.</p>

- **Documentation:** [https://scrappa.co/docs/coinmarketcap-api/coinmarketcap_trending](https://scrappa.co/docs/coinmarketcap-api/coinmarketcap_trending)
- **API group:** CoinMarketCap API
- **Endpoint:** `GET https://scrappa.co/api/coinmarketcap/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 |
| --- | --- | --- | --- |
| `interval` | string | No | 24h (the only supported interval) |
| `page` | integer | No | Page number, 1-based. |
| `per_page` | integer | No | Rows per page, 1 to 250. |
| `currency` | string | No | Quote currency: USD (default), EUR, GBP, BTC or ETH. |

## Example response

```json
{
    "data": {
        "trending": [
            {
                "id": 1,
                "name": "Bitcoin",
                "rank": 1,
                "price": 67000.5,
                "symbol": "BTC",
                "currency": "USD"
            }
        ],
        "pagination": {
            "page": 1,
            "total": 10,
            "has_more": false,
            "per_page": 100,
            "total_pages": 1
        }
    },
    "meta": {
        "source": "coinmarketcap",
        "credits": 1,
        "billable": true,
        "endpoint_family": "trending"
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A query parameter is missing or invalid. This response is not billable. |
| 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)
