---
title: "Process new KOLs and generate video embeddings"
method: POST
path: "/api/influencer/process-new-kols"
tags: ["Influencer"]
---

# Process new KOLs and generate video embeddings

`POST /api/influencer/process-new-kols`

## Request

- Base URL: `https://api.kolect.com`
- URL: `https://api.kolect.com/api/influencer/process-new-kols`
- Auth: HTTP bearer

Fetches KOLs created after a specified timestamp and processes their videos
to generate embeddings. Processing is done sequentially with retry mechanisms
and rate limiting delays.

## Request body

- object
  - `limit` integer: Maximum number of KOLs to process

## Response `200`

Successfully processed KOLs

- object
  - `message` string
  - `successful` integer: Number of successfully processed KOLs
  - `failed` integer: Number of failed KOL processing attempts
  - `results` object[]
    - `kol_id` string: KOL's unique identifier
    - `name` string: KOL's name
    - `channel` 'tiktok' | 'youtube' | 'instagram': Social media platform
    - `success` boolean: Whether processing was successful
    - `error` string: Error message if processing failed
    - `videos_stored` integer: Number of videos stored for this KOL
    - `new_videos_added` integer: Number of new videos added for this KOL
    - `embeddings_generated` integer: Number of embeddings generated for this KOL's videos
    - `new_embeddings_generated` integer: Number of new embeddings generated
    - `duplicates` integer: Number of duplicate videos found
    - `processing_time` number: Processing time for this specific KOL in seconds
    - `from_cache` boolean: Whether the video data was retrieved from cache
  - `processed_time` number: Total processing time in seconds

## Other responses

- `400`: Bad request - invalid limit parameter
- `500`: Internal server error

---

[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)
