API Access

Integrate our TikTok downloader into your applications with our powerful API - Free, no API key required!

API Documentation

Endpoint

GET /api/download

Parameters

Parameter Type Required Description
url string Yes TikTok video URL

Code Examples

curl -X GET "https://tiksave.vercel.app/api/download?url=https://tiktok.com/@username/video/1234567890"
const downloadTikTok = async (videoUrl) => {
  const apiUrl = 'https://tiksave.vercel.app/api/download';
  
  try {
    const response = await fetch(
      `${apiUrl}?url=${encodeURIComponent(videoUrl)}`
    );
    
    const data = await response.json();
    
    if (data.success) {
      console.log('Video URL:', data.data.videoUrl);
      console.log('Title:', data.data.title);
      console.log('Author:', data.data.author);
      return data.data;
    } else {
      throw new Error(data.error);
    }
  } catch (error) {
    console.error('Error:', error.message);
  }
};

downloadTikTok('https://tiktok.com/@username/video/1234567890');
import requests

def download_tiktok(video_url):
    api_url = 'https://tiksave.vercel.app/api/download'
    
    params = {
        'url': video_url
    }
    
    try:
        response = requests.get(api_url, params=params)
        data = response.json()
        
        if data.get('success'):
            video_data = data['data']
            print(f"Title: {video_data['title']}")
            print(f"Author: {video_data['author']}")
            print(f"Video URL: {video_data['videoUrl']}")
            return video_data
        else:
            print(f"Error: {data.get('error')}")
            
    except Exception as e:
        print(f"Request failed: {str(e)}")

download_tiktok('https://tiktok.com/@username/video/1234567890')
const axios = require('axios');

const downloadTikTok = async (videoUrl) => {
  const apiUrl = 'https://tiksave.vercel.app/api/download';
  
  try {
    const response = await axios.get(apiUrl, {
      params: {
        url: videoUrl
      }
    });
    
    const { data } = response;
    
    if (data.success) {
      console.log('Download successful!');
      console.log('Video HD:', data.data.videoHdUrl);
      console.log('Video SD:', data.data.videoUrl);
      console.log('Duration:', data.data.duration + 's');
      return data.data;
    }
  } catch (error) {
    console.error('API Error:', error.response?.data?.error || error.message);
  }
};

downloadTikTok('https://tiktok.com/@username/video/1234567890');

Response Example

JSON Response
{
  "success": true,
  "data": {
    "title": "Video Title Here",
    "author": "username",
    "avatar": "https://...",
    "duration": 15,
    "contentType": "video",
    "videoUrl": "https://download-url-sd.mp4",
    "videoHdUrl": "https://download-url-hd.mp4",
    "cover": "https://cover-image.jpg",
    "play_count": 1000000,
    "digg_count": 50000,
    "comment_count": 1000,
    "share_count": 5000
  }
}

API Status: Free & Open

No API key required. Use our API freely!

Free

No API Key

No Limit

Unlimited Requests

Open

No Auth Required