# DEX Screener Search API Documentation

<p><strong>DEX Screener Search API Documentation</strong> Search public DEX pairs by token, symbol or chain. Each pair carries chain, dex, base and quote token, price USD, liquidity, 24h volume, price change, FDV, pair address, buys and sells, socials and full-size image URLs. Prices are numbers with a currency field. Creation times are ISO 8601. Results are ranked by 24h volume. The pair address and token addresses pass unchanged into pair and token routes. A genuinely empty answer is data and costs no credit, and every failed request costs no credit. Cost: 1 credit per successful request. Scrappa is an independent service and is not affiliated with or endorsed by DEX Screener.</p>

- **Documentation:** [https://scrappa.co/docs/dexscreener-api/dexscreener_search](https://scrappa.co/docs/dexscreener-api/dexscreener_search)
- **API group:** DEX Screener API
- **Endpoint:** `GET https://scrappa.co/api/dexscreener/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. WETH. |

## Example response

```json
{
    "data": {
        "count": 1,
        "pairs": [
            {
                "volume": {
                    "h24": 12000000
                },
                "chainId": "ethereum",
                "currency": "USD",
                "priceUsd": 3450.5,
                "pairAddress": "0x8ad599c3a0ff1de082011efddc58f1908eb6e6d8",
                "pairCreatedAt": "2021-05-05T00:00:00Z"
            }
        ],
        "query": "WETH"
    },
    "meta": {
        "source": "dexscreener",
        "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)
