๐ฌ Validate single and bulk US phone numbers with Searchbug and Google Sheets
โก 16 views ยท ๐ฌ Document Extraction & Analysis
Description
Quick overview
This workflow collects a single phone number or a CSV upload via an n8n form, validates and normalizes US 10-digit numbers, enriches them using the Searchbug Phone Validator API, and appends the results (carrier, line type, VoIP, DNC/TCPA flags, and more) to Google Sheets.
How it works
- Receives a submission from an n8n form where the user enters one phone number or uploads a CSV file.
- Routes the input as single entry or bulk CSV, then normalizes the field to a consistent
phonevalue. - Filters out any records that are not 10-digit US phone numbers to avoid unnecessary API calls.
- Strips non-numeric characters and sends each valid phone number to the Searchbug Phone Validator (api_lnp3) endpoint.
- Extracts key fields from the Searchbug JSON response (or marks the lookup as failed) and appends the flattened results to a Google Sheets tab.
Setup
- Add your Searchbug
co_codeandpassvalues to the HTTP request query parameters used for the Searchbug API call. - Connect a Google Sheets credential and set the target Spreadsheet ID and sheet/tab name where results should be appended.
- Create the destination sheet with header columns that match the saved fields (for example:
phone,phone_type,carrier,voip,dnc,tcpa,ported,state,timezone,cnam,location_code,formatted_phone,lata,local_time,ocn,validated_at,validation_status). - If using bulk mode, upload a CSV that contains a phone column named
phone,Phone, orPHONE, then activate the workflow and share the form URL as needed.
๐ Nodes Used
Google Sheets, HTTP Request, n8n Form Trigger, Extract from File
๐ฅ Import
Download workflow.json and import into n8n:
Workflow menu โ Import from File