Not a developer? Still connect any API with n8n

Keine Coding-Kenntnisse? APIs verbinden

🇬🇧 English

This article contains affiliate links. If you buy through them, we may earn a commission at no extra cost to you.

n8n Basics: Connect Any API — Step by Step

Most people assume that working with APIs requires a developer background, a terminal window, and a lot of patience. The truth? With n8n, you can connect virtually any API visually — no code required. This guide walks you through exactly how to do it, from your first node to a fully working workflow.

What Is an API and Why Does It Matter?

An API (Application Programming Interface) is essentially a bridge between two software applications. When you book a flight, your travel app talks to the airline's API. When Slack sends you a notification, it's using an API call. APIs power almost every modern digital interaction.

The problem has always been accessing those APIs without writing custom code. That's exactly the gap that n8n fills. Its visual workflow builder lets you send and receive API requests using a drag-and-drop interface — without touching a single line of code.

What You Need Before You Start

  • An n8n account — cloud or self-hosted both work perfectly
  • An API endpoint — this is the URL you'll send requests to
  • API credentials — usually an API key or OAuth token from the service you want to connect

For this tutorial, we'll use a simple public API to demonstrate the core concepts. Once you understand the pattern, you can apply it to any API — whether it's OpenAI, Airtable, Stripe, or a custom internal tool.

Step 1: Create a New Workflow in n8n

Log into your n8n dashboard and click "New Workflow". You'll see an empty canvas — this is where your automation lives. Every workflow starts with a trigger node, which defines when your workflow runs.

For API testing, start with a Manual Trigger node. This lets you fire the workflow with a button click, which is perfect while you're building and experimenting.

Step 2: Add an HTTP Request Node

The HTTP Request node is the core tool for connecting any API in n8n. Click the "+" icon to add a new node, then search for "HTTP Request".

Once added, you'll see a configuration panel with the following key fields:

  • Method — GET, POST, PUT, DELETE, PATCH (choose based on what the API expects)
  • URL — the full API endpoint, e.g. https://api.example.com/data
  • Authentication — where you'll add your API key or token
  • Headers — additional request headers if required
  • Body / Parameters — the data you're sending with your request

Step 3: Configure Authentication

Most APIs require authentication. In n8n, you can handle this in several ways:

API Key (Header)

Go to the Authentication section of the HTTP Request node. Select "Header Auth", then enter the header name (e.g. Authorization) and the value (e.g. Bearer YOUR_API_KEY). This is the most common setup.

Query Parameter

Some APIs accept the key as a URL parameter. Select "Query Auth" and add the key name and value. The n8n node appends it to your URL automatically.

OAuth2

For services like Google or Salesforce, n8n supports full OAuth2 flows. Select "OAuth2" in the auth section and follow the credential setup wizard — it handles the token exchange for you.

Step 4: Send Your First Request

Once your URL and authentication are configured, click "Test Step". The n8n canvas will display the full API response in a structured JSON panel on the right. You can see every field returned, which makes it easy to understand what data you're working with.

If you get a 200 OK response — congratulations, you've successfully connected your first API. If you see an error, check the status code:

  • 401 — Authentication failed. Double-check your API key.
  • 403 — Forbidden. Your key may lack the required permissions.
  • 404 — Wrong URL. Verify the endpoint in the API documentation.
  • 429 — Rate limited. Slow down your requests or check your plan limits.

Step 5: Use the API Response in Your Workflow

Once n8n retrieves data from the API, you can pipe it into other nodes. For example:

  • Send a Slack message with the response data
  • Write the result to an Airtable or Google Sheet row
  • Feed the output into an AI node for summarisation or classification
  • Trigger a conditional branch based on a specific field value

Click the "+" after your HTTP Request node and connect it to whatever destination makes sense for your use case. The n8n expression editor (using {{ }} syntax) lets you reference any field from the API response directly in downstream nodes.

Step 6: Handle POST Requests and Send Data

Not all APIs are about receiving data — many require you to send it. For POST requests in n8n, switch the method to "POST" and expand the Body section.

You can send data as:

  • JSON — the most common format for modern REST APIs
  • Form Data — used by older APIs or file uploads
  • Raw — for custom formats or GraphQL queries

Use the expression editor to dynamically populate body fields from earlier nodes in your n8n workflow — making every API call personalised and data-driven.

Pro Tips for API Workflows in n8n

  • Use the "Respond to Webhook" node if you want to build your own API endpoint inside n8n
  • Paginate with the Loop Over Items node when an API returns data across multiple pages
  • Store credentials centrally in the n8n credentials manager so you can reuse them across workflows
  • Use error handling nodes to catch failed API calls and send alerts instead of silent failures

