# Multi-Campaign Statistics Beta

> Retrieve performance metrics for several campaigns in one call.

> Documentation index: https://www.foxreach.io/docs/llms.txt lists every page of these docs. Each page is also served as Markdown: add `.md` to its URL.

`GET` https://api.foxreach.io/api/v1/analytics/campaigns

> **Note:** **Beta.** This endpoint is new and may change.

Requires an API key with the `read` scope.

Each record is the same object [Campaign Statistics](https://www.foxreach.io/docs/api-reference/analytics/campaign-stats) returns, in the order you asked for. Duplicate ids are collapsed. Ids that are not campaigns of your workspace are listed in `notFound` instead of failing the call. One query, however many ids.

## Query Parameters

- `ids` string query required

  Comma-separated campaign ids, 1 to 50.

**Request example**

```bash cURL
curl "https://api.foxreach.io/api/v1/analytics/campaigns?ids=cmp_abc123,cmp_def456" \
  -H "X-API-Key: otr_your_key"
```

```python Python
import requests

response = requests.get(
    "https://api.foxreach.io/api/v1/analytics/campaigns?ids=cmp_abc123,cmp_def456",
    headers={"X-API-Key": "otr_your_key"}
)
data = response.json()
```

```typescript TypeScript
const response = await fetch("https://api.foxreach.io/api/v1/analytics/campaigns?ids=cmp_abc123,cmp_def456", { method: "GET", headers: { "X-API-Key": "otr_your_key" } });
const data = await response.json();
```

**Response example**

```json
{
  "data": {
    "campaigns": [
      {
        "id": "cmp_abc123",
        "name": "Q1 Outreach",
        "status": "active",
        "sent": 234,
        "delivered": 230,
        "bounced": 4,
        "replied": 18,
        "opened": 87,
        "trackedSent": 190,
        "openRate": 45.8,
        "totalLeads": 500,
        "replyRate": 7.7,
        "bounceRate": 1.7
      }
    ],
    "notFound": [
      "cmp_def456"
    ]
  }
}
```

## Errors

| Status | Description |
|--------|-------------|
| `401` | Missing, invalid, revoked or expired API key |
| `403` | API key does not have the required scope: `read` |
| `422` | `ids` is missing, empty or holds more than 50 ids |

## Rate Limit

- **300 requests per minute, shared by every `read` call in your workspace.** Fixed 60-second window.
- Every response includes `X-RateLimit-Limit`, `X-RateLimit-Remaining`, `X-RateLimit-Reset` (unix epoch seconds) and `X-RateLimit-Bucket` (`read`).
- A `429` response includes a `Retry-After` header (seconds until the bucket resets).

For client-side patterns, see [Rate Limiting](https://www.foxreach.io/docs/rate-limiting).
