# Etsy Products

Extract full Etsy product listings — title, price, description, images/video, favorites, reviews, shop identity and variations — by keyword search, by direct product (listing) URL, or by category/search/shop URL.

**Pricing:** $1 / 1k products

**Endpoint:** `POST /api/v1/agents/etsy/products/run`

**Auth:** `Authorization: Bearer mk_live_...`

## Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `keywords` | array | No | Etsy search keywords (e.g. 'leather wallet'). One per line. Each keyword is searched separately and capped at Max Results. |
| `productUrls` | array | No | Direct Etsy listing (product) URLs — one per line (e.g. https://www.etsy.com/listing/1070066307/...). Each URL returns exactly that one product. No Max Results applies here. |
| `categoryUrls` | array | No | Etsy category, search-result, or shop URLs — one per line. Each link is crawled and the listings it contains are returned, capped at Max Results PER link. |
| `maxResults` | integer | No | Maximum number of listings to return per keyword (By Keyword) or per link (By Category/Search/Shop URL). Use 0 for no cap. Not used in By Product URL mode. |

## Example

```bash
curl -X POST https://api.mindcase.co/api/v1/agents/etsy/products/run \
  -H "Authorization: Bearer mk_live_YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"params":{}}'
```

```python
import requests

resp = requests.post(
    "https://api.mindcase.co/api/v1/agents/etsy/products/run",
    headers={"Authorization": "Bearer mk_live_YOUR_API_KEY"},
    json={"params": {}},
)
data = resp.json()
```

## Get the results

`run` is async and returns a `job_id`. Poll until `status` is `completed`, then read the rows:

```bash
# 1) check status
curl https://api.mindcase.co/api/v1/jobs/JOB_ID \
  -H "Authorization: Bearer mk_live_YOUR_API_KEY"

# 2) when status == completed, fetch the rows
curl https://api.mindcase.co/api/v1/jobs/JOB_ID/results \
  -H "Authorization: Bearer mk_live_YOUR_API_KEY"
```

Full API reference (auth, jobs, balance, endpoints): https://mindcase.co/skills.md

## Response columns

| Field | Display name | Type |
|-------|--------------|------|
| `title` | Title | text |
| `productUrl` | Product URL | url |
| `listingId` | Listing ID | number |
| `price` | Price | currency |
| `originalPrice` | Original Price | currency |
| `favorites` | Favorites | number |
| `listingReviews` | Listing Reviews | number |
| `shopName` | Shop Name | text |
| `shopUrl` | Shop URL | url |
| `shopRating` | Shop Rating | rating |
| `shopReviews` | Shop Reviews | number |
| `listedOn` | Listed On | text |
| `image` | Image | url |
| `video` | Video | url |
| `description` | Description | text |
| `variations` | Variations | object_array |