Start Connecting APIs Today

APIs are the backbone of modern automation — and n8n makes them accessible to anyone, regardless of technical background. Whether you're pulling data from a CRM, pushing results to a database, or chaining multiple services together, the HTTP Request node is your universal key.

Start with one API, run your first successful request, and you'll quickly see how every digital tool becomes a building block in your n8n automation stack.

This post was created with tools we use and recommend: n8n for workflow automation, Turbotic as an AI-native automation alternative, ElevenLabs for AI voiceover, Placid for visual content creation, and Hostinger for reliable VPS hosting. Some links are affiliate links.

🇩🇪 Deutsch

Dieser Artikel enthält Affiliate-Links (Werbung). Kaufst du darüber, erhalten wir ggf. eine Provision – für dich ohne Mehrkosten.

n8n Grundlagen: Jede API verbinden — Schritt für Schritt

Viele Menschen glauben, dass der Umgang mit APIs Programmierkenntnisse, ein Terminal und viel Geduld erfordert. Die Wahrheit sieht anders aus: Mit n8n lässt sich nahezu jede API visuell verbinden — ganz ohne Code. Diese Anleitung führt dich Schritt für Schritt durch den gesamten Prozess, vom ersten Node bis zum fertigen Workflow.

Was ist eine API und warum ist sie wichtig?

Eine API (Application Programming Interface) ist im Grunde eine Brücke zwischen zwei Softwareanwendungen. Wenn du einen Flug buchst, kommuniziert deine Reise-App mit der API der Fluggesellschaft. Wenn Slack dir eine Benachrichtigung schickt, läuft das über einen API-Aufruf. APIs treiben fast jede moderne digitale Interaktion an.

Das Problem war bisher immer der Zugang zu diesen APIs, ohne eigenen Code schreiben zu müssen. Genau diese Lücke schließt n8n. Der visuelle Workflow-Builder ermöglicht es dir, API-Anfragen per Drag-and-drop zu senden und zu empfangen — ohne eine einzige Zeile Code.

Was du vorher brauchst

  • Ein n8n-Konto — Cloud oder Self-hosted funktionieren beide einwandfrei
  • Einen API-Endpunkt — die URL, an die du Anfragen sendest
  • API-Zugangsdaten — in der Regel ein API-Schlüssel oder OAuth-Token des gewünschten Dienstes

In diesem Tutorial verwenden wir eine einfache öffentliche API, um die grundlegenden Konzepte zu veranschaulichen. Sobald du das Muster verstanden hast, kannst du es auf jede API anwenden — egal ob OpenAI, Airtable, Stripe oder ein internes Tool.

Schritt 1: Neuen Workflow in n8n erstellen

Melde dich in deinem n8n-Dashboard an und klicke auf „Neuer Workflow". Du siehst eine leere Canvas — hier lebt deine Automatisierung. Jeder Workflow beginnt mit einem Trigger-Node, der festlegt, wann der Workflow ausgeführt wird.

Für API-Tests starte mit einem Manual Trigger-Node. Damit kannst du den Workflow per Klick auslösen — ideal beim Aufbauen und Ausprobieren.

Schritt 2: HTTP Request Node hinzufügen

Der HTTP Request Node ist das zentrale Werkzeug, um in n8n jede beliebige API zu verbinden. Klicke auf das „+"-Symbol, um einen neuen Node hinzuzufügen, und suche nach „HTTP Request".

Nach dem Hinzufügen erscheint ein Konfigurationspanel mit folgenden wichtigen Feldern:

  • Methode — GET, POST, PUT, DELETE, PATCH (je nach API-Anforderung)
  • URL — der vollständige API-Endpunkt, z.B. https://api.beispiel.com/daten
  • Authentifizierung — hier trägst du deinen API-Schlüssel oder Token ein
  • Header — zusätzliche Anfrage-Header, falls erforderlich
  • Body / Parameter — die Daten, die du mit deiner Anfrage sendest

Schritt 3: Authentifizierung konfigurieren

Die meisten APIs erfordern eine Authentifizierung. In n8n gibt es dafür mehrere Möglichkeiten:

API-Schlüssel (Header)

Öffne den Bereich Authentifizierung im HTTP Request Node. Wähle „Header Auth" und gib den Header-Namen (z.B. Authorization) sowie den Wert (z.B. Bearer DEIN_API_SCHLÜSSEL) ein. Das ist die häufigste Methode.

Query-Parameter

