TIKTOK API

Profile

Retrieve profile from TikTok with a single API request.

GET/api/data/v1/tiktok/profile
1credit base costZero-credit cache supported

Request parameters

Up to 1 credit

TikTok handle. You can pass handle or user_id.

TikTok user id.

If we have a response in the cache that is this many days old or newer, return the cached response (0 credits, with "cached": true and a "cached_at" timestamp). Otherwise, scrape a live result (1 credit). [See the Caching page for details.]

Try in the console

Live requests use your prepaid balance. Cached responses cost zero where supported.

curl --request GET \
  --url 'https://fetchgoblin.com/api/data/v1/tiktok/profile?handle=stoolpresidente' \
  --header 'x-api-key: YOUR_FETCHGOBLIN_API_KEY'

Response

Example
{
  "success": true,
  "credits_charged": 1,
  "user": {
    "id": "6659752019493208069",
    "shortId": "",
    "uniqueId": "stoolpresidente",
    "nickname": "Dave Portnoy",
    "avatarLarger": "https://p16-sign-va.tiktokcdn.com/tos-maliva-avt-0068/7310178711609032710~c5_1080x1080.jpeg?lk3s=a5d48078&nonce=58494&refresh_token=466ff0b92ed2f51170dbbdc2a30b9e9a&x-expires=1737921600&x-signature=uZnt1AjbwQ5pMTWNSV5hqw8QhMM%3D&shp=a5d48078&shcp=81f88b70",
    "avatarMedium": "https://p16-sign-va.tiktokcdn.com/tos-maliva-avt-0068/7310178711609032710~c5_720x720.jpeg?lk3s=a5d48078&nonce=18587&refresh_token=4c5e30ff3fe99ca813d9f79d74c41fb1&x-expires=1737921600&x-signature=6ropsZzca3J6jx%2BH49D%2BAgxMoe4%3D&shp=a5d48078&shcp=81f88b70",
    "avatarThumb": "https://p16-sign-va.tiktokcdn.com/tos-maliva-avt-0068/7310178711609032710~c5_100x100.jpeg?lk3s=a5d48078&nonce=56685&refresh_token=52483b418cbeceeaf2863a9fe0feb830&x-expires=1737921600&x-signature=xGLErTLpukZpmPcYw1ZBHJpPEbM%3D&shp=a5d48078&shcp=81f88b70",
    "signature": "El Presidente/Barstool Sports Founder.",
    "createTime": 1550594547,
    "verified": true,
    "secUid": "MS4wLjABAAAAINC_ElRR-l1RCcnEjOZhNO-9wOzAMf-YHXqRY8vvG9bEhMRa6iu23TaE3JPZYXBD",
    "ftc": false,
    "relation": 0,
    "openFavorite": false,
    "bioLink": {
      "link": "https://www.barstoolsports.com/bios/Surviving-Barstool",
      "risk": 0
    },
    "commentSetting": 0,
    "commerceUserInfo": {
      "commerceUser": false
    },
    "duetSetting": 0,
    "stitchSetting": 0,
    "privateAccount": false,
    "secret": false,
    "isADVirtual": false,
    "roomId": "",
    "uniqueIdModifyTime": 0,
    "ttSeller": false,
    "downloadSetting": 0,
    "profileTab": {
      "showMusicTab": false,
      "showQuestionTab": false,
      "showPlayListTab": true
    },
    "followingVisibility": 1,
    "recommendReason": "",
    "nowInvitationCardUrl": "",
    "nickNameModifyTime": 0,
    "isEmbedBanned": false,
    "canExpPlaylist": true,
    "profileEmbedPermission": 1,
    "language": "en",
    "eventList": [],
    "suggestAccountBind": false,
    "isOrganization": 0
  },
  "stats": {
    "followerCount": 4100000,
    "followingCount": 74,
    "heart": 190400000,
    "heartCount": 190400000,
    "videoCount": 2017,
    "diggCount": 0,
    "friendCount": 52
  },
  "itemList": []
}
Example data from the API specification. Run a request to retrieve current data.

Response shape

This schema describes the documented data shape. Some platform fields may be absent or null. The response also includes your FetchGoblin request ID and current credit balance.

View JSON Schema +
{
  "type": "object",
  "properties": {
    "success": {
      "type": "boolean"
    },
    "credits_remaining": {
      "type": "integer"
    },
    "credits_charged": {
      "type": "integer"
    },
    "user": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "shortId": {
          "type": "string"
        },
        "uniqueId": {
          "type": "string"
        },
        "nickname": {
          "type": "string"
        },
        "avatarLarger": {
          "type": "string"
        },
        "avatarMedium": {
          "type": "string"
        },
        "avatarThumb": {
          "type": "string"
        },
        "signature": {
          "type": "string"
        },
        "createTime": {
          "type": "integer"
        },
        "verified": {
          "type": "boolean"
        },
        "secUid": {
          "type": "string"
        },
        "ftc": {
          "type": "boolean"
        },
        "relation": {
          "type": "integer"
        },
        "openFavorite": {
          "type": "boolean"
        },
        "bioLink": {
          "type": "object",
          "properties": {
            "link": {
              "type": "string"
            },
            "risk": {
              "type": "integer"
            }
          }
        },
        "commentSetting": {
          "type": "integer"
        },
        "commerceUserInfo": {
          "type": "object",
          "properties": {
            "commerceUser": {
              "type": "boolean"
            }
          }
        },
        "duetSetting": {
          "type": "integer"
        },
        "stitchSetting": {
          "type": "integer"
        },
        "privateAccount": {
          "type": "boolean"
        },
        "secret": {
          "type": "boolean"
        },
        "isADVirtual": {
          "type": "boolean"
        },
        "roomId": {
          "type": "string"
        },
        "uniqueIdModifyTime": {
          "type": "integer"
        },
        "ttSeller": {
          "type": "boolean"
        },
        "downloadSetting": {
          "type": "integer"
        },
        "profileTab": {
          "type": "object",
          "properties": {
            "showMusicTab": {
              "type": "boolean"
            },
            "showQuestionTab": {
              "type": "boolean"
            },
            "showPlayListTab": {
              "type": "boolean"
            }
          }
        },
        "followingVisibility": {
          "type": "integer"
        },
        "recommendReason": {
          "type": "string"
        },
        "nowInvitationCardUrl": {
          "type": "string"
        },
        "nickNameModifyTime": {
          "type": "integer"
        },
        "isEmbedBanned": {
          "type": "boolean"
        },
        "canExpPlaylist": {
          "type": "boolean"
        },
        "profileEmbedPermission": {
          "type": "integer"
        },
        "language": {
          "type": "string"
        },
        "eventList": {
          "type": "array"
        },
        "suggestAccountBind": {
          "type": "boolean"
        },
        "isOrganization": {
          "type": "integer"
        }
      }
    },
    "stats": {
      "type": "object",
      "properties": {
        "followerCount": {
          "type": "integer"
        },
        "followingCount": {
          "type": "integer"
        },
        "heart": {
          "type": "integer"
        },
        "heartCount": {
          "type": "integer"
        },
        "videoCount": {
          "type": "integer"
        },
        "diggCount": {
          "type": "integer"
        },
        "friendCount": {
          "type": "integer"
        }
      }
    },
    "itemList": {
      "type": "array"
    }
  }
}