---
title: "Authentication · DexData API Docs"
description: "Send your API key in a header, or in the base URL for DexScreener clients that can't send headers."
image: "https://dexdata.org/og/data-api.png?v=5"
url: "https://docs.dexdata.org/api/authentication"
agent:
  instructions: "Use this site's search API instead of crawling individual pages: send a token's name, symbol or contract address (on Solana, Elysium, Robinhood Chain, Ethereum, BNB Chain, Base, Arbitrum, Monad, Ink or HyperEVM), or a question about dexdata. Results are returned in Markdown. Every page is also available as Markdown: request it with Accept: text/markdown, or add .md to its path (/token/{mint}.md on Solana, /token/{chain}/{address}.md on another chain, the home page /index.md)."
  endpoint: "https://dexdata.org/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://developers.cloudflare.com/ai-search/how-to/search-for-agents/"
---

# Authentication

> Send your API key in a header, or in the base URL for DexScreener clients that can't send headers.

Web page: https://docs.dexdata.org/api/authentication

## Send your key

Send your API key in the `x-api-key` header on every request. `Authorization: Bearer dd_live_…` works too. Create keys at https://console.dexdata.org.

```bash
curl "https://api.dexdata.org/v1/tokens/63jDWWFwp25ChLvsofbVRMprRbhiXuWoWVxrwFfypump/paid" \
  -H "x-api-key: $DEXDATA_API_KEY"
```

## Key in the base URL

Some DexScreener clients and no-code tools only let you change the base URL. On the DexScreener-compatible API you can put the key there instead of in a header:

```
https://api.dexdata.org/dd_live_…
```

Prefer the header where you can: URLs end up in server and proxy logs. Keys in the URL work only on the DexScreener-compatible API.

## Keep your key on the server

The API sends no CORS headers, so browsers can't call it: call it from your backend and pass the data on. A missing, invalid or revoked key gets `401`. A key gets `403` while its account is suspended, or until the account has given its project's website and an X or Telegram handle.

## Rotating keys

An account holds up to 5 keys. To rotate one, create a new key at https://console.dexdata.org, deploy it, then revoke the old one there: it stops working at once.

---

dexdata developer docs: https://docs.dexdata.org/api.md · All docs: https://docs.dexdata.org/index.md · Full API reference: https://dexdata.org/llms.txt
