---
name: vidnavigator
description: Use when transcribing videos from YouTube, TikTok, Instagram,
  X/Twitter, Facebook, Vimeo, and other platforms; extracting structured data
  from video transcripts; summarizing videos and answering questions about them; searching for videos
  across TikTok and YouTube; or processing uploaded audio/video files. Agents
  should reach for this skill when building video intelligence features,
  automating content analysis, or integrating video data into workflows.
metadata:
  version: "1.0"
---

# VidNavigator Skill

## Product Summary

VidNavigator is an AI-powered video intelligence API that transcribes, watches (scene by scene), and extracts structured data from videos across YouTube, TikTok, Instagram, X/Twitter, Facebook, Vimeo, Loom, Dailymotion, Snapchat, and uploaded files. The API is available at `https://api.vidnavigator.com/v1`. Authenticate with an API key passed in the `X-API-Key` header. Official SDKs are available for Python (`vidnavigator` on PyPI, v3.0.0) and JavaScript (`vidnavigator` on npm, v3.0.0). The SDKs automatically handle async jobs, so long videos work with a single call. Key config: set `VIDNAVIGATOR_API_KEY` environment variable. Primary docs: https://docs.vidnavigator.com

## When to Use

Reach for this skill when:

- **Transcription**: User asks to get captions from a YouTube video, transcribe an Instagram Reel, or extract speech-to-text from any video without captions
- **Data extraction**: User needs structured JSON pulled from video content (e.g., extract action items from a meeting recording, pull product mentions from a review video)
- **Summaries and questions**: User wants a summary, key topics, people, or answers to questions about video content (extraction with `what_to_extract`, each value with its `evidence`)
- **Video search**: User needs to find videos by keyword on TikTok or YouTube, or discover TikTok LIVE rooms broadcasting now
- **TikTok LIVE monitoring**: User wants to know whether a creator is live right now, follow a LIVE room, or read its latest comments
- **File management**: User uploads their own audio/video files for processing, organizing them into namespaces
- **Batch processing**: User needs to transcribe or extract from many videos in parallel
- **Integration**: User wants to connect video intelligence to n8n, Claude Desktop, Cursor, or other MCP clients

## Quick Reference

### Authentication & Setup

| Task | Command |
|------|---------|
| Get API key | Visit https://vidnavigator.com/studio/api |
| Set environment variable | `export VIDNAVIGATOR_API_KEY="your_key"` |
| Python SDK install | `pip install vidnavigator==3.0.0` |
| JavaScript SDK install | `npm install vidnavigator@3.0.0` |
| Async SDK (Python) | `pip install "vidnavigator[async]==3.0.0"` |

### Core Operations

| Operation | Python | JavaScript | Use When |
|-----------|--------|-----------|----------|
| Get captions | `client.get_transcript(video_url=...)` | `vn.getTranscript({video_url})` | Video has captions (YouTube, TikTok, etc.) |
| Speech-to-text | `client.transcribe_video(video_url=...)` | `vn.transcribe(url)` | Video has no captions (Instagram, etc.) or any length |
| Summarize / ask a question | `client.extract_video_data(video_url=..., what_to_extract="a summary, and the answer to: ...")` | `vn.extractVideoData({video_url, what_to_extract})` | Need summary, key topics, or answer to a question |
| Extract structured data | `client.extract_video_data(video_url=..., schema=...)` | `vn.extractVideoData({video_url, schema})` | Need specific fields as JSON |
| What a video shows | `client.watch_video(video_url=...)` | `vn.watch(url)` | Scenes with their times and on-screen text, next to the transcript |
| Tweet claim | `client.get_tweet_statement(tweet_id=..., include_scenes=True)` | `vn.tweetStatement({tweet_id, include_scenes: true})` | The claim of an X post; `include_scenes` also reads what its videos show |
| Search YouTube | `client.search_youtube(query=...)` | `vn.searchYouTube({query})` | Find videos by keyword |
| Search TikTok | `client.search_tiktok(query=...)` | `vn.tiktokSearch({query})` | Find TikTok videos by keyword |
| Scrape TikTok profile | `client.scrape_tiktok_profile(profile_url=...)` | `vn.tiktokProfile({profile_url})` | Get all videos from a TikTok account |
| Search TikTok LIVE | `client.search_tiktok_live(query=...)` | `vn.tiktokLiveSearch({query})` | Find LIVE rooms broadcasting now, with stream URLs |
| One TikTok LIVE room | `client.get_tiktok_live_room(username=...)` | `vn.getTikTokLiveRoom({username})` | Is a creator live now? Latest comments of a LIVE (`include_comments`) |
| Upload file | `client.upload_file("path/to/file.mp4")` | `vn.uploadFile({filePath})` | Process your own audio/video files |

### Supported Platforms

