# GET /websites/:website_id/lead-conversion

**Resource:** [Websites](./websites.md)  
**MCP tool:** `get_website_lead_conversion`  
**Scopes:** `websites:read`  
**Write operation:** no

Get how many of a website's visitors became leads through TrustPager forms and booking pages placed with the website embed code, with the visitor-to-lead rate (%), broken down by source (e.g. "Google ad", "Meta ad", "Google search", "Referral (site.com)", "Direct") and by utm campaign, plus the leads themselves (opportunity id, name, date, source, campaign; newest 50). Visitors come from the workspace's connected PostHog, leads from the workspace's own opportunities, and each lead is put under the source of their first visit in the period, the same way visitors are. Archived opportunities are left out. status is "ok", "no_data", "not_linked" or "not_connected"; only "ok" has numbers.

## Parameters

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `website_id` | path | string | yes | UUID of the website. Get ids from list_websites. |
| `period` | query | string | no | How far back to look: 7d, 30d (default), 90d or 6m (six months). Numbers are compared with the period just before it. |

## Request example

```bash
curl   "https://api.trustpager.com/functions/v1/api/v1/websites/:website_id/lead-conversion"   -H "Authorization: Bearer YOUR_API_KEY"
```

---
Base URL: `https://api.trustpager.com/functions/v1/api/v1` — Auth: `Authorization: Bearer YOUR_API_KEY`