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

CoinMarketCap Markets API Documentation

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

CoinMarketCap Markets API Documentation List trading pairs for one coin id. Each pair has the exchange, market pair, category, cex or dex type, price with currency, 24h volume, liquidity and score. Non-USD values use a shared daily conversion rate from the USD quote. Pass the id from listings or search. Filter by page, per_page (1 to 250), sort by volume, price or liquidity, and an optional category. 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 Markets API Documentation 1 credit / request

Endpoint

Request preview
GET
https://scrappa.co/api/coinmarketcap/markets
Auth header
x-api-key
Cost
1 credit / request
id = 1234567890
Response preview
200 OK
{
    "data": {
        "id": 1,
        "markets": [
            {
                "pair": "BTC/USDT",
                "type": "cex",
                "price": 67000.5,
                "score": 9.1,
                "category": "Spot",
                "currency": "USD",
                "exchange": "Binance",
                "liquidity": 850,
                "volume_24h": 1200000000
...

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.

5 optional filters available.

id integer Required

Numeric CoinMarketCap id, e.g. 1.

Example value 1234567890
page integer Optional

Page number, 1-based.

Example value 1
per_page integer Optional

Pairs per page, 1 to 250.

Example value 10
sort string Optional

volume

Example value relevance
category string Optional

Optional market category filter.

Example value example
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": {
        "id": 1,
        "markets": [
            {
                "pair": "BTC/USDT",
                "type": "cex",
                "price": 67000.5,
                "score": 9.1,
                "category": "Spot",
                "currency": "USD",
                "exchange": "Binance",
                "liquidity": 850,
                "volume_24h": 1200000000
            }
        ],
        "pagination": {
            "page": 1,
            "total": 3430,
            "has_more": true,
            "per_page": 100,
            "total_pages": 35
        }
    },
    "meta": {
        "source": "coinmarketcap",
        "credits": 1,
        "billable": true,
        "endpoint_family": "markets"
    },
    "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": {
        "id": [
            "A numeric CoinMarketCap id is required."
        ]
    },
    "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.