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

# Campaign Statistics

> Retrieve detailed performance metrics for a specific campaign.

## Path Parameters

<ParamField path="campaign_id" type="string" required>
  The unique identifier of the campaign.
</ParamField>

## Response

<ResponseField name="data" type="object">
  <Expandable title="Campaign stats">
    <ResponseField name="id" type="string">Campaign ID.</ResponseField>
    <ResponseField name="name" type="string">Campaign name.</ResponseField>
    <ResponseField name="status" type="string">Campaign status: `draft`, `active`, `paused`, or `completed`.</ResponseField>
    <ResponseField name="sent" type="integer">Total emails sent.</ResponseField>
    <ResponseField name="delivered" type="integer">Emails successfully delivered.</ResponseField>
    <ResponseField name="bounced" type="integer">Emails that bounced.</ResponseField>
    <ResponseField name="replied" type="integer">Emails that received replies.</ResponseField>
    <ResponseField name="opened" type="integer">Emails that were opened.</ResponseField>
    <ResponseField name="totalLeads" type="integer">Total leads enrolled in campaign.</ResponseField>
    <ResponseField name="replyRate" type="number">Reply rate as a percentage (1 decimal).</ResponseField>
    <ResponseField name="bounceRate" type="number">Bounce rate as a percentage (1 decimal).</ResponseField>
  </Expandable>
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X GET "https://api.foxreach.io/api/v1/analytics/campaigns/cmp_abc123" \
    -H "X-API-Key: otr_your_key"
  ```

  ```python Python SDK theme={null}
  from foxreach import FoxReach

  client = FoxReach(api_key="otr_your_key")
  stats = client.analytics.campaign("cmp_xyz789")
  ```

  ```typescript TypeScript SDK theme={null}
  import { FoxReach } from "foxreach";

  const client = new FoxReach({ apiKey: "otr_your_key" });
  const stats = await client.analytics.campaign("cmp_xyz789");
  ```
</RequestExample>

<ResponseExample>
  ```json theme={null}
  {
    "data": {
      "id": "cmp_abc123",
      "name": "Q1 Outreach",
      "status": "active",
      "sent": 1250,
      "delivered": 1200,
      "bounced": 50,
      "replied": 67,
      "opened": 580,
      "totalLeads": 500,
      "replyRate": 5.4,
      "bounceRate": 4.0
    }
  }
  ```
</ResponseExample>

## Errors

| Status | Description        |
| ------ | ------------------ |
| `404`  | Campaign not found |

## Rate Limit

* **100 requests per minute, per API key.** Fixed 60-second window.
* Every response includes `X-RateLimit-Limit`, `X-RateLimit-Remaining`, and `X-RateLimit-Reset` (unix epoch seconds).
* A `429` response includes a `Retry-After` header (seconds until the bucket resets).

For client-side patterns (`Retry-After`, exponential backoff, monitoring `X-RateLimit-Remaining`), see [Rate Limiting](/rate-limiting).
