{
  "openapi": "3.0.1",
  "info": {
    "title": "TikTok Hashtag Scraper — Videos, Creators & Stats",
    "description": "Fast, browserless TikTok Hashtag Scraper. Extract videos, engagement counts, author profiles, music, subtitles, locations, and hashtag view stats for any TikTok hashtag without login or proxies.",
    "version": "1.0",
    "x-build-id": "c0zt2oDfvReFfSt2o"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/meka.im~tiktok-hashtag-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-meka.im-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/meka.im~tiktok-hashtag-scraper/runs": {
      "post": {
        "operationId": "runs-sync-meka.im-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/meka.im~tiktok-hashtag-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-meka.im-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": "Hashtags or Tag URLs",
            "type": "array",
            "description": "TikTok hashtags (with or without `#`) or TikTok `/tag/<name>` URLs (e.g. `webscraping`, `#python`, `https://www.tiktok.com/tag/ai`). Aliases: `tags`, `hashtag`, `queries`, `searchQueries`, `startUrls`, `urls`.",
            "items": {
              "type": "string"
            }
          },
          "resultsPerPage": {
            "title": "Max posts per hashtag",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum number of posts to collect per hashtag (1–1000). Aliases: `maxResults`, `maxPostsPerHashtag`, `limit`."
          },
          "maxItems": {
            "title": "Maximum total items",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Optional global cap on total delivered posts across all hashtags (1–5000)."
          },
          "sortBy": {
            "title": "Sort Order",
            "enum": [
              "relevance",
              "latest",
              "popular",
              "mostViews"
            ],
            "type": "string",
            "description": "Order returned videos by TikTok default (`relevance`), newest first (`latest`), most likes (`popular`), or most views (`mostViews`). Alias: `sort`."
          },
          "excludePinnedPosts": {
            "title": "Exclude pinned posts",
            "type": "boolean",
            "description": "Skip videos marked as pinned when present in TikTok metadata."
          },
          "oldestPostDateUnified": {
            "title": "Oldest post date",
            "type": "string",
            "description": "Include only posts created on or after this UTC date (`YYYY-MM-DD`), ISO timestamp, or relative days count (e.g. `7` for last 7 days). Aliases: `oldestPostDate`, `from`, `dateFrom`."
          },
          "newestPostDate": {
            "title": "Newest post date",
            "type": "string",
            "description": "Include only posts created on or before this UTC date (`YYYY-MM-DD`) or ISO timestamp. Aliases: `to`, `dateTo`."
          },
          "leastDiggs": {
            "title": "Minimum likes (diggCount)",
            "minimum": 0,
            "maximum": 1000000000,
            "type": "integer",
            "description": "Minimum like count filter. Aliases: `minDiggs`, `minLikes`."
          },
          "mostDiggs": {
            "title": "Maximum likes (diggCount)",
            "minimum": 1,
            "maximum": 1000000000,
            "type": "integer",
            "description": "Maximum like count filter. Aliases: `maxDiggs`, `maxLikes`."
          },
          "shouldDownloadVideos": {
            "title": "Include video download metadata (mediaUrls)",
            "type": "boolean",
            "description": "Populate `mediaUrls` with direct TikTok video CDN URLs alongside `videoMeta.downloadAddr`."
          },
          "shouldDownloadCovers": {
            "title": "Include thumbnail cover metadata",
            "type": "boolean",
            "description": "Include cover and origin cover URLs in `videoMeta`."
          },
          "shouldDownloadSlideshowImages": {
            "title": "Include slideshow image links",
            "type": "boolean",
            "description": "Populate `mediaUrls` and `slideshowImageLinks` for photo slideshow posts."
          },
          "downloadSubtitlesOptions": {
            "title": "Subtitles & Transcription metadata",
            "enum": [
              "NEVER_DOWNLOAD_SUBTITLES",
              "DOWNLOAD_SUBTITLES",
              "DOWNLOAD_AND_TRANSCRIBE_VIDEOS_WITHOUT_SUBTITLES",
              "TRANSCRIBE_ALL_VIDEOS"
            ],
            "type": "string",
            "description": "Include TikTok subtitle track links in `videoMeta.subtitleLinks`."
          },
          "videoKvStoreIdOrName": {
            "title": "Key-value store name (compatibility)",
            "type": "string",
            "description": "Optional Key-Value Store identifier accepted for drop-in compatibility."
          },
          "disableTelemetry": {
            "title": "Disable anonymous run telemetry",
            "type": "boolean",
            "description": "Set true to disable operational telemetry reporting."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}