KOLens Cookies API
The cookies API from KOLens — 4 operation(s) for cookies.
The cookies API from KOLens — 4 operation(s) for cookies.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/kolens-ai:kolens-ai-cookies-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: KOLens Cookies API
description: KOLens — TikTok KOL Intelligence API. Search keywords, extract KOL profiles, collect contact info, export reports.
version: 1.0.0
tags:
- name: Cookies
paths:
/api/cookies/upload:
post:
tags:
- Cookies
summary: Upload Cookie File
description: 'Upload a new cookie file for authenticated TikTok scraping.
The cookies should be in Playwright-compatible format with fields:
- name, value, domain, path, expires, httpOnly, secure, sameSite
Empty cookie arrays and missing filenames are rejected with 422 via the
schema''s Field constraints — see api/schemas/cookies.py.'
operationId: upload_cookie_file_api_cookies_upload_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/CookieUploadRequest'
required: true
responses:
'201':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/CookieFileResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
security:
- HTTPBearer: []
/api/cookies:
get:
tags:
- Cookies
summary: List Cookie Files
description: List all cookie files for the current API key.
operationId: list_cookie_files_api_cookies_get
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/CookieListResponse'
security:
- HTTPBearer: []
/api/cookies/{cookie_id}:
get:
tags:
- Cookies
summary: Get Cookie File
description: Get detailed information about a specific cookie file, including the cookie data.
operationId: get_cookie_file_api_cookies__cookie_id__get
security:
- HTTPBearer: []
parameters:
- name: cookie_id
in: path
required: true
schema:
type: string
title: Cookie Id
responses:
'200':
description: Successful Response
content:
application/json:
schema:
type: object
title: Response Get Cookie File Api Cookies Cookie Id Get
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
delete:
tags:
- Cookies
summary: Delete Cookie File
description: Delete a cookie file.
operationId: delete_cookie_file_api_cookies__cookie_id__delete
security:
- HTTPBearer: []
parameters:
- name: cookie_id
in: path
required: true
schema:
type: string
title: Cookie Id
responses:
'204':
description: Successful Response
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/cookies/{cookie_id}/activate:
put:
tags:
- Cookies
summary: Activate Cookie File
description: 'Activate a cookie file for use in scraping.
This will deactivate all other cookie files for the current API key.'
operationId: activate_cookie_file_api_cookies__cookie_id__activate_put
security:
- HTTPBearer: []
parameters:
- name: cookie_id
in: path
required: true
schema:
type: string
title: Cookie Id
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/CookieFileResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
components:
schemas:
CookieUploadRequest:
properties:
filename:
type: string
minLength: 1
title: Filename
description: Name of the cookie file
cookies:
items:
type: object
type: array
minItems: 1
title: Cookies
description: Array of cookie objects (Playwright format) — must be non-empty
description:
anyOf:
- type: string
- type: 'null'
title: Description
description: Optional description
type: object
required:
- filename
- cookies
title: CookieUploadRequest
description: Request body for uploading a cookie file.
example:
cookies:
- domain: .tiktok.com
expires: 1735689600
httpOnly: true
name: sessionid
path: /
sameSite: Lax
secure: true
value: abc123...
description: Production account cookies
filename: tiktok_cookies_2026.json
CookieListResponse:
properties:
cookies:
items:
$ref: '#/components/schemas/CookieFileResponse'
type: array
title: Cookies
total:
type: integer
title: Total
type: object
required:
- cookies
- total
title: CookieListResponse
description: Response model for listing cookie files.
CookieFileResponse:
properties:
id:
type: string
title: Id
api_key_id:
type: string
title: Api Key Id
filename:
type: string
title: Filename
upload_time:
type: string
format: date-time
title: Upload Time
is_active:
type: boolean
title: Is Active
description:
anyOf:
- type: string
- type: 'null'
title: Description
last_used_time:
anyOf:
- type: string
format: date-time
- type: 'null'
title: Last Used Time
cookie_count:
type: integer
title: Cookie Count
description: Number of cookies in the file
type: object
required:
- id
- api_key_id
- filename
- upload_time
- is_active
- description
- last_used_time
- cookie_count
title: CookieFileResponse
description: Response model for cookie file information.
ValidationError:
properties:
loc:
items:
anyOf:
- type: string
- type: integer
type: array
title: Location
msg:
type: string
title: Message
type:
type: string
title: Error Type
type: object
required:
- loc
- msg
- type
title: ValidationError
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
securitySchemes:
HTTPBearer:
type: http
scheme: bearer