👉 n8n No Limits Access :

https://www.hostg.xyz/SHHAd

Hébergement VPS n8n | Automatisation sécurisée et évolutive

coupon -15% : DRFIRAS15

👉 Formation n8n en Français

Formation n8n en Français : Automatisation & Agents IA

coupon -20% : LANCEMENT : HERE


Extract structured data from any webpage using Apify and AI

This course lets you rebuild the workflow node by node, live, without needing to import any JSON. Send a webhook request with a URL (or a subject + domain to search for) and a list of fields to extract, and get back clean structured JSON — no browser, no Docker container, no proxy to maintain.

Flow diagram

Webhook Trigger
  -> Configuration (Set)
  -> Normalize Input (Set)
  -> IF: Has Target Data?
       FALSE -> Respond 400 (Missing Target Data)
       TRUE  -> IF: Has Direct Target URL?
                  TRUE  -> Use Direct URL (Set) --------------------------+
                  FALSE -> Search Page with Apify (HTTP, Google Search)   |
                             -> Extract First Result URL (Set)            |
                             -> IF: Found Matching URL?                   |
                                  FALSE -> Respond 404 (No URL Found)     |
                                  TRUE  -----------------------------------+
                                                                            v
                                                    Scrape Page with Apify (HTTP, Website Content Crawler)
                                                      -> Normalize Scraped Content (Set)
                                                      -> IF: Page Content Sufficient?
                                                           FALSE -> Respond 200 (No Content Extracted, success:false)
                                                           TRUE  -> Extract Requested Data (AI Agent)
                                                                      -> Respond 200 (Success)

Error output of "Search Page with Apify" AND "Scrape Page with Apify" both -> Respond 502 (Upstream Error)

Prerequisites & credentials

  1. Apify account — sign up at Apify (pay-as-you-go, first $5/month free). Get your API token in Console → Settings → Integrations → API token.
  2. In n8n, create a credential:
  3. Confirm you have an OpenAI API key credential in n8n (type: OpenAi API), named e.g. OpenAi account.
  4. No Docker, no self-hosted browser, no proxy whitelist needed — Apify runs the crawling infrastructure for you.

Node-by-node build guide

1. Receive Scrape Request (Webhook)