Hey there! This is a free and unofficial TikTok API I built. It's super easy to use and helps you get TikTok user info quickly.
Just send a GET request to this URL:
https://faas-sgp1-18bc02ac.doserverless.co/api/v1/web/fn-67a396e1-78e9-4dff-8f6a-0f07c2d80c56/default/sm-t/?username=USERNAMEHERE
Swap out USERNAMEHERE
with the TikTok username (donโt include the "@").
Itโs 100% free, no API key needed.
Try it with "exampleuser":
https://faas-sgp1-18bc02ac.doserverless.co/api/v1/web/fn-67a396e1-78e9-4dff-8f6a-0f07c2d80c56/default/sm-t/?username=exampleuser
Youโll get a response like this:
{
"profile": {
"Nickname": "Example User",
"Username": "@exampleuser",
"Country": "United States",
"Language": "en",
"About": "Just an example TikTok user profile.",
"User ID": "7000000000000000000",
"SecUID": "MS4wLjABAAAAA_example_sec_uid_long_string",
"Bio Link": "https://example.com/mylink",
"Account Created": "2020-01-15 10:30:00",
"Nickname Last Modified": "2023-05-10 14:45:00",
"Username Last Modified": "2022-11-20 09:00:00",
"Avatar URL": "https://p16-sign-va.tiktokcdn.com/tos-maliva-avt-0068-us/0000000000_avatar.jpeg?lk3s=a5d4324f&nonce=...&s=300x300"
},
"stats": {
"Followers": "1,234,567",
"Following": "500",
"Hearts": "9,876,543",
"Videos": "120",
"Friends": "80"
},
"Website": "tiktokfindercountry.xyz",
"You can support me on Ko-fi to keep this project alive!": "https://ko-fi.com/iamjamie"
}
curl "https://faas-sgp1-18bc02ac.doserverless.co/api/v1/web/fn-67a396e1-78e9-4dff-8f6a-0f07c2d80c56/default/sm-t/?username=exampleuser"
const API_URL = "https://faas-sgp1-18bc02ac.doserverless.co/api/v1/web/fn-67a396e1-78e9-4dff-8f6a-0f07c2d80c56/default/sm-t/";
async function getTikTokProfile(username) {
try {
const response = await fetch(`${API_URL}?username=${username}`);
if (!response.ok) {
const errorDetail = await response.json().catch(() => ({ error: 'Unknown API error' }));
throw new Error(`API request failed: ${response.status} - ${errorDetail.error || response.statusText}`);
}
return await response.json();
} catch (error) {
console.error("Error fetching TikTok profile:", error);
throw error;
}
}
(async () => {
const usernameToFetch = "exampleuser"; // Replace with actual username
try {
const profileData = await getTikTokProfile(usernameToFetch);
console.log(profileData);
} catch (error) {
console.error("Failed to get profile:", error.message);
}
})();
import requests
import json
API_URL = "https://faas-sgp1-18bc02ac.doserverless.co/api/v1/web/fn-67a396e1-78e9-4dff-8f6a-0f07c2d80c56/default/sm-t/"
def get_tiktok_profile(username):
url = f"{API_URL}?username={username}"
try:
response = requests.get(url)
response.raise_for_status()
return response.json()
except requests.exceptions.HTTPError as e:
print(f"HTTP Error: {e.response.status_code} - {e.response.text}")
return None
except requests.exceptions.RequestException as e:
print(f"Network Error: {e}")
return None
except json.JSONDecodeError as e:
print(f"JSON Decode Error: {e}")
return None
# Example usage
username_to_fetch = "exampleuser"
profile_data = get_tiktok_profile(username_to_fetch)
if profile_data:
print(json.dumps(profile_data, indent=2))
else:
print(f"Failed to retrieve profile for {username_to_fetch}.")