Master HTTP Requests in n8n: Fetch, Send & Process Data [Beginner Guide]

Learn everything about the n8n HTTP Request node — GET, POST, authentication, JSON parsing, and real API integration examples for beginners.
httpRequest
manualTrigger
htmlExtract
+4
Workflow Identifier: 1425
NODES in Use: Manual Trigger, Sticky Note, Set, HTTP Request, Item Lists, HTML Extract, If
Automate HTTP requests with n8n and HTTP Request node

Press CTRL+F5 if the workflow didn't load.

Learn how to Build this Workflow with AI:

What This Automation Does

This workflow fetches data from several web services and processes it automatically.

It solves the problem of manual data gathering from APIs and web pages. The main result is getting clean, split, and paginated data ready to use without manual work.

Specifically, the workflow:

  • Gets mock album data from a test API and breaks it into items for easy use.
  • Downloads a random Wikipedia page and extracts the article title from the HTML using a CSS selector.
  • Calls the GitHub API to collect a user’s starred repositories, handling multiple pages automatically.
  • Splits large response bodies into single items to simplify later processing.
  • Checks if more data pages remain, to loop requests only when needed.
  • Runs on manual start, letting you control execution and see results step-by-step.

Who Should Use This Workflow

This is good for people who need to gather and organize data from APIs and HTML sources. It fits developers and beginners wanting to avoid repetitive data copying and parsing.

You do not need deep coding skills but some knowledge of internet data requests helps.

The workflow works best for retrieving lists, handling pagination, and extracting HTML content cleanly.


Tools and Services Used

  • jsonplaceholder.typicode.com: Supplies sample JSON album data.
  • Wikipedia Random Page URL: Source for fetching article HTML pages.
  • GitHub API: Provides user star data with pagination parameters.

Beginner Step-by-Step: How to Use This Workflow in n8n Production

Step 1: Download and Import Workflow

  1. Click the Download button on this page to get the workflow file.
  2. Open the n8n editor where you want to use the flow.
  3. Click “Import from File” to add the downloaded workflow.

Step 2: Configure Basic Settings

  1. Add necessary API credentials or keys, like a GitHub personal access token if private data is needed.
  2. Update any IDs, GitHub usernames, emails, or folders in the Set node as required for your data.
  3. If specific URLs or prompts are part of the workflow inputs, paste them in as instructed.

Step 3: Test the Workflow

  1. Manually trigger the workflow by clicking “Execute Workflow”.
  2. Watch each node output to ensure data flows correctly and results look right.

Step 4: Activate for Production

  1. Once tests pass, enable the workflow to run manually or add scheduling nodes like Cron to automate on intervals.
  2. Monitor logs in n8n for errors or abnormal stops.

This simple process gets the workflow running for real data collection fast.

For better control and privacy, consider self-host n8n.


Inputs, Processing, and Outputs Explained

Inputs

  • Manual trigger to start the workflow.
  • API URLs and parameters set in the Set node.
  • GitHub username, page number, and items per page.

Processing Steps

  • Request mock album JSON and split into items.
  • Request random Wikipedia page HTML and extract the title using CSS selectors.
  • Use GitHub API to get stars list with pagination parameters.
  • Split GitHub star list JSON into individual items.
  • Conditionally check if next page exists based on empty data.
  • Increment page count to continue pagination if more data is available.

Outputs

  • Lists of album items for easy use.
  • Plain text article title from Wikipedia page.
  • Complete paginated list of GitHub starred repositories.
  • All data separated into individual items ready for other workflows or analysis.

Edge Cases and Failures

  • Empty or error HTTP responses: Can happen with bad URLs, missing query parameters, or no internet. Verify correct settings and connectivity.
  • No data from HTML extraction: Usually due to wrong CSS selectors or HTML structure changes. Update the selector in the extraction node.
  • Pagination loops forever: Happens if the empty check is incorrect. Fix the If – Are we finished? node condition so it stops at the right time.

Customization Ideas

  • Change GitHub usernames in the Set node to get stars for different users.
  • Adjust perpage number to speed up or slow down data retrieval size.
  • Pick other Wikipedia elements by changing the CSS selector, like paragraphs or infoboxes.
  • Add new HTTP request nodes for other APIs and process their results in the same workflow.

Summary and Results

✓ Manual HTTP data fetching is replaced by automated workflow steps.

✓ JSON and HTML data are split into smaller, usable items.

✓ Pagination handled without manual reruns.

✓ Data from multiple different sources is cleaned and ready fast.

→ Results can feed reports, dashboards, or further workflows.

→ Ease of use helps both beginners and pros to save time.


Automate HTTP requests with n8n and HTTP Request node

Visit through Desktop to Interact with the Workflow.

Frequently Asked Questions

Yes, but the user must add a GitHub API Key credential with proper permissions in the workflow.
Using the wrong CSS selector or changes to the webpage HTML structure will cause no data to be extracted.
It checks if the response data is empty to decide when to stop. Otherwise, it increases the page number to fetch more data.
Check the URL correctness, internet connection, and verify query parameters like page and per_page values.

Promoted by BULDRR AI

Related Workflows

Automate Twist Channel Creation and Messaging with n8n

This workflow automates creating and updating a channel in Twist and sending a personalized message to specific users. It eliminates manual setup errors and saves time managing Twist communications.

Automate Ideogram Image Generation with Google Sheets & Gmail

This workflow automates graphic design image generation via Ideogram AI, storing image data in Google Sheets and Google Drive, with email alerts via Gmail. It saves designers hours by automating image creation, remixing, review, and record-keeping.

Automate IT Support with Slack and OpenAI in n8n

Streamline IT support by automating Slack message handling using n8n and OpenAI. This workflow handles Slack DMs, filters bots, queries a Confluence knowledge base, and delivers AI-generated responses, improving support efficiency and response time.

Automate Crypto Analysis with CoinMarketCap & n8n AI Agent

Discover how this unique n8n workflow leverages CoinMarketCap’s multi-agent AI to deliver precise, real-time cryptocurrency insights directly via Telegram. Manage crypto data analysis efficiently with automated multi-source API integration.

Automate Gumroad to Beehiiv Subscriber Sync with n8n

Learn how to automatically add new Gumroad sales customers as Beehiiv newsletter subscribers using n8n automation. This workflow saves time by syncing sales data to Google Sheets CRM and notifying your Telegram channel instantly.

Generate On-Brand Blog Articles Using n8n and OpenAI

This workflow automates the creation of on-brand blog articles by analyzing existing company content using n8n and OpenAI. It extracts article structures and brand voice to produce consistent draft articles, saving significant content creation time.
1:1 Free Strategy Session
Your competitors are already automating. Are you still paying for it manually?

Do you want to adopt AI Automation?

Every hour your team does repetitive work, you're burning real money.
While you wait, faster businesses are cutting costs and moving quicker.
AI and automations aren't the future anymore — they're the present.

Book a live 1-on-1 session where we show you exactly which of your daily tasks can be automated — and what it’s costing you not to.