{
  "openapi": "3.0.1",
  "info": {
    "title": "TikTok Shop Trending Products & Sales Velocity",
    "description": "Track TikTok Shop products by keyword or URL. Measure sold-count growth, estimated daily sales, price changes, review growth, and opportunity-rank movement across recurring runs. Export verified results to JSON, CSV, Excel, or API—no external data provider required.",
    "version": "0.1",
    "x-build-id": "zfzDbgDQ9v2a0HEgJ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/nexascout~tiktok-shop-trending-products/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-nexascout-tiktok-shop-trending-products",
        "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/nexascout~tiktok-shop-trending-products/runs": {
      "post": {
        "operationId": "runs-sync-nexascout-tiktok-shop-trending-products",
        "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/nexascout~tiktok-shop-trending-products/run-sync": {
      "post": {
        "operationId": "run-sync-nexascout-tiktok-shop-trending-products",
        "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": {
          "searchQueries": {
            "title": "Product niches or keywords",
            "maxItems": 10,
            "type": "array",
            "description": "Optional TikTok Shop niches to track, for example car accessories, skincare serum, kitchen gadgets, or pet supplies. Use at least one query or product URL; keep the same values across recurring runs.",
            "default": [
              "car accessories"
            ],
            "items": {
              "type": "string"
            }
          },
          "productUrls": {
            "title": "Optional product watchlist",
            "maxItems": 50,
            "type": "array",
            "description": "Optional TikTok Shop product watchlist. Combine with searchQueries or use URLs alone, and keep the same watchlist across recurring runs for comparable history.",
            "items": {
              "type": "object",
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL",
                  "description": "A public TikTok Shop product URL."
                }
              },
              "required": [
                "url"
              ]
            },
            "default": []
          },
          "trackerName": {
            "title": "Tracker name",
            "minLength": 1,
            "maxLength": 80,
            "type": "string",
            "description": "Stable monitoring-job identifier. Reuse the exact trackerName, region, queries, and product URLs on scheduled runs so the Actor can compare observations; changing the scope isolates history.",
            "default": "my-trend-tracker"
          },
          "trackingEnabled": {
            "title": "Save history and calculate changes",
            "type": "boolean",
            "description": "Store a private snapshot in your Apify account and compare it with later runs. Disable for one-off snapshots.",
            "default": true
          },
          "resetHistory": {
            "title": "Reset this tracker before the run",
            "type": "boolean",
            "description": "Ignore the previous snapshot and create a new baseline. The old record is replaced only after a successful observation.",
            "default": false
          },
          "minimumTrackingHours": {
            "title": "Minimum hours before calculating daily velocity",
            "minimum": 1,
            "maximum": 168,
            "type": "integer",
            "description": "Avoids unstable extrapolation when two runs happen too close together. Six hours is a safe minimum; daily schedules are recommended.",
            "default": 6
          },
          "retainMissingDays": {
            "title": "Days to retain products that disappear",
            "minimum": 7,
            "maximum": 90,
            "type": "integer",
            "description": "Keeps recently missing products in private tracker history so their first-seen date is preserved if they return.",
            "default": 30
          },
          "region": {
            "title": "TikTok Shop region",
            "enum": [
              "US"
            ],
            "type": "string",
            "description": "TikTok Shop market code. This release supports the United States.",
            "default": "US"
          },
          "maxProductsPerQuery": {
            "title": "Maximum products per niche",
            "minimum": 1,
            "maximum": 25,
            "type": "integer",
            "description": "Maximum billable dataset rows returned per keyword on every observation. Smaller recurring runs are faster and cheaper.",
            "default": 5
          },
          "sortBy": {
            "title": "Sort results by",
            "enum": [
              "TREND_SCORE",
              "SALES_VELOCITY",
              "RANK_CHANGE",
              "SALES",
              "VIRAL_SCORE",
              "PRICE_LOW_TO_HIGH"
            ],
            "type": "string",
            "description": "Trend score is recommended. Sales velocity and rank change become meaningful after a second observation.",
            "default": "TREND_SCORE"
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "US residential proxy is recommended because TikTok Shop is geo-sensitive and rate-limits data-center traffic.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountry": "US"
            }
          },
          "maxConcurrency": {
            "title": "Maximum extraction concurrency",
            "minimum": 1,
            "maximum": 2,
            "type": "integer",
            "description": "Keep this at 1–2 to reduce TikTok security challenges and residential proxy traffic.",
            "default": 2
          },
          "navigationTimeoutSecs": {
            "title": "Navigation timeout (seconds)",
            "minimum": 15,
            "maximum": 120,
            "type": "integer",
            "description": "Maximum time allowed for each HTTP or browser navigation.",
            "default": 45
          },
          "includeRawData": {
            "title": "Include raw source data",
            "type": "boolean",
            "description": "Include the best raw product object captured from TikTok. Useful for debugging, but makes exports larger.",
            "default": false
          },
          "includeSearchFallbacks": {
            "title": "Include unverified search-only leads",
            "type": "boolean",
            "description": "Return indexed product URLs even when the live TikTok page could not be validated. Disabled by default; enabled search-only rows are also billable results.",
            "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}