{
  "name": "SocialCrawl: Track a creator's new posts every day",
  "nodes": [
    {
      "id": "node-1",
      "position": [
        260,
        0
      ],
      "name": "Run recipe",
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "parameters": {}
    },
    {
      "id": "node-2",
      "position": [
        520,
        0
      ],
      "name": "posts",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "parameters": {
        "method": "GET",
        "url": "https://www.socialcrawl.dev/v1/instagram/profile/posts?handle=instagram&since=2026-09-30",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "options": {
          "timeout": 300000
        }
      },
      "credentials": {
        "httpHeaderAuth": {
          "name": "SocialCrawl API key"
        }
      },
      "executeOnce": true,
      "retryOnFail": true,
      "maxTries": 4,
      "waitBetweenTries": 2000
    },
    {
      "id": "node-3",
      "position": [
        780,
        0
      ],
      "name": "setup 1: POST monitors",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "parameters": {
        "method": "POST",
        "url": "https://www.socialcrawl.dev/v1/monitors",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "sendBody": true,
        "contentType": "json",
        "specifyBody": "json",
        "jsonBody": "{\n  \"recipe\": \"instagram/profile/posts\",\n  \"params\": {\n    \"handle\": \"instagram\",\n    \"since\": \"now-1d\"\n  },\n  \"cadence\": \"daily\",\n  \"webhook_url\": \"https://example.com/hooks/socialcrawl\",\n  \"track\": {\n    \"metrics\": [\n      \"items[].post.engagement.likes\"\n    ]\n  },\n  \"alert_rules\": [\n    {\n      \"metric\": \"rows_new\",\n      \"op\": \"gt\",\n      \"value\": 0\n    }\n  ],\n  \"suppress_webhook_unless_alert\": true\n}",
        "options": {
          "timeout": 300000
        }
      },
      "credentials": {
        "httpHeaderAuth": {
          "name": "SocialCrawl API key"
        }
      },
      "executeOnce": true
    },
    {
      "id": "note",
      "name": "How this recipe works",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        0,
        -460
      ],
      "parameters": {
        "content": "## Track a creator's new posts every day\n\nPrice Creating is free. Each scheduled run bills 2 credits (instagram/profile/posts read plus 1 scheduling credit; estimated_cost_per_run on create); 1 run per day ≈ 2 credits/day. Running the read by hand once holds 1 credit.\n\nMeasured on 25/10/2026: 1 credit in 2 calls (the quote held 1). The TypeScript and Python programs both ran.\n\nFRESH=1 skips the cache and bills every call; a cache hit is free.\n\nInputs, set to a working example (change them to yours):\n\n  handle: The Instagram handle\n\n  webhook_url: HTTPS URL that receives each run\n\n  last_run_date: Date of your previous run, YYYY-MM-DD; leave since out on the first run\n\n**Key:** create a Header Auth credential named SocialCrawl API key, with Name x-api-key and your API key as Value, and pick it on every request node.\n\n**Rows:** a step that runs once per row takes the first 1 rows (change the number in its rows node).\n\n**Errors:** a request node stops the workflow on an API error. Read error.type in its output; retry only when error.retryable is true.",
        "width": 520,
        "height": 420
      }
    }
  ],
  "connections": {
    "Run recipe": {
      "main": [
        [
          {
            "node": "posts",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "posts": {
      "main": [
        [
          {
            "node": "setup 1: POST monitors",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {}
}
