{
  "openapi": "3.0.1",
  "info": {
    "title": "YouTube Channel Scraper",
    "description": "YouTube channel scraper for @handles, channel links or a keyword search. One row per channel with subscribers, total views, video count, joined date, country, description, links, avatar and banner. Latest videos optional. No login, no API key. $0.50 per 1,000 channels.",
    "version": "0.1",
    "x-build-id": "NDjefLdww51BvfZOb"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/locaihost~youtube-channels/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-locaihost-youtube-channels",
        "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/locaihost~youtube-channels/runs": {
      "post": {
        "operationId": "runs-sync-locaihost-youtube-channels",
        "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/locaihost~youtube-channels/run-sync": {
      "post": {
        "operationId": "run-sync-locaihost-youtube-channels",
        "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": {
          "channels": {
            "title": "Channels",
            "type": "array",
            "description": "Channel @handles, links or UC… ids (@MrBeast, https://www.youtube.com/@mkbhd, UCX6OQ3DkcsbYNE6H8uQQuVA). Paste channel links rather than video links: a video link returns that video instead.",
            "items": {
              "type": "string"
            }
          },
          "searchTerms": {
            "title": "Or: find channels by keyword",
            "type": "array",
            "description": "Optional. The channels YouTube's search shows for each term (its Channels filter), as many as Max channels per search.",
            "items": {
              "type": "string"
            }
          },
          "maxResults": {
            "title": "Max channels per search",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Most channels per search term. If you also pick latest videos below, it is the number of videos per channel tab as well.",
            "default": 10
          },
          "minSubscribers": {
            "title": "Min subscribers",
            "minimum": 0,
            "type": "integer",
            "description": "Keyword searches only: leave out channels with fewer subscribers. The count is checked on the search result first and on the channel's own page when the result hides it; a channel whose count YouTube doesn't show is left out. Left-out channels are free and don't count toward Max results. Empty = no limit."
          },
          "maxSubscribers": {
            "title": "Max subscribers",
            "minimum": 0,
            "type": "integer",
            "description": "Keyword searches only: leave out channels with more subscribers (for finding smaller creators). Empty = no limit."
          },
          "channelTabs": {
            "title": "Latest videos ($)",
            "type": "array",
            "description": "Also return each pasted channel's latest videos from these tabs, Max channels per search from each, charged as videos. Leave empty for channel rows only. Channels found by a search return the channel row only.",
            "items": {
              "type": "string",
              "enum": [
                "videos",
                "shorts",
                "streams"
              ],
              "enumTitles": [
                "Videos",
                "Shorts",
                "Live (past and current streams)"
              ]
            },
            "default": []
          },
          "minVideos": {
            "title": "Min videos",
            "minimum": 0,
            "type": "integer",
            "description": "Keyword searches only: leave out channels with fewer public videos (checked on the channel's About panel). Empty = no limit."
          },
          "verifiedOnly": {
            "title": "Verified channels only",
            "type": "boolean",
            "description": "Keyword searches only: keep only channels with YouTube's verified badge (music artists' badge included).",
            "default": false
          },
          "excludeChannels": {
            "title": "Exclude channels",
            "type": "array",
            "description": "Keyword searches only: channels to leave out, as @handles, links or UC… ids (your own channel, or ones you already have).",
            "items": {
              "type": "string"
            }
          },
          "channelSort": {
            "title": "Video order",
            "enum": [
              "newest",
              "popular",
              "oldest"
            ],
            "type": "string",
            "description": "Order of each tab's videos, as the tab's own Latest / Popular / Oldest buttons sort them.",
            "default": "newest"
          },
          "videoDetails": {
            "title": "Full video details",
            "type": "boolean",
            "description": "Open every video for exact likes, exact upload time, full description, tags and comment count. Same price either way; off is faster and returns what the channel tab shows (title, views, length, relative date).",
            "default": false
          },
          "publishedAfter": {
            "title": "Published after",
            "type": "string",
            "description": "Latest videos only: videos published on or after this, a date like 2026-10-01 or a period like \"30 days\". Newest first, each tab stops at the first older video. Videos near the edge are opened for their exact upload time. Left-out videos are free. Empty = any date."
          },
          "publishedBefore": {
            "title": "Published before",
            "type": "string",
            "description": "Latest videos only: videos published before this, a date or a period like \"1 month\". Newer videos are skipped, free. Empty = up to now."
          },
          "gl": {
            "title": "Region",
            "type": "string",
            "description": "Two-letter country code (GB, IN, DE…) for YouTube's region: which results a search shows and which videos are offered, as for a visitor in that country. Text stays in English, because counts and dates are read from English wording. Empty = US."
          },
          "searchType": {
            "title": "Search type",
            "type": "string",
            "description": "Searches find channels in this Actor.",
            "default": "channels"
          },
          "includeChannelInfo": {
            "title": "Channel row",
            "type": "boolean",
            "description": "Always on in this Actor.",
            "default": true
          },
          "includeComments": {
            "title": "Comments",
            "type": "boolean",
            "description": "Off in this Actor.",
            "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
                  },
                  "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}