# YouTube Shopping Products & Channel Store Scraper (`xyrelith-data/youtube-shopping-scraper`) Actor

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.

- **URL**: https://apify.com/xyrelith-data/youtube-shopping-scraper.md
- **Developed by:** [Xyrelith Data](https://apify.com/xyrelith-data) (community)
- **Categories:** Social media, Videos, E-commerce
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.49 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## YouTube Shopping Products & Channel Store Scraper

Turn a YouTube channel, video or search phrase into structured Shopping product rows: what the creator sells in the channel Store, what a video's merchandise shelf shows, which products are tagged in the video, the displayed price, merchant, product image and the merchant's product link. No YouTube account, cookies, API key or proxy setup.

### What this actor does

- **Channel Store tabs:** every product shelf such as Just dropped and Featured, with shelf title, position, merchant, price, image and clean product URL.
- **Watch-page merchandise shelf:** product title, description, price, vendor, additional-fee text and vendor link.
- **Tagged products and timed tags:** the tagged-products panel plus every start/end time window YouTube exposes for a product.
- **Shorts:** product cards on Shorts URLs, including shopping Shorts that no regular video page shows.
- **Channel full scan:** the Store tab plus the latest uploads and (optionally) Shorts, so a creator's whole product footprint lands in one run.
- **Search discovery:** open YouTube search, keep only results with a Shopping badge such as "12 products", and collect the products those videos expose.
- **Per-input status rows:** every channel, video or search gets one status row with whether a Store or product panel exists and how many products were found, so a channel without a store is clearly marked instead of silently empty.
- **Mixed run:** channels, videos and searches together in one dataset.
- **Omit-empty output:** a field appears only when YouTube returned real data. Missing prices and availability are never invented.

### Modes

| Mode | Use it for |
|---|---|
| `channelStore` | A creator's Store tab only. |
| `videoProducts` | Specific watch, live or Shorts URLs or IDs. |
| `channelScan` | Store tab + latest videos (and Shorts when enabled). |
| `search` | Find videos with a Shopping badge for each query and collect their cards. |
| `mixed` | Any combination of channels, videos and search queries. |

### Input

| Field | Type | Default | What it does |
|---|---|---|---|
| `mode` | select | `channelStore` | Which surface to collect. |
| `channels` | array | – | Handles, channel URLs or `UC...` IDs. Accepts `@handle`, `/channel/`, `/c/`, `/user/` and a bare ID. |
| `videos` | array | – | Watch, `youtu.be`, `/shorts/`, embed, `/live/` or `/v/` links, or 11-character video IDs. |
| `searchQueries` | array | – | Keywords for `search` and `mixed` modes. |
| `maxVideosPerChannel` | integer | `10` | Latest uploads inspected per channel. `0` keeps a channel run Store-only. |
| `maxVideosPerSearch` | integer | `20` | Shopping-badged results to open per search query. |
| `includeShorts` | boolean | `true` | Also scan a channel's Shorts tab in scan and mixed modes. Direct Shorts URLs always work. |
| `includeDescriptionLinks` | boolean | `false` | Add external description links as separate low-confidence rows. They get no guessed title or price. |
| `maxProductsPerInput` | integer | `200` | Product rows per channel, video or search. |
| `maxItems` | integer | `1000` | Product and description-link rows across the whole run. Status rows are additional. |
| `deduplicate` | boolean | `true` | Process a repeated channel, video or query once. Product placements in different shelves, videos or inputs stay separate. |
| `includeInputStatus` | boolean | `true` | Add one status row per input. |
| `includeUnavailable` | boolean | `true` | Keep cards marked unavailable or limited. When off, only cards with a displayed price are kept. |
| `region` | select | `US` | Two-letter market used for the request context. The product set can change by market. |
| `language` | select | `en` | Interface language for YouTube's response. Product titles stay in the creator's language. |

#### Example: channel Store

```json
{
  "mode": "channelStore",
  "channels": ["@LofiGirl"],
  "maxProductsPerInput": 100
}
```

#### Example: scan a channel, including Shorts

```json
{
  "mode": "channelScan",
  "channels": ["https://www.youtube.com/@LinusTechTips"],
  "maxVideosPerChannel": 10,
  "includeShorts": true,
  "maxProductsPerInput": 300
}
```

#### Example: specific videos, including a Short and a live stream

```json
{
  "mode": "videoProducts",
  "videos": [
    "https://www.youtube.com/watch?v=jfKfPfyJRdk",
    "https://www.youtube.com/shorts/b7wMPi1d1hk",
    "X4VbdwhkE10"
  ],
  "includeDescriptionLinks": true
}
```

#### Example: discover shopping videos from search

```json
{
  "mode": "search",
  "searchQueries": ["gift ideas 2026", "amazon finds"],
  "maxVideosPerSearch": 10
}
```

### Output

Each product row describes one placement. A product shown in two Store shelves, or in two videos, produces two rows with different `occurrenceId` values. Within one video, the merchandise shelf, tagged panel and timed tags are merged into a single row per product.

| Field | Type | Notes |
|---|---|---|
| `recordType` | string | `product`, `inputStatus` or `descriptionLink`. |
| `sourceType`, `sourceTypes` | string / array | `channelStore`, `videoMerchandiseShelf`, `videoTaggedProducts` or `descriptionLink`. |
| `occurrenceId` | string | Stable 16-character placement ID. |
| `shelfTitle`, `position` | string / integer | Store shelf and 1-based position inside it. |
| `productTitle`, `productDescription` | string | Product card text. Descriptions come from the merchandise shelf or timed-tag data. |
| `priceText`, `priceAmount`, `priceCurrency` | string / number / string | Display text plus a parsed amount and ISO currency when the text carries one. |
| `originalPriceText`, `originalPriceAmount` | string / number | Reference price when YouTube shows a drop. |
| `availabilityText` | string | What the card says, for example Unavailable or Limited shipping areas. |
| `merchantName`, `merchantLogoUrl` | string | Merchant or vendor name and logo when supplied. |
| `additionalFeesText` | string | Fee or shipping note on the card. |
| `ctaText` | string | Card call to action. |
| `productUrl`, `productUrlRaw` | string | Clean merchant link with tracking parameters removed, and the original raw link. |
| `finalProductUrl`, `productDomain`, `affiliateNetwork` | string | Destination decoded from a known affiliate wrapper, the merchant domain, and the detected network. |
| `asin`, `productId` | string | Amazon ASIN when the link contains one, and YouTube's offer ID when supplied. |
| `imageUrl` | string | Largest product image YouTube exposes. |
| `tagSegments` | array | `{startSeconds, endSeconds}` windows when YouTube provides timed tags. |
| `channelId`, `channelName`, `channelHandle`, `channelUrl` | string | Creator identity. |
| `channelAvatarUrl`, `subscriberCount`, `subscriberCountText` | string / integer | Creator image and displayed subscriber count. |
| `videoId`, `videoTitle`, `videoUrl`, `isShort` | string / boolean | Video context on video and search rows. |
| `viewCount`, `viewCountText`, `publishedDate` | integer / string | Video views and English display date. |
| `region`, `language` | string | Request context used for the row. |
| `sourceUrl`, `input`, `scrapedAt` | string | Page scraped, original input and UTC collection time. |

Status rows add `success`, `error`, `message`, `storeExists`, `storeShelfCount`, `storeProductCount`, `uniqueStoreProductCount`, `videosScanned`, `videosWithProducts`, `shortsScanned`, `shortsWithProducts`, `merchandiseShelfExists`, `taggedProductsPanelExists`, `merchandiseShelfProductCount`, `taggedProductsCount`, `searchResultCount`, `shoppingBadgedVideos`, `productCount`, `descriptionLinkCount` and `scannedVideos`.

### Use cases

- **Creator merch inventory:** list every item in a creator's Store and group by shelf to spot new drops.
- **Affiliate and partnership research:** see which merchants and networks a creator promotes, with the destination link and ASIN when present.
- **Competitive product tracking:** watch displayed prices and availability text across a set of creators or videos.
- **Shopping Shorts research:** collect product cards from Shorts, which regular video metadata does not include.
- **Content commerce audits:** match each product to the exact video and second where it was tagged.

### FAQ

**Do I need a YouTube account, cookies or an API key?**
No. The actor reads the public Shopping data that any logged-out viewer sees. There is no login, cookie or API-key field.

**Do I need to configure a proxy?**
No. Requests go direct first; after a real block the actor retries through Apify's built-in datacenter proxy automatically. There is no proxy field.

**Why does a channel have no Store rows?**
Most channels have not enabled a Store tab. The status row for that channel reports `storeExists: false` and the run continues. A channel with no Store can still yield products from its videos in `channelScan` or `mixed` mode.

**Why is a price missing?**
YouTube does not display a price for every card or market. Amazon cards in particular often show no price. The row keeps the real availability text and omits the amount instead of writing zero or a guess.

**Why does the currency follow the country?**
YouTube formats prices for the viewer's market and exit IP. A cloud run from the United States usually returns USD; another region can return a different currency. The `region` input changes the requested market but cannot override YouTube's currency for the IP. Compare rows within one region.

**Why do the same product and price appear twice?**
Store placements are preserved per shelf, and a product promoted in two videos produces two rows. Use `occurrenceId` for a placement and `productUrl` to group the same product. Set `deduplicate` to `true` (default) to process a repeated input only once.

**What are timed tags?**
Some videos and live streams attach products to a time window. When YouTube exposes the windows, `tagSegments` lists every start and end in seconds. Many videos have no timed tags; the product row is still returned from the shelf or panel.

**What is a descriptionLink row?**
An external link from the video description, added only when `includeDescriptionLinks` is on. It is labelled `link_only` because the destination may be a sponsor or a website rather than a specific product. The actor never guesses a product title or price from link text.

**Does this actor bypass private or age-gated content?**
No. Private, removed, members-only and unavailable videos produce a failure status row with the reason. Age-gated videos are handled only when YouTube serves the public Shopping data.

**Is this affiliated with YouTube?**
No. It is an independent tool that reads publicly available YouTube pages.

### Limitations

- The channel Store grid shows at most 100 unique products per shelf and does not expose a continuation cursor. Larger catalogs are capped by YouTube itself.
- Prices, availability and the returned product set can differ by market and change between runs; this is a snapshot of YouTube's display, not the merchant's checkout price or stock.
- Checkout stock, ratings, reviews, GTINs and cross-retailer price comparisons are not part of YouTube's Shopping cards, so they are not emitted.
- Some product cards show a price together with an Unavailable label. Both values are returned as-is. On many US cards YouTube puts the price in the accessibility label and exposes no separate stock text, so `availabilityText` is omitted rather than filled with the price.
- There is no structured merchant item ID in the public payload. The actor returns YouTube's offer ID (`productId`), an Amazon ASIN when the URL contains one, and the product URL for merchant-side lookup.
- Description links are low confidence and can point to non-product destinations.
- A video that exposes no shelf, panel or timed tag still gets a status row with `success: true` and `productCount: 0`.
- Shorts are read from their public page. A Shorts-only creator can appear in both the Videos and Shorts tabs; the actor deduplicates the same video within one channel scan.
- `maxItems` is a hard budget for product and description-link rows. When it is reached, later inputs in the same run are not processed; their status rows are not written. Raise `maxItems` or split the input list when every input must be reported.
- The channel Store grid does not expose the full catalog for very large stores: YouTube returns at most 100 unique products per shelf. There is no next-page cursor to follow.

### Data source and access

The actor reads public YouTube pages and YouTube's public web client endpoints without user credentials. Channel, video, Shorts and search requests are ordinary HTTP requests; there is no browser at runtime. A fallback to Apify's datacenter proxy is built in and needs no setup.

# Actor input Schema

## `mode` (type: `string`):

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.

## `channels` (type: `array`):

Channel handles, URLs or IDs for the channel modes. Accepts @handle, /channel/UC..., /c/name, /user/name or a bare UC... ID. Example: @LofiGirl.

## `videos` (type: `array`):

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.

## `searchQueries` (type: `array`):

Keywords for search mode. YouTube results are filtered to videos that show a Shopping product badge, then their product cards are collected.

## `maxVideosPerChannel` (type: `integer`):

Latest uploads to inspect for product tags in channel full scan mode. 0 scans the Store tab only.

## `maxVideosPerSearch` (type: `integer`):

Shopping-badged search results to open per query in search or mixed mode.

## `includeShorts` (type: `boolean`):

Also scan the channel's Shorts tab for product cards in channelScan and mixed modes. Direct Shorts URLs are always supported.

## `includeDescriptionLinks` (type: `boolean`):

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.

## `maxProductsPerInput` (type: `integer`):

Product rows to collect for each channel or video before moving to the next input.

## `maxItems` (type: `integer`):

Dataset rows to collect across the whole run, including per-input status rows.

## `deduplicate` (type: `boolean`):

Keep one row per product, merging a product that appears in several shelves or on several inputs.

## `includeInputStatus` (type: `boolean`):

Add one row per channel or video showing whether a store or product panel exists, plus counts. Useful for channels without a store.

## `includeUnavailable` (type: `boolean`):

Keep products marked unavailable or limited in the current region. When off, only products with a working price are kept.

## `region` (type: `string`):

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).

