{
  "openapi": "3.0.1",
  "info": {
    "title": "YouTube Shopping Products & Channel Store Scraper",
    "description": "Extract products creators sell or tag on YouTube: channel Store shelves, watch-page merchandise shelves and tagged-product panels, with prices, merchants, images and clean product links.",
    "version": "1.0",
    "x-build-id": "wiAc5gs29J7zzVLRm"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/xyrelith-data~youtube-shopping-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-xyrelith-data-youtube-shopping-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/xyrelith-data~youtube-shopping-scraper/runs": {
      "post": {
        "operationId": "runs-sync-xyrelith-data-youtube-shopping-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/xyrelith-data~youtube-shopping-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-xyrelith-data-youtube-shopping-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",
        "required": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "channelStore",
              "videoProducts",
              "channelScan",
              "search",
              "mixed"
            ],
            "type": "string",
            "description": "What to scrape: a channel Store tab, products tagged in specific videos, a full channel scan (Store plus latest videos and Shorts), a YouTube search for shopping-badged videos, or a mix of all inputs.",
            "default": "channelStore"
          },
          "channels": {
            "title": "Channels",
            "type": "array",
            "description": "Channel handles, URLs or IDs for the channel modes. Accepts @handle, /channel/UC..., /c/name, /user/name or a bare UC... ID. Example: @LofiGirl.",
            "items": {
              "type": "string"
            }
          },
          "videos": {
            "title": "Videos",
            "type": "array",
            "description": "Video URLs or 11-character IDs for the specific-videos mode, including live streams and Shorts links. Example: https://www.youtube.com/watch?v=jfKfPfyJRdk.",
            "items": {
              "type": "string"
            }
          },
          "searchQueries": {
            "title": "Search queries",
            "type": "array",
            "description": "Keywords for search mode. YouTube results are filtered to videos that show a Shopping product badge, then their product cards are collected.",
            "items": {
              "type": "string"
            }
          },
          "maxVideosPerChannel": {
            "title": "Videos per channel to scan",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Latest uploads to inspect for product tags in channel full scan mode. 0 scans the Store tab only.",
            "default": 10
          },
          "maxVideosPerSearch": {
            "title": "Videos per search",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Shopping-badged search results to open per query in search or mixed mode.",
            "default": 20
          },
          "includeShorts": {
            "title": "Include Shorts in channel scans",
            "type": "boolean",
            "description": "Also scan the channel's Shorts tab for product cards in channelScan and mixed modes. Direct Shorts URLs are always supported.",
            "default": true
          },
          "includeDescriptionLinks": {
            "title": "Include description links",
            "type": "boolean",
            "description": "Add low-confidence external links found in video descriptions as separate rows. They may be sponsors or websites, not confirmed products, and get no invented title or price.",
            "default": false
          },
          "maxProductsPerInput": {
            "title": "Max products per channel or video",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Product rows to collect for each channel or video before moving to the next input.",
            "default": 200
          },
          "maxItems": {
            "title": "Max items total",
            "minimum": 1,
            "maximum": 20000,
            "type": "integer",
            "description": "Dataset rows to collect across the whole run, including per-input status rows.",
            "default": 1000
          },
          "deduplicate": {
            "title": "Remove duplicate products",
            "type": "boolean",
            "description": "Keep one row per product, merging a product that appears in several shelves or on several inputs.",
            "default": true
          },
          "includeInputStatus": {
            "title": "Add a status row per input",
            "type": "boolean",
            "description": "Add one row per channel or video showing whether a store or product panel exists, plus counts. Useful for channels without a store.",
            "default": true
          },
          "includeUnavailable": {
            "title": "Include unavailable products",
            "type": "boolean",
            "description": "Keep products marked unavailable or limited in the current region. When off, only products with a working price are kept.",
            "default": true
          },
          "region": {
            "title": "Region",
            "enum": [
              "US",
              "GB",
              "CA",
              "AU",
              "DE",
              "FR",
              "IT",
              "ES",
              "NL",
              "SE",
              "PL",
              "PT",
              "IE",
              "BR",
              "MX",
              "AR",
              "CL",
              "CO",
              "JP",
              "KR",
              "IN",
              "ID",
              "PH",
              "SG",
              "MY",
              "TH",
              "VN",
              "TR",
              "AE",
              "SA",
              "ZA",
              "NG",
              "EG",
              "PK",
              "BD",
              "RU",
              "UA"
            ],
            "type": "string",
            "description": "Two-letter region used for the request context. Prices and currency follow the region of the exit IP (the cloud default is the United States).",
            "default": "US"
          },
          "language": {
            "title": "Language",
            "enum": [
              "en",
              "es",
              "pt",
              "de",
              "fr",
              "it",
              "nl",
              "pl",
              "tr",
              "ru",
              "ar",
              "hi",
              "bn",
              "id",
              "ja",
              "ko",
              "th",
              "vi",
              "zh-Hans",
              "zh-Hant"
            ],
            "type": "string",
            "description": "Interface language for YouTube's response. Product titles and descriptions stay in the creator's language.",
            "default": "en"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}