| title | Authentication |
|---|---|
| description | How to authenticate with the RxRadar API |
All requests to the RxRadar API require authentication via an API key.
API keys are prefixed with rx_ and passed in the Authorization header:
Authorization: Bearer rx_YOUR_API_KEYContact us at contact@rxradar.xyz to get your API key.
curl -X GET "https://api.rxradar.xyz/v1/stores" \
-H "Authorization: Bearer rx_YOUR_API_KEY"import requests
API_KEY = "rx_YOUR_API_KEY"
response = requests.get(
"https://api.rxradar.xyz/v1/stores",
headers={"Authorization": f"Bearer {API_KEY}"}
)const API_KEY = "rx_YOUR_API_KEY";
const response = await fetch("https://api.rxradar.xyz/v1/stores", {
headers: {
"Authorization": `Bearer ${API_KEY}`
}
});Store your keys in environment variables:
export RXRADAR_API_KEY="rx_YOUR_API_KEY"import os
api_key = os.environ.get("RXRADAR_API_KEY")| Plan | Requests/minute | Requests/day |
|---|---|---|
| Starter | 100 | 10,000 |
| Pro | 1,000 | 100,000 |
| Enterprise | Unlimited | Unlimited |
| Code | Meaning |
|---|---|
| 401 | Missing API key |
| 403 | Invalid API key |
| 429 | Rate limit exceeded |