Search and score contact details with Searchbug Contact Info API and Google Sheets
Ready for 3.0Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.
Nodes used (7)
- n8n Form Trigger
n8n-nodes-base.formTrigger - If
n8n-nodes-base.if - Extract from File
n8n-nodes-base.extractFromFile - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - HTTP Request
n8n-nodes-base.httpRequest - Google Sheets
n8n-nodes-base.googleSheets
What it does
Quick overview This workflow collects contact search inputs via an n8n form, queries the Searchbug Contact Info API, and saves any matching people or business records to Google Sheets, returning a “no records found” message when the API response is empty. How it works 1. Receives search criteria from an n8n form submission (for example name, company, address, phone, or email). 2. Maps the form fields into Searchbug API parameters and sends a POST request to the Searchbug Contact Info API (apicontact) requesting JSON output. 3. Checks the API response status and whether any records are returned. 4. For successful results, splits the returned records into individual items and flattens key fields like phone, address, and email into a consistent column format. 5. Appends each matched record as a new row in a Google Sheets tab. 6. If no records are found, returns a message indicating the search produced no matches. Setup 1. Add your Searchbug credentials by filling in COCODE and PASS in the HTTP request body parameters. 2. Connect a Google Sheets OAuth credential and set the target spreadsheet (Document ID) and sheet/tab name. 3. Ensure the destination sheet has header columns matching the fields being appended (FNAME, MNAME, LNAME, BNAME, PHONE, STREET, CITY, COUNTY, STATE, ZIP, EMAIL, DOB, AGE).