# POST /marketing/snapshots/search

**Resource:** [MARKETING](./marketing.md)  
**MCP tool:** `capture_search_snapshot`  
**Scopes:** `marketing:write`, `websites:read`  
**Write operation:** yes

Read a site's Google Search Console numbers for a period and save them as snapshots: search_clicks, search_impressions and search_position, plus branded_clicks and branded_impressions when brand_terms are given (searches containing any of them, the clearest sign a brand is growing). Google keeps only 16 months, so saving monthly keeps the history. Needs the workspace's Google connection with Search Console access; otherwise it answers with the status and how to connect, and saves nothing.

## Parameters

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `site_url` | body | string | yes | The Search Console site, e.g. "sc-domain:finalpiece.ai" (from list_search_console_sites). |
| `period_start` | body | string | yes | First day, YYYY-MM-DD. |
| `period_end` | body | string | yes | Last day, YYYY-MM-DD. Google's newest two or three days are still changing: a period ending in them is saved as partial. |
| `brand_terms` | body | array | no | Words people use to search for the brand, e.g. ["finalpiece", "final piece"]. Adds branded_clicks and branded_impressions: searches containing any of them. |
| `brand_kit_id` | body | string | no | The brand the site belongs to. |
| `campaign_id` | body | string | no | The campaign it measures, if any. |
| `plan_id` | body | string | no | Defaults to the active plan. |
| `is_baseline` | body | boolean | no | true to save these as starting numbers. |
| `note` | body | string | no | Anything a reader needs to know. |
| `require_approval` | body | boolean | no | Optional. Set true to route this write into the approval queue for human review instead of executing it immediately (returns 202 + an approval_id). Works even when your key/token has permission to execute directly. |

## Request example

```bash
curl -X POST   "https://api.trustpager.com/functions/v1/api/v1/marketing/snapshots/search"   -H "Authorization: Bearer YOUR_API_KEY"   -H "Content-Type: application/json"   -d '{"site_url":"...","period_start":"...","period_end":"..."}'
```

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