Complete guide to integrating with SoketHub API. Get started with our TikTok data endpoints.
Get up and running with SoketHub API in minutes
Sign up and generate your API key from the dashboard
Include your API key in the request headers
Integrate TikTok data into your applications
All API requests require authentication using your API key
Include your API key in the request headers:
X-API-Key: your_api_key_here
Keep your API key secure
Never expose your API key in client-side code or public repositories.
All API requests should be made to:
https://api.sokethub.com/api/v1
/tiktok/user/{username}
Retrieve detailed information about a TikTok user
username
(string)*- TikTok username (without @)curl -X GET "https://api.sokethub.com/api/v1/tiktok/user/username" \
-H "X-API-Key: your_api_key_here"
{
"data": {
"room_id": "7513832535370681093",
"title": "Sample Live Stream Title",
"viewer_count": 543,
"like_count": 1250,
"owner": {
"id": "7099295493754962970",
"nickname": "Sample Streamer Name",
"avatar": "https://example.com/avatar.webp"
},
"live_stream_url": "https://example.com/stream.flv"
},
"source": "sokethub_api",
"timestamp": 1749451667
}
/tiktok/room/{roomId}
Get live room information and statistics
roomId
(string)*- TikTok live room IDcurl -X GET "https://api.sokethub.com/api/v1/tiktok/room/123456789" \
-H "X-API-Key: your_api_key_here"
{
"data": {
"room_id": "123456789",
"title": "Sample Live Stream Title",
"viewer_count": 543,
"like_count": 1250,
"owner": {
"id": "7099295493754962970",
"nickname": "Sample Streamer Name",
"avatar": "https://example.com/avatar.webp"
},
"live_stream_url": "https://example.com/stream.flv"
},
"source": "sokethub_api",
"timestamp": 1749451667
}
API usage limits based on your subscription plan
1,000
requests/day
5,000
requests/day
25,000+
requests/day
Rate limit headers: Each response includes X-RateLimit-Remaining
and X-RateLimit-Reset
headers.
Standard HTTP status codes and error responses