Quick overview
This workflow fetches web page content by trying a direct HTTP request first and falling back to Apify Web Fetch when needed, then normalizes the outputs and aggregates the results into a single dataset.
How it works
- Starts when you run the workflow manually.
- Sets an input URL list and an Apify API token to use for fetching.
- Fetches URL via n8n’s HTTP Request
- If the HTTP request fails, calls Apify Web Fetch to retrieve the page content.
- Normalizes the response into a consistent {url, content} structure for both HTTP and Apify results.
- Aggregates all fetched results into a single combined output.
Setup
- Generate an Apify API token in the Apify Console and replace <YOUR_APIFY_TOKEN> in the input parameters.
- Update the Url List array in the input parameters with the URLs you want to fetch (the workflow currently fetches only the first item in the list).
- If you expect redirects, anti-bot blocks, or non-HTML responses, adjust the HTTP Request options or rely on the Apify fallback accordingly.
Customization
- Provide target URLs via webhook or Google Sheets