# Petco Product Urls Listing (`getdataforme/petco-product-urls-listing`) Actor

Efficiently scrape and list Petco product URLs using keyword-based searches. Ideal for market research, competitive analysis, and business intelligence with features like flexible item limits, comprehensive data collection, high reliability, and user-friendly configuration....

- **URL**: https://apify.com/getdataforme/petco-product-urls-listing.md
- **Developed by:** [GetDataForMe](https://apify.com/getdataforme) (community)
- **Categories:** AI, Automation, E-commerce
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $9.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/platform/actors/running/actors-in-store#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

***

## Petco Product Urls Listing

### Introduction

Petco Product Urls Listing is an Apify Actor designed to efficiently scrape and list product URLs from the Petco website. It allows users to gather detailed information about pet products based on specified keywords, making it invaluable for market research, competitive analysis, and business intelligence.

### Features

- **Keyword-Based Scraping**: Customize searches with specific keywords to target relevant products.
- **Flexible Item Limits**: Set a maximum number of items to scrape per run or allow unlimited scraping by setting the limit to zero.
- **Comprehensive Data Collection**: Collects product names, URLs, ratings, and pagination details for thorough analysis.
- **High Reliability**: Ensures consistent data quality with robust error handling mechanisms.
- **User-Friendly Configuration**: Simple setup with intuitive input parameters for easy customization.

### Input Parameters

| Parameter   | Type    | Required | Description                                                                 | Example                  |
|-------------|---------|----------|-----------------------------------------------------------------------------|--------------------------|
| Keywords    | Array   | No       | The keywords for the spider.                                                | `["catfood"]`            |
| item\_limit  | Integer | No       | Maximum items to scrape per actor run. Set to 0 for no limit.               | `10`                     |

### Example Usage

#### Input JSON

```json
{
  "Keywords": ["catfood"],
  "item_limit": 10
}
```

#### Output JSON

```json
[
  {
    "product_name": "Purina Friskies Seafood Sensations with Salmon, Tuna and Shrimp Flavors Dry Cat Food",
    "product_url": "https://www.petco.com/shop/en/petcostore/product/purina-friskies-seafood-sensations-dry-cat-food-16-lbs-3880761",
    "stars": "4.8",
    "rating": "4.8",
    "price": null,
    "autoship_first_discount": null,
    "review_count": null,
    "pagination": {
      "keyword": "catfood",
      "page": 1,
      "total_pages": 57,
      "total_results": "1 - 48 of 2712 results"
    },
    "actor_id": "5WxvZPbTmbvKtE56T",
    "run_id": "LPM0LR23Sto5tFdq1"
  }
]
```

### Use Cases

- **Market Research and Analysis**: Gather data on pet products to understand market trends.
- **Competitive Intelligence**: Monitor competitor product offerings and pricing strategies.
- **Price Monitoring**: Track changes in product prices over time for strategic decision-making.
- **Content Aggregation**: Compile comprehensive lists of products for content creation or marketing purposes.
- **Academic Research**: Use the data for studies related to consumer behavior or market dynamics.
- **Business Automation**: Integrate with business systems for automated inventory management and sales forecasting.

### Installation and Usage

1. Search for "Petco Product Urls Listing" in the Apify Store.
2. Click "Try for free" or "Run".
3. Configure input parameters such as keywords and item limits.
4. Click "Start" to begin extraction.
5. Monitor progress in the log.
6. Export results in your preferred format (JSON, CSV, Excel).

### Output Format

The output is a JSON array containing objects with the following fields:

- `product_name`: Name of the product.
- `product_url`: URL of the product page.
- `stars` and `rating`: Product rating information.
- `price`, `autoship_first_discount`, `review_count`: Additional product details (may be null).
- `pagination`: Contains keyword, current page, total pages, and total results.
- `actor_id` and `run_id`: Unique identifiers for the actor run.

### Support

For custom/simplified outputs or bug reports, please contact:

- Email: support@getdataforme.com
- Subject line: "custom support"
- Contact form: [Contact Us](https://getdataforme.com/contact/)

We're here to help you get the most out of this Actor!

# Actor input Schema

## `Keywords` (type: `array`):

The keywords for the spider.

## `item_limit` (type: `integer`):

Maximum items to scrape per actor run. Set to 0 for no limit.

## Actor input object example

```json
{
  "Keywords": [
    "catfood"
  ],
  "item_limit": 10
}
```

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("getdataforme/petco-product-urls-listing").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("getdataforme/petco-product-urls-listing").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call getdataforme/petco-product-urls-listing --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=getdataforme/petco-product-urls-listing",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/5WxvZPbTmbvKtE56T/builds/HAFi4TeiLcIJgLVxS/openapi.json
