APITrackersHow trackers work

How trackers work

Rules + notification targets + interval. Re-arm a fired rule to fire it again.

ReferenceConceptual page — applies to multiple endpoints.
A tracker watches one target (URL, ASIN, IG handle, …) on a fixed cadence and runs a list of **rules** against each fresh scrape. When a rule's condition is true, the tracker dispatches the configured `notify_targets` (Telegram / Slack / Discord / Email / Teams / ad-hoc webhook). **Rule shape:** `{metric_id, operator, threshold, mode}`. • `metric_id` — platform-specific. Get the full list per platform from `GET /api/v1/tracking/metrics/{platform}`. Amazon: `product.price`, `product.availability`, `product.rating`, `product.reviews`, `product.images_count`. eBay: `product.price`, `product.available_qty`, `product.rating`, `product.bids`. Zillow / Realtor: `property.price`, `property.availability`. TripAdvisor: `hotel.price_min`, `hotel.rating`, `hotel.reviews_count`. Instagram: `profile.followers`, `profile.following`, `profile.post_count`, `profile.follower_change`. • `operator` — depends on metric kind. Numeric: `lt | lte | gt | gte | eq | neq | drops_by_pct | rises_by_pct | drops_by_amount | rises_by_amount`. Text: `eq | neq | contains | not_contains | changes`. Boolean: `becomes_true | becomes_false | eq`. • `threshold` — scalar to compare against (or `null` for `changes` / `becomes_*`). • `mode` — `one_shot` fires once on the false→true transition and stays armed-but-fired until you call the rearm endpoint or the condition flips back. `continuous` fires on every check where the condition is true. **Notification targets:** `notify_targets: [{cred_id, channel_id?, include_results?} | {ad_hoc_webhook: {url, secret?}}]`. Same shape as the `x-logpose-notify-targets` header on scrape submits. Up to 20 targets. **Per-platform extras:** Instagram requires either `account_id` (a connected IG account) or auto-rotation across your accounts. Amazon accepts `asin` instead of `url`. **Re-arming a rule:** `POST /trackers/{tracker_id}/rules/{rule_id}/rearm` resets `alert_triggered` so the rule can fire again. Optional body lets you change `mode` and/or `threshold` at the same time.

Response

placeholder inline shape — run scripts/dump_doc_samples.py on the server to populate real samples.
{
  "id": "trk_xyz",
  "platform": "amazon",
  "url": "https://www.amazon.com/dp/B0CZ4M9LP3",
  "rules": [
    {
      "id": "r_1",
      "metric_id": "product.price",
      "operator": "lte",
      "threshold": 199,
      "mode": "one_shot",
      "last_value": 219,
      "alert_triggered": false,
      "alert_at": null
    },
    {
      "id": "r_2",
      "metric_id": "product.rating",
      "operator": "drops_by_pct",
      "threshold": 5,
      "mode": "continuous",
      "last_value": 4.7,
      "alert_triggered": false,
      "alert_at": null
    }
  ],
  "notify_targets": [
    {
      "cred_id": "cred_tg_main",
      "channel_id": "-1001234567",
      "include_results": true
    }
  ],
  "interval_hours": 6,
  "active": true
}
API Key

Paste your full key once — cached in this browser for 7 days, then cleared.

This is a reference page.

Pick a specific endpoint from the sidebar to see code samples and send a test request.