TikTok Data Portability API

User data export operations

Operations 2

POST /v2/data_portability/task/create/ Create Data Portability Task #
POST /v2/data_portability/task/status/ Get Data Portability Task Status #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/tiktok-data-portability-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

tiktok-data-portability-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: TikTok Data Portability API
  description: The TikTok Data Portability API allows users to export their TikTok data including activity, videos, and profile information to authorized third-party services, supporting data portability rights.
  version: v2
  contact:
    name: TikTok for Developers
    url: https://developers.tiktok.com/doc/data-portability-api-get-started
  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: Data Portability
  description: User data export operations
paths:
  /v2/data_portability/task/create/:
    post:
      operationId: createDataPortabilityTask
      summary: Create Data Portability Task
      description: Creates a data export task for a user, specifying the data categories to include.
      tags:
      - Data Portability
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DataPortabilityTaskRequest'
      responses:
        '200':
          description: Data portability task created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DataPortabilityTaskResponse'
        '401':
          description: Unauthorized
  /v2/data_portability/task/status/:
    post:
      operationId: getDataPortabilityTaskStatus
      summary: Get Data Portability Task Status
      description: Retrieves the status of a data portability export task.
      tags:
      - Data Portability
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - task_id
              properties:
                task_id:
                  type: string
                  description: Task ID from createDataPortabilityTask
      responses:
        '200':
          description: Task status retrieved
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TaskStatusResponse'
components:
  schemas:
    Error:
      type: object
      properties:
        code:
          type: string
        message:
          type: string
        log_id:
          type: string
    TaskStatusResponse:
      type: object
      properties:
        data:
          type: object
          properties:
            task_id:
              type: string
            status:
              type: string
              enum:
              - PROCESSING
              - READY
              - FAILED
              - EXPIRED
            download_urls:
              type: array
              items:
                type: string
              description: Download URLs when status is READY
        error:
          $ref: '#/components/schemas/Error'
    DataPortabilityTaskRequest:
      type: object
      required:
      - data_types
      properties:
        data_types:
          type: array
          items:
            type: string
            enum:
            - ACTIVITY
            - VIDEOS
            - FAVORITES
            - FOLLOWING
            - FOLLOWERS
            - PROFILE
            - DIRECT_MESSAGES
            - COMMENTS
          description: Data categories to export
    DataPortabilityTaskResponse:
      type: object
      properties:
        data:
          type: object
          properties:
            task_id:
              type: string
        error:
          $ref: '#/components/schemas/Error'
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer