Automate Your Downloads

Integrate our powerful batch downloader into your own applications with our simple and straightforward API.

Getting Started in 3 Steps

1. Get Your API Key

Create a free account and find your unique API key on your profile page.

2. Construct Your Request

Send a POST request to our endpoint with your key in the header and a list of URLs in the body.

3. Receive a Zip File

Our API processes your request and returns all downloaded videos in a single, organized .zip file.

Code Examples

Select a language to see a complete code example for making a batch download request.

Your unique API key authenticates your requests. Sign up for a free account to get started.

Your API Key:

Log in to view your key

Example Python Walkthrough

Below is a detailed Python example demonstrating how to use our batch download API.

1

Get Your API Key

Your unique API key authenticates your requests. Sign up for a free account to get started.

Your API Key:

Log in to view your key
2

Batch Download Endpoint

Submit a list of up to 20 TikTok video URLs to download them all in a single `.zip` file.

Endpoint:

POST https://tiklocker.com/api/batch-download
3

Code Examples


import requests

api_key = "your_api_key_here"
video_urls = [
    "https://www.tiktok.com/@user/video/123",
    "https://www.tiktok.com/@user/video/456"
]

headers = {
    "Authorization": f"Bearer {api_key}",
    "Content-Type": "application/json"
}
data = {"urls": video_urls}

response = requests.post(
    "https://tiklocker.com/api/batch-download",
    headers=headers,
    json=data
)

if response.status_code == 200:
    with open("tiklocker_batch.zip", "wb") as f:
        f.write(response.content)
    print("Download successful!")
else:
    print(f"Error: {response.status_code}", response.json())