Skip to main content
Pass options to the TikTokClient constructor.

Options

number
Request timeout in milliseconds, for example 5000, 15000, or 30000.
number
Number of retries for a failed request, for example 0, 2, or 5.
number
Rate limit for outgoing requests, for example 1, 3, or 10.
number
Number of concurrent requests, for example 1, 2, or 4.
number
How long to cache results, in milliseconds, for example 30000, 60000, or 300000.
string | string[]
A single proxy URL or an array of them, like "http://user:pass@host:port". See Proxies.
string
Proxy rotation strategy: "round-robin", "random", or "lowest-failures".
PlaywrightSession
A Playwright browser session for endpoints that need one. See Playwright sessions.

Cache

Video data is cached for cacheTTL milliseconds. Clear it manually when needed: