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

CoinMarketCap Trending API Documentation

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

CoinMarketCap Trending API Documentation 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.

CoinMarketCap Trending API Documentation 1 credit / request

Endpoint

Request preview
GET
https://scrappa.co/api/coinmarketcap/trending
Auth header
x-api-key
Cost
1 credit / request
Response preview
200 OK
{
    "data": {
        "trending": [
            {
                "id": 1,
                "name": "Bitcoin",
                "rank": 1,
                "price": 67000.5,
                "symbol": "BTC",
                "currency": "USD"
            }
        ],
        "pagination": {
            "page": 1,
...

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.

4 optional filters available.

interval string Optional

24h (the only supported interval)

Example value example
page integer Optional

Page number, 1-based.

Example value 1
per_page integer Optional

Rows per page, 1 to 250.

Example value 10
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": {
        "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

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

422

Validation Error

A query parameter is missing or invalid. This response is not billable.

{
    "errors": {
        "interval": [
            "The selected interval is invalid."
        ]
    },
    "message": "The request validation failed"
}
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.