Tutorial

How to Enrich Cold Email Data with Search API

Add company context to cold email lists using search API. Get recent news, tech stack, and hiring signals for personalization.

Search API enrichment adds company context (recent news, tech stack, hiring signals) to cold email lists at $0.005/lookup. This replaces $100+/month enrichment tools for teams under 10K lookups/month.

Prerequisites

  • Python 3.8+
  • Scavio API key
  • CSV of prospect companies

Walkthrough

Step 1: Load prospect list

Read CSV with company names and domains.

Step 2: Search for company context

Query each company name for recent news, press releases, and product updates.

Step 3: Extract enrichment signals

Parse results for hiring mentions, funding rounds, technology stack mentions.

Step 4: Merge and export

Add enrichment columns to original CSV for personalized outreach.

Python Example

Python
import requests, os, csv

H = {'x-api-key': os.environ['SCAVIO_API_KEY'], 'Content-Type': 'application/json'}

def enrich(company):
    resp = requests.post('https://api.scavio.dev/api/v1/search',
        headers=H, json={'query': f'{company} news 2026', 'country_code': 'us', 'num_results': 5})
    data = resp.json()
    snippets = [r.get('snippet', '') for r in data.get('organic_results', [])[:3]]
    return ' | '.join(snippets)

with open('prospects.csv') as f:
    rows = list(csv.DictReader(f))
for row in rows:
    row['context'] = enrich(row['company'])
    print(f"Enriched: {row['company']}")

JavaScript Example

JavaScript
const resp = await fetch('https://api.scavio.dev/api/v1/search', {
  method: 'POST', headers: {'x-api-key': process.env.SCAVIO_API_KEY, 'Content-Type': 'application/json'},
  body: JSON.stringify({query: 'Acme Corp news 2026', country_code: 'us', num_results: 5})
});
const data = await resp.json();
console.log(data.organic_results?.slice(0,3).map(r => r.snippet).join(' | '));

Expected Output

JSON
Enriched: Acme Corp
Enriched: Widget Inc
# Each row now has recent news context for personalization

Related Tutorials

Frequently Asked Questions

Most developers complete this tutorial in 15 to 30 minutes. You will need a Scavio API key (free tier works) and a working Python or JavaScript environment.

Python 3.8+. Scavio API key. CSV of prospect companies. A Scavio API key gives you 250 free credits per month.

Yes. The free tier includes 250 credits per month, which is more than enough to complete this tutorial and prototype a working solution.

Scavio has a native LangChain package (langchain-scavio), an MCP server, and a plain REST API that works with any HTTP client. This tutorial uses the raw REST API, but you can adapt to your framework of choice.

Start Building

Add company context to cold email lists using search API. Get recent news, tech stack, and hiring signals for personalization.