Configure proxies
Pass proxies when you create the client:--proxy flag:
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Avoid TikTok IP rate limits by routing TikTok SDK requests through rotating proxies.
const client = new TikTokClient({
proxy: ['http://user:pass@host:port', 'http://proxy2:port'],
proxyRotation: 'round-robin', // or 'random', 'lowest-failures'
});
client.addProxies(['http://user:pass@host:port', 'http://proxy2:port']);
console.log(client.getProxyStats());
--proxy flag:
node docs/examples/searchUsers.cjs --session --proxy=http://user:pass@host:port
