Skip to content

Following

GET/v1/tiktok/user/following1 credit

Returns the accounts a TikTok user follows, 20 per page, with their profile details and counts.

01Query parameters

NameTypeDescription
handlerequiredstringThe account's username, with or without `@`, or its profile URL.
min_timeoptionalintegerThe `min_time` value of the previous page, to get the next one.
trimoptionalbooleanAccepted for compatibility; this endpoint always returns the same user objects.Default: false

02Request

curl "https://api.scrapesocial.ai/v1/tiktok/user/following?handle=khaby.lame" \
  -H "x-api-key: $SCRAPESOCIAL_KEY"

03Responses

Real answers from the API. Lists are shortened to 2 items.

GET /v1/tiktok/user/following?handle=khaby.lame

{
  "success": true,
  "credits_remaining": 4980,
  "credits_charged": 1,
  "extra": {
    "fatal_item_ids": [],
    "logid": "20261026011044048856BFF21A37371476",
    "now": 1792948244000
  },
  "followings": [
    {
      "avatar_larger": {
        "data_size": 0,
        "height": 720,
        "uri": "tos-maliva-avt-0068/5f78661ab7569a41cae5e990d2316eee",
        "url_list": [
          "https://p16-common-sign.tiktokcdn.com/tos-maliva-avt-0068/5f78661ab7569a41cae5e990d2316eee~tplv-tiktokx-cropcenter:1080:1080.jpeg?dr=14579&refresh_token=b961b1cd&x-expires=1793120400&x-signature=xCtwAMsYxjM2cj%2BT%2FFA7WwD92pM%3D&t=4d5b0474&ps=13740610&shp=a5d48078&shcp=81f88b70&idc=my3"
        ],
        "url_prefix": null,
        "width": 720
      },
      "avatar_medium": {
        "data_size": 0,
        "height": 720,
        "uri": "tos-maliva-avt-0068/5f78661ab7569a41cae5e990d2316eee",
        "url_list": [
          "https://p16-common-sign.tiktokcdn.com/tos-maliva-avt-0068/5f78661ab7569a41cae5e990d2316eee~tplv-tiktokx-cropcenter:720:720.jpeg?dr=14579&refresh_token=5b78178d&x-expires=1793120400&x-signature=g4500xg6gcwlWKX19kMlWET%2BWUU%3D&t=4d5b0474&ps=13740610&shp=a5d48078&shcp=81f88b70&idc=my3"
        ],
        "url_prefix": null,
        "width": 720
      },
      "avatar_thumb": {
        "data_size": 0,
        "height": 720,
        "uri": "tos-maliva-avt-0068/5f78661ab7569a41cae5e990d2316eee",
        "url_list": [
          "https://p16-common-sign.tiktokcdn.com/tos-maliva-avt-0068/5f78661ab7569a41cae5e990d2316eee~tplv-tiktokx-cropcenter:100:100.jpeg?dr=14579&refresh_token=b8caa8ef&x-expires=1793120400&x-signature=%2BeLSF7KDjWVKUTncW8a5Pd1tFpI%3D&t=4d5b0474&ps=13740610&shp=a5d48078&shcp=81f88b70&idc=my3"
        ],
        "url_prefix": null,
        "width": 720
      },
      "avatar_uri": "tos-maliva-avt-0068/5f78661ab7569a41cae5e990d2316eee",
      "aweme_count": 1162,
      "comment_setting": 0,
      "download_setting": 0,
      "duet_setting": 0,
      "favoriting_count": 2429,
      "follower_count": 5338256,
      "following_count": 243,
      "nickname": "Xevi",
      "sec_uid": "MS4wLjABAAAAFQ1MMGr1Up7yqeOGwW2icV4-OS0VP5uRcoKmY9QVGbXwDcyTXHpmpVJqdMpRXT24",
      "secret": 0,
      "signature": "Email: [email protected]\nPodcast ⬇️",
      "stitch_setting": 0,
      "total_favorited": 241084966,
      "uid": "6769661547985847302",
      "unique_id": "xeviuniverse",
      "verification_type": 0
    },
    {
      "avatar_larger": {
        "data_size": 0,
        "height": 720,
        "uri": "tos-maliva-avt-0068/aa6a4e62bf2da5dca3593b5a0e5e476f",
        "url_list": [
          "https://p19-common-sign.tiktokcdn.com/tos-maliva-avt-0068/aa6a4e62bf2da5dca3593b5a0e5e476f~tplv-tiktokx-cropcenter:1080:1080.jpeg?dr=14579&refresh_token=41fbe747&x-expires=1793120400&x-signature=%2FdZsfJ%2BTDptISIZa12guIaD%2B7So%3D&t=4d5b0474&ps=13740610&shp=a5d48078&shcp=81f88b70&idc=my3"
        ],
        "url_prefix": null,
        "width": 720
      },
      "avatar_medium": {
        "data_size": 0,
        "height": 720,
        "uri": "tos-maliva-avt-0068/aa6a4e62bf2da5dca3593b5a0e5e476f",
        "url_list": [
          "https://p16-common-sign.tiktokcdn.com/tos-maliva-avt-0068/aa6a4e62bf2da5dca3593b5a0e5e476f~tplv-tiktokx-cropcenter:720:720.jpeg?dr=14579&refresh_token=aee7b7a3&x-expires=1793120400&x-signature=wDVf78dua91yVFDObIIGnB0wYlk%3D&t=4d5b0474&ps=13740610&shp=a5d48078&shcp=81f88b70&idc=my3"
        ],
        "url_prefix": null,
        "width": 720
      },
      "avatar_thumb": {
        "data_size": 0,
        "height": 720,
        "uri": "tos-maliva-avt-0068/aa6a4e62bf2da5dca3593b5a0e5e476f",
        "url_list": [
          "https://p16-common-sign.tiktokcdn.com/tos-maliva-avt-0068/aa6a4e62bf2da5dca3593b5a0e5e476f~tplv-tiktokx-cropcenter:100:100.jpeg?dr=14579&refresh_token=fb65e328&x-expires=1793120400&x-signature=s7pZDaHa3rMtQJosQ5oCwS9pZrk%3D&t=4d5b0474&ps=13740610&shp=a5d48078&shcp=81f88b70&idc=my3"
        ],
        "url_prefix": null,
        "width": 720
      },
      "avatar_uri": "tos-maliva-avt-0068/aa6a4e62bf2da5dca3593b5a0e5e476f",
      "aweme_count": 279,
      "comment_setting": 0,
      "download_setting": 0,
      "duet_setting": 0,
      "favoriting_count": 1,
      "follower_count": 12502,
      "following_count": 0,
      "nickname": "user38180545530128",
      "sec_uid": "MS4wLjABAAAAK7CNRYoImyzWUgPu9lbLy4whAuyIg5fcKd9sG3Sr8dL5-2xwIE1kmm6Tq6b5zKkf",
      "secret": 0,
      "signature": "",
      "stitch_setting": 0,
      "total_favorited": 83759,
      "uid": "7530943790661305399",
      "unique_id": "user38180545530128",
      "verification_type": 0
    }
  ],
  "has_more": true,
  "log_pb": {
    "impr_id": "20261026011044048856BFF21A37371476"
  },
  "max_time": 1792948244,
  "min_time": 1675245968,
  "myself_user_id": "0",
  "next_page_token": "eyJtYXhfY3Vyc29yIjoxNzkyOTQ4MjQ0LCJtaW5fY3Vyc29yIjoxNjc1MjQ1OTY4fQ==",
  "offset": 0,
  "rec_has_more": true,
  "status_code": 0,
  "status_msg": "",
  "total": 82
}

Common to every endpoint

Any route can answer these: a missing or wrong key, no credits left, the platform not answering, or a failure on our side. None of them costs credits.

GET /v1/cosmos/profile?handle=design

{
  "success": false,
  "message": "Invalid API key"
}

04Notes

Accounts are in `followings`; `total` is the following count. To page, send the response's `min_time` back as `min_time` while `has_more` is true. An unknown account is a free 404; a page with nobody in it is an empty list for 0 credits. The endpoint can answer a free 503 when it is temporarily unavailable; retry later.

05Errors & credits

Every error has success: false, a real HTTP status and costs no credits.

  • 400missing_parameter

    A required parameter is missing or invalid.

  • 403private_account

    The account is private or age-restricted.

  • 404not_found

    No such account.

  • 503upstream_error

    The platform did not answer; retry shortly.