> ## Documentation Index
> Fetch the complete documentation index at: https://creatorinsights.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Popular Video Search

> Find relevant Instagram, YouTube and TikTok videos with Creator Insights.

# Popular Video Search

Find and review popular videos across Instagram, YouTube and TikTok. Describe the audience, problem or content angle in ordinary language. Creator Insights prepares platform searches, ranks the returned videos and can suggest another term when a platform has weak matches.

[Open the POST Find popular videos API reference](https://creatorinsights.mintlify.site/tools/find_popular_videos.md) for every request field, cURL and code examples, response fields and error handling.

## Choose a search mode

| Goal | Send | What happens |
| - | - | - |
| Research a topic or niche | `requirement` with one or more `platforms` | AI plans searches for each platform, checks relevance and may retry weak platforms. |
| Search a ready term or recommendation | `direct_keyword` with exactly one platform | One source query runs without another AI planning or ranking step. |
| Load the next page | The returned `cursor` and the same `workspace` | The saved query and filters are reused. |

Use the `find_popular_videos` MCP tool for this workflow. The JSON-tool endpoint is `POST /api/v1/tools/find_popular_videos` and the dedicated REST endpoint is `POST /v1/video-inspiration/search`. These reach the same popular-video operation.

## Start with the right workspace

An OAuth connection or API key has a default workspace. Call `list_workspaces` once to find its ID and the other active workspaces in the authenticated organization. Pass the intended ID in `workspace` when you want another project's context, results and spending limit. Reuse that ID for a continuation. A workspace outside the organization is rejected.

For an explicit standalone topic, pass the user's brief as written. When the request depends on “my brand”, “my audience” or “my niche”, read `get_workspace_context` once for the relevant platforms and use it to understand the request. The explicit brief takes priority over inferred context. Do not invent workspace facts when context is unavailable.

## Planned request

```json theme={null}
{
  "workspace": "YOUR_WORKSPACE_ID",
  "requirement": "Find short educational videos about beginner home workouts with clear demonstrations",
  "platforms": ["instagram", "youtube"]
}
```

The service can run up to two source queries per round and at most two rounds per selected platform. It stops early when matches are strong. Each query that returns videos costs one credit; empty and failed source queries cost zero. The planned maximum is 4 credits for one platform, 8 for two and 12 for all three. This is a backend limit, not a `max_credits` request parameter. Set and check a separate workspace spending limit in Dashboard → Plans → Usage and `get_workspace_credit_usage`.

## AI agent guidance

* Keep the user's real niche and intent. Treat a company name as brand context, then search the product category, buyer problems and useful content angles. Preserve an explicitly requested competitor or brand search.
* Send the natural-language requirement in planned mode. Let Creator Insights create platform-ready terms. Do not invent internal planning fields or reproduce hidden prompts.
* Use direct mode only for a user-supplied final term, a returned recommendation or an agent-chosen platform-ready term. Instagram terms should be concise, lowercase and hyphenated with no more than two concepts. TikTok works with a short natural phrase; YouTube with a concise natural-language phrase.
* Search only the platforms requested. Do not replace this workflow with separate raw platform search tools unless the user explicitly asks for unranked source data, a profile, URL, transcript or comments.
* Keep recommendations tied to the weak platform. Let the user inspect `allResults` when `results` has too few strong matches. A weak or failed platform does not erase successful platforms.
* For a niche subject, start broad. Add date, duration or region filters only when the user asks for them. Do not add date or location words to an Instagram search term to imitate a filter.

## Filters and platform limits

The optional `filters` object applies to YouTube and TikTok. Instagram Popular supports no date, sort, duration or region filters; those fields are ignored for Instagram. YouTube supports `upload_date`, `sort_by`, `duration` and `region`. TikTok supports `publish_time`, `sort_by` and `region`. Shared `sort_by: "popular"` maps to most viewed on YouTube and most liked on TikTok. `sort_by: "date"` maps to newest content on each.

Omitting YouTube `upload_date` searches any time. TikTok defaults to `last-3-months` when `publish_time` is omitted. Sort defaults to relevance. For narrow topics, avoid a very short date window or restrictive region unless requested. The [API reference](https://creatorinsights.mintlify.site/tools/find_popular_videos.md) lists every accepted filter value and a complete filtered request.

## Read the response

`results` is the ranked shortlist. `allResults` is the fetched set available for optional review. `recommendations` is keyed by weak platform. `failedPlatforms` identifies platform failures while keeping successful results. `filterSummary` uses `fetched`, `shown` and `filtered` counts for each completed platform. `appliedFilters` shows the normalized filters. `creditsCharged` is the actual charge in the operation payload. `pagination.hasMore` and `pagination.cursor` control continuation.

For a direct retry, send one recommendation with its platform:

```json theme={null}
{
  "workspace": "YOUR_WORKSPACE_ID",
  "platforms": ["youtube"],
  "direct_keyword": "beginner home workout routine"
}
```

A direct retry makes one source query. It does not rerun AI planning or ranking. Keep earlier results in your client and append the new platform results if useful.

For the next page, send the same workspace and the opaque cursor:

```json theme={null}
{
  "workspace": "YOUR_WORKSPACE_ID",
  "cursor": "550e8400-e29b-41d4-a716-446655440000"
}
```

Do not send a new requirement or filters with a cursor; the stored search state is reused. Cursor requests can charge one credit for each selected platform with a non-empty next page.

[See the complete request and response examples](https://creatorinsights.mintlify.site/tools/find_popular_videos.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.