# Etsy Product Scraper (`scrapeai/etsy-product-scraper`) Actor

Scrape Etsy product listings by keyword/category with deep product data extraction. Collect title, price, currency, rating, review count, shop name, badges, shipping cost, images, variants, materials, tags, description, stock/availability, sales info, and product URL. Export JSON/CSV.

- **URL**: https://apify.com/scrapeai/etsy-product-scraper.md
- **Developed by:** [ScrapeAI](https://apify.com/scrapeai) (community)
- **Categories:** E-commerce, Automation, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.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.

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

## Etsy Product Scraper

Scrape product listings from Etsy (etsy.com) -- extract product details, images, seller info, pricing, variations, highlights, and related searches.

### Key Features

- Scrape products from Etsy category pages, search results, and shop pages
- Extract product name, price, images, seller info, and reviews
- Get product variations with pricing
- Extract highlights, listed date, and favorites count
- Collect related searches for each product
- Supports custom `extendOutputFunction` and `customMapFunction`
- Proxy support with Apify residential proxies
- Configurable pagination with `endPage`

### Use Cases

- Product research and competitive analysis
- Price monitoring and tracking
- Market trend analysis
- Seller performance tracking
- E-commerce data collection

### How It Works

1. Accepts Etsy URLs (category, search, or shop pages)
2. Navigates through product listings
3. Visits each product page to extract detailed information
4. Collects product metadata (name, price, images, seller, variations, etc.)
5. Stores structured output into the Apify dataset

### Input Parameters

| Parameter | Type | Default | Description |
|---|---|---|---|
| `startUrls` | Array | `[]` | List of Etsy URLs to scrape (category, search, or shop pages) |
| `includeDescription` | Boolean | `false` | Whether to include full product description |
| `includeVariationPrices` | Boolean | `false` | Whether to include price for each variation option |
| `maxItems` | Number | `10` | Maximum number of products to scrape |
| `endPage` | Number | `1` | Last page number to scrape |
| `extendOutputFunction` | String | `"($) => { return {}; }"` | Custom jQuery function to extract additional fields |
| `customMapFunction` | String | `"(object) => { return {...object} }"` | Custom function to transform each output object |
| `proxy` | Object | `{}` | Proxy configuration for Apify |

### Input Example

```json
{
  "startUrls": [
    "https://www.etsy.com/c/clothing-and-shoes?ref=catnav-10923",
    "https://www.etsy.com/search?q=apple%20watch",
    "https://www.etsy.com/shop/PetiteFraise?ref=simple-shop-header-name&listing_id=490831663&page=2#items"
  ],
  "includeDescription": false,
  "includeVariationPrices": false,
  "maxItems": 10,
  "endPage": 1,
  "extendOutputFunction": "($) => {\n    const result = {};\n    // Uncomment to add a title to the output\n    // result.title = $('title').text().trim();\n\n    return result;\n}",
  "customMapFunction": "(object) => { return {...object} }",
  "proxy": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

### Output Fields

| Field | Type | Description |
|---|---|---|
| `url` | String | Product listing URL |
| `name` | String | Product name/title |
| `images` | Array | List of product image URLs |
| `seller` | Object | Seller info (`name`, `url`, `numberOfReviews`, `rating`) |
| `numberOfReviews` | Number | Number of product reviews |
| `price` | String | Product price (e.g. `"$49.00+"`) |
| `variations` | Array | Product variations with label and values |
| `highlights` | Array | Product highlights (e.g. `"Handmade"`, materials) |
| `listedOn` | String | Date the product was listed |
| `favorites` | Number | Number of times the product was favorited |
| `relatedSearches` | Array | Related search terms with links |

### Output Example

```json
{
    "url": "https://www.etsy.com/listing/498417899/edc-slim-valet-personalized-pocket?ga_order=most_relevant&ga_search_type=all&ga_view_type=gallery&ga_search_query=&ref=sr_gallery-4-29&frs=1&cns=1&col=1",
    "name": "EDC Slim Valet - Personalized Pocket Organizer, Handmade in the USA",
    "images": [
        "https://i.etsystatic.com/13963159/r/il/3d1876/3180744258/il_794xN.3180744258_olzc.jpg",
        "https://i.etsystatic.com/13963159/r/il/a3c7cf/1617748881/il_794xN.1617748881_1o26.jpg",
        "https://i.etsystatic.com/13963159/r/il/9eb645/1570294448/il_794xN.1570294448_oe8w.jpg",
        "https://i.etsystatic.com/13963159/r/il/6b2a6a/1570293332/il_794xN.1570293332_8z6i.jpg",
        "https://i.etsystatic.com/13963159/r/il/39f7ad/3180744724/il_794xN.3180744724_2baa.jpg",
        "https://i.etsystatic.com/13963159/r/il/08b20b/3180745230/il_794xN.3180745230_95a2.jpg",
        "https://i.etsystatic.com/13963159/r/il/31e60f/3494515703/il_794xN.3494515703_54ci.jpg",
        "https://i.etsystatic.com/13963159/r/il/352b64/3458390857/il_794xN.3458390857_4ity.jpg"
    ],
    "seller": {
        "name": "OnMyWristCo",
        "url": "https://www.etsy.com/uk/shop/OnMyWristCo?ref=shop-header-name&listing_id=1515784194&from_page=listing",
        "numberOfReviews": 12000,
        "rating": 3.9179
    },
    "numberOfReviews": 78,
    "price": "$49.00+",
    "variations": [
        {
            "label": "Color",
            "values": [
                "Dark Chocolate",
                "Mahogany",
                "Cordovan"
            ]
        },
        {
            "label": "Personalize / Monogram",
            "values": [
                "None ($49.00)",
                "Monogram ($59.00)"
            ]
        }
    ],
    "highlights": [
        "Handmade",
        "Materials: leather, metal rivets"
    ],
    "listedOn": "Dec 26, 2022",
    "favorites": 806,
    "relatedSearches": [
        {
            "name": "EDC Pocket Organizer",
            "link": "https://www.etsy.com/market/edc_pocket_organizer?ref=seller_tag_bottom_image-0"
        },
        {
            "name": "EDC Wallet",
            "link": "https://www.etsy.com/market/edc_wallet?ref=seller_tag_bottom_image-1"
        },
        {
            "name": "EDC Organizer",
            "link": "https://www.etsy.com/market/edc_organizer?ref=seller_tag_bottom_image-2"
        }
    ]
}
```

# Actor input Schema

## `startUrls` (type: `array`):

List of Etsy category/search/shop URLs to scrape

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

Maximum number of product listings to collect

## `endPage` (type: `integer`):

Last page number to scrape for pagination

## `includeDescription` (type: `boolean`):

Whether to include full product description extract (slow)

## `includeVariationPrices` (type: `boolean`):

If true, extract all variation pricing details for each product

## `proxy` (type: `object`):

Apify Proxy settings

## Actor input object example

```json
{
  "startUrls": [
    "https://www.etsy.com/search?q=handmade%20jewelry"
  ],
  "maxItems": 5,
  "endPage": 1,
  "includeDescription": false,
  "includeVariationPrices": false,
  "proxy": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

## `dataset` (type: `string`):

Structured records produced by this Actor.

# 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 = {
    "maxItems": 5,
    "endPage": 1
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapeai/etsy-product-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 = {
    "maxItems": 5,
    "endPage": 1,
}

# Run the Actor and wait for it to finish
run = client.actor("scrapeai/etsy-product-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 '{
  "maxItems": 5,
  "endPage": 1
}' |
apify call scrapeai/etsy-product-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,scrapeai/etsy-product-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/ZWHdTpDfHddJGCb9X/builds/dif2JV94pXAISJDsM/openapi.json
