ViralSpyAI Data API & MCP Access
Programmatic access to the same real TikTok product trend data shown on ViralSpyAI, updated daily from public TikTok videos: real views, likes, comments, shares, viral score, measured 24h/7d view growth, and matched supplier offers.
Plans & limits
Free
- 50 calls / day
- Up to 10 items per response
- Basic fields: name, category, views, likes, viral score, trend page URL
- Up to 7 days on new trends
- Anonymous MCP (no login) or free API key for REST
Starter
- 2,000 calls / day
- Up to 50 items per response
- Full fields: adds supplier price & URL, 24h/7d view growth, found_at, video URL, comments, shares
- Up to 7 days on new trends
- API key for REST API and authenticated MCP
Cancel anytime · falls back to Free limits
Business
- 20,000 calls / day
- Up to 200 items per response
- Full fields: supplier price & URL, 24h/7d view growth, found_at, video URL, comments, shares
- Up to 30 days on new trends
- API key for REST API and authenticated MCP
Cancel anytime · falls back to Free limits
REST API endpoints
All REST endpoints return JSON, allow CORS, and require an API key in the x-api-key header (or Authorization: Bearer vsa_…). Base URL:
https://xxgunhsmlpmoctpjerll.supabase.co/functions/v1/apiGET /v1/trending?category=&limit=Top trending TikTok products ranked by viral score, optional category filter.
GET /v1/search?q=&limit=Case-insensitive keyword search across product names and categories.
GET /v1/new?days=&limit=&category=Newly detected products from the last N days (up to 7 days on Free/Starter, up to 30 days on Business).
GET /v1/product/:slugStats for a single trending product by its /trends/<slug> identifier.
Example curl request
curl -H "x-api-key: vsa_your_api_key_here" \
"https://xxgunhsmlpmoctpjerll.supabase.co/functions/v1/api/v1/trending?category=Gadgets&limit=10"Example MCP client configuration
Pass your key in the Authorization header to unlock Starter or Business limits and fields in any MCP client. Without a header, the MCP endpoint stays open for free anonymous access (50 tool calls/day, basic fields).
{
"mcpServers": {
"viralspyai": {
"url": "https://xxgunhsmlpmoctpjerll.supabase.co/functions/v1/mcp",
"headers": {
"Authorization": "Bearer vsa_your_api_key_here"
}
}
}
}