SocialAPI
Documentation

API Documentation

Welcome to the SocialAPI documentation. Learn how to integrate TikTok data into your applications.

Quick Start
Get started with SocialAPI in minutes

1. Get your API Key

Create an account and generate an API key from your dashboard.

2. Make your first request

curl -X GET "https://api.socialapi.store/api/v1/user/info?username=therock" \
  -H "X-API-Key: YOUR_API_KEY"

3. Handle the response

All responses are in JSON format with a consistent structure.

Authentication

All API requests require authentication using your API key. Include it in the request header:

X-API-Key: tk_live_xxxxxxxxxxxxx

You can also use the Authorization: Bearer header format.

Rate Limiting

API requests are rate limited based on your plan:

  • Default: 100 requests per minute
  • Pro: 500 requests per minute
  • Enterprise: Custom limits

When you exceed the rate limit, you'll receive a 429 Too Many Requests response.

Credits

Each API request consumes credits based on the endpoint:

1 credit
Basic info endpoints (user info, hashtag info)
2 credits
List endpoints (videos, comments, followers)
3 credits
Search endpoints

API Endpoints

GET
/api/v1/user/info
1 credit
Get User Info
Get detailed information about a TikTok user including follower count, bio, and profile data.

Parameters

username
required
string- TikTok username

Example Request

curl -X GET "https://api.socialapi.store/api/v1/user/info?username=therock" \
  -H "X-SocialAPI-Key: your_api_key"

Example Response

{
  "success": true,
  "data": {
    "user": {
      "id": "123456789",
      "uniqueId": "therock",
      "nickname": "The Rock",
      "avatarLarger": "https://...",
      "signature": "Actor, Producer...",
      "verified": true,
      "followerCount": 72000000,
      "followingCount": 500,
      "heartCount": 450000000,
      "videoCount": 250
    }
  }
}
GET
/api/v1/user/videos
2 credits
Get User Videos
Get a list of videos posted by a TikTok user.

Parameters

username
required
string- TikTok username
count
optional
number- Number of videos to return (default: 30, max: 100)
cursor
optional
string- Pagination cursor

Example Request

curl -X GET "https://api.socialapi.store/api/v1/user/videos?username=therock&count=10" \
  -H "X-SocialAPI-Key: your_api_key"

Example Response

{
  "success": true,
  "data": {
    "videos": [...],
    "hasMore": true,
    "cursor": "1234567890"
  }
}
GET
/api/v1/user/liked
2 credits
Get User Liked Videos
Get videos liked by a TikTok user (if public).

Parameters

username
required
string- TikTok username
count
optional
number- Number of videos to return (default: 30)

Example Request

curl -X GET "https://api.socialapi.store/api/v1/user/liked?username=therock" \
  -H "X-SocialAPI-Key: your_api_key"

Example Response

{
  "success": true,
  "data": {
    "videos": [...],
    "hasMore": true
  }
}

Error Handling

The API uses standard HTTP status codes to indicate success or failure:

200
Success
400
Bad Request - Invalid parameters
401
Unauthorized - Invalid or missing API key
402
Payment Required - Insufficient credits
429
Too Many Requests - Rate limit exceeded
500
Internal Server Error