Build a Custom API Endpoint for Personalized Google Searches
detail.loadingPreview
This workflow demonstrates how to easily create a custom API endpoint using n8n. It accepts `first_name` and `last_name` as query parameters, dynamically generates a personalized Google search URL, and returns it as a direct response. Ideal for quickly generating specific search links on demand.
About This Workflow
Unlock the power of custom APIs with this simple n8n workflow. Designed for rapid deployment, it transforms incoming HTTP requests into personalized Google search links. A Webhook node serves as your API's entry point, capturing user-defined first_name and last_name parameters. These inputs are then intelligently processed by a Set node to construct a precise Google search URL. Finally, the Respond to Webhook node crafts a human-readable message, delivering the personalized search link directly back to the requester. This workflow is a perfect example of how to build lightweight, data-driven microservices without writing a single line of code.
Key Features
- Instant API Creation: Set up a dedicated API endpoint in minutes using the
Webhooknode. - Dynamic URL Generation: Automatically construct personalized Google search URLs based on input parameters.
- Personalized Responses: Return customized text responses including the generated URL to the caller.
- No-Code Simplicity: Build powerful API functionality without needing to write complex code.
- Query Parameter Support: Easily accept and process data passed via URL query parameters.
How To Use
- Activate the Workflow: After importing the workflow, ensure it's active. This will make the
Webhooknode start listening for requests. - Get the Test URL: Click on the
Webhooknode in the workflow canvas. In the node's settings panel, copy theWebhook URL(orTest Webhook URLduring testing). - Make a Test Request: Open a new browser tab and paste the copied URL. Append the following query parameters to the end:
?first_name=bob&last_name=dylan.- Example:
YOUR_WEBHOOK_URL/?first_name=bob&last_name=dylan
- Example:
- Observe the Output: You will receive a response in your browser tab similar to:
The URL of the Google search query for the term "bob dylan" is: https://www.google.com/search?q=bob+dylan.
Apps Used
Workflow JSON
{
"id": "e67bdb47-e581-4486-b517-5c82a8f2ad00",
"name": "Build a Custom API Endpoint for Personalized Google Searches",
"nodes": 7,
"category": "DevOps",
"status": "active",
"version": "1.0.0"
}Note: This is a sample preview. The full workflow JSON contains node configurations, credentials placeholders, and execution logic.
Get This Workflow
ID: e67bdb47-e581...
About the Author
SaaS_Connector
Integration Guru
Connecting CRM, Notion, and Slack to automate your life.
Statistics
Related Workflows
Discover more workflows you might like
Effortless Bug Reporting: Slack Slash Command to Linear Issue
Streamline your bug reporting process by instantly creating Linear issues directly from Slack using a simple slash command. This workflow enhances team collaboration by providing immediate feedback and a structured approach to logging defects, saving valuable time for development and QA teams.
Visualize Your n8n Workflows: Interactive Dashboard with Mermaid.js
Gain unparalleled visibility into your n8n automation landscape. This workflow transforms your n8n instance into a dynamic, interactive dashboard, leveraging Mermaid.js to visualize all your workflows in one accessible place.
Automate Qualys Report Generation and Retrieval
Streamline your Qualys security reporting by automating the generation and retrieval of reports. This workflow ensures timely access to crucial security data without manual intervention.