{
  "openapi": "3.0.1",
  "info": {
    "title": "Youtube Most Replayed Scraper",
    "description": "Youtube Most Replayed Scraper SD - Youtube Most Replayed Scraper is a video data tool that extracts the Most replayed heatmap of YouTube videos: YouTube's own most-replayed moment, the top peaks with timestamps, links, chapters and optional transcript, plus views, likes and channel, no login.",
    "version": "1.0",
    "x-build-id": "KpvEIb6PVQUYeeBIC"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/neuro-scraper~youtube-most-replayed-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-neuro-scraper-youtube-most-replayed-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-most-replayed-scraper/runs": {
      "post": {
        "operationId": "runs-sync-neuro-scraper-youtube-most-replayed-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-most-replayed-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-neuro-scraper-youtube-most-replayed-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": {
          "urls": {
            "title": "YouTube URLs",
            "type": "array",
            "description": "Video URLs or ids (watch, youtu.be, shorts, live), channel URLs, playlist URLs or YouTube search-results URLs, one per line.",
            "items": {
              "type": "string"
            }
          },
          "channels": {
            "title": "Channels",
            "type": "array",
            "description": "Channels as @handle or channel URL (e.g. @MrBeast). Their newest videos are read up to Max videos per source.",
            "items": {
              "type": "string"
            }
          },
          "channelContentType": {
            "title": "Channel tab",
            "enum": [
              "videos",
              "shorts",
              "streams"
            ],
            "type": "string",
            "description": "Which tab of each channel to read.",
            "default": "videos"
          },
          "playlists": {
            "title": "Playlists",
            "type": "array",
            "description": "Playlist URLs (https://www.youtube.com/playlist?list=...).",
            "items": {
              "type": "string"
            }
          },
          "searchQueries": {
            "title": "Search terms",
            "type": "array",
            "description": "YouTube search terms (e.g. \"iphone review\"); the results are read in YouTube's order.",
            "items": {
              "type": "string"
            }
          },
          "videosPerSource": {
            "title": "Max videos per source",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "For each channel, playlist and search term: how many videos to read. The list follows YouTube's next-page token.",
            "default": 10
          },
          "topMomentsCount": {
            "title": "Top moments per video",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "How many heatmap peaks to return per video, strongest first.",
            "default": 5
          },
          "minSecondsBetweenMoments": {
            "title": "Minimum seconds between moments",
            "minimum": 0,
            "type": "integer",
            "description": "Two top moments are at least this many seconds apart.",
            "default": 10
          },
          "minIntensity": {
            "title": "Minimum intensity (0-1)",
            "type": "string",
            "description": "Keep only peaks at least this replayed (YouTube's normalised score: 1 = the most replayed part), e.g. 0.5."
          },
          "skipOpeningSeconds": {
            "title": "Skip the opening (seconds)",
            "minimum": 0,
            "type": "integer",
            "description": "Ignore peaks in the first N seconds (the start of a video is often replayed simply because it starts there).",
            "default": 0
          },
          "includeHeatmap": {
            "title": "Include the full heatmap",
            "type": "boolean",
            "description": "Add every heatmap segment (start, end, intensity - usually 100 per video).",
            "default": true
          },
          "includeTranscript": {
            "title": "Transcript text of each top moment",
            "type": "boolean",
            "description": "Add what is said during each top moment (from the video's captions; 2 extra requests per video).",
            "default": false
          },
          "transcriptLanguage": {
            "title": "Transcript language",
            "type": "string",
            "description": "Preferred caption language code (en, es, de ...). Falls back to the video's own captions.",
            "default": "en"
          },
          "minViews": {
            "title": "Minimum views",
            "minimum": 0,
            "type": "integer",
            "description": "Skip videos with fewer views (videos with few views have no heatmap). 0 = keep all.",
            "default": 0
          },
          "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
          },
          "maxConcurrency": {
            "title": "Parallel videos",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many videos are read at the same time, each on its own connection. 5 is fast and polite.",
            "default": 5
          },
          "publishedAfter": {
            "title": "Published on or after",
            "type": "string",
            "description": "Keep only videos published on or after this date (YYYY-MM-DD). Empty = any date."
          },
          "searchSort": {
            "title": "Search order",
            "enum": [
              "relevance",
              "upload_date",
              "view_count",
              "rating"
            ],
            "type": "string",
            "description": "Order of the results for search terms.",
            "default": "relevance"
          },
          "preferManualCaptions": {
            "title": "Prefer captions typed by a person",
            "type": "boolean",
            "description": "With Include transcript: within the chosen language take uploaded captions before YouTube's automatic ones.",
            "default": true
          },
          "includeWordTimestamps": {
            "title": "Word timestamps",
            "type": "boolean",
            "description": "With Include transcript: add the start and end of every word (YouTube publishes word timings only in automatic captions).",
            "default": false
          },
          "transcriptFormats": {
            "title": "Transcript formats",
            "type": "array",
            "description": "Which transcript formats to add: timed segments, plain text, SRT and/or WebVTT subtitle text.",
            "items": {
              "type": "string",
              "enum": [
                "segments",
                "text",
                "srt",
                "vtt"
              ],
              "enumTitles": [
                "Timed segments",
                "Plain text",
                "SRT subtitles",
                "WebVTT subtitles"
              ]
            },
            "default": [
              "segments",
              "text"
            ]
          },
          "onlyNew": {
            "title": "Only new videos",
            "type": "boolean",
            "description": "Skip videos delivered by earlier runs with this option on (their ids are kept in the named store youtube-most-replayed-seen).",
            "default": false
          },
          "abortAfterConsecutiveFailures": {
            "title": "Stop after failures in a row",
            "minimum": 0,
            "type": "integer",
            "description": "End the run early when this many videos in a row cannot be read (YouTube stopped answering). 0 = never stop early.",
            "default": 10
          },
          "requestTimeoutSecs": {
            "title": "Request timeout (seconds)",
            "minimum": 5,
            "maximum": 300,
            "type": "integer",
            "description": "Maximum time to wait for one YouTube request.",
            "default": 30
          },
          "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. You can pick another country.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}