# GET /websites/:website_id/broken-urls

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

Find the URLs on a website that visitors are hitting but that are not real pages, worst first. For each one: the actual HTTP status (checked live, so 404 means 404), how many page views it took, and the referrer sending people there, which is what tells you whether to fix a link or add a redirect. Answers "which page is broken and how badly". Compares real traffic against the site's own sitemap, then status-checks the top 25 suspects. Requires traffic reporting to be on (enable_website_traffic_reporting).

## Parameters

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `website_id` | path | string | yes | UUID of the website. Get ids from list_websites. |
| `from` | query | string | no | Start of the window, YYYY-MM-DD or an ISO timestamp. Defaults to 7 days ago. |
| `to` | query | string | no | End of the window, YYYY-MM-DD or an ISO timestamp. Defaults to now. |

## Request example

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

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