TikTok Profile Picture API
Fetch the largest profile picture TikTok publishes for any public account from its username. The response is small: the username, the user id, a link to the image and whether it is the full-size version.
Request
GET /v1/tiktok/profiles/{username}/picture ·
1 credit per successful call
curl "https://api.igramapi.com/v1/tiktok/profiles/example_creator/picture" \
-H "Authorization: Bearer YOUR_API_KEY" import requests
response = requests.get(
"https://api.igramapi.com/v1/tiktok/profiles/example_creator/picture",
headers={"Authorization": "Bearer YOUR_API_KEY"},
timeout=30,
)
response.raise_for_status()
print(response.json()) const response = await fetch("https://api.igramapi.com/v1/tiktok/profiles/example_creator/picture", {
method: "GET",
headers: {
Authorization: "Bearer YOUR_API_KEY",
},
});
if (!response.ok) throw new Error((await response.json()).error.message);
console.log(await response.json()); <?php
$ch = curl_init("https://api.igramapi.com/v1/tiktok/profiles/example_creator/picture");
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer YOUR_API_KEY",
],
]);
$data = json_decode(curl_exec($ch), true);
print_r($data); Response
{
"username": "example_creator",
"user_id": "6812345678901234567",
"url": "https://v16-webapp-prime.tiktok.com/video/tos/example/avatar.jpeg",
"is_hd": true,
"cached": false
} All values above are made-up examples. Media links are temporary TikTok CDN addresses.
Parameters
| Name | In | Description |
|---|---|---|
usernamerequired | path | TikTok username. A leading @ or a profile URL is accepted. |
Response fields
| Field | Type | Description |
|---|---|---|
username / user_id | string | The account. |
url | string | Picture URL (temporary). |
is_hd | boolean | True for the large version. |
cached | boolean | True when served from the short-lived cache. |
Largest size available
You get the large version of the picture, not the small thumbnail used in lists. is_hd is false only when TikTok offers nothing bigger than the medium size.
A direct image link
The link opens in a browser and can be fetched from a server, with no extra headers or login.
Tiny response
Only the username, the user id, the URL and the HD flag. For counts and bio, use the TikTok Profile API.
1 credit per call
Answers come from a short-lived cache shared with the Profile API, and cached tells you when.
Why avatars need special care
TikTok picture links are signed and expire after a while, and they change when the creator updates their photo. Do not save the URL as a permanent reference. Fetch the image from the link right away and store the file yourself, or call the API again when you need it.
Where it helps
CRMs and influencer databases use it to show creator avatars, and content tools use it for profile cards and link previews. The TikTok Profile API returns the same picture together with the counts, bio and verification.
Frequently asked questions
Can I save the image permanently?
The link expires, so fetch the image from it and store the file on your side.
What if the account has no picture?
The API returns HTTP 404 with the error code picture_unavailable.
How is this different from the Profile API?
The Profile API returns the whole header: counts, bio, link and verification, with the picture inside. This endpoint returns only the picture. Both cost 1 credit.
Our errors cost nothing. Failures on our side (status 500 or above) and invalid requests (400, 422) are refunded, and every error has the same shape. See error handling and credits and rate limits.
Try the TikTok Profile Picture API free
Create a key and make your first request in minutes. 100 free credits every month.