{
  "openapi": "3.0.1",
  "info": {
    "title": "TikTok Video Tracker - Plays, Likes, Shares, Daily Changes",
    "description": "Paste TikTok video links and get plays, likes, comments, shares and saves per video, with the change since your last run. Same column names as clockworks/free-tiktok-scraper. No login, no browser.",
    "version": "0.1",
    "x-build-id": "RDVA9gh6js70CSPfz"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/magenta_courser~tiktok-video-tracker/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-magenta_courser-tiktok-video-tracker",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/magenta_courser~tiktok-video-tracker/runs": {
      "post": {
        "operationId": "runs-sync-magenta_courser-tiktok-video-tracker",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/magenta_courser~tiktok-video-tracker/run-sync": {
      "post": {
        "operationId": "run-sync-magenta_courser-tiktok-video-tracker",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "postURLs": {
            "title": "Video links",
            "type": "array",
            "description": "TikTok video links, one per line. Accepted: https://www.tiktok.com/@user/video/<id> (and /photo/<id>), share links from vm.tiktok.com, vt.tiktok.com or tiktok.com/t/... (followed once), and bare numeric video IDs. Same field name as clockworks/free-tiktok-scraper, so a saved input works unchanged. You get exactly one row per link.",
            "items": {
              "type": "string"
            }
          },
          "profiles": {
            "title": "Profiles (creator totals only)",
            "type": "array",
            "description": "Optional. TikTok usernames or profile links. Each profile gives ONE row with the creator's totals (followers, likes, videos) when TikTok serves the profile page to an anonymous visitor; otherwise a free \"blocked\" row. It does not list the profile's videos: TikTok serves video lists only through signed API requests, which this Actor does not make. The same creator totals are in authorMeta of every video row.",
            "items": {
              "type": "string"
            }
          },
          "columnFormat": {
            "title": "Column format",
            "enum": [
              "clockworks",
              "tracker"
            ],
            "type": "string",
            "description": "Shape of each output row. \"clockworks\" emits the keys of clockworks/free-tiktok-scraper with the same names, nesting and order, followed by our columns (status, statusMessage, scrapedAt, previousScrapedAt, playChange, diggChange, commentChange, shareChange, collectChange, followerChange, isFirstSeen). \"tracker\" is a flat row that also has the previous values. Change tracking works the same in both.",
            "default": "clockworks"
          },
          "compareWithLastRun": {
            "title": "Compare with last run",
            "type": "boolean",
            "description": "Add playChange, diggChange, commentChange, shareChange, collectChange, followerChange, previousScrapedAt and isFirstSeen to every row, compared with the last run that read the same video successfully. The previous values are kept in a named key-value store in your account, so scheduled daily runs line up automatically.",
            "default": true
          },
          "outputMode": {
            "title": "Output",
            "enum": [
              "all",
              "changesOnly"
            ],
            "type": "string",
            "description": "\"changesOnly\" saves (and charges) only videos seen for the first time or whose play, like, comment, share or save count changed since the last run; rows with a problem (not_found, private, blocked, unsupported, error) are always saved and never charged. Needs \"Compare with last run\".",
            "default": "all"
          },
          "historyStoreName": {
            "title": "History store name",
            "type": "string",
            "description": "Named key-value store that keeps the last counts per video. Use a different name for each campaign if you want independent baselines.",
            "default": "tiktok-video-history"
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Keep the default (Apify datacenter proxy): in our tests every video page loaded through it. A blocked request is retried once with a new session. This Actor works on datacenter proxies only: if the RESIDENTIAL group is selected it is ignored with a warning and the run uses the datacenter proxy (residential is slower, gets TikTok's verification page more often and would only raise cost). Your own proxy URLs are used as given.",
            "default": {
              "useApifyProxy": true
            }
          },
          "maxRequests": {
            "title": "Max requests per run",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "Optional. Upper limit on HTTP requests for the whole run, retries and redirect hops included. 0 = unlimited (default). Each video needs one request; a blocked page takes one more, a share link one more. When the limit is used up the run stops and the remaining links get an error row.",
            "default": 0
          },
          "maxRunMinutes": {
            "title": "Max run time (minutes)",
            "minimum": 1,
            "maximum": 1440,
            "type": "integer",
            "description": "Optional. The run stops sending new requests after this many minutes (default 60) and the remaining links get an error row. Independent of this, the run also stops after 5 blocked requests in a row.",
            "default": 60
          },
          "hashtags": {
            "title": "Hashtags (not supported)",
            "type": "array",
            "description": "Not supported by design: TikTok serves hashtag feeds only through signed API requests, which this Actor does not make. Each entry produces one free row with status \"unsupported\".",
            "items": {
              "type": "string"
            }
          },
          "searchQueries": {
            "title": "Search queries (not supported)",
            "type": "array",
            "description": "Not supported by design: TikTok serves search results only through signed API requests, which this Actor does not make. Each entry produces one free row with status \"unsupported\".",
            "items": {
              "type": "string"
            }
          },
          "resultsPerPage": {
            "title": "Results per page (ignored)",
            "minimum": 0,
            "type": "integer",
            "description": "Ignored. This Actor returns one row per link; it does not read feeds."
          },
          "shouldDownloadVideos": {
            "title": "Download videos (ignored)",
            "type": "boolean",
            "description": "Ignored. This Actor does not download media.",
            "default": false
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}