LSD

Monitors

Monitors

A monitor runs the same check on a schedule and tells you what changed: where a business ranks in the map pack for a list of keywords, or how its geogrid moved. Set it up once; it runs daily, weekly or monthly, keeps the series, and sends a webhook or an email when something moves.

What it costs

Creating and managing monitors is free. Each run makes the underlying calls at their normal price, and nothing else: a weekly map pack monitor for 10 keywords is 10 × 2 = 20 credits a run, about 87 a month. A 5x5 geogrid monitor for one keyword is 50 credits a run. Every monitor shows estimated_credits_per_run and estimated_credits_per_month, and GET /v1/monitors adds up the monthly estimate of all active monitors. Cached local pack, Maps and Local Finder answers (up to an hour old) are free; geogrid always scans afresh.

What it can run

EndpointRecords per keywordChanges
/v1/serp/local-pack, /v1/serp/maps, /v1/serp/local-findertarget's rank, in top 3, the top 3 names, result countrank_changed, entered_top3, left_top3, top3_changed
/v1/geogrid/scanARP, ATRP, SoLV, points found in, the rank gridsolv_changed (default 10 points), arp_changed (default 1 position)

The first run is the baseline and records no changes. Each change has a severity: alert (left the top 3), warn (a drop) or info (an improvement or a reshuffle).

Create one

curl -X POST https://api.localseodata.com/v1/monitors   -H "Authorization: Bearer sk_live_..."   -H "Content-Type: application/json"   -d '{
    "name": "Acme Plumbing — map pack",
    "endpoint": "/v1/serp/local-pack",
    "params": { "location": "Orchard Park, NY" },
    "inputs": [{ "keyword": "emergency plumber" }, { "keyword": "water heater repair" }],
    "target": { "name": "Acme Plumbing" },
    "schedule": { "every": "week", "day": "mon", "hour_utc": 13 },
    "deliveries": [
      { "type": "webhook", "url": "https://example.com/hooks/lsd" },
      { "type": "email", "mode": "immediate" }
    ],
    "max_credits_per_month": 500
  }'
  • params are shared by every input; each object in inputs (up to 100) is merged over them. Each input is checked with the endpoint's own validation when you create the monitor, so a bad one fails now, not at 3am.
  • target is the business to track. A place_id is exact. A name alone is looked up once on Google Maps near the monitor's location (a normal 2-credit Maps call) and stored as a place_id; if it can't be found you get a 422 rather than a monitor tracking a guess. For geogrid the target is the business the grid scans for.
  • schedule.every is day, week or month. Each monitor gets its own minute within the hour.
  • rules picks which changes to record; omit it for all of them.
  • max_credits_per_month skips any run that would go past it in a calendar month.

Try it before you commit: POST /v1/monitors/preview takes the same body, runs the first input once at its normal price, shows what the monitor would record and what it will cost, and saves nothing.

Read the results

EndpointReturns
GET /v1/monitorsall monitors, with status, next run and monthly estimates
GET /v1/monitors/:idone monitor and its last run
GET /v1/monitors/:id/eventsthe changes, newest first (?severity=alert)
GET /v1/monitors/:id/seriesthe recorded figures over time, per input (?input=&from=&to=, default 90 days)
GET /v1/monitors/:id/runs, /runs/:run_ideach run with its status, credits and observations; each observation's request_id opens the full response in /v1/history

All of these are free. Accounts with response logging switched off keep the recorded figures but not the full responses.

Change it

PATCH /v1/monitors/:id edits anything above, or { "status": "paused" } / "active". Editing inputs keeps the history of every input you didn't change. POST /v1/monitors/:id/run runs it now, at the normal price. DELETE /v1/monitors/:id stops it for good.

A monitor pauses itself after 3 runs in a row that failed (paused_errors) or couldn't be paid for (paused_credits). Resuming clears the count. Reaching max_credits_per_month skips runs without pausing.

Webhooks

Each run that finds changes, or fails, sends one POST per webhook (up to 5 per monitor, public HTTPS only):

{
  "type": "monitor.run.completed",
  "monitor": { "id": "mon_...", "name": "Acme Plumbing — map pack", "endpoint": "/v1/serp/local-pack" },
  "run": { "id": "run_...", "status": "complete", "credits_used": 4, "inputs_ok": 2, "inputs_failed": 0 },
  "events": [
    { "type": "left_top3", "severity": "alert", "input": { "keyword": "emergency plumber" },
      "before": { "rank": 2 }, "after": { "rank": 5 } }
  ]
}

Webhooks are signed with Standard Webhooks headers: webhook-id, webhook-timestamp and webhook-signature (v1,<base64 HMAC-SHA256 of id.timestamp.body>). Get the secret from GET /v1/account/webhook-secret and verify with any Standard Webhooks library; POST /v1/account/webhook-secret/rotate replaces it. A delivery that doesn't get a 2xx is retried after 5 minutes, 30 minutes, 2 hours and 12 hours.

Email

One email delivery per monitor:

  • { "type": "email", "mode": "immediate" } emails when a run finds a drop. Add "min_severity": "info" to hear about improvements too, or "alert" for top-3 exits only.
  • { "type": "email", "mode": "digest_weekly" } puts the monitor in a Monday summary with every other digest monitor on the account.

Monitor emails can be switched off with the usage summaries setting in your email preferences.

Limits

Free accounts: 1 active monitor, weekly or monthly. Paid plans and credit packs: 50 active monitors. Monitors need a live API key.

From an AI assistant

On the MCP server, monitor_create (with preview: true to try first), monitor_list, monitor_results, monitor_update and monitor_delete do the same. Ask: "Track the map pack for these 10 keywords every Monday and email me when we drop."