Due to limitation of Mintlify, SSE results are sent at the end of the stream when you click “Try it” on the page.
event: / data: SSE format. Each data payload is JSON.
startedprogressclarificationenable_clarification is true and the query is ambiguous. The stream ends after this event.
tool_calltool_resulterrorcomplete| Field | Type | Description |
|---|---|---|
session_id | string | Unique session identifier |
query | string | Original user query |
answer | string | Natural-language answer summarizing findings |
video_references | VideoRef[] | Structured list of discovered videos |
creator_analyses | object[] | Creator-level insights (when query targets creators) |
comparisons | object[] | Side-by-side comparisons (when query is comparative) |
platforms_searched | string[] | Platforms that were actually queried |
total_videos_analyzed | integer | Number of videos processed |
total_creators_analyzed | integer | Number of unique creators found |
confidence_score | number | 0–1 confidence in the answer quality |
data_freshness | string | Time range of the returned data |
steps_taken | integer | Number of agent loop iterations used |
tools_used | string[] | Distinct tool names invoked |
tool_execution_details | object[] | Per-tool input/output log |
execution_time_seconds | number | Wall-clock time |
usage_metrics | object | Token usage and tool invocation counts |
parsed_query | object | Structured slots extracted from the query |
| Field | Type | Description |
|---|---|---|
video_id | string | Platform-specific video identifier |
url | string | Direct link to the video |
title | string | Video title |
platform | string | Source platform (youtube, tiktok, instagram, twitter) |
creator | string | Creator handle |
creator_url | string | Link to creator’s profile |
thumbnail_url | string | Thumbnail image URL |
relevance_note | string | Why this video was selected |
views | integer | View count |
likes | integer | Like count |
comments | integer | Comment count |
engagement_rate | number | Engagement percentage |
duration | string | Video duration |
published_at | string | ISO 8601 publish timestamp |
| Category | Tools | Description |
|---|---|---|
| YouTube | youtube_search, youtube_channel_info | Search videos and retrieve channel metadata |
| TikTok | tiktok_search, tiktok_creator_info | Search videos and retrieve creator profiles |
instagram_search, instagram_creator_info | Search reels/posts and retrieve creator profiles | |
| X/Twitter | twitter_search, twitter_profile | Search tweets with video and retrieve user profiles |
| Exa.ai | exa_search, exa_find_similar, exa_get_content, exa_research | Neural web search, similar content discovery, page extraction, deep research |
| Unified | video_search | Cross-platform video search via Exa |
| Analysis | social_media_metadata, social_media_transcript, social_media_mai_transcript, vlm_video_analysis | Video metadata, transcript, visual transcript, and VLM analysis |
gemini-3.1-pro-preview). Gemini is called at two stages, both billed by token count using the same MODEL billing type as the Gemini VLM API.
| Model | Input Price | Output Price |
|---|---|---|
| gemini-3.1-pro-preview | $2/1M tokens (≤200K context), $4/1M (>200K) | $12/1M tokens (≤200K context), $18/1M (>200K) |
| Trigger Point | When | Billing |
|---|---|---|
| Query Classification | Once per request — parses the query into structured slots | MODEL — input + output tokens at the price above |
| Agentic Loop Iteration | Each loop step where Gemini decides the next tool or generates the final answer | MODEL — input + output tokens at the price above |
usage_metrics.token_usage.
| Tool | Billing Type | Price per call | Triggered When |
|---|---|---|---|
tiktok_search | TIKTOK_APIFY_SEARCH / TIKTOK_RAPID_SEARCH | $0.02 | Agent searches TikTok videos |
instagram_search | INSTAGRAM_APIFY_SEARCH / INSTAGRAM_RAPID_SEARCH | $0.02 | Agent searches Instagram reels/posts |
twitter_search | TWITTER_APIFY_SEARCH / TWITTER_RAPID_SEARCH | $0.02 | Agent searches X/Twitter posts |
| Tool | Billing Type | Price per call | Triggered When |
|---|---|---|---|
tiktok_creator_info | TIKTOK_RAPID_CREATOR | $0.02 | Agent fetches a TikTok creator profile |
instagram_creator_info | INSTAGRAM_RAPID_CREATOR | $0.02 | Agent fetches an Instagram creator profile |
twitter_profile | TWITTER_RAPID_PROFILE | $0.02 | Agent fetches an X/Twitter user profile |
| Tool | Billing Type | Price | Unit | Triggered When |
|---|---|---|---|---|
exa_search | EXA_SEARCH | $0.007 | per call | Neural web search |
video_search | EXA_VIDEO_SEARCH | $0.007 | per call | Cross-platform video search via Exa |
exa_research | EXA_RESEARCH | $0.007 | per call | Deep topic research with content extraction |
exa_find_similar | EXA_SIMILAR | $0.007 | per call | Find pages similar to a given URL |
exa_get_content | EXA_CONTENT | $0.001 | per URL (up to 10) | Extract text content from URLs |
exa_get_content is the only tool billed per item rather than per call. If the agent extracts content from 5 URLs in a single invocation, 5 × $0.001 = $0.005 is charged.| Tool | Billing | Note |
|---|---|---|
youtube_search | No charge | Uses free YouTube Data API quota |
youtube_channel_info | No charge | Uses free YouTube Data API quota |
| Tool | Underlying Billing | Triggered When |
|---|---|---|
social_media_metadata | Standard metadata API pricing | Agent fetches video metadata by URL |
social_media_transcript | Standard transcript API pricing | Agent fetches video transcript |
social_media_mai_transcript | Standard MAI transcript API pricing | Agent fetches visual (MAI) transcript |
vlm_video_analysis | Gemini VLM API pricing | Agent performs visual-language model analysis on a video |
| Item | Count | Unit Price | Subtotal |
|---|---|---|---|
| Gemini classification | 1 call (~500 in / 200 out tokens) | $2/1M in, $12/1M out | ~$0.0034 |
| Gemini loop iterations | 3 calls (~3000 in / 600 out tokens avg) | $2/1M in, $12/1M out | ~$0.0396 |
tiktok_search | 1 | $0.02 | $0.02 |
video_search | 1 | $0.007 | $0.007 |
| Estimated total | ~$0.07 |
complete event’s usage_metrics.tool_invocations and tools_used fields.
error SSE event is emitted and the stream may still complete with partial results.
Natural-language search query
"Find trending AI coding tool videos on TikTok from the past week"
Restrict to specific platforms. If omitted, all platforms are searched.
youtube, tiktok, instagram, twitter Maximum number of video results to return
Recency filter for video results
past_24h, past_week, past_month, past_year Maximum agent iteration steps
When true, the agent may return a clarification event instead of searching if the query is ambiguous
SSE stream of agent events (started → progress → tool_call → tool_result → complete)
Unique session identifier
Original user query
Natural-language answer summarizing findings
Structured list of discovered videos