{
  "openapi": "3.0.1",
  "info": {
    "title": "TikTok Hashtag Scraper — Videos, Stats & Creators, No Login",
    "description": "Scrape every video posted under any TikTok hashtag — no login, no cookies. Get video URL, description, play/like/comment/share counts, posting date, creator handle with follower count, music, co-tagged hashtags, and caption languages for every video. Multiple hashtags per run.",
    "version": "1.0",
    "x-build-id": "lvpzCD8kktJ6bnoDO"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/memo23~tiktok-hashtag-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-memo23-tiktok-hashtag-scraper",
        "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/memo23~tiktok-hashtag-scraper/runs": {
      "post": {
        "operationId": "runs-sync-memo23-tiktok-hashtag-scraper",
        "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/memo23~tiktok-hashtag-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-memo23-tiktok-hashtag-scraper",
        "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": {
          "hashtags": {
            "title": "TikTok hashtags",
            "type": "array",
            "description": "Hashtags whose video feeds you want to scrape. Accepts plain tags (fitness), #-prefixed (#fitness), or tag URLs (https://www.tiktok.com/tag/fitness) — one per line, mixed formats are fine. Unknown hashtags return an error item. Example: [\"fitness\", \"#gymtok\"]. Required unless you provide startUrls/urls or search hashtags by keyword below.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Hashtag URLs (startUrls)",
            "type": "array",
            "description": "Optional TikTok hashtag URLs (e.g. https://www.tiktok.com/tag/fitness). Combined with or used instead of \"hashtags\".",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "urls": {
            "title": "Hashtag URLs (alias)",
            "type": "array",
            "description": "Alias for startUrls/hashtags accepting TikTok tag URLs (https://www.tiktok.com/tag/fitness) or plain hashtags.",
            "items": {
              "type": "string"
            }
          },
          "strictHashtagMatch": {
            "title": "Only posts that actually carry the tag",
            "type": "boolean",
            "description": "Off by default, matching TikTok's own hashtag feed, which also returns related posts. A #coffee run normally includes posts tagged only #instantcoffee or #coffeetok. Turn this on to keep only posts genuinely carrying the tag you asked for, which is what you want for tag-share analysis.",
            "default": false
          },
          "maxResultsPerHashtag": {
            "title": "Max videos per hashtag",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of videos to collect per hashtag. Use it to cap cost or sample a feed. Defaults to 2000 per hashtag, which keeps an unattended run's cost predictable. Pass 0 or a negative value via API for uncapped collection, or raise it for a full sweep.",
            "default": 2000
          },
          "resultsPerPage": {
            "title": "Results per hashtag (alias for maxResultsPerHashtag)",
            "minimum": 1,
            "type": "integer",
            "description": "Alias for maxResultsPerHashtag (matches other TikTok scrapers). Applies when maxResultsPerHashtag is omitted or left at its default (2000)."
          },
          "maxItems": {
            "title": "Max total items",
            "minimum": 1,
            "type": "integer",
            "description": "Optional global cap on total dataset items returned across all hashtags and keyword searches in this run. Leave empty for no global cap."
          },
          "maxResults": {
            "title": "Max results (alias for maxItems)",
            "minimum": 1,
            "type": "integer",
            "description": "Alias for maxItems: optional global cap on total dataset items returned across the run."
          },
          "limit": {
            "title": "Limit (alias for maxItems)",
            "minimum": 1,
            "type": "integer",
            "description": "Alias for maxItems: optional global cap on total dataset items returned across the run."
          },
          "oldestPostDateUnified": {
            "title": "Oldest post date",
            "type": "string",
            "description": "Keep only videos posted on or after this date/time. Accepts YYYY-MM-DD, ISO timestamps (2026-01-01T00:00:00Z), or relative offsets (\"7 days\", \"2 weeks\", \"1 month\", \"24 hours\")."
          },
          "newestPostDate": {
            "title": "Newest post date",
            "type": "string",
            "description": "Keep only videos posted on or before this date/time. Accepts YYYY-MM-DD (inclusive through 23:59:59 UTC), ISO timestamps, or relative offsets (\"1 day\", \"12 hours\")."
          },
          "minLikes": {
            "title": "Minimum likes",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only videos with at least this many likes (likeCount >= minLikes)."
          },
          "minViews": {
            "title": "Minimum views",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only videos with at least this many plays/views (playCount >= minViews)."
          },
          "downloadVideos": {
            "title": "Download videos (watermark-free)",
            "type": "boolean",
            "description": "Also save each video's watermark-free MP4 into the run's key-value store and add its URL to the row as downloadedVideoUrl. Rows that can't be downloaded get downloadError instead (photo posts, for example). $2 per 1,000 downloads on top of the per-result price. Paid Apify plans only. Capped at 500 downloads per run; files over 100 MB are skipped. Default: false.",
            "default": false
          },
          "shouldDownloadVideos": {
            "title": "Should download videos (alias for downloadVideos)",
            "type": "boolean",
            "description": "Alias for downloadVideos: save each video's watermark-free MP4 to the key-value store ($2 per 1,000 downloads, paid Apify plans only). Applies when downloadVideos is omitted or false."
          },
          "searchKeywords": {
            "title": "Find hashtags by keyword",
            "type": "array",
            "description": "Keywords to search TikTok hashtags for. Each returns the matching hashtags with their view and video counts, one row per hashtag. Works with or without the hashtags list above. Example: [\"coffee\", \"home gym\"].",
            "items": {
              "type": "string"
            }
          },
          "maxHashtagsPerKeyword": {
            "title": "Max hashtags per keyword",
            "minimum": 5,
            "type": "integer",
            "description": "Maximum number of hashtags to return for each search keyword. Hashtags arrive 20 at a time.",
            "default": 20
          },
          "compact": {
            "title": "Compact output",
            "type": "boolean",
            "description": "Trim verbose IDs and media URLs (hashtagId, authorId, authorSecUid, authorAvatarUrl, coverUrl, musicId, textLanguage, captionLanguages) for smaller, LLM-friendly dataset rows. Default: false.",
            "default": false
          },
          "excludeEmptyFields": {
            "title": "Exclude empty fields",
            "type": "boolean",
            "description": "Omit keys whose value is null, undefined, empty string, or empty array from output items while strictly preserving 0 and false. Default: false.",
            "default": false
          },
          "descriptionMaxLength": {
            "title": "Max description length",
            "minimum": 1,
            "type": "integer",
            "description": "Truncate video descriptions/captions to at most this many characters without splitting emoji surrogate pairs. Leave empty for full captions."
          },
          "captionMaxLength": {
            "title": "Max caption length (alias for descriptionMaxLength)",
            "minimum": 1,
            "type": "integer",
            "description": "Alias for descriptionMaxLength: truncate video descriptions/captions safely without splitting surrogate pairs."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}