api
Tiktok

Documentation

Endpoint Search

POST https://api.i-as.dev/api/tiktok/search

Body Request

The request body should contain a JSON object with the following structure:

{
  "keywords": "your_query"
}
  • keywords: The search term you want to look for on TikTok.

Endpoint User Feed

POST https://api.i-as.dev/api/tiktok/user-feed

Body Request

The request body should contain a JSON object with the following structure:

{
  "username": "@username"
}
  • username: The TikTok username to fetch the feed for.

Endpoint Trending Feed

POST https://api.i-as.dev/api/tiktok/trending-feed

Body Request

The request body should contain a JSON object with the following structure:

{
  "region": "id_country"
}
  • region: The Alpha-2 country code (e.g., "id" for Indonesia, "en" for English-speaking countries, etc.).

Endpoint Video URL

POST https://api.i-as.dev/api/tiktok/video

Body Request

The request body should contain a JSON object with the following structure:

{
  "url": "url_video"
}
  • url: The URL of the TikTok video you want to fetch information for.

Optional Parameters:

  • count: The number of videos to fetch (default is 12).
  • cursor: The pagination cursor to fetch more results (default is 0).
  • web: Set to 1 if you want to get a web-compatible video format.
  • hd: Set to 1 if you want to get a high-definition version of the video.

Example Requests:

Example Request for Search:

POST https://api.i-as.dev/api/tiktok/search

Body:
{
  "keywords": "funny cat videos"
}

Example Request for User Feed:

POST https://api.i-as.dev/api/tiktok/user-feed

Body:
{
  "username": "@john_doe"
}

Example Request for Trending Feed:

POST https://api.i-as.dev/api/tiktok/trending-feed

Body:
{
  "region": "id"
}

Example Request for Video URL:

POST https://api.i-as.dev/api/tiktok/video

Body:
{
  "url": "https://www.tiktok.com/@username/video/1234567890123456789"
}

This API allows you to interact with TikTok content by searching videos, retrieving user feeds, getting trending videos in specific regions, and fetching details of a TikTok video using its URL.