ScavioScavio
ProductPricingDocs
Sign InGet Started
  1. Home
  2. Tutorials
  3. How to Build a Cross-Platform Search Pipeline
Tutorial

How to Build a Cross-Platform Search Pipeline

Search Google, YouTube, Reddit, Amazon, and TikTok from one API. Python example for multi-platform content research at $0.025/topic.

Get Free API KeyAPI Docs

Build a cross-platform search pipeline that queries Google, YouTube, Reddit, Amazon, and TikTok for any topic using one API key. Cost: $0.025/topic (5 platform queries at $0.005 each). Get a complete view of how a topic appears across the web.

Prerequisites

  • Scavio API key
  • Python 3.8+ or Node.js 18+

Walkthrough

Step 1: Search across platforms

Query the same topic on multiple platforms.

Python
import requests, os

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

def cross_platform_search(topic):
    results = {}
    # Google SERP
    g = requests.post(f'{BASE}/search', headers=H,
        json={'query': topic, 'country_code': 'us'}).json()
    results['google'] = [r['title'] for r in g.get('organic_results', [])[:3]]
    # YouTube
    y = requests.post(f'{BASE}/search', headers=H,
        json={'query': topic, 'platform': 'youtube'}).json()
    results['youtube'] = [r.get('title', '') for r in y.get('organic_results', [])[:3]]
    # Reddit
    r = requests.post(f'{BASE}/search', headers=H,
        json={'query': topic, 'platform': 'reddit'}).json()
    results['reddit'] = [r.get('title', '') for r in r.get('organic_results', [])[:3]]
    return results

for platform, titles in cross_platform_search('best crm 2026').items():
    print(f'\n{platform}:')
    for t in titles:
        print(f'  - {t}')

Python Example

Python
import requests, os

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

def multi_platform(topic):
    platforms = ['google', 'youtube', 'reddit', 'amazon']
    report = {}
    for p in platforms:
        params = {'query': topic, 'country_code': 'us'}
        if p != 'google': params['platform'] = p
        data = requests.post(f'{BASE}/search', headers=H, json=params).json()
        report[p] = {
            'results': len(data.get('organic_results', [])),
            'top_3': [r.get('title', '')[:50] for r in data.get('organic_results', [])[:3]],
        }
    # TikTok via dedicated endpoint
    tt = requests.post(f'{BASE}/tiktok/search/videos',
        headers={'Authorization': f'Bearer {os.environ["SCAVIO_API_KEY"]}',
                 'Content-Type': 'application/json'},
        json={'keyword': topic, 'count': 5}).json()
    report['tiktok'] = {
        'results': len(tt.get('data', {}).get('videos', [])),
        'top_3': [v.get('desc', '')[:50] for v in tt.get('data', {}).get('videos', [])[:3]],
    }
    return report

report = multi_platform('project management tools')
for p, d in report.items():
    print(f"{p}: {d['results']} results")

JavaScript Example

JavaScript
const H = {'x-api-key': process.env.SCAVIO_API_KEY, 'Content-Type': 'application/json'};
async function multiPlatform(topic) {
  const platforms = ['google', 'youtube', 'reddit', 'amazon'];
  const report = {};
  for (const p of platforms) {
    const params = {query: topic, country_code: 'us'};
    if (p !== 'google') params.platform = p;
    const r = await fetch('https://api.scavio.dev/api/v1/search', {
      method: 'POST', headers: H, body: JSON.stringify(params)
    }).then(r => r.json());
    report[p] = (r.organic_results || []).slice(0, 3).map(r => r.title?.slice(0, 50));
  }
  console.log(report);
}
multiPlatform('project management tools');

Expected Output

JSON
Cross-platform search results showing how a topic appears on Google, YouTube, Reddit, Amazon, and TikTok. Useful for content strategy and market research.

Related Tutorials

  • How to Build a SERP-Grounded Content Brief with API
  • How to Search TikTok Videos by Keyword via API

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.

Scavio API key. Python 3.8+ or Node.js 18+. A Scavio API key gives you 50 free credits on signup.

Yes. The free tier includes 50 credits on signup, 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.

Related Resources

Best Of

Best Multi-Platform Search APIs in 2026

Read more
Glossary

Cross-Platform Search API

Read more
Best Of

Best Unified Search APIs for Agent Builders in 2026

Read more
Solution

Cross-Platform Intelligence from One API Endpoint

Read more
Use Case

Pi Coding Agent Multi-Platform Search

Read more
Use Case

Multi-Platform Search API as AI Agent Tool

Read more

Start Building

Search Google, YouTube, Reddit, Amazon, and TikTok from one API. Python example for multi-platform content research at $0.025/topic.

Get Free API KeyRead the Docs
ScavioScavio

Real-time search API for AI agents. Search every platform, not just Google.

Product

  • Features
  • Pricing
  • Dashboard
  • Affiliates

Developers

  • Documentation
  • API Reference
  • Quickstart
  • MCP Integration
  • Python SDK

Alternatives

  • Tavily Alternative
  • SerpAPI Alternative
  • Firecrawl Alternative
  • Exa Alternative

Tools

  • JSON Formatter
  • cURL to Code
  • Token Counter
  • All Tools

© 2026 Scavio. All rights reserved.

Featured on TAAFT
Terms of ServicePrivacy Policy