Overview
This workflow runs weekly to identify trending products and ecommerce-related content on TikTok. It searches for product-related hashtags, analyzes engagement patterns, and produces a trend report that ecommerce teams can use for product selection and marketing decisions.
Trigger
Weekly cron every Monday at 6:00 AM.
Schedule
Weekly on Friday
Workflow Steps
Define Ecommerce Search Queries
Set up product categories and trending hashtag patterns to monitor on TikTok.
Search TikTok and Google for Trend Signals
Query both TikTok and Google to capture trend signals from the platform itself and from coverage of TikTok trends on blogs and news sites.
Extract Product Mentions and Rank by Frequency
Parse search results to identify specific product mentions and rank them by how frequently they appear across results.
Generate Weekly Trend Report
Compile all findings into a structured weekly trend report for the ecommerce team.
Python Implementation
import requests, os
H = {'x-api-key': os.environ['SCAVIO_API_KEY'], 'Content-Type': 'application/json'}
data = requests.post('https://api.scavio.dev/api/v1/search', headers=H, json={'query': 'example', 'country_code': 'us'}).json()
print(len(data.get('organic_results', [])))JavaScript Implementation
const H = {'x-api-key': process.env.SCAVIO_API_KEY, 'Content-Type': 'application/json'};
fetch('https://api.scavio.dev/api/v1/search', {method: 'POST', headers: H, body: JSON.stringify({query: 'example', country_code: 'us'})}).then(r => r.json()).then(d => console.log(d.organic_results?.length));Platforms Used
TikTok
Trending video, creator, and product discovery
Amazon
Product search with prices, ratings, and reviews