Manche APIs akzeptieren den Schlüssel als URL-Parameter. Wähle „Query Auth" und füge Namen und Wert hinzu. Der n8n-Node hängt ihn automatisch an deine URL an.

OAuth2

Für Dienste wie Google oder Salesforce unterstützt n8n vollständige OAuth2-Flows. Wähle „OAuth2" im Authentifizierungsbereich und folge dem Einrichtungsassistenten — der Token-Austausch wird automatisch erledigt.

Schritt 4: Erste Anfrage senden

Sobald URL und Authentifizierung konfiguriert sind, klicke auf „Schritt testen". Die n8n-Canvas zeigt die vollständige API-Antwort als strukturiertes JSON-Panel auf der rechten Seite. Du siehst jedes zurückgegebene Feld — perfekt, um zu verstehen, mit welchen Daten du arbeitest.

Bei einem 200 OK-Status hast du deine erste API erfolgreich verbunden. Bei einem Fehler helfen dir diese Statuscodes:

  • 401 — Authentifizierung fehlgeschlagen. API-Schlüssel prüfen.
  • 403 — Zugriff verweigert. Möglicherweise fehlen dem Schlüssel Berechtigungen.
  • 404 — Falsche URL. Den Endpunkt in der API-Dokumentation überprüfen.
  • 429 — Rate Limit erreicht. Anfragen verlangsamen oder Plan-Limits prüfen.

Schritt 5: API-Antwort im Workflow verwenden

Sobald n8n Daten von der API abgerufen hat, kannst du sie an andere Nodes weitergeben. Zum Beispiel:

  • Eine Slack-Nachricht mit den Antwortdaten senden
  • Das Ergebnis in Airtable oder Google Sheets schreiben
  • Die Ausgabe an einen KI-Node zur Zusammenfassung oder Klassifizierung übergeben
  • Einen bedingten Zweig basierend auf einem bestimmten Feldwert auslösen

Klicke auf das „+" nach deinem HTTP Request Node und verbinde ihn mit dem gewünschten Ziel. Der n8n-Ausdrucks-Editor (mit {{ }}-Syntax) ermöglicht es dir, jedes Feld der API-Antwort direkt in nachfolgenden Nodes zu referenzieren.

Schritt 6: POST-Anfragen und Daten senden

Nicht alle APIs dienen dem Empfangen von Daten — viele erfordern das Senden von Daten. Für POST-Anfragen in n8n wechselst du die Methode auf „POST" und öffnest den Body-Bereich.

Du kannst Daten in folgenden Formaten senden:

  • JSON — das häufigste Format für moderne REST-APIs
  • Formulardaten — für ältere APIs oder Datei-Uploads
  • Raw — für benutzerdefinierte Formate oder GraphQL-Abfragen

Mit dem Ausdrucks-Editor kannst du Body-Felder dynamisch aus früheren Nodes deines n8n-Workflows befüllen — so wird jeder API-Aufruf individuell und datengesteuert.

Profi-Tipps für API-Workflows in n8n

  • „Respond to Webhook"-Node nutzen, wenn du deinen eigenen API-Endpunkt in n8n aufbauen möchtest
  • „Loop Over Items"-Node für Paginierung verwenden, wenn eine API Daten seitenweise zurückgibt
  • Zugangsdaten zentral speichern im n8n-Credentials-Manager, um sie in mehreren Workflows wiederzuverwenden
  • Fehlerbehandlungs-Nodes einsetzen, um fehlgeschlagene API-Aufrufe abzufangen und Benachrichtigungen zu senden statt stille Fehler zu riskieren

Starte heute mit APIs

APIs sind das Rückgrat moderner Automatisierung — und n8n macht sie für jeden zugänglich, unabhängig vom technischen Hintergrund. Ob du Daten aus einem CRM abrufst, Ergebnisse in eine Datenbank schreibst oder mehrere Dienste miteinander verknüpfst — der HTTP Request Node ist dein universeller Schlüssel.

Starte mit einer API, führe deine erste erfolgreiche Anfrage aus, und du wirst schnell erkennen, wie jedes digitale Tool zu einem Baustein in deinem n8n-Automatisierungs-Stack wird.

Dieser Beitrag wurde mit Tools erstellt, die wir selbst nutzen und empfehlen: n8n für Workflow-Automatisierung, Turbotic als KI-native Automatisierungsalternative, ElevenLabs für KI-Voiceover, Placid für visuelle Content-Erstellung und netcup für zuverlässiges VPS-Hosting in Deutschland. Einige Links sind Affiliate-Links.