TikTok API docs

TikTok API: Social — Friends by user UID

Retrieve public audience links and engagement signals around Social on TikTok for research and segmentation.

Use “Friends by user UID” when your product needs to understand which accounts interact with or connect to an object.

Method GET
Entity Social
Versions 2
What this endpoint does

What you can build with this API method

Review the result and common workflows first, then move to parameters and a working request example.

What this endpoint helps with

The response includes public accounts and available relationship or interaction signals for Social.

When to use it

Use “Friends by user UID” when your product needs to understand which accounts interact with or connect to an object.

Common use cases

Audience research

Study public audience composition and overlaps around TikTok objects.

Segmentation

Build account groups for analytics and downstream enrichment.

Engagement evaluation

Enrich object metrics with public interaction data.

Available versions

Response version

Both versions solve the same job and accept the same parameters. Use the switch to compare the response structure and choose the version your client expects.

Response version V2

Switch versions on this page to compare response structures while keeping the same documentation URL.

What stays the same

Authentication, required parameters, and the request shape stay the same across V1 and V2. In practice, you choose the version when you build the endpoint path and when you parse the response.

What changes between versions

The main difference is the response envelope. Use V2 for new integrations and keep V1 only when you need compatibility with an existing client contract.

How to use it

How to call the method

Use the same API key header and the same query parameters for both versions. This documentation shows the shared parameter set first, then version-specific endpoint paths and code snippets.

Input parameters

Shared parameters
Parameter Required Type Example Description
user_uid Yes str value TikTok secUid/user UID returned by the profile endpoint. Example: MS4wLjABAAAAexampleSecUid.
cursor No str | None QVFB... Next-page cursor returned by the previous response. Omit it for the first page.

Version-specific request path

V2

Choose a version when you copy the exact endpoint path, example URL, and code snippet. The parameter list above stays the same.

GET /api/v2/tiktok.com/social/friends-by-user-uid

Normalized format

Code examples

curl --request GET \
  --url "https://www.scrapestorm.net/api/v2/tiktok.com/social/friends-by-user-uid" \
  --header "X-API-Key: 00000000-0000-4000-8000-000000000000" \
  --get --data-urlencode 'user_uid=value' \
  # Optional parameters:
  # --data-urlencode 'cursor=QVFB...'
Response example

Live response by version

The preview keeps key fields and the first collection items so you can scan the response shape quickly. Switching versions changes the JSON format.

Response example

V2 response JSON

Verified example

This compact JSON example comes from the latest successful verification run for V2.

{
  "success": true,
  "status": "ok",
  "pagination": {
    "cursor": "1447292191",
    "has_more": false
  },
  "search_context": {
    "user_uid": "MS4wLjABAAAAv7iSuuXDJGDvJkmH_vz1qkDZYo1apxgzaxdBSeIuPiM"
  },
  "data": {
    "users": {
      "count": 1,
      "items": [
        {
          "url": "https://www.tiktok.com/@tiktokcreators",
          "user_id": "6551237489917432832",
          "sec_uid": "MS4wLjABAAAAXqqA-cLDC0hfQPIrS5APYNsg04zkl-socWCkqkI3UIOaEe6_Qnokg0GcWpLnMNQP",
          "username": "tiktokcreators",
          "display_name": "tiktok creators",
          "description": "The official account for TikTok Creators who inspire creativity and bring joy ✨\n\n⬇️ Creator Growth Challenge 💰⬇️",
          "follower_count": 8493623,
          "following_count": 568,
          "friend_count": 0,
          "like_count": 33285419,
          "video_count": 1109,
          "digg_count": 1855,
          "is_verified": true,
          "is_private": false,
          "is_seller": false,
          "avatar_url": "https://example.com/image.jpg",
          "avatar_urls": "https://example.com/image.jpg"
        }
      ]
    }
  }
}
What to do next

Continue the evaluation

Use this documentation as the first decision point, then move into pricing, platform coverage, and integration rules before you connect the endpoint for recurring use.

Open the TikTok platform page

Compare adjacent entities, API method groups, and related docs before implementation.

Open platform page

Compare API method pricing

Check where this API method sits inside the public price table before you scale usage.

View pricing

Review integration rules

Use the starter docs to confirm authentication, versioning, retries, and mock vs live behavior.

Open docs
FAQ

Questions teams ask before implementation

Use these answers to decide whether this API method fits your workflow, versioning choice, and rollout plan.

What data does this TikTok API method return?

The method performs “Friends by user UID” for Social. The compact response example below shows the exact field structure.

Should I choose V1 or V2?

Choose V2 for new integrations because it provides a normalized structure. Use V1 only for compatibility with clients that already consume the platform-native format.

What do I need for the first request?

Create an API key, send it in the request header, and provide the required parameters from the table. The code samples already contain the correct path and request structure.