{"product_id":"instagram-scraper-webhook-in-n8n-rapidapi-post-metrics","title":"Instagram Scraper Webhook in n8n: RapidAPI Post Metrics","description":"\u003ch3\u003eRapidly fetch Instagram post metrics in n8n with a single webhook\u003c\/h3\u003e\n\u003cp\u003eThis n8n workflow exposes a webhook that accepts an Instagram username, retrieves the account’s recent posts via RapidAPI’s \u003cstrong\u003einstagram-api1\u003c\/strong\u003e, and returns a clean JSON response with both \u003cstrong\u003epost-level details\u003c\/strong\u003e and \u003cstrong\u003eaggregate engagement metrics\u003c\/strong\u003e—ready for dashboards, analytics, or automation.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eAccepts a POST webhook request\u003c\/strong\u003e containing a JSON body like \u003ccode\u003e{ \"username\": \"nasa\" }\u003c\/code\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eValidates and cleans the username\u003c\/strong\u003e (e.g., removes \u003ccode\u003e@\u003c\/code\u003e or \u003ccode\u003einstagram.com\u003c\/code\u003e URL parts) and adds a \u003cstrong\u003escrape timestamp\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eCalls RapidAPI instagram-api1\u003c\/strong\u003e to fetch the user feed for the provided account.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eParses key post fields\u003c\/strong\u003e into a structured list, including caption, media URL(s) (image\/video), likes, comments, timestamp, permalink, and location.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eComputes summary statistics\u003c\/strong\u003e across the parsed posts (total posts, total likes\/comments, and per-post averages).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eReturns a JSON response\u003c\/strong\u003e containing the username, scrape time, summary metrics, and the full array of parsed posts.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eInfluencer and brand monitoring:\u003c\/strong\u003e regularly pull recent post engagement for a set of Instagram accounts.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSaaS analytics pipelines:\u003c\/strong\u003e feed post-level metrics into your reporting layer or internal BI tooling.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eContent performance tracking:\u003c\/strong\u003e compare average likes\/comments per post over time.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eAutomation engineers:\u003c\/strong\u003e trigger downstream workflows when new engagement data is fetched via webhook.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eNodes\/steps:\u003c\/strong\u003e \u003ccode\u003eset\u003c\/code\u003e, \u003ccode\u003ecode\u003c\/code\u003e, \u003ccode\u003ewebhook\u003c\/code\u003e, \u003ccode\u003ehttp request\u003c\/code\u003e, \u003ccode\u003erespond to webhook\u003c\/code\u003e (plus a sticky note for guidance).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eExternal integration:\u003c\/strong\u003e RapidAPI \u003cstrong\u003einstagram-api1\u003c\/strong\u003e endpoint authenticated with \u003ccode\u003eRAPIDAPI_KEY\u003c\/code\u003e (set as an environment variable in your n8n instance).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eOutput:\u003c\/strong\u003e structured webhook JSON with post-level fields and aggregated engagement metrics.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003cp\u003e\u003cstrong\u003eSetup note:\u003c\/strong\u003e create a RapidAPI subscription for \u003cstrong\u003einstagram-api1\u003c\/strong\u003e, set \u003ccode\u003eRAPIDAPI_KEY\u003c\/code\u003e, activate the workflow, then POST to the production webhook URL.\u003c\/p\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":45764308631731,"sku":"N8N-17870","price":51.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/dySIsOSgLVJXrbAxxrnIh_eRoWPktA.png?v=1786006939","url":"https:\/\/buyflowscripts.com\/products\/instagram-scraper-webhook-in-n8n-rapidapi-post-metrics","provider":"N8N Commerce","version":"1.0","type":"link"}