---
updatedAt: 2026-09-07T18:58:08.000Z
agentTools:
  projectIndex: https://developers.viral-loops.com/llms.txt
---

# Campaign Stats

Get the number of leads and the total referral count of your campaign.

> 📊 Rate Limit: 300 requests per minute

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Viral Loops API",
    "version": "3.0.0"
  },
  "servers": [
    {
      "url": "https://app.viral-loops.com/api/v3"
    }
  ],
  "paths": {
    "/campaign/stats": {
      "get": {
        "summary": "Campaign Stats",
        "description": "Get the number of leads and the total referral count of your campaign.\n\n> 📊 Rate Limit: 300 requests per minute",
        "tags": [
          "Campaign"
        ],
        "parameters": [
          {
            "name": "apiToken",
            "in": "header",
            "description": "Only use the `apiToken` in secure contexts. <a> Where to find it? </a>",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "leadCount": {
                      "type": "integer"
                    },
                    "referralCountTotal": {
                      "type": "integer"
                    }
                  }
                }
              }
            }
          },
          "4XX": {
            "description": "Programmer error response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "number"
                    },
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "description": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "5XX": {
            "description": "Server side error response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "number"
                    },
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                },
                "example": {
                  "statusCode": 500,
                  "error": "Internal Server Error",
                  "message": "Something went wrong."
                }
              }
            }
          }
        }
      }
    }
  }
}
```