Appearance
Content Research
Sweep every major platform for content around a topic. Combines hashtag and keyword search across TikTok, Instagram, YouTube, and Pinterest into one ranked dataset.
Steps
- Define the topic plus three to five seed keywords and three to five hashtags.
- Hit each platform's search endpoint in parallel.
- Normalize results to a common shape:
{ platform, url, title, engagement, posted_at }. - Sort by engagement and write a CSV.
Node Script
js
import fs from 'node:fs';
const SC_KEY = process.env.SCRAPECREATORS_API_KEY;
async function sc(path, params) {
const qs = new URLSearchParams(params).toString();
const res = await fetch(`https://api.scrapecreators.com${path}?${qs}`, {
headers: { 'x-api-key': SC_KEY },
});
if (!res.ok) return { error: res.status };
return res.json();
}
async function researchTopic(topic, hashtags = [], keywords = []) {
const calls = [];
for (const h of hashtags) {
calls.push(['tiktok-hashtag', sc('/v1/tiktok/search/hashtag', { hashtag: h })]);
calls.push(['youtube-hashtag', sc('/v1/youtube/search/hashtag', { hashtag: h })]);
}
for (const kw of keywords) {
calls.push(['tiktok-keyword', sc('/v1/tiktok/search/keyword', { query: kw })]);
calls.push(['instagram-reels', sc('/v2/instagram/reels/search', { query: kw })]);
calls.push(['youtube', sc('/v1/youtube/search', { query: kw })]);
calls.push(['pinterest', sc('/v1/pinterest/search', { query: kw })]);
}
const results = await Promise.all(calls.map(([_, p]) => p));
return calls.map(([source], i) => ({ source, data: results[i] }));
}
const data = await researchTopic('cold plunge', ['coldplunge', 'icebath'], ['cold plunge benefits', 'ice bath morning']);
fs.writeFileSync('content-research.json', JSON.stringify(data, null, 2));
console.log(`Pulled ${data.length} search batches.`);Notes
- Each search call costs 1 credit. Six platforms times five keywords times three hashtags is roughly 45 credits.
- Use
GET /v1/tiktok/search/topto pull TikTok's curated Top tab which blends photos and videos. - For trend monitoring, run this daily on a cron and diff results to detect new viral content.
Related Endpoints
GET /v1/tiktok/search/hashtagGET /v1/tiktok/search/keywordGET /v2/instagram/reels/searchGET /v1/youtube/searchGET /v1/youtube/search/hashtagGET /v1/pinterest/searchGET /v1/reddit/searchGET /v1/google/search