Quick Overview
This workflow collects a URL via an n8n Form, follows HTTP redirects to the final destination, extracts page and Open Graph/Twitter metadata from the final HTML, and displays the results back in a form response using only built-in n8n nodes.
How it works
- Receives a URL submission from the n8n Form trigger.
- Normalizes the input so it includes an http/https scheme.
- Requests the URL with redirect-following disabled to capture the HTTP status and Location header.
- If the response is a redirect (301/302/307/308), tracks visited URLs and redirect count, detects loops or exceeding the redirect limit, and either continues to the next Location URL or shows a redirect/loop error.
- If the response is 200 OK, parses the HTML to extract the title, meta description, canonical URL, language, Open Graph tags, Twitter Card tags, and common tracking parameters.
- Displays the extracted metadata and final URL in a results form, then redirects back to the input form page.
Setup
- Activate the workflow so the n8n Form trigger has a Production URL.
- Copy the Form trigger Production URL and paste it into the Set URL value to replace REPLACE_WITH_PRODUCTION_FORM_URL so the completion step redirects back to the input form.
- If needed, adjust the maximum redirect limit (currently 10) to fit your use case.