{
  "openapi": "3.0.1",
  "info": {
    "title": "Fast YouTube Scraper & Deepfake Detector",
    "description": "Fast HTTP-only YouTube scraper for search results, channels, playlists, hashtags and videos. Scores every video for deepfake / AI-generated content signals and exports the suspicious ones as HTML, JSON, CSV, Excel and XML.",
    "version": "0.1",
    "x-build-id": "aEwmzqIVnI7xn0XZN"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/solutionssmart~fast-youtube-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-solutionssmart-fast-youtube-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/solutionssmart~fast-youtube-scraper/runs": {
      "post": {
        "operationId": "runs-sync-solutionssmart-fast-youtube-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/solutionssmart~fast-youtube-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-solutionssmart-fast-youtube-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 terms",
            "type": "array",
            "description": "Terms to search on YouTube, one per line. Each term is searched separately.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "YouTube URLs",
            "type": "array",
            "description": "Direct YouTube URLs: videos, Shorts, channels (@handle, /channel/UC..., /c/, /user/), playlists, search result pages and hashtag pages. A linked remote text file is downloaded once and every URL in it is used.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "maxResults": {
            "title": "Max regular videos",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum regular videos per search term. YouTube stops one search after about 300-500 results; to go further, the Actor repeats the search with upload-date windows (this year, month, week, today) and other sort orders, and keeps only new videos. For URLs, the maximum number of items per URL.",
            "default": 10
          },
          "maxResultsShorts": {
            "title": "Max Shorts",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum Shorts per search term (0 = none).",
            "default": 0
          },
          "maxResultStreams": {
            "title": "Max live streams",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum live streams per search term (0 = none).",
            "default": 0
          },
          "sortingOrder": {
            "title": "Sort search results by",
            "enum": [
              "relevance",
              "views",
              "date"
            ],
            "type": "string",
            "description": "Order of search results. \"Upload date\" sorts the fetched search results by date (use it together with the upload date filter). Channel and playlist URLs keep their own order.",
            "default": "relevance"
          },
          "dateFilter": {
            "title": "Upload date",
            "enum": [
              "",
              "hour",
              "today",
              "week",
              "month",
              "year"
            ],
            "type": "string",
            "description": "Only videos uploaded within this period.",
            "default": ""
          },
          "videoType": {
            "title": "Video type",
            "enum": [
              "",
              "video",
              "movie"
            ],
            "type": "string",
            "description": "Restrict regular-video search results to videos or movies.",
            "default": ""
          },
          "lengthFilter": {
            "title": "Length",
            "enum": [
              "",
              "under4",
              "between420",
              "plus20"
            ],
            "type": "string",
            "description": "Video length filter.",
            "default": ""
          },
          "isHD": {
            "title": "HD",
            "type": "boolean",
            "description": "Only HD videos.",
            "default": false
          },
          "is4K": {
            "title": "4K",
            "type": "boolean",
            "description": "Only 4K videos.",
            "default": false
          },
          "hasSubtitles": {
            "title": "Subtitles",
            "type": "boolean",
            "description": "Only videos with subtitles.",
            "default": false
          },
          "hasCC": {
            "title": "Creative Commons",
            "type": "boolean",
            "description": "Only Creative Commons videos.",
            "default": false
          },
          "isLive": {
            "title": "Live",
            "type": "boolean",
            "description": "Only live videos.",
            "default": false
          },
          "is3D": {
            "title": "3D",
            "type": "boolean",
            "description": "Only 3D videos.",
            "default": false
          },
          "is360": {
            "title": "360°",
            "type": "boolean",
            "description": "Only 360° videos.",
            "default": false
          },
          "isHDR": {
            "title": "HDR",
            "type": "boolean",
            "description": "Only HDR videos.",
            "default": false
          },
          "isVR180": {
            "title": "VR180",
            "type": "boolean",
            "description": "Only VR180 videos.",
            "default": false
          },
          "hasLocation": {
            "title": "Location",
            "type": "boolean",
            "description": "Only videos with a location.",
            "default": false
          },
          "isBought": {
            "title": "Purchased",
            "type": "boolean",
            "description": "Only purchased videos.",
            "default": false
          },
          "sortVideosBy": {
            "title": "Sort channel videos by",
            "enum": [
              "NEWEST",
              "POPULAR",
              "OLDEST"
            ],
            "type": "string",
            "description": "Order in which channel videos are listed. Ignored when an oldest video date is set: channels are then listed newest first.",
            "default": "NEWEST"
          },
          "oldestPostDate": {
            "title": "Oldest video date",
            "type": "string",
            "description": "Skip videos older than this date (YYYY-MM-DD) or relative age (e.g. \"30 days\", \"2 weeks\", \"12 hours\"; \"1 day\" means today). Channel listings stop at the first older video."
          },
          "detailLevel": {
            "title": "Detail level",
            "enum": [
              "fast",
              "standard",
              "deep"
            ],
            "type": "string",
            "description": "Fast: listing data only. Standard: adds full description, keywords, exact date, likes and category. Deep: also adds YouTube's own AI label, comments count, subscribers, verification, hashtags and links (best deepfake detection).",
            "default": "deep"
          },
          "deepfakeThreshold": {
            "title": "Suspicion threshold",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Videos with a deepfake score at or above this value (0-100) are marked suspicious.",
            "default": 40
          },
          "onlySuspicious": {
            "title": "Only suspicious videos in dataset",
            "type": "boolean",
            "description": "Save only suspicious videos to the dataset.",
            "default": false
          },
          "downloadTranscripts": {
            "title": "Download transcripts",
            "type": "boolean",
            "description": "Add each video's captions (uploaded or auto-generated) to the dataset as the transcript field: language, full text and timed segments. Paid add-on per transcript found; videos without captions cost nothing extra.",
            "default": false
          },
          "transcriptLanguage": {
            "title": "Transcript language",
            "type": "string",
            "description": "Preferred caption language code, e.g. en, de, es. Uploaded captions are preferred over auto-generated ones. When a video has no captions in this language, its first available track is used.",
            "default": "en"
          },
          "exportFormats": {
            "title": "Export formats",
            "type": "array",
            "description": "Formats of the suspicious-videos report saved to the key-value store.",
            "items": {
              "type": "string",
              "enum": [
                "html",
                "json",
                "csv",
                "xlsx",
                "xml"
              ],
              "enumTitles": [
                "HTML",
                "JSON",
                "CSV",
                "Excel (XLSX)",
                "XML"
              ]
            },
            "default": [
              "html",
              "json",
              "csv",
              "xlsx",
              "xml"
            ]
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 32,
            "type": "integer",
            "description": "Maximum parallel requests to YouTube.",
            "default": 8
          },
          "country": {
            "title": "Country",
            "type": "string",
            "description": "YouTube country code (gl), e.g. \"US\".",
            "default": "US"
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional proxies. Datacenter (the default group) adds nothing to the price. RESIDENTIAL was about 3 times faster on large runs and adds $0.65 per 1,000 videos. The UNBLOCKER group is not supported.",
            "default": {
              "useApifyProxy": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}