---
title: "Get leads stats"
method: GET
path: "/api/business/{businessId}/branch/{branchId}/leads/stats"
tags: ["Lead"]
---

# Get leads stats

`GET /api/business/{businessId}/branch/{branchId}/leads/stats`

## Request

- Base URL: `http://api-gateway-eu.phorest.com/third-party-api-server`
- URL: `http://api-gateway-eu.phorest.com/third-party-api-server/api/business/{businessId}/branch/{branchId}/leads/stats`
- Auth: HTTP basic
- TypeScript: <https://skmtc.dev/phorest/apis/third-party-api/docs/api/business/:businessId/branch/:branchId/leads/stats/get.ts> (a function with typed inputs; its response is checked against the schema)

List total leads, total conversions, number of leads and conversions made over the past 30 days, and rate of conversions over the past 30 days.

## Path parameters

- `businessId` string, required
- `branchId` string, required

## Response `200`

Leads stats listed

- LeadStats
  - `totalLeads` integer: Total number of leads created
  - `totalConversions` integer: Total number of leads converted
  - `leads30Day` integer: Number of leads created in the past 30 days
  - `conversions30Day` integer: Number of leads converted in the past 30 days
  - `conversionRate30Day` number, double: Rate of lead conversion over the past 30 days

## Other responses

- `400`: Bad Request
- `404`: Business with the specified id doesn't exist
- `429`: Request rate limit exceeded. Current limit set to 100 rps.
- `500`: Internal Server Error

---

[API](https://skmtc.dev/phorest/apis/third-party-api.md) - [All operations](https://skmtc.dev/phorest/apis/third-party-api/llms.txt) - [OpenAPI document](https://skmtc.dev/phorest/apis/third-party-api/revisions/beea6ef29634?raw)
