BULDRR AI Vikash KumarSchedule a Call
Updated Workflow #1425

n8n HTTP Request Node 2026: Fetch Any API Data in 3 Steps (With Examples)

The n8n HTTP Request node lets you connect to literally any API without code. This guide shows 3-step setup with real examples: OpenAI, Airtable, weather APIs, and more.

n8n HTTP Request Node 2026: Fetch Any API Data in 3 Steps (With Examples)
CONNECTS
Manual Trigger, Sticky Note, Set, HTTP Request, Item Lists, HTML Extract, If
Learn it with AI
✦ SEE IT BEFORE YOU DOWNLOAD

The canvas, and the 7 nodes behind it.

Preview of the n8n HTTP Request Node 2026: Fetch Any API Data in 3 Steps (With Examples) workflow canvas in n8n
✦ NODE BY NODE

What runs inside this workflow

n8n HTTP Request Node 2026: Fetch Any API Data in 3 Steps (With Examples) is built from these n8n nodes: Manual Trigger, Sticky Note, Set, HTTP Request, Item Lists, HTML Extract, If.

    ✦ LEARN HOW TO BUILD THIS WORKFLOW WITH AI
    Send this workflow to your assistant and have it taught to you.

    Each button opens the assistant with the prompt already written — asking it to explain this exact workflow step by step, as if teaching a complete beginner.

    Using our workflows often?
    Mark BULDRR AI as a preferred source and our templates surface higher in your own Google results.
    Add as a preferred source

    What This Automation Does

    This workflow is a hands-on demonstration of the four most common HTTP Request patterns you'll encounter in real n8n projects.

    Part 1 — Fetching and splitting a JSON array The workflow starts by making a GET request to JSONPlaceholder, a free test API that returns realistic mock data. It requests a list of album records, then passes the response through an Item Lists node to split the array into individual items. This is the standard pattern for any API that returns a list — you almost always want individual items flowing through your workflow, not one large array.

    Part 2 — Web scraping with CSS selectors Next, the workflow fetches a random Wikipedia article page — raw HTML. The HTML Extract node then uses a CSS selector to pull just the article title out of the page. This teaches you how to treat any webpage as a data source, not just structured APIs.

    Part 3 — Paginated API calls with the GitHub API The third section hits the GitHub API to retrieve a user's starred repositories. GitHub returns results in pages — 30 items per request by default. The workflow handles this automatically: it checks after each request whether the returned data is empty, and if not, increments the page number and loops. This pagination pattern applies to virtually every API that returns large datasets.

    Part 4 — Conditional logic with the IF node An IF node acts as the pagination controller. It evaluates whether the current page returned any data. If yes, it loops back and fetches the next page. If the response is empty, it stops. This is cleaner than guessing how many pages exist upfront.

    Understanding the n8n HTTP Request Node

    Before importing the workflow, it helps to know what you're working with. The HTTP Request node is n8n's generic connector to the internet. You configure it with a URL, a method, optional headers, and optional body — and it makes the request and returns the response as n8n data.

    The four HTTP methods you'll use most:

    GET — Fetches data from a URL. No body needed. Use this for reading from APIs, checking endpoints, or scraping pages. Most public APIs start here.

    POST — Sends data to a URL. Requires a body, usually JSON. Use this when you're creating something on the remote service — submitting a form, creating a record, triggering an event.

    PUT / PATCH — Updates an existing resource. PUT replaces the entire record; PATCH updates only the fields you send. Use these for edit operations in CRM or project management APIs.

    DELETE — Removes a resource by ID. Use carefully — most APIs require authentication for this.

    Key node settings you'll configure in this workflow:

    • URL — The full endpoint address including query parameters if needed
    • Method — GET, POST, PUT, PATCH, or DELETE
    • Authentication — Where you attach API keys, Bearer tokens, or Basic Auth credentials
    • Response Format — Set to JSON when the API returns structured data; set to String when scraping HTML
    • Query Parameters — Key-value pairs appended to the URL (like ?page=1&per_page=30)
    • Headers — Required by some APIs, especially those needing Content-Type: application/json or custom auth headers

    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

    How to Set Up This Workflow in n8n

    Step 1 — Download and import Click the Download button at the top of this page to get the workflow .json file. In your n8n editor, click the menu icon in the top-right corner and select Import from File. Upload the file. All nodes will appear pre-connected on the canvas.

    Step 2 — Set up GitHub authentication The GitHub API section of this workflow calls a public endpoint, so no token is required for public starred repos. However, if you want to test with a private account or increase your rate limit (GitHub's unauthenticated limit is 60 requests/hour), you'll need a Personal Access Token. Go to GitHub → Settings → Developer Settings → Personal Access Tokens → Generate New Token. In n8n, open the GitHub API HTTP Request node, set Authentication to Header Auth, use Authorization as the header name, and Bearer YOUR_TOKEN_HERE as the value.

    Step 3 — Update the GitHub username Open the Set node near the start of the workflow. Find the github_username field and replace the placeholder value with any GitHub username you want to pull starred repos for. You can use torvalds, sindresorhus, or any public GitHub account to test.

    Step 4 — Understand the CSS selector for Wikipedia The HTML Extract node is configured to pull the article title from a Wikipedia page using the CSS selector h1#firstHeading. This works for Wikipedia's current HTML structure. If you ever adapt this node for a different website, use your browser's DevTools (right-click any element → Inspect) to find the right selector for that page.

    Step 5 — Run the test Click the Manual Trigger node and press Execute Workflow. Watch the execution panel on the right. Each node should show a green checkmark and a count of items processed. Click any node to see exactly what data came through at that point.

    Step 6 — Read the execution output After the run completes: the first branch returns a list of album items from JSONPlaceholder; the second branch returns the Wikipedia article title as a plain text string; the third branch returns a complete list of the user's GitHub starred repositories, with each repo as its own item.

     

    Inputs, Processing, and Outputs Explained

    Node-by-Node Breakdown

    Manual Trigger — Starts the workflow on demand. Swap with a Schedule or Webhook trigger for automated runs.

    Set Node — Stores config variables: GitHub username, starting page (1), and items per page (30). One place to update, no hunting across the canvas.

    HTTP Request — JSONPlaceholder — GET request to jsonplaceholder.typicode.com/albums. Returns 100 mock album records as JSON. No auth needed.

    Item Lists — Split Albums — Splits that 100-item array into individual items. Standard practice for any API that returns a list.

    HTTP Request — Wikipedia — GET request to en.wikipedia.org/wiki/Special:Random. Response Format must be String, not JSON — because the response is raw HTML.

    HTML Extract — Pulls the article title from the HTML using CSS selector h1#firstHeading. Add more rules here to extract multiple elements from the same page.

    HTTP Request — GitHub Stars — Calls the GitHub starred repos endpoint with page and per_page pulled from the Set node. Add a Header Auth credential here if you need a token.

    Item Lists — Split Stars — Same split pattern — breaks the repos array into individual items for downstream processing.

    IF Node — Are We Finished? — Checks if the GitHub response is empty. Empty = stop. Has data = loop back, fetch next page. Condition: {{$json["body"].length}} equals 0.

    Set Node — Increment Page — Adds 1 to the page counter ({{$node["Set"].json["page"] + 1}}), then feeds it back into the GitHub request for the next loop.

     

    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.  

    Frequently Asked Questions

    Can this workflow work with private GitHub repositories?

    Yes, but the user must add a GitHub API Key credential with proper permissions in the workflow.

    What causes the HTML Extract node to return no results?

    Using the wrong CSS selector or changes to the webpage HTML structure will cause no data to be extracted.

    How does the workflow handle GitHub API pagination?

    It checks if the response data is empty to decide when to stop. Otherwise, it increases the page number to fetch more data.

    What should be done if the HTTP Request node returns errors?

    Check the URL correctness, internet connection, and verify query parameters like page and per_page values.

    Vikash Kumar
    WRITTEN BY
    Vikash Kumar
    Founder, BULDRR AI
    Building AI agents, n8n workflows and end-to-end automation for 30+ Brands across India, the US, Europe, Dubai & Australia. 7+ years of Experience saving founders real hours every week - no code required.

    Related workflows.

    All 10,467+ templates →
    FREE 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. Open template → FREE 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. Open template → FREE 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. Open template → FREE 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. Open template → FREE Automate Archiving Spotify Discover Weekly with n8n This automation workflow solves the hassle of manually archiving your Spotify Discover Weekly playlist by automatically comparing and adding only unique tracks to an archive playlist every Monday. It saves time, avoids duplicates, and keeps your archived music collection organized effortlessly using n8n. Open template → FREE Automate Analyzing Sales Call Transcripts with n8n & AI Agents This n8n workflow automates the extraction of structured insights from sales call transcripts using AI agents focused on sales, marketing, and product teams. It streamlines data processing, enabling faster decision-making and team alignment. Open template → FREE Automated SSL Expiry Alert System with n8n & Google Sheets This n8n workflow automates SSL certificate expiry monitoring by fetching URLs from Google Sheets, checking their SSL status via SSL-Checker.io, updating the sheet with results, and sending targeted email and Telegram alerts for certificates that are invalid or near expiry. Open template → FREE Automate Task Creation in ClickUp with n8n Struggling to manually create tasks in ClickUp? This beginner-friendly n8n workflow automates task creation, saving you time and reducing errors. Learn how to create tasks automatically with a simple trigger and ClickUp integration. Open template → FREE Automate Todoist Task Snoozing with n8n Workflow Struggling to manage and snooze your Todoist tasks efficiently? This detailed n8n workflow automates moving tasks between Inbox and Snoozed projects based on due dates, saving you hours of manual task juggling and ensuring timely task returns. Open template → FREE Build OpenAI Assistant with Google Drive Using n8n Automation This workflow automates creating and updating an OpenAI-powered Travel Assistant using a Google Drive file for accurate, specific user replies. It saves time by streamlining assistant updates and chat interactions seamlessly. Open template → FREE Automate WooCommerce Product Announcements on Twitter & Telegram Save time and boost your WooCommerce store's visibility by automatically posting new product announcements on Twitter and Telegram with this n8n workflow. Avoid manual posting errors and reach your audience instantly when new products go live. Open template → FREE Automate Zendesk to Asana Task Creation with n8n This detailed guide shows how to automate task creation in Asana from new Zendesk tickets using n8n. It solves the common challenge of manually duplicating support requests into project management, saving time and reducing errors. Open template → FREE Automate Image Alt Text Auditing & Enhancement with n8n & OpenAI Discover how this n8n workflow automates auditing and enhancing image alt text from any webpage using OpenAI GPT-4. It helps fix poor or missing alt attributes quickly and accurately, saving hours of manual work and improving web accessibility. Open template → FREE Create OpenAI Citation Workflow in n8n for File Retrieval This n8n workflow automates citation and source retrieval from OpenAI's vector store files, ensuring accurate content referencing and formatted output. It solves the problem of incomplete or strange citation text generated by AI, providing reliable markdown or HTML-ready citations for file-based AI assistance. Open template → FREE Automate Squarespace Order Fulfillment with n8n Workflow This n8n workflow automates order fulfillment for Squarespace Commerce by fetching pending orders and fulfilling them automatically, saving hours of manual work. It ensures timely fulfillment and customer notifications with seamless API integration. Open template → FREE Phishing Analysis Automation with n8n, URLScan.io & VirusTotal Automate phishing URL analysis with n8n using URLScan.io and VirusTotal. This workflow extracts URLs from unread Outlook emails, scans for threats, and reports via Slack, saving hours on threat detection. Open template → FREE Automate Image Analysis with Local Ollama Vision Models in n8n Struggling to extract detailed insights from images for business or research? This n8n workflow automates exhaustive image analysis using multiple local Ollama Vision Models, delivering structured, markdown-formatted results saved directly to Google Docs for collaboration and ease of use. Open template → FREE Automate Website Change Alerts N8N Telegram — Complete Guide [2026] Learn how to automate website change alerts n8n telegram with this step-by-step guide. Includes workflow examples, tips, and best practices for 2026. Open template → FREE Automate Text-to-Speech with Elevenlabs & n8n Webhook Save hours in your content creation by automating text-to-speech generation using n8n's webhook and Elevenlabs API. This workflow ensures seamless audio generation from text inputs, eliminating manual conversion errors and delays. Open template → FREE Automate Jira Notifications to Telegram with n8n Workflow This detailed guide shows how to automate Jira issue notifications to Telegram using n8n. Save hours by instantly sending updates, creation alerts, and assignment notifications to the right Telegram users, improving team communication and tracking. Open template → FREE Automate Daily Berlin Weather Updates to LINE with n8n Save time and stay informed by automatically sending daily weather updates for Berlin via LINE using n8n automation. This workflow fetches weather data every morning and messages you directly, eliminating manual checking and keeping you updated efficiently. Open template → FREE n8n Twitter Thread Generator 2026: AI Writes & Posts Threads From Any Content This n8n workflow uses AI to automatically convert any content — blog posts, videos, articles — into ready-to-post Twitter/X threads, complete with hooks and formatting. Open template → FREE Backup n8n Workflows to Bitbucket with Rate Limit Handling Automate daily backups of your n8n workflows directly to Bitbucket, intelligently managing API rate limits to avoid errors. This workflow ensures your automation definitions are safely versioned with minimal manual effort. Open template → FREE Automate Member and Activity Sync from Google Sheets to Orbit This blog explains how to automate moving community member data and their activities from Google Sheets into Orbit using n8n, solving tedious manual updates and ensuring accurate data syncing. Open template → FREE Sync Outlook Calendar with Notion via n8n Automation This workflow automates syncing Microsoft Outlook Calendar events into a Notion database. It solves the problem of manual calendar updates, saving time and reducing errors by automatically creating or updating Notion pages for your events. Open template →
    ✦ WANT THIS RUNNING IN YOUR BUSINESS?

    We’ll set it up for you.

    Tell us what you want it to do. We’ll wire the workflow, connect the credentials, and hand it over running.

    Keep exploring.