# Petsmart Product Listings Extractor (`kawsar/petsmart-product-listings-extractor`) Actor

PetSmart product listings extractor that pulls names, prices, ratings, and stock status from PetSmart search results, so you can track pricing and watch the catalog without browsing the site by hand.

- **URL**: https://apify.com/kawsar/petsmart-product-listings-extractor.md
- **Developed by:** [Kawsar](https://apify.com/kawsar) (community)
- **Categories:** E-commerce, Automation, Developer tools
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.99 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
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?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## PetSmart Product Listings Extractor

Extract product data from PetSmart search results at scale. Give the actor a keyword, brand, or category and it returns product names, SKUs, brand names, images, prices, stock status, star ratings, and review counts for every matching listing, paging through results automatically until it hits your item limit.

No manual browsing, no copy-pasting from search pages. Point it at a keyword, pick a sort order, and run.

### Why use this actor

PetSmart doesn't publish a public product feed, so tracking prices, stock, or ratings across its catalog usually means checking pages by hand. This actor turns any search query into structured, exportable data you can drop into a spreadsheet, database, or pricing tool.

- **Price monitoring**: track how prices move on a product line over days, weeks, or months.
- **Competitor research**: pull PetSmart's catalog and pricing for a category and compare it against your own.
- **Market research**: see which brands and products show up for a given search term and how they're rated.
- **Feed building**: generate a pet supply price comparison feed or product catalog for another app.
- **Content and SEO**: source real product names, prices, and ratings for buying guides or comparison articles.

### What data you get

Each item in the dataset represents one product:

| Field | Description |
|---|---|
| `productName` | Full product title |
| `sku` | PetSmart SKU / item number |
| `brandName` | Brand as listed on PetSmart |
| `imageUrl` | Product image URL |
| `productUrl` | Link to the product page |
| `price` | Current price |
| `priceCurrency` | Currency code (e.g. `USD`) |
| `availability` | Stock status (e.g. `InStock`, `OutOfStock`) |
| `ratingValue` | Average star rating, if available |
| `reviewCount` | Number of reviews, if available |
| `searchKeyword` | The search term that returned this product |
| `pageNumber` | Which page of search results this product came from |
| `scrapedAt` | Timestamp of when the item was collected |

### How to use it

1. Open the actor and enter a **search keyword**, a product name, brand, or category. Examples: `purina pro plan dog food`, `cat litter`, `dog crate`, `flea and tick treatment`.
2. Optionally set a **sort order**: relevance, price low to high, price high to low, rating high to low, or newest.
3. Set a **max items** limit (default 100, up to 1000) if you don't need the full result set.
4. Click **Start**.

Results are written to the actor's dataset as they're found, so you can start exporting before the run finishes. Export as JSON, CSV, Excel, or XML, or pull results through the Apify API for automated workflows.

### Example input

```json
{
  "searchKeyword": "purina pro plan dog food",
  "sortBy": "relevance",
  "maxItems": 100
}
```

### Example output

```json
{
  "productName": "Purina Pro Plan AdvantEDGE Digestive Support+ Salmon and Oat Meal Formula Adult Dry Dog Food",
  "sku": "5376368",
  "brandName": "Purina Pro Plan",
  "imageUrl": "https://s7d2.scene7.com/is/image/PetSmart/5376368",
  "productUrl": "https://www.petsmart.com/dog/food/dry-food/purina-pro-plan-advantedge-digestive-support-salmon-and-oat-meal-formula-adult-dry-dog-food-96293.html",
  "priceCurrency": "USD",
  "price": 56.99,
  "availability": "InStock",
  "ratingValue": 4.3,
  "reviewCount": 1957,
  "searchKeyword": "purina pro plan dog food",
  "pageNumber": 1,
  "scrapedAt": "2026-01-01T00:00:00.000000+00:00"
}
```

### Input options

| Parameter | Type | Default | Description |
|---|---|---|---|
| `searchKeyword` | string | n/a | Required. The search term to look up. |
| `sortBy` | select | `relevance` | One of `relevance`, `price-low-to-high`, `price-high-to-low`, `rating-high-to-low`, `newest`. |
| `maxItems` | integer | `100` | Maximum number of products to extract (up to 1000). |
| `requestTimeoutSecs` | integer | `30` | Per-request timeout in seconds. |

### Frequently asked questions

**Does this work for any PetSmart search term?**
Yes. Any keyword that returns results on PetSmart's search will work, whether it's a brand, product type, or category.

**How many products can I extract per run?**
Up to 1000 per run, controlled by the max items setting. Each PetSmart search page returns up to 40 products, and the actor pages through results until it reaches your limit or runs out of matches.

**Can I sort results by price or rating?**
Yes. Choose relevance, price low to high, price high to low, rating high to low, or newest.

**What happens if a search term returns no results?**
The run finishes with an empty dataset rather than failing, so it's safe to use in automated pipelines.

**Can I run this on a schedule?**
Yes. Apify supports scheduled runs, so you can track price and stock changes over time by running the actor daily or weekly and comparing datasets.

### Support

Found a bug or have a feature request? Open an issue on the actor's Apify Store page or reach out through Apify's support channels.

# Actor input Schema

## `searchKeyword` (type: `string`):

The search term to look up on PetSmart, e.g. a product name, brand, or category.

## `sortBy` (type: `string`):

How search results should be ordered.

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

Maximum number of products to extract per run.

## `requestTimeoutSecs` (type: `integer`):

Per-request timeout in seconds.

## Actor input object example

```json
{
  "searchKeyword": "purina pro plan dog food",
  "sortBy": "relevance",
  "maxItems": 40,
  "requestTimeoutSecs": 30
}
```

# Actor output Schema

## `productListings` (type: `string`):

The extracted PetSmart products in the default dataset.

## `datasetInConsole` (type: `string`):

View the extracted products in the Apify Console.

# 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 = {
    "searchKeyword": "purina pro plan dog food"
};

// Run the Actor and wait for it to finish
const run = await client.actor("kawsar/petsmart-product-listings-extractor").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 = { "searchKeyword": "purina pro plan dog food" }

# Run the Actor and wait for it to finish
run = client.actor("kawsar/petsmart-product-listings-extractor").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 '{
  "searchKeyword": "purina pro plan dog food"
}' |
apify call kawsar/petsmart-product-listings-extractor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,kawsar/petsmart-product-listings-extractor"
        }
    }
}

```

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/v44HFA1LE5ciwku9y/builds/BoCcuq8qOjW5l4Tgo/openapi.json
