---
title: "Store videos for an influencer"
method: POST
path: "/api/influencer/store-videos"
tags: ["Influencers"]
---

# Store videos for an influencer

`POST /api/influencer/store-videos`

## Request

- Base URL: `https://api.kolect.com`
- URL: `https://api.kolect.com/api/influencer/store-videos`
- Auth: HTTP bearer

Fetches videos for a TikTok, YouTube, or Instagram influencer, stores them in the database and generates embeddings

## Request body

- object
  - `unique_id` string, required: Platform-specific unique ID of the influencer (user_id/userdata.id for Instagram, channel ID for YouTube, unique_id for TikTok)
  - `id` string, required: Database ID of the influencer in the kols table
  - `channel` 'tiktok' | 'youtube' | 'instagram', required: Platform channel type (tiktok, youtube, or instagram)
  - `max_videos` integer: Maximum number of videos to process
  - `include_image_analysis` boolean: Whether to include image analysis in embedding generation
  - `include_persona_analysis` boolean: Whether to include persona analysis in embedding generation

## Response `200`

Videos stored successfully

- object
  - `videos_stored` integer
  - `new_videos_added` integer
  - `duplicates` integer
  - `influencer` object: The influencer data
  - `processed_time` number
  - `api_calls` integer
  - `channel` string
  - `from_cache` boolean

## Other responses

- `400`: Bad request - Missing or invalid input
- `404`: Influencer not found
- `500`: Server error during processing

---

[API](https://skmtc.dev/kolect/apis/kolect-api.md) · [All operations](https://skmtc.dev/kolect/apis/kolect-api/llms.txt) · [OpenAPI document](https://skmtc.dev/kolect/apis/kolect-api/revisions/fe54528e8f54?raw)
