{
  "openapi": "3.0.1",
  "info": {
    "title": "YouTube Shorts Scraper (bulk by channel or hashtag, JSON)",
    "description": "Need every YouTube Short from a channel, hashtag or keyword as JSON, with no API key? ScrapeMole returns real Shorts only: title, URL, views, channel and subscribers. Optional likes, comments, date, description and hashtags. Not transcripts. Pay per Short. ScrapeMole is the maker.",
    "version": "0.1",
    "x-build-id": "eh6KsVfpNv1J6h01k"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapemole~youtube-shorts-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapemole-youtube-shorts-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/scrapemole~youtube-shorts-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scrapemole-youtube-shorts-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/scrapemole~youtube-shorts-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scrapemole-youtube-shorts-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": {
          "searchQueries": {
            "title": "Search keywords (Shorts)",
            "type": "array",
            "description": "Get YouTube Shorts that match this keyword as JSON (title, /shorts/ URL, views, channel). Uses YouTube's own Shorts filter, so you do not get regular videos that happen to be short.",
            "items": {
              "type": "string"
            }
          },
          "channels": {
            "title": "Channels",
            "type": "array",
            "description": "Get every Short from these channels' Shorts tabs as JSON, newest, most popular or oldest first (see 'Channels: sort Shorts by'). Accepts @handles (e.g. @mkbhd), channel URLs or channel IDs. Each row includes channel name and subscriber count.",
            "items": {
              "type": "string"
            }
          },
          "shorts": {
            "title": "Individual Shorts",
            "type": "array",
            "description": "Get full details for these specific Shorts: exact views, likes, comment count, publish date, description and tags. Accepts youtube.com/shorts/... URLs or video IDs. Charged as a Short with details.",
            "items": {
              "type": "string"
            }
          },
          "hashtags": {
            "title": "Hashtags",
            "type": "array",
            "description": "Get Shorts for these tags as structured JSON. Accepts cooking, #cooking, or youtube.com/hashtag/cooking. Each tag is run through YouTube's own Shorts search filter. hashtagUrls also works.",
            "items": {
              "type": "string"
            }
          },
          "maxResultsPerSource": {
            "title": "Max Shorts per search or channel",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Stop after this many Shorts for each search keyword and channel.",
            "default": 50
          },
          "maxTotalResults": {
            "title": "Max Shorts in total (optional)",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Optional cap on Shorts delivered across all searches and channels in this run. Leave empty for no total cap. Also accepts maxItems from other Shorts scrapers."
          },
          "scrapeVideoDetails": {
            "title": "Full Short details",
            "type": "boolean",
            "description": "Also open each Short to add exact views, likes, comment count, exact publish date, duration, description and tags. Shorts lists show rounded views and no date, so turn this on when you need them. Charged as a 'Short with details'.",
            "default": false
          },
          "scrapeSound": {
            "title": "Sound / music",
            "type": "boolean",
            "description": "Add the sound each Short uses: soundTitle, soundArtist, soundUrl (YouTube's sound page), isOriginalSound. One small extra request per Short, not charged. Turn off for slightly faster runs.",
            "default": true
          },
          "sortBy": {
            "title": "Search: sort by",
            "enum": [
              "relevance",
              "uploadDate",
              "viewCount",
              "rating"
            ],
            "type": "string",
            "description": "Order of Shorts keyword search results. Does not change channel Shorts tabs (use 'Channels: sort Shorts by').",
            "default": "relevance"
          },
          "uploadDate": {
            "title": "Search: upload date",
            "enum": [
              "any",
              "hour",
              "today",
              "week",
              "month",
              "year"
            ],
            "type": "string",
            "description": "Only return Shorts uploaded in this period, using YouTube's own search filter. Applies to keyword and hashtag searches, not channel tabs.",
            "default": "any"
          },
          "channelSortBy": {
            "title": "Channels: sort Shorts by",
            "enum": [
              "newest",
              "popular",
              "oldest"
            ],
            "type": "string",
            "description": "Order of each channel's Shorts tab, the same Latest / Popular / Oldest buttons as on YouTube. Popular gives a channel's most-viewed Shorts first. Does not change keyword or hashtag searches (use 'Search: sort by'). Also accepts sortChannelShortsBy (NEWEST, POPULAR, OLDEST).",
            "default": "newest"
          },
          "publishedAfter": {
            "title": "Published after (optional)",
            "type": "string",
            "description": "Only return Shorts published on or after this date. Works for channels, keywords and hashtags. Use a date (2026-01-31) or a relative period (7 days, 2 weeks, 3 months, 1 year). Each Short's publish date is checked and added as publishDate (the day shown on YouTube); no extra charge. For keywords and hashtags, sort searches by Upload date for best results. Also accepts oldestPostDate."
          },
          "publishedBefore": {
            "title": "Published before (optional)",
            "type": "string",
            "description": "Only return Shorts published on or before this date (2026-01-31 includes that whole day) or more than a relative period ago (30 days). Combine with 'Published after' for a date range. With 'Oldest first', a channel stops at the first Short after this date."
          },
          "language": {
            "title": "Interface language",
            "type": "string",
            "description": "Language code for YouTube texts such as '3 days ago' (e.g. en, de, es). Keep 'en' if you use the parsed numbers and dates.",
            "default": "en"
          },
          "country": {
            "title": "Country",
            "type": "string",
            "description": "Two-letter country code. Affects search ranking and which videos are available.",
            "default": "US"
          },
          "maxConcurrency": {
            "title": "Parallel requests",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many sources or videos to scrape at once.",
            "default": 4
          },
          "maxRetries": {
            "title": "Retries per request",
            "minimum": 0,
            "maximum": 15,
            "type": "integer",
            "description": "Retries for rate limits, timeouts and server errors, each with a fresh proxy IP.",
            "default": 5
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Apify Proxy (datacenter) works well. If YouTube rate-limits, the Actor switches to residential IPs automatically.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}