> ## Documentation Index
> Fetch the complete documentation index at: https://docs.rxradar.xyz/llms.txt
> Use this file to discover all available pages before exploring further.

# Quickstart

> Make your first request in 2 minutes

## 1. Get your API key

Contact us at [contact@rxradar.xyz](mailto:contact@rxradar.xyz) to get your API key.

Your key looks like: `rx_ROJemN_xle5h6-BT7fcSqKFepySPJj...`

## 2. Your first request

<CodeGroup>
  ```bash cURL theme={null}
  curl -X GET "https://api.rxradar.xyz/v1/stores" \
    -H "Authorization: Bearer rx_YOUR_API_KEY"
  ```

  ```python Python theme={null}
  import requests

  response = requests.get(
      "https://api.rxradar.xyz/v1/stores",
      headers={"Authorization": "Bearer rx_YOUR_API_KEY"}
  )

  stores = response.json()
  print(stores)
  ```

  ```javascript JavaScript theme={null}
  const response = await fetch(
    "https://api.rxradar.xyz/v1/stores",
    {
      headers: {
        "Authorization": "Bearer rx_YOUR_API_KEY"
      }
    }
  );

  const stores = await response.json();
  console.log(stores);
  ```
</CodeGroup>

## 3. Compare prices for a product

The `/v1/snapshots/compare` endpoint compares prices for a product (by EAN) across all stores:

```bash theme={null}
curl -X GET "https://api.rxradar.xyz/v1/snapshots/compare?gtin=0020714002527" \
  -H "Authorization: Bearer rx_YOUR_API_KEY"
```

Response:

```json theme={null}
{
  "gtin": "0020714002527",
  "product_name": "Clinique Take The Day Off Cleansing Balm 125 ml",
  "stats": {
    "min_price": 29.40,
    "max_price": 39.00,
    "avg_price": 33.85,
    "snapshot_count": 16
  },
  "data": [
    {
      "id": 98765,
      "product_id": 12345,
      "collected_at": "2026-05-18T14:30:00",
      "price": {
        "current": 34.00,
        "original": null,
        "valid_until": null,
        "range": null,
        "has_promo": false,
        "currency": "USD"
      },
      "per_unit": {
        "price": 27.20,
        "unit": "100 ml"
      },
      "stock": {
        "available": true,
        "label": "In stock"
      },
      "rating": {
        "value": 4.5,
        "count": 127
      },
      "positions": [],
      "promotions": [],
      "badges": [],
      "favorites_count": 342,
      "network": "cvs",
      "store": "cvs.com"
    }
    // ... 15 more snapshots
  ]
}
```

## Next steps

<CardGroup cols={2}>
  <Card title="Authentication" icon="key" href="/authentication">
    Learn more about authentication
  </Card>

  <Card title="API Reference" icon="code" href="/api-reference/introduction">
    Browse all endpoints
  </Card>
</CardGroup>
