{
  "openapi": "3.0.1",
  "info": {
    "title": "YouTube Video List Scraper - Channel Export",
    "description": "The smart choice for YouTube channel content audits. Export video lists with titles, links, available durations and listing view counts to JSON or CSV. Start with handles, IDs or URLs; optional paid watch details add descriptions and publication dates.",
    "version": "1.0",
    "x-build-id": "tBffgcWdol3t62fCa"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/pellucid_bird~youtube-channel-video-exporter/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-pellucid_bird-youtube-channel-video-exporter",
        "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/pellucid_bird~youtube-channel-video-exporter/runs": {
      "post": {
        "operationId": "runs-sync-pellucid_bird-youtube-channel-video-exporter",
        "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/pellucid_bird~youtube-channel-video-exporter/run-sync": {
      "post": {
        "operationId": "run-sync-pellucid_bird-youtube-channel-video-exporter",
        "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": "Channel handles, IDs or URLs",
            "maxItems": 50,
            "type": "array",
            "description": "Up to 50 public channels. Handles include @; channel IDs start UC. Videos, Shorts, featured and streams URL suffixes are normalized to the channel; contentTypes chooses the fetched tabs.",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 2048
            }
          },
          "videoUrls": {
            "title": "Direct video links or IDs",
            "maxItems": 100,
            "type": "array",
            "description": "Up to 100 watch, Shorts, youtu.be, live or embed links, or video IDs. Direct inputs always fetch watch details and run before channels. No media is downloaded. Successful saved watch details follow the active Pricing tab.",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 2048
            }
          },
          "contentTypes": {
            "title": "Channel content types",
            "minItems": 1,
            "maxItems": 2,
            "type": "array",
            "description": "Allowed values: videos and shorts. Default both. Pages alternate between requested types in this order; a small global limit can be filled from the first tab. Livestreams tab is not included.",
            "items": {
              "type": "string"
            }
          },
          "includeDetails": {
            "title": "Fetch exact watch metadata",
            "type": "boolean",
            "description": "Default false. Adds exact numeric views where supplied, description, duration and publication date. Requires an extra request per unique video. Channel listing rows are retained with detailsStatus FAILED if details fail; date filters exclude rows whose exact date cannot be verified. Optional watch details follow the active Pricing tab; channel listing mode uses no proxy."
          },
          "maxItems": {
            "title": "Maximum saved videos",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Total unique dataset rows, including resumed rows. Hard cap 500."
          },
          "maxItemsPerChannel": {
            "title": "Maximum videos per channel",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Combined output limit across requested content types, including saved rows identified with this channel on resume."
          },
          "maxPagesPerChannel": {
            "title": "Maximum pages per channel tab",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Default 10, at most 20 pages for each requested videos/shorts tab. A limit produces an explicit partial report."
          },
          "requestTimeoutSecs": {
            "title": "Timeout per physical request",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Includes DNS and body transfer; redirects and retries each count toward the run limit."
          },
          "maxRetries": {
            "title": "Retries per source request",
            "minimum": 0,
            "maximum": 2,
            "type": "integer",
            "description": "0–2 shared retries per source operation across network errors, selected HTTP408/429/5xx and the specifically recognized transient YouTube public-watch bot response. A watch operation makes at most maxRetries+1 attempts total; every attempt consumes time/traffic allowance. Private, age-restricted and other login-required content is not retried. No dataset write retries."
          },
          "publishedAfter": {
            "title": "Published on or after",
            "type": "string",
            "description": "Optional YYYY-MM-DD or ISO timestamp with timezone. Date-only bounds are inclusive UTC days. Requires includeDetails=true. Unknown dates are excluded. Day-precision source dates cannot satisfy timestamp filters and are excluded with a partial report."
          },
          "publishedBefore": {
            "title": "Published on or before",
            "type": "string",
            "description": "Optional YYYY-MM-DD or ISO timestamp with timezone. Date-only bounds are inclusive UTC days. Requires includeDetails=true. Unknown dates are excluded. Day-precision source dates cannot satisfy timestamp filters and are excluded with a partial report."
          },
          "maxEstimatedCostUsd": {
            "title": "Estimated spending allowance (USD)",
            "minimum": 0,
            "maximum": 100,
            "type": "number",
            "description": "Planning allowance in USD. A smaller allowance can stop collection early; set the Apify run spending limit too. Zero prevents source requests. A started run can still incur its startup fee. Consult the active Pricing tab for charges; this is not a guaranteed final invoice cap."
          },
          "detailProxyMode": {
            "title": "Watch detail proxy",
            "enum": [
              "residential",
              "none"
            ],
            "type": "string",
            "description": "residential (default) uses Apify US residential routing only for watch metadata, including direct video links. Watch details follow the active Pricing tab. Channel listing and continuation pages always remain direct. none opts out and may receive YouTube bot blocks in cloud. Local runs always use direct requests."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}