| Platform | Captions | Speech-to-text | Search |
|----------|:--------:|:--------------:|:------:|
| YouTube | ✓ | — | ✓ |
| TikTok | ✓ | ✓ | ✓ (videos & LIVE) |
| Instagram | — | ✓ | — |
| X/Twitter | ✓ | ✓ | — |
| Facebook | ✓ | ✓ | — |
| Vimeo | ✓ | ✓ | — |
| Loom | ✓ | ✓ | — |
| Dailymotion | ✓ | ✓ | — |
| Snapchat | ✓ | ✓ | — |
| Uploaded files | ✓ | ✓ | ✓ (semantic) |

### Rate Limits

| Endpoint | Requests/minute |
|----------|----------------:|
| `GET /health`, `GET /usage` | 300 |
| `POST /transcript`, `GET /files` | 200 |
| `POST /transcribe` | 20 |
| `POST /youtube/search` | 10 |
| `POST /upload/file` | 3 |

Exceeding limits returns `429` with a 1-minute ban. Async submit endpoints also limit concurrent jobs per account; exceed the limit and get `429 too_many_active_jobs`.

## Decision Guidance

### When to Use Sync vs. Async

| Scenario | Use | Why |
|----------|-----|-----|
| Video ≤ 10 minutes, need result immediately | Synchronous endpoint (`POST /transcribe`, `/extract/video`) | Faster for short media, simpler code |
| Video > 10 minutes or unknown length | Async endpoint (`POST /transcribe/async`, `/extract/video/async`) | No duration cap, no timeout risk |
| Using Python/JavaScript SDK | Always async (SDK handles it) | SDKs use async endpoints internally; single call works for any length |
| Batch processing many videos | Submit all first, collect later | Parallel execution on server; much faster than sequential calls |

### When to Use Captions vs. Speech-to-Text

| Scenario | Use | Cost |
|----------|-----|------|
| YouTube, TikTok, X/Twitter (has captions) | `get_transcript()` | Cheap (metadata only) |
| Instagram, Snapchat, or no captions available | `transcribe_video()` | Expensive (speech-to-text); 1 credit = 3 hours |
| Fallback pattern (try captions first) | Try `get_transcript()`, catch `NotFoundError`, then `transcribe_video()` | Optimizes cost |

### Summaries, Questions and Fields

| Scenario | Use | Returns |
|----------|-----|---------|
| Need specific fields as JSON (e.g., action items, pricing) | `extract_video_data(schema=...)` | Validated dict matching your schema |
| Need summary, key topics, or answer to a question | `extract_video_data(what_to_extract="a summary, and the answer to: ...")` | One field per thing asked, the `schema` written for them, and `evidence` (the moments each value comes from) |
| The answer may be on screen (prices, captions, slides) or the video has no speech | Add `include_scenes=True` | Values also read from the picture; `frames_analyzed`, billed per frame |
| Need the scenes themselves | `watch_video()` | Scenes with start, end, description and on-screen text |

## Workflow

### Transcribe a Video

1. **Identify the platform**: Check if it's YouTube (captions available), Instagram (no captions), TikTok, etc.
2. **Choose the method**: Use `get_transcript()` for captions, `transcribe_video()` for speech-to-text.
3. **Make the call**:
   ```python
   resp = client.get_transcript(video_url="https://www.youtube.com/watch?v=...")
   # or
   resp = client.transcribe_video(video_url="https://www.instagram.com/reel/...")
   ```
4. **Access the result**: `resp.data.transcript` (array of segments) or `resp.data.video_info` (metadata).
5. **Handle errors**: Catch `NotFoundError` (no transcript), `BadRequestError` with `error_code="video_too_long"` (use the async endpoint or the SDK), `PaymentRequiredError` (out of credits).

### Extract Structured Data

1. **Design the schema**: A standard JSON Schema whose root is an object (`{"type": "object", "properties": {...}}`), such as a Pydantic model's `model_json_schema()` or a Zod schema converted to JSON Schema. Each property has a lowercase `type` (`string`, `number`, `integer`, `boolean`, `array` with `items`, `object` with `properties`), a `description`, and optionally `enum`.
2. **Validate the schema**: Max 10 fields per level, 3 nesting levels.
3. **Submit the extraction**:
   ```python
   resp = client.extract_video_data(
       video_url="https://...",
       schema={"type": "object", "properties": {"mood": {"type": "string", "description": "Overall mood"}}},
       what_to_extract="Focus on tone and sentiment"  # optional with a schema
   )
   ```
   No schema yet? Pass `what_to_extract` alone (SDK 2.6.0+): the schema is written from it and returned in `resp.extraction_schema` (`schema` in the API answer), to pass as `schema` in later calls for the same fields.
4. **Read the result**: `resp.data` is a dict matching your schema; `resp.video_info` has metadata.
5. **Handle errors**: `BadRequestError` with `error_code="invalid_schema"` means schema is malformed (caught before billing); `missing_parameter` means neither `schema` nor `what_to_extract` was given.

### Process Many Videos in Parallel

1. **Submit all jobs first** (don't wait):
   ```python
   jobs = [client.submit_transcribe_video(video_url=url) for url in urls]
   ```
2. **Collect results** (now they run in parallel on the server):
   ```python
   results = [job.result() for job in jobs]
   ```
3. **Handle failures per job**:
   ```python
   for url, job in zip(urls, jobs):
       try:
           print(job.result().data.transcript)
       except VidNavigatorError as e:
           print(f"{url} failed: {e.error_code}")
   ```

### Upload and Process a Local File

1. **Upload the file**:
   ```python
   resp = client.upload_file("path/to/meeting.mp3", wait_for_completion=True)
   file_id = resp["file_id"]
   ```
2. **Check status** (if not waiting):
   ```python
   info = client.get_file(file_id).data.file_info
   # Poll until status != "processing"
   ```
3. **Process the file**:
   ```python
   answer = client.extract_file_data(file_id=file_id, what_to_extract="a summary, and the action items")
   extraction = client.extract_file_data(file_id=file_id, schema={...})
   ```

### Set Up Webhooks for Async Jobs

1. **Configure default webhook** in Studio → API, or pass per-request:
   ```python
   job = client.submit_transcribe_video(
       video_url="...",
       webhook_url="https://example.com/hooks/vidnavigator"
   )
   ```
2. **Verify the signature** in your webhook handler:
   ```python
   from vidnavigator import construct_webhook_event
   event = construct_webhook_event(raw_body, headers, signing_secret)
   ```
3. **Read the result**: `event.data.result` contains the completed job's result.

## Common Gotchas

- **Video too long for sync endpoint**: Synchronous endpoints reject media > 10 minutes with `400 video_too_long`. Always use async endpoints for unknown or long videos, or use the SDK (which handles this automatically).
- **Captions not available**: `get_transcript()` returns `404 transcript_not_available` for videos without captions. Use `transcribe_video()` instead, or pass `fallback_to_metadata=True` to get metadata without the transcript.
- **Out of credits at submit time**: Async submit returns `402 limit_exceeded` if account has < 60 seconds of transcription credit left. This is a spam gate, not a quote; the real charge happens when the job runs.
- **Too many active jobs**: Async submit returns `429 too_many_active_jobs` if the account is at its concurrent job limit. Wait for some jobs to finish, then retry.
- **Webhook URL must be public HTTPS**: Private, loopback, or link-local hosts are rejected. Use a public endpoint or polling instead.
- **Schema validation happens at submit time**: Invalid extraction schemas are caught before any transcription is billed; `BadRequestError` with `error_code="invalid_schema"` means the schema is malformed.
- **Polling is free**: `GET` requests to check job status consume no credits. Poll frequently if needed.
- **Results expire after 1 hour**: Job results are deleted 1 hour after the job finishes. Save the `task_id` if you need to resume later.
- **Instagram carousels**: Use `?img_index=N` to select one video, or pass `all_videos=True` to transcribe all.
- **TikTok results are paginated**: `search_tiktok()` and `scrape_tiktok_profile()` return paginated results; the SDKs merge all pages automatically, but raw HTTP requires cursor-based pagination.
- **TikTok LIVE room is synchronous**: `POST /tiktok/live/room` answers directly (no task), with exactly one of `room_id`, `username` or `url`. A `username` gives the current LIVE, or the last one (`status: "ended"`) when the creator is offline. Unknown room or account: `404 live_not_found`, not billed.
- **LIVE comments are capped**: `include_comments` returns only the latest ~50 comments of a LIVE (earlier ones cannot be retrieved) and bills 2 `residential_request` instead of 1. A single room has no likes, comment count or share count: take them from LIVE search results.
- **Extraction schema is cached for 2 hours**: The first call for a new schema includes compilation overhead; repeated calls reuse the cached plan.

## Verification Checklist

Before submitting work with VidNavigator:

- [ ] API key is set in `VIDNAVIGATOR_API_KEY` environment variable or passed explicitly
- [ ] Video URL is public and accessible (not behind login or age gate)
- [ ] For videos > 10 minutes, using async endpoint or SDK (which handles it)
- [ ] Extraction schema has max 10 root fields, 3 nesting levels, all fields have `type` and `description`
- [ ] Webhook URL (if used) is public HTTPS, not localhost or private IP
- [ ] Error handling covers `PaymentRequiredError` (out of credits), `NotFoundError` (video not found), `TooManyActiveJobsError` (job limit)
- [ ] For batch jobs, submitted all first before collecting results (parallel execution)
- [ ] Saved `task_id` if job might timeout and need to resume later
- [ ] Webhook signature verified with `construct_webhook_event()` before processing result
- [ ] Tested with a short video first before running on long media

## Resources

**Comprehensive page listing**: https://docs.vidnavigator.com/llms.txt

**Critical documentation**:
- [API Reference](https://docs.vidnavigator.com/api-reference/introduction) — all endpoints, authentication, error codes
- [Async Jobs & Long Videos](https://docs.vidnavigator.com/guides/async-jobs) — submit, poll, webhook workflow
- [Data Extraction Guide](https://docs.vidnavigator.com/guides/data-extraction) — schema design, best practices, billing

---

> For additional documentation and navigation, see: https://docs.vidnavigator.com/llms.txt