# CoinGecko Listings API Documentation

<p><strong>CoinGecko Listings API Documentation</strong> List public CoinGecko coins with rank, price and 1h, 24h and 7d change, market cap, 24h volume, supply, ATH and ATL with dates, and a full-size image URL. Prices are numbers with a currency field. Filter by page and per_page (1 to 250), currency, order and an optional category. Page 2 holds different coins from page 1. Pass a lowercase id into coin, history and markets. 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_listings](https://scrappa.co/docs/coingecko-api/coingecko_listings)
- **API group:** CoinGecko API
- **Endpoint:** `GET https://scrappa.co/api/coingecko/listings`

## 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 |
| --- | --- | --- | --- |
| `page` | integer | No | Page number, 1-based. |
| `per_page` | integer | No | Coins per page, 1 to 250. |
| `currency` | string | No | Quote currency: USD (default), EUR, GBP or BTC. Other values return 422. |
| `order` | string | No | market_cap_desc (default), volume_desc, volume_asc, id_asc or id_desc. Ascending market cap returns 422. |
| `category` | string | No | Optional category filter. |

## Example response

```json
{
    "data": {
        "listings": [
            {
                "id": "bitcoin",
                "name": "Bitcoin",
                "rank": 1,
                "image": "https://coin-images.coingecko.com/coins/images/1/large/bitcoin.png",
                "price": 67000.5,
                "symbol": "btc",
                "currency": "USD",
                "change_24h": 1.2,
                "market_cap": 1320000000000,
                "volume_24h": 28000000000
            }
        ],
        "pagination": {
            "page": 1,
            "total": 100,
            "has_more": false,
            "per_page": 100,
            "total_pages": 1
        }
    },
    "meta": {
        "source": "coingecko",
        "credits": 1,
        "billable": true,
        "endpoint_family": "listings"
    },
    "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)
