# Shopify Products

Extract product data — prices, variants, images, descriptions — from any Shopify-powered store URL

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

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

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

## Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `urls` | array | Yes | Shopify store URLs (crawls all products) or individual product URLs. One per line. |
| `maxResults` | integer | No | Number of products to scrape. Use 0 for all. |

## Example

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

```python
import requests

resp = requests.post(
    "https://api.mindcase.co/api/v1/agents/shopify/products/run",
    headers={"Authorization": "Bearer mk_live_YOUR_API_KEY"},
    json={"params": {
    "urls": [
        "..."
    ]
}},
)
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 |
|-------|--------------|------|
| `storeUrl` | Store URL | url |
| `productUrl` | Product URL | url |
| `productId` | Product ID | text |
| `title` | Title | text |
| `brand` | Brand | text |
| `category` | Category | text |
| `description` | Description | text |
| `tags` | Tags | array |
| `currency` | Currency | text |
| `priceFrom` | Price From | number |
| `priceTo` | Price To | number |
| `onSale` | On Sale | boolean |
| `inStock` | In Stock | boolean |
| `variantCount` | Variant Count | integer |
| `variants` | Variants | object_array |
| `options` | Options | object |
| `imageUrl` | Image URL | url |
| `media` | Media | object_array |
| `imageCount` | Image Count | integer |
| `createdDate` | Created Date | date |
| `publishedDate` | Published Date | date |
| `scrapedAt` | Scraped At | date |
| `recommendedProducts` | Recommended Products | object_array |