## `language` (type: `string`):

Interface language for YouTube's response. Product titles and descriptions stay in the creator's language.

## Actor input object example

```json
{
  "mode": "channelStore",
  "channels": [
    "@LofiGirl"
  ],
  "maxVideosPerChannel": 0,
  "maxVideosPerSearch": 5,
  "includeShorts": false,
  "includeDescriptionLinks": false,
  "maxProductsPerInput": 2,
  "maxItems": 5,
  "deduplicate": true,
  "includeInputStatus": true,
  "includeUnavailable": true,
  "region": "US",
  "language": "en"
}
```

# Actor output Schema

## `products` (type: `string`):

Dataset containing scraped YouTube Shopping products and per-input status rows.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "mode": "channelStore",
    "channels": [
        "@LofiGirl"
    ],
    "maxVideosPerChannel": 0,
    "maxVideosPerSearch": 5,
    "includeShorts": false,
    "includeDescriptionLinks": false,
    "maxProductsPerInput": 2,
    "maxItems": 5,
    "deduplicate": true,
    "includeInputStatus": true,
    "includeUnavailable": true,
    "region": "US",
    "language": "en"
};

// Run the Actor and wait for it to finish
const run = await client.actor("xyrelith-data/youtube-shopping-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "mode": "channelStore",
    "channels": ["@LofiGirl"],
    "maxVideosPerChannel": 0,
    "maxVideosPerSearch": 5,
    "includeShorts": False,
    "includeDescriptionLinks": False,
    "maxProductsPerInput": 2,
    "maxItems": 5,
    "deduplicate": True,
    "includeInputStatus": True,
    "includeUnavailable": True,
    "region": "US",
    "language": "en",
}

# Run the Actor and wait for it to finish
run = client.actor("xyrelith-data/youtube-shopping-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "mode": "channelStore",
  "channels": [
    "@LofiGirl"
  ],
  "maxVideosPerChannel": 0,
  "maxVideosPerSearch": 5,
  "includeShorts": false,
  "includeDescriptionLinks": false,
  "maxProductsPerInput": 2,
  "maxItems": 5,
  "deduplicate": true,
  "includeInputStatus": true,
  "includeUnavailable": true,
  "region": "US",
  "language": "en"
}' |
apify call xyrelith-data/youtube-shopping-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,xyrelith-data/youtube-shopping-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/OyCDEhaYHMe9d4Klc/builds/wiAc5gs29J7zzVLRm/openapi.json
