TikTok for Developers Research Social API

Social graph data

OpenAPI Specification

tiktok-for-developers-research-social-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: TikTok Content Posting OAuth Research Social API
  description: The TikTok Content Posting API allows third-party platforms to publish videos directly to a user's TikTok account. Supports direct post and file-upload flows, including video initiation, chunk upload, and publish status polling.
  version: v2
  contact:
    name: TikTok for Developers
    url: https://developers.tiktok.com/
  termsOfService: https://developers.tiktok.com/doc/tiktok-api-terms-of-service
servers:
- url: https://open.tiktokapis.com
  description: TikTok Open API Production
security:
- BearerAuth: []
tags:
- name: Research Social
  description: Social graph data
paths:
  /v2/research/user/followers/:
    post:
      operationId: listUserFollowers
      summary: List User Followers
      description: Retrieves the list of followers for a specified TikTok user.
      tags:
      - Research Social
      parameters:
      - name: fields
        in: query
        required: true
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SocialListRequest'
      responses:
        '200':
          description: Followers list returned successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SocialListResponse'
        '401':
          description: Unauthorized
  /v2/research/user/following/:
    post:
      operationId: listUserFollowing
      summary: List User Following
      description: Retrieves the list of accounts that a specified TikTok user follows.
      tags:
      - Research Social
      parameters:
      - name: fields
        in: query
        required: true
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SocialListRequest'
      responses:
        '200':
          description: Following list returned successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SocialListResponse'
        '401':
          description: Unauthorized
components:
  schemas:
    SocialListResponse:
      type: object
      properties:
        data:
          type: object
          properties:
            user_followers:
              type: array
              items:
                $ref: '#/components/schemas/SocialUser'
            cursor:
              type: integer
            has_more:
              type: boolean
        error:
          $ref: '#/components/schemas/Error'
    SocialUser:
      type: object
      properties:
        display_name:
          type: string
        username:
          type: string
    Error:
      type: object
      properties:
        code:
          type: string
        message:
          type: string
        log_id:
          type: string
    SocialListRequest:
      type: object
      required:
      - username
      - max_count
      properties:
        username:
          type: string
          description: TikTok handle (without @)
        max_count:
          type: integer
          minimum: 1
          maximum: 100
        cursor:
          type: integer
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: OAuth 2.0 Bearer token