# CoinMarketCap Coin API Documentation

<p><strong>CoinMarketCap Coin API Documentation</strong> Read full detail for one coin in the requested currency. Pass the numeric id or the slug from listings or search. Other currencies return 422. The answer has price with currency, links, tags, ATH and ATL in USD with dates, supply details and token contract addresses. Non-USD current values use a shared daily conversion rate. Use the id in history and markets without changing it. An unknown id answers 404 and costs 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_coin](https://scrappa.co/docs/coinmarketcap-api/coinmarketcap_coin)
- **API group:** CoinMarketCap API
- **Endpoint:** `GET https://scrappa.co/api/coinmarketcap/coin`

## 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 |
| --- | --- | --- | --- |
| `id` | integer | No | Numeric CoinMarketCap id, e.g. 1 for Bitcoin. Use id or slug. |
| `slug` | string | No | Coin slug, e.g. bitcoin. Use id or slug. |
| `currency` | string | No | Quote currency: USD (default), EUR, GBP, BTC or ETH. |

## Example response

```json
{
    "data": {
        "coin": {
            "id": 1,
            "ath": 109114,
            "atl": 67.81,
            "name": "Bitcoin",
            "rank": 1,
            "slug": "bitcoin",
            "tags": [
                {
                    "name": "Cryptocurrency",
                    "slug": "cryptocurrency"
                }
            ],
            "price": 67000.5,
            "symbol": "BTC",
            "ath_date": "2024-03-14T00:00:00+00:00",
            "currency": "USD",
            "contract_addresses": []
        }
    },
    "meta": {
        "source": "coinmarketcap",
        "credits": 1,
        "billable": true,
        "endpoint_family": "coin"
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 404 | Not Found | The id or slug is not known. 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)
