{
  "openapi": "3.0.1",
  "info": {
    "title": "YouTube Channel Scraper: Latest Videos, Views, New Uploads",
    "description": "Latest videos of YouTube channels (URL, @handle, ID): title, date, description, views, likes, thumbnail, Shorts, LLM-ready Markdown. onlyNew for schedules. No API key, no login. MCP-ready for AI agents. YouTube Data API alternative, no quota. Pay per result, errors free. $0.24 per 1,000 videos",
    "version": "0.1",
    "x-build-id": "awtegA04bGgAcIEO2"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/actose~youtube-channel-rss/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-actose-youtube-channel-rss",
        "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/actose~youtube-channel-rss/runs": {
      "post": {
        "operationId": "runs-sync-actose-youtube-channel-rss",
        "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/actose~youtube-channel-rss/run-sync": {
      "post": {
        "operationId": "run-sync-actose-youtube-channel-rss",
        "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",
        "required": [
          "channels"
        ],
        "properties": {
          "channels": {
            "title": "YouTube channels",
            "type": "array",
            "description": "One channel per line. Accepted formats: channel URL (https://www.youtube.com/@MrBeast, /channel/UC..., /c/name, /user/name), @handle, or channel ID starting with UC. Video URLs are not accepted.",
            "items": {
              "type": "string"
            }
          },
          "contentType": {
            "title": "Content type",
            "enum": [
              "all",
              "videos",
              "shorts",
              "live"
            ],
            "type": "string",
            "description": "Which uploads to return. 'Long videos only', 'Shorts only' and 'Past live streams only' use the channel's dedicated upload feeds (or its Videos / Shorts / Live tab when the feed is unavailable), so you still get up to 15 items of that type.",
            "default": "all"
          },
          "maxVideosPerChannel": {
            "title": "Max videos per channel",
            "minimum": 1,
            "maximum": 15,
            "type": "integer",
            "description": "Maximum number of videos returned per channel. The official YouTube RSS feed contains the 15 most recent uploads, so 15 is the maximum.",
            "default": 15
          },
          "maxAgeDays": {
            "title": "Only videos from the last N days",
            "minimum": 0,
            "type": "integer",
            "description": "Skip videos published more than N days ago. 0 = no date filter.",
            "default": 0
          },
          "onlyNew": {
            "title": "Only new videos since the last run (scheduled monitoring)",
            "type": "boolean",
            "description": "Remember the videos already returned (in a named key-value store) and only output videos that were not seen in previous runs. Schedule the Actor (e.g. every hour) to get a feed of new uploads. You only pay for new videos; a run with no new upload costs nothing in results.",
            "default": false
          },
          "monitoringMode": {
            "title": "Monitoring mode (same as 'Only new videos')",
            "type": "boolean",
            "description": "Older name of 'Only new videos', kept so existing schedules and API calls keep working. Turning on either option enables monitoring.",
            "default": false
          },
          "firstRunOutputsAll": {
            "title": "Output current videos on the first monitoring run",
            "type": "boolean",
            "description": "Only used with 'Only new videos'. If off (default), the first run for a channel just saves its current videos as a baseline (nothing output, nothing charged) and later runs return only new uploads. If on, the first run returns the current videos too.",
            "default": false
          },
          "stateStoreName": {
            "title": "Monitoring state store name",
            "type": "string",
            "description": "Name of the key-value store that keeps the already-seen videos. Use a different name for each independent watch list.",
            "default": "youtube-channel-rss-state"
          },
          "maxConcurrency": {
            "title": "Parallel channels",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many channels are fetched at the same time.",
            "default": 5
          },
          "allowResidentialFallback": {
            "title": "Allow residential proxy as last resort",
            "type": "boolean",
            "description": "Requests go out directly first, then through the Apify datacenter proxy if YouTube refuses the feed (404/403/429). If even that fails, a residential proxy is used for the light RSS/JSON requests only (never full pages). Its cost is included in the price per video, never billed separately.",
            "default": true
          },
          "proxyConfiguration": {
            "title": "Custom proxy (optional)",
            "type": "object",
            "description": "Leave empty for automatic handling (recommended). If set, this proxy is used for every request.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}