# Petco Scraper - $2.00 / 1000 Products (`scrapeunblocker/petco-scraper`) Actor

Scrape Petco (petco.com): search results with online, list and Autoship prices, rating, fulfillment options and every size, filtered by brand, fulfillment and price, or product pages with stock, ingredients, specifications, variants and reviews. $2.00 per 1000 products.

- **URL**: https://apify.com/scrapeunblocker/petco-scraper.md
- **Developed by:** [Scrapeunblocker](https://apify.com/scrapeunblocker) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 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.

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

## Petco Scraper

Scrape **Petco** (petco.com) as clean JSON. Get **search results** with brand, fulfillment and price filters, or **product pages** in full. Every search result comes with the **SKU**, title, brand, link, image, **price**, **list price** and **Autoship price** (Repeat Delivery), sale flag, **rating and review count**, description, category, whether it can be **picked up**, **delivered the same day** or put on **Autoship**, its attributes (flavour, life stage, breed size) and every **size variation** with its own SKU and prices. Product pages add **online stock**, the pickup price, UPC, the rating histogram and recommend rate, highlights, **ingredients**, directions, **specifications**, breadcrumbs, images, every **variant** with its prices and stock, and the first **reviews**.

### Features

- **Search mode** - up to 480 products per search term, sorted by relevance, price, rating, popularity, newest or name, from any page.
- **Filters** - brand (as Petco names it), fulfillment (one-time delivery, Autoship, free pickup today, same-day delivery) and a price range.
- **Brand and category redirects followed** - a brand name (e.g. `kong`) that Petco sends to its brand page returns that page's listing, named in the `LISTINGS` record.
- **Product mode** - one product per input (`products`: a SKU like `3748364` or a product link).
- **Many inputs per run** - search terms or products in parallel.

### Use cases

- **Pet food price tracking** - one-time vs Autoship prices for every bag size.
- **Brand share of shelf** - which brands rank for a category and at what price.
- **Product data feeds** - UPCs, ingredients and specifications for a catalogue.

### Input

| Field | Type | Default | Description |
|-------|------|---------|-------------|
| `mode` | string | `search` | `search` or `product`. |
| `queries` | array | `dog food` | Search terms (search mode). |
| `products` | array | - | SKUs or product links (product mode). |
| `sort` | string | `relevance` | `relevance`, `price_low`, `price_high`, `rating`, `popular`, `newest`, `name_asc`, `name_desc`. |
| `brand` | string | - | Only this brand (search mode). |
| `fulfillment` | string | - | `delivery`, `autoship`, `pickup` or `same_day` (search mode). |
| `minPrice` / `maxPrice` | integer | - | Price range in USD (search mode). |
| `maxResults` | integer | `48` | Products per search term (1-480). |
| `page` | integer | `1` | Results page to start from (48 products per page). |
| `concurrency` | integer | `2` | Inputs processed at the same time (1-5). |

#### Example input

```json
{
  "mode": "search",
  "queries": ["cat litter"],
  "brand": "Arm & Hammer",
  "fulfillment": "same_day",
  "sort": "price_low",
  "maxResults": 48
}
```

### Output

One dataset item per product, with the input it came from. A search item (variations shortened):

```json
{
  "mode": "search",
  "input": "dog food",
  "sku": "3748364",
  "productId": "5043283",
  "title": "Purina Pro Plan Sensitive Skin and Stomach Salmon and Rice Formula Dog Food, 40 lbs.",
  "familyName": "Purina Pro Plan Sensitive Skin and Stomach Salmon and Rice Formula Dog Food",
  "brand": "Purina Pro Plan",
  "url": "https://www.petco.com/product/purina-pro-plan-sensitive-skin-and-stomach-salmon-and-rice-formula-dry-dog-food-40-lbs-3748364",
  "image": "https://assets.petco.com/petco/image/upload/f_auto,q_auto,w_190/dpr_auto/3748364-center-1",
  "price": 97.99,
  "listPrice": 97.99,
  "autoshipPrice": 93.09,
  "onSale": false,
  "currency": "USD",
  "rating": 4.54,
  "reviewCount": 6730,
  "category": "Consumables|Food|Household Pet",
  "autoshipEligible": true,
  "pickupEligible": true,
  "sameDayDeliveryEligible": true,
  "inStoreOnly": false,
  "prescriptionFood": false,
  "attributes": {"Primary Brand": "Purina Pro Plan", "Primary Flavor": "Salmon"},
  "variations": [
    {"sku": "2579466", "title": "Purina Pro Plan Sensitive Skin and Stomach Salmon and Rice Formula Dog Food, 30 lbs.", "price": 77.99, "listPrice": 80.99, "autoshipPrice": 74.09, "onSale": true}
  ],
  "position": 1
}
```

A product-mode item adds `catEntryId`, `parentSku`, `upc`, `pickupPrice`, `availability`, `inStock`, `availableQuantity`, `ratingHistogram`, `recommendedPercent`, `highlights`, `ingredients`, `directions`, `specifications`, `dimensions`, `petType`, `breadcrumbs`, `onlineOnly`, `prescriptionRequired`, `discontinued`, `images`, `variants` and `reviews`.

Per search term, the `LISTINGS` record in the key-value store keeps `totalResults`, `lastPage`, the `brands` you can filter by and `redirectedTo` when Petco sent the search to a brand or category page.

### Pricing

**$2.00 per 1000 products** (pay per result). A search term or product that returns nothing (no match, an unknown SKU, a call the site refused) is listed in the `ERRORS` record of the key-value store and is not charged.

### Notes

- Prices are the online prices a signed-out shopper sees; member (Vital Care) prices and store-specific prices or stock are not included. `availableQuantity` is Petco's online stock.
- A search term Petco sends to a page without products (e.g. a services page) returns nothing and is not charged.

Powered by [ScrapeUnblocker](https://www.scrapeunblocker.com).

# Actor input Schema

## `mode` (type: `string`):

Search: the products Petco shows for each search term. Product: one product each, with online stock, ingredients, specifications, every variant and the first reviews.

## `queries` (type: `array`):

Used when What to scrape = Search. What to search, e.g. dog food, cat litter, fish tank, or a brand name. One per line.

## `products` (type: `array`):

Used when What to scrape = Product. Petco SKUs (3748364, the number a product link ends in) or petco.com product links. One per line.

## `sort` (type: `string`):

Search mode: the order of the results.

## `brand` (type: `string`):

Search mode: only this brand, as Petco names it (e.g. Purina Pro Plan). The LISTINGS record lists the brand names of each search.

## `fulfillment` (type: `string`):

Search mode: only products Petco offers this way.

## `minPrice` (type: `integer`):

Search mode: lowest price to include.

## `maxPrice` (type: `integer`):

Search mode: highest price to include.

## `maxResults` (type: `integer`):

Upper limit of products for each search term (1-480, 48 per results page).

## `page` (type: `integer`):

Search mode: the results page to start from (48 products per page, as on petco.com).

## `concurrency` (type: `integer`):

How many search terms or products to process at the same time (1-5).

## Actor input object example

```json
{
  "mode": "search",
  "queries": [
    "dog food"
  ],
  "sort": "relevance",
  "fulfillment": "",
  "maxResults": 10,
  "page": 1,
  "concurrency": 2
}
```

# Actor output Schema

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

One item per product with the input it came from and, for a search, its position

## `listings` (type: `string`):

Per search term: total results, the brand names to filter by and the brand or category page Petco sent the search to

## `errors` (type: `string`):

Inputs that returned no products (no match, unknown product, blocked), with the reason (not billed)

# 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 = {
    "queries": [
        "dog food"
    ],
    "maxResults": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapeunblocker/petco-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 = {
    "queries": ["dog food"],
    "maxResults": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("scrapeunblocker/petco-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 '{
  "queries": [
    "dog food"
  ],
  "maxResults": 10
}' |
apify call scrapeunblocker/petco-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,scrapeunblocker/petco-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/C5nkuBKXKobUNAgLe/builds/OjqVWK9rN02k2TpIi/openapi.json
