# Merch Marketplace Counts: Redbubble, TeePublic, Etsy, Amazon (`gouda_studios/merch-marketplace-counts`) Actor

For each merch keyword, return result counts and the top 20 listing titles and URLs from Redbubble, plus TeePublic, Etsy and Amazon Merch shirt counts when those sites allow datacenter access. Blocked marketplaces are flagged, never guessed. $0.002 per keyword.

- **URL**: https://apify.com/gouda_studios/merch-marketplace-counts.md
- **Developed by:** [Gouda Studios](https://apify.com/gouda_studios) (community)
- **Categories:** E-commerce, AI, Business
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 keyword scans

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## Merch Marketplace Counts: Redbubble, TeePublic, Etsy, Amazon

Give the actor a list of merch keywords. For each one it returns result counts and the top listing titles and URLs from every marketplace it can actually reach, and a clear `blocked` or `error` status for the ones it cannot.

No login and no paid proxy. Sites that challenge datacenter IPs (TeePublic's Cloudflare page and Etsy's DataDome/captcha wall are common) are flagged honestly instead of filled in with estimates.

### What you get (one row per keyword)

- **Redbubble**: total result count plus the top listings (title, URL, artist, product type). This is the store that consistently answers from datacenter IPs
- **TeePublic** and **Etsy**: the same fields when the response is a real search page; otherwise `status: "blocked"` and a reason
- **Amazon Merch shirt count**: tries the Merch-by-Amazon search filter first. If Amazon serves a real page but rejects that filter, the actor may fall back to a general Amazon search count and set `amazonMerchFilterApplied` to false. If Amazon returns a 503 bot wall after retries, it is marked blocked
- `blockedMarketplaces` lists every store that did not return real data

### Input example

```json
{
  "keywords": ["christmas cat shirt", "just one more chapter", "plant mom"],
  "maxListings": 20
}
```

### Pricing

- **$0.002 per keyword** that is queried (even if some marketplaces are blocked)
- **$0.00005 per run start**
- Empty input returns a free error row

### Limits

- Counts and titles are what the public search page showed at scrape time, not bestsellers or sold counts
- Amazon access is intermittent from datacenter IPs; treat a blocked row as missing, not zero
- The old Merch-by-Amazon search filter is no longer on the public results page and now returns 'No results'. `amazonMerchCount` is only filled when that filter actually works. `amazonGeneralCount` is a general Amazon.com search total and is not merch-specific
- TeePublic and Etsy often require a residential proxy, which this actor does not buy

# Actor input Schema

## `keywords` (type: `array`):

Phrases or merch keywords, one per line, e.g. christmas cat shirt.

## `maxListings` (type: `integer`):

How many top listing titles and URLs to return for each marketplace that is reachable.

## `marketplaces` (type: `array`):

Which stores to query. Amazon is a Merch-by-Amazon shirt count when the filter is accepted; otherwise the general search count is returned and flagged.

## Actor input object example

```json
{
  "keywords": [
    "christmas cat shirt",
    "just one more chapter",
    "plant mom"
  ],
  "maxListings": 20,
  "marketplaces": [
    "redbubble",
    "teepublic",
    "etsy",
    "amazonMerch"
  ]
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# 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 = {
    "keywords": [
        "christmas cat shirt",
        "just one more chapter",
        "plant mom"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("gouda_studios/merch-marketplace-counts").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 = { "keywords": [
        "christmas cat shirt",
        "just one more chapter",
        "plant mom",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("gouda_studios/merch-marketplace-counts").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 '{
  "keywords": [
    "christmas cat shirt",
    "just one more chapter",
    "plant mom"
  ]
}' |
apify call gouda_studios/merch-marketplace-counts --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,gouda_studios/merch-marketplace-counts"
        }
    }
}
```

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/wfHlGAeynTHfNTcvw/builds/ev1C4RXzL1sRmCCvj/openapi.json
