{
  "openapi": "3.0.1",
  "info": {
    "title": "YouTube Hashtag Scraper",
    "description": "YouTube Hashtag Scraper SD - YouTube Hashtag Scraper is a video data tool that extracts YouTube videos and Shorts for any #hashtag: title, channel, views, duration, upload date, thumbnails, plus optional likes, comments, tags and channel subscribers, country and totals, no login.",
    "version": "1.0",
    "x-build-id": "xtgWDFKZE1ZGJke7S"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/neuro-scraper~youtube-hashtag-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-neuro-scraper-youtube-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/neuro-scraper~youtube-hashtag-scraper/runs": {
      "post": {
        "operationId": "runs-sync-neuro-scraper-youtube-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/neuro-scraper~youtube-hashtag-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-neuro-scraper-youtube-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",
            "type": "array",
            "description": "Hashtags with or without # (travel, #travel) or youtube.com/hashtag/... URLs, one per line.",
            "items": {
              "type": "string"
            }
          },
          "contentType": {
            "title": "Content type",
            "enum": [
              "all",
              "videos",
              "shorts"
            ],
            "type": "string",
            "description": "Which kind of content to return.",
            "default": "all"
          },
          "maxItemsPerHashtag": {
            "title": "Max videos per hashtag",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "How many videos per hashtag (3 hashtags x 30 = 90 rows). After the hashtag's own list the Actor continues with YouTube's results for the hashtag, page after page.",
            "default": 30
          },
          "keywords": {
            "title": "Title keywords",
            "type": "array",
            "description": "Keep only videos whose title contains one of these words (checked by the Actor).",
            "items": {
              "type": "string"
            }
          },
          "publishedWithinDays": {
            "title": "Published within (days)",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only videos uploaded in the last N days (YouTube shows ages such as \"3 days ago\"). 0 = any time.",
            "default": 0
          },
          "includeVideoStats": {
            "title": "Add video stats",
            "type": "boolean",
            "description": "Add likes, comment count, category, exact publish date, full description and tags (one extra request per video).",
            "default": false
          },
          "includeChannelAnalytics": {
            "title": "Add channel data",
            "type": "boolean",
            "description": "Add each channel's subscribers, total views, video count, country, joined date, description and avatar (two requests per channel, cached).",
            "default": false
          },
          "detectLanguage": {
            "title": "Detect language",
            "type": "boolean",
            "description": "Add the language of each video title.",
            "default": false
          },
          "country": {
            "title": "Country",
            "type": "string",
            "description": "Optional two-letter country code (us, gb, in ...) for YouTube's regional results."
          },
          "language": {
            "title": "Interface language",
            "type": "string",
            "description": "Language code for YouTube's texts (en, es, de ...).",
            "default": "en"
          },
          "maxItems": {
            "title": "Max videos in total (0 = no total limit)",
            "minimum": 0,
            "type": "integer",
            "description": "Stops the whole run after this many dataset rows.",
            "default": 0
          },
          "titleFilter": {
            "title": "Title filter",
            "type": "string",
            "description": "Keep only videos whose title contains this text (same check as Title keywords)."
          },
          "maxConcurrency": {
            "title": "Parallel hashtags",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many hashtags are read at the same time, each on its own connection.",
            "default": 5
          },
          "outputVideoId": {
            "title": "Column: VideoId",
            "type": "boolean",
            "description": "Fill the column(s) videoId, id. Off = left empty (smaller exports).",
            "default": true
          },
          "outputVideoUrl": {
            "title": "Column: VideoUrl",
            "type": "boolean",
            "description": "Fill the column(s) url, videoUrl. Off = left empty (smaller exports).",
            "default": true
          },
          "outputTitle": {
            "title": "Column: Title",
            "type": "boolean",
            "description": "Fill the column(s) title. Off = left empty (smaller exports).",
            "default": true
          },
          "outputChannelName": {
            "title": "Column: ChannelName",
            "type": "boolean",
            "description": "Fill the column(s) channelName. Off = left empty (smaller exports).",
            "default": true
          },
          "outputChannelId": {
            "title": "Column: ChannelId",
            "type": "boolean",
            "description": "Fill the column(s) channelId. Off = left empty (smaller exports).",
            "default": true
          },
          "outputChannelUrl": {
            "title": "Column: ChannelUrl",
            "type": "boolean",
            "description": "Fill the column(s) channelUrl. Off = left empty (smaller exports).",
            "default": true
          },
          "outputIsVerified": {
            "title": "Column: IsVerified",
            "type": "boolean",
            "description": "Fill the column(s) isVerified. Off = left empty (smaller exports).",
            "default": true
          },
          "outputThumbnailUrl": {
            "title": "Column: ThumbnailUrl",
            "type": "boolean",
            "description": "Fill the column(s) thumbnailUrl, movingThumbnailUrl. Off = left empty (smaller exports).",
            "default": true
          },
          "outputPublishedText": {
            "title": "Column: PublishedText",
            "type": "boolean",
            "description": "Fill the column(s) publishedText, publishedTime. Off = left empty (smaller exports).",
            "default": true
          },
          "outputDuration": {
            "title": "Column: Duration",
            "type": "boolean",
            "description": "Fill the column(s) duration, durationText. Off = left empty (smaller exports).",
            "default": true
          },
          "outputDurationSeconds": {
            "title": "Column: DurationSeconds",
            "type": "boolean",
            "description": "Fill the column(s) durationSeconds. Off = left empty (smaller exports).",
            "default": true
          },
          "outputScrapedAt": {
            "title": "Column: ScrapedAt",
            "type": "boolean",
            "description": "Fill the column(s) scrapedAt. Off = left empty (smaller exports).",
            "default": true
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Residential proxies in the United States (the default) give the most reliable results: visitors from some countries (e.g. the EU) first get a consent page.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountry": "US"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}