Snag Watcher

Examples

Shelfmark

One phone app for watching many kinds of thing, from campsites to restocks, grouped by category.

Shelfmark

Open demo

  • golfnow.com
  • discogs.com
  • github.com
  • swpc.noaa.gov
  • jobs.ashbyhq.com
  • boards.greenhouse.io
  • cloudflarestatus.com
  • dice.fm

Requests

Each one creates a watcher. Preview it first to see what it would catch.

golfnow.com/tee-times/facility/1225-audubon-park-golf-club

Fires when availability = open_slot and price <= 40. Checks every 15m for 30 days. Try it in the playground.

Shell
curl https://api.watcher.staging.manwhas.shop/v1/watchers \
  -H "Authorization: Bearer $SNAG_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "target": {
      "query": "https://www.golfnow.com/tee-times/facility/1225-audubon-park-golf-club",
      "match": "listing",
      "attributes": {
        "party": 4,
        "holes": 18,
        "time_zone": "America/Chicago"
      }
    },
    "conditions": {
      "all": [
        {
          "field": "availability",
          "op": "=",
          "value": "open_slot"
        },
        {
          "field": "price",
          "op": "<=",
          "value": 40
        }
      ]
    },
    "where": {
      "sites": [
        "golfnow.com/tee-times/facility/1225-audubon-park-golf-club"
      ],
      "aggregate": "best"
    },
    "schedule": {
      "every": "15m",
      "until": "+30d"
    }
  }'

discogs.com/release/242785

Fires when price <= 100 and availability = in_stock. Checks every 1h for 90 days. Try it in the playground.

Shell
curl https://api.watcher.staging.manwhas.shop/v1/watchers \
  -H "Authorization: Bearer $SNAG_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "target": {
      "query": "https://www.discogs.com/release/242785",
      "match": "url"
    },
    "conditions": {
      "all": [
        {
          "field": "price",
          "op": "<=",
          "value": 100
        },
        {
          "field": "availability",
          "op": "=",
          "value": "in_stock"
        }
      ]
    },
    "where": {
      "sites": [
        "discogs.com/release/242785"
      ]
    },
    "schedule": {
      "every": "1h",
      "until": "+90d"
    }
  }'

node on github.com/nodejs/node

Fires when version >= 27 and release_status = available. Checks every 6h until it first fires. Try it in the playground.

Shell
curl https://api.watcher.staging.manwhas.shop/v1/watchers \
  -H "Authorization: Bearer $SNAG_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "target": {
      "query": "node",
      "match": "line"
    },
    "conditions": {
      "all": [
        {
          "field": "version",
          "op": ">=",
          "value": 27
        },
        {
          "field": "release_status",
          "op": "=",
          "value": "available"
        }
      ]
    },
    "where": {
      "sites": [
        "github.com/nodejs/node"
      ]
    },
    "schedule": {
      "every": "6h",
      "until": "after_first_match"
    }
  }'

swpc.noaa.gov/kp on swpc.noaa.gov/kp

Fires when kp >= 7. Checks every 30m for 180 days. Try it in the playground.

Shell
curl https://api.watcher.staging.manwhas.shop/v1/watchers \
  -H "Authorization: Bearer $SNAG_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "target": {
      "query": "swpc.noaa.gov/kp",
      "match": "listing"
    },
    "conditions": {
      "all": [
        {
          "field": "kp",
          "op": ">=",
          "value": 7
        }
      ]
    },
    "where": {
      "sites": [
        "swpc.noaa.gov/kp"
      ]
    },
    "schedule": {
      "every": "30m",
      "until": "+180d"
    }
  }'

designer on jobs.ashbyhq.com/linear, boards.greenhouse.io/figma, jobs.ashbyhq.com/notion

Fires when items added. Checks every 1h for 180 days. Try it in the playground.

Shell
curl https://api.watcher.staging.manwhas.shop/v1/watchers \
  -H "Authorization: Bearer $SNAG_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "target": {
      "query": "designer",
      "match": "line",
      "exclude": [
        "intern"
      ]
    },
    "conditions": {
      "all": [
        {
          "field": "items",
          "op": "added"
        }
      ]
    },
    "where": {
      "sites": [
        "jobs.ashbyhq.com/linear",
        "boards.greenhouse.io/figma",
        "jobs.ashbyhq.com/notion"
      ]
    },
    "schedule": {
      "every": "1h",
      "until": "+180d"
    }
  }'

Durable Objects on www.cloudflarestatus.com

Fires when status changed or status in partial_outage, major_outage. Checks every 5m for 90 days. Try it in the playground.

Shell
curl https://api.watcher.staging.manwhas.shop/v1/watchers \
  -H "Authorization: Bearer $SNAG_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "target": {
      "query": "Durable Objects",
      "match": "line"
    },
    "conditions": {
      "any": [
        {
          "field": "status",
          "op": "changed"
        },
        {
          "field": "status",
          "op": "in",
          "value": [
            "partial_outage",
            "major_outage"
          ]
        }
      ]
    },
    "where": {
      "sites": [
        "statuspage:www.cloudflarestatus.com"
      ]
    },
    "schedule": {
      "every": "5m",
      "until": "+90d"
    }
  }'

dice.fm/venue/earth-76a7 on dice.fm/venue/earth-76a7

Fires when availability = back_in_stock. Checks every 10m for 90 days. Try it in the playground.

Shell
curl https://api.watcher.staging.manwhas.shop/v1/watchers \
  -H "Authorization: Bearer $SNAG_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "target": {
      "query": "dice.fm/venue/earth-76a7",
      "match": "listing"
    },
    "conditions": {
      "all": [
        {
          "field": "availability",
          "op": "=",
          "value": "back_in_stock"
        }
      ]
    },
    "where": {
      "sites": [
        "dice.fm/venue/earth-76a7"
      ]
    },
    "schedule": {
      "every": "10m",
      "until": "+90d"
    }
  }'

backend on jobs.lever.co/spotify

Fires when items removed. Checks every 6h for 180 days. Try it in the playground.

Shell
curl https://api.watcher.staging.manwhas.shop/v1/watchers \
  -H "Authorization: Bearer $SNAG_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "target": {
      "query": "backend",
      "match": "line"
    },
    "conditions": {
      "all": [
        {
          "field": "items",
          "op": "removed"
        }
      ]
    },
    "where": {
      "sites": [
        "jobs.lever.co/spotify"
      ]
    },
    "schedule": {
      "every": "6h",
      "until": "+180d"
    }
  }'

Fires when text judged: "the change touches how user data is used, or adds or changes an arbitration clause". Checks every 1d for 365 days. Try it in the playground.

Shell
curl https://api.watcher.staging.manwhas.shop/v1/watchers \
  -H "Authorization: Bearer $SNAG_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "target": {
      "query": "https://www.mozilla.org/en-US/about/legal/terms/mozilla/",
      "match": "url",
      "attributes": {
        "summarize": true
      }
    },
    "conditions": {
      "all": [
        {
          "field": "text",
          "op": "judge",
          "value": "the change touches how user data is used, or adds or changes an arbitration clause"
        }
      ]
    },
    "where": {
      "sites": [
        "change:https://www.mozilla.org/en-US/about/legal/terms/mozilla/"
      ]
    },
    "schedule": {
      "every": "1d",
      "until": "+365d"
    }
  }'