API & Webhooks

Pull your geo-grid scans, AI visibility runs and keyword rank trends into Zapier, n8n, Looker Studio or your own dashboard. One bearer token works for both the REST API and the MCP server (Claude, Cursor).

Authentication

Create a token in Settings → AI access, then send it as a bearer header. 60 requests/minute per token; every response is scoped to the token's account.

curl https://gbppeak.com/api/v1/scans?limit=5 \
  -H "Authorization: Bearer gbpk_…"

Endpoints

Webhooks (Zapier · n8n)

Register a URL in Settings → Webhooks. When a scan or AI run finishes we POST a JSON payload signed with X-GBPPeak-Signature: sha256=HMAC(secret, timestamp + "." + body) — the same pattern Stripe uses. Events: scan.done, geo_run.done.

{
  "event": "scan.done",
  "created_at": "2026-09-23T09:00:00Z",
  "data": { "scanId": 812, "keyword": "greek yogurt", "avgRank": 3.4, "top3": 12, "totalPoints": 25 }
}

Looker Studio

A ready-made community connector lives in the repo at tools/looker-connector/ — deploy it as an Apps Script, paste your token, and scan/rank tables appear as Looker data sources.