Interactive Recipe Finder using API Ninjas - n8n Workflow

Build an interactive recipe finder using this simple n8n workflow. Accepts user input via an n8n form trigger and fetches real-time recipe results from the API Ninjas service.

Workflow Preview

Ready to automate?

Download this n8n workflow template and start using it instantly.

Who is this best for?

Users looking for interactive n8n templates for rapid application prototyping.
Developers who need a simple recipe search tool integrated into their internal systems.
Anyone interested in learning how to use an n8n trigger to manage front-end inputs and API lookups.
Technical writers needing an example of a secure HTTP request n8n node using header authentication.

Overview

This essential n8n workflow demonstrates how to build a responsive, user-facing application entirely within n8n. By leveraging the initial n8n trigger, users can input search parameters (like ingredients or dish names) directly into a hosted form. The n8n workflow then uses a secure HTTP Request n8n node to interact with the API Ninjas Recipe API, retrieving detailed instructions and ingredient lists based on the query. This specific n8n workflow serves as a perfect example of low-code application development, eliminating the need for separate front-end hosting while showcasing how powerful n8n templates can be for dynamic data retrieval tasks. It provides a quick and robust solution for fetching external data and presenting it back to the user instantly.

How it Works

The process begins when a user loads and submits the initial form, activating the primary n8n trigger.


  1. User Input Capture: The Form Trigger n8n node ("Form Trigger - Recipe Finder") waits for and captures the user's search term, stored in the query field.

  2. API Request Preparation: The input is passed to the HTTP Request n8n node ("Fetch Recipe from API Ninjas").

  3. Data Retrieval: This n8n node securely sends the query as a URL parameter to the API Ninjas Recipe endpoint (/v1/recipe). It uses pre-configured HTTP Header Authentication to authorize the request.

  4. Result Formatting: Once the recipe data is returned from the API, it is passed to the final n8n node.

  5. Display Completion: The final Form n8n node ("Show Recipe Result") uses the 'completion' operation to dynamically display the structured recipe information (title, formatted ingredients, and instructions) back to the user interface, finalizing the execution of this n8n workflow.

Installation Guide

To deploy this n8n workflow, follow these steps:


  1. Import: Copy the provided JSON and import it into your self-hosted or cloud instance of n8n.

  2. API Ninjas Credential: You must configure a generic credential for API Ninjas. This n8n workflow requires HTTP Header Authentication, typically using a header named X-Api-Key containing your API key.

  3. Activate: Ensure the workflow is active. You can then access the form interface by clicking the 'Form URL' provided by the "Form Trigger - Recipe Finder" n8n node.

  4. Testing: Submit a test query (e.g., "chicken pasta") to ensure the HTTP Request n8n node successfully communicates with the API and displays the results.

Node Details

Form Trigger - Recipe Finder (Form Trigger n8n trigger):
Function: Starts the n8n workflow upon form submission.
Key Configuration: Configured with a single input field named query. Sets the response mode to lastNode to ensure the final recipe output is displayed.
Fetch Recipe from API Ninjas (HTTP Request n8n node):
Function: Makes an authenticated external request to the recipe search API.
Key Configuration: URL set to https://api.api-ninjas.com/v1/recipe. The query parameter is dynamically mapped using an expression: ={{ $json.query }}. Uses httpHeaderAuth for secure API interaction.
Show Recipe Result (Form n8n node):
Function: Displays the final, formatted results back to the user who triggered the n8n workflow.
* Key Configuration: Operation is set to 'completion'. The completion title and message are dynamically populated using data returned from the previous n8n node, formatting ingredients and instructions using basic HTML tags.

Related n8n Workflows

Free

Nodes: 4 Nodes
Updated: December 26 2025
View all
Created by

We help you eliminate the busywork by building compact business tools tailored to your processes. 📞: https://smoothwork.ai/book-a-call ▶️: https://www.youtube.com/@vasarmilan

Featured*