TikTok User Profile API
Query public TikTok data synchronously; empty results and failures are free.
Results return directly in the same request; no task submission or polling is needed.
Open product page and API TesterEndpoint and authentication
GET https://api.goanyapi.com/api/v1/tiktok/user-profileAuthenticate with Authorization: Bearer YOUR_API_KEY. Supply query-string parameters; there is no request body.
Input parameters
| Parameter | Type | Location | Required | Constraints / default | Description |
|---|---|---|---|---|---|
Authorization | string | Header | Yes | Bearer YOUR_API_KEY | API key for the current account |
username | string | Query | One of two | ^[A-Za-z0-9._]+$ | Username. Example: spidey.glow. Supply the username without @. |
url | string | Query | One of two | ^https://(www\.)?tiktok\.com/@[A-Za-z0-9._]+/?(?:\?[^#\s]*)?(?:#[^\s]*)?$ | Full TikTok profile URL. Example: https://www.tiktok.com/@spidey.glow. Supply either url or username, never both. Sharing parameters and fragments are removed. Short links are unsupported. URL resolution adds no separate credit charge. |
Full URL supported: https://www.tiktok.com/@spidey.glow. Supply either url or username, never both. Sharing parameters, fragments and trailing slashes are removed; short links are unsupported. URL format handling adds no separate charge.
Request example
GET /api/v1/tiktok/user-profile?url=https%3A%2F%2Fwww.tiktok.com%2F%40spidey.glow
Authorization: Bearer YOUR_API_KEYOutput parameters
Success returns HTTP 200. Null, empty and missing business fields are preserved; a zero statistic is valid. Only documented public fields are returned.
| Field | Type | Description |
|---|---|---|
code | string | ok on success |
message | string | Request message |
data.creditsUsed | number | Credits charged for this request; zero for empty results |
data.remainingCredits | number | Account balance after settlement |
data.user | object | null | Profile object; null when empty |
data.stats | object | null | Statistics |
data.statsV2 | object | null | Large statistics may use strings; values are preserved |
data.user.id | string | number | boolean | null | Public profile field; may be absent or empty |
data.user.uniqueId | string | number | boolean | null | Public profile field; may be absent or empty |
data.user.nickname | string | number | boolean | null | Public profile field; may be absent or empty |
data.user.signature | string | number | boolean | null | Public profile field; may be absent or empty |
data.user.secUid | string | number | boolean | null | Account identifier; query user posts directly with a profile URL or username without first retrieving this value |
data.user.avatarThumb | string | number | boolean | null | Public profile field; may be absent or empty |
data.user.avatarMedium | string | number | boolean | null | Public profile field; may be absent or empty |
data.user.avatarLarger | string | number | boolean | null | Public profile field; may be absent or empty |
data.user.verified | string | number | boolean | null | Public profile field; may be absent or empty |
data.user.privateAccount | string | number | boolean | null | Public profile field; may be absent or empty |
data.user.createTime | string | number | boolean | null | Public profile field; may be absent or empty |
data.stats.diggCount | number | string | null | Returned statistic; may be absent or empty |
data.stats.shareCount | number | string | null | Returned statistic; may be absent or empty |
data.stats.commentCount | number | string | null | Returned statistic; may be absent or empty |
data.stats.playCount | number | string | null | Returned statistic; may be absent or empty |
data.stats.collectCount | number | string | null | Returned statistic; may be absent or empty |
data.stats.followerCount | number | string | null | Returned statistic; may be absent or empty |
data.stats.followingCount | number | string | null | Returned statistic; may be absent or empty |
data.stats.heartCount | number | string | null | Returned statistic; may be absent or empty |
data.stats.heart | number | string | null | Returned statistic; may be absent or empty |
data.stats.videoCount | number | string | null | Returned statistic; may be absent or empty |
data.stats.friendCount | number | string | null | Returned statistic; may be absent or empty |
data.stats.viewCount | number | string | null | Returned statistic; may be absent or empty |
data.statsV2.diggCount | number | string | null | Returned statistic; may be absent or empty |
data.statsV2.shareCount | number | string | null | Returned statistic; may be absent or empty |
data.statsV2.commentCount | number | string | null | Returned statistic; may be absent or empty |
data.statsV2.playCount | number | string | null | Returned statistic; may be absent or empty |
data.statsV2.collectCount | number | string | null | Returned statistic; may be absent or empty |
data.statsV2.followerCount | number | string | null | Returned statistic; may be absent or empty |
data.statsV2.followingCount | number | string | null | Returned statistic; may be absent or empty |
data.statsV2.heartCount | number | string | null | Returned statistic; may be absent or empty |
data.statsV2.heart | number | string | null | Returned statistic; may be absent or empty |
data.statsV2.videoCount | number | string | null | Returned statistic; may be absent or empty |
data.statsV2.friendCount | number | string | null | Returned statistic; may be absent or empty |
data.statsV2.viewCount | number | string | null | Returned statistic; may be absent or empty |
Real response example
Saved from a real successful response and projected to public fields. Lists show only the first two records. Account balance and request charges are omitted; live responses also contain creditsUsed and remainingCredits based on current configuration. Displaying the example sends no query and charges no credits.
{
"code": "ok",
"message": "ok",
"data": {
"user": {
"id": "7672400417817625622",
"uniqueId": "spidey.glow",
"nickname": "SpideyGlow",
"signature": "",
"secUid": "MS4wLjABAAAAK4RIcIbr3DY__BALfxpDu7FXrXMdNIkck5Zzt7ScvdWxtGgRjeLDOCixGr4nFQrG",
"avatarThumb": "https://p19-common-sign.tiktokcdn-us.com/tos-useast2a-avt-0068-euttp/58cb4b19080af86926f621f3ced3a91d~tplv-tiktokx-cropcenter:100:100.jpeg?dr=9640&refresh_token=4babe6a8&x-expires=1794646800&x-signature=L1xXQL6lgzSEukL%2FUee7vsdWmGY%3D&t=4d5b0474&ps=13740610&shp=a5d48078&shcp=81f88b70&idc=useast5",
"avatarMedium": "https://p16-common-sign.tiktokcdn-us.com/tos-useast2a-avt-0068-euttp/58cb4b19080af86926f621f3ced3a91d~tplv-tiktokx-cropcenter:720:720.jpeg?dr=9640&refresh_token=18965771&x-expires=1794646800&x-signature=k%2FtqwEg%2FG2ewpHJw%2FxdKOhdeRm0%3D&t=4d5b0474&ps=13740610&shp=a5d48078&shcp=81f88b70&idc=useast5",
"avatarLarger": "https://p16-common-sign.tiktokcdn-us.com/tos-useast2a-avt-0068-euttp/58cb4b19080af86926f621f3ced3a91d~tplv-tiktokx-cropcenter:1080:1080.jpeg?dr=9640&refresh_token=77a532ec&x-expires=1794646800&x-signature=VNupCvmJLvBS4NlYIIyGjijt9gw%3D&t=4d5b0474&ps=13740610&shp=a5d48078&shcp=81f88b70&idc=useast5",
"verified": false,
"privateAccount": false,
"createTime": 1786369984
},
"stats": {
"diggCount": 0,
"followerCount": 2581,
"followingCount": 0,
"heartCount": 25500,
"heart": 25500,
"videoCount": 43,
"friendCount": 0
},
"statsV2": {
"diggCount": "0",
"followerCount": "2581",
"followingCount": "0",
"heartCount": "25455",
"heart": "25455",
"videoCount": "43",
"friendCount": "0"
}
}
}Billing
With the current configuration, each successful request costs 1 credit.
Non-empty successful results use the currently configured rate; empty results and failures are free. Sufficient balance is required before requesting. A concurrent settlement with insufficient balance also returns 402 without delivering unsettled paid results. Empty or null details and lists without meaningful records are empty; individual empty fields do not make a populated result empty.
Errors
400: invalid parameters; 401: invalid authentication; 402: insufficient credits; 429: rate limit; 502: request failed; 503: API or pricing not configured. Errors contain code and message without internal addresses or credentials.
{"code":"invalid_params","message":"Invalid parameter"}