# CoinGecko Search API Documentation

<p><strong>CoinGecko Search API Documentation</strong> Search CoinGecko coins by name or symbol. Results include the lowercase id, rank and a full-size image URL. Pass an id into coin, history and markets without changing it. Filter by page and per_page (1 to 250). 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_search](https://scrappa.co/docs/coingecko-api/coingecko_search)
- **API group:** CoinGecko API
- **Endpoint:** `GET https://scrappa.co/api/coingecko/search`

## 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 |
| --- | --- | --- | --- |
| `q` | string | Yes | Search text, e.g. bitcoin. |
| `page` | integer | No | Page number, 1-based. |
| `per_page` | integer | No | Rows per page, 1 to 250. |

## Example response

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