# Petco — Wrapped API

> **You are on:** `https://api.paywithlocus.com/api` | [llms.txt](https://paywithlocus.com/llms.txt) | [docs](https://docs.paywithlocus.com)
>
> Locus runs on multiple environments -- make sure every URL you call matches your expected environment.
> | Environment | Landing | API | Docs |
> |---|---|---|---|
> | Production | paywithlocus.com | api.paywithlocus.com | docs.paywithlocus.com |
> | Beta | beta.paywithlocus.com | api.beta.paywithlocus.com | docs.paywithlocus.com |
> | Stage | stage.paywithlocus.com | api.stage.paywithlocus.com | docs.paywithlocus.com |
>
> If the API URL above doesn't match your expected environment, re-fetch this file from the correct domain.

> Browse and search the Petco product catalog, retrieve product details and customer reviews, get search suggestions, find nearby store locations, and discover current deals and promotions.

**Category:** E-commerce | **Website:** [petco.com/](https://petco.com/) | **Docs:** [parse.bot/marketplace/ff41b4c1-88d6-4525-977b-ccca58853a1c/petco-com-api](https://parse.bot/marketplace/ff41b4c1-88d6-4525-977b-ccca58853a1c/petco-com-api)

Pay-per-use API proxy. Each call is automatically billed to your wallet in USDC.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/parse-petco-com-api-ff41b4c1/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_category_products

Browse products within a Petco category by its path slug. The last segment of the path is used as the category group_id for the Constructor.io browse API. Returns paginated product listings.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `category_path` | string | Yes | Category path or slug. The last path segment is used as the group_id for browsing (e.g. 'dry-cat-food', 'dog/dog-food/dry-dog-food'). |
| `limit` | integer | No | Number of results per page. |
| `page` | integer | No | Page number for pagination. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-petco-com-api-ff41b4c1/get_category_products \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"category_path":"<string>","limit":"<integer>","page":"<integer>"}'
```

### get_deals

Retrieve current deals and promotions from Petco's top-deals category. Returns products currently on sale or with special pricing across all pet categories.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-petco-com-api-ff41b4c1/get_deals \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### get_product_details

Retrieve full details for a single Petco product by its URL slug. Returns name, brand, pricing, rating, description, size/flavor variants, and availability flags. The slug is found in the url_slug field of search and category results.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `url_slug` | string | Yes | Product URL slug including the trailing SKU number (e.g. 'hills-science-diet-sensitive-stomach-and-skin-adult-dog-food-30-lbs-1327593'). Available from search_products or get_category_products results in the url_slug field. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-petco-com-api-ff41b4c1/get_product_details \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url_slug":"<string>"}'
```

### get_product_reviews

Retrieve customer reviews for a product by its SKU ID via Bazaarvoice. Returns 10 reviews per page with rating, text, title, and recommendation status. The product_id is the sku field from get_product_details.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `page` | integer | No | Page number for pagination (10 reviews per page). |
| `product_id` | string | Yes | Product SKU ID (e.g. '1327593'). Available from get_product_details sku field. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-petco-com-api-ff41b4c1/get_product_reviews \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"page":"<integer>","product_id":"<string>"}'
```

### get_search_suggestions

Get autocomplete suggestions for a search query prefix. Returns suggested search terms with associated category paths and matching product previews from the Constructor.io autocomplete API.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `query` | string | Yes | Search query prefix to autocomplete. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-petco-com-api-ff41b4c1/get_search_suggestions \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query":"<string>"}'
```

### get_store_locator

Find nearby Petco physical store locations by US ZIP code. Returns up to 5 stores sorted by distance with full address, phone number, operating hours, and BOPUS (buy online, pick up in store) availability.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `zip_code` | string | Yes | 5-digit US ZIP code to search near (e.g. '90210', '10001'). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-petco-com-api-ff41b4c1/get_store_locator \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"zip_code":"<string>"}'
```

### search_products

Full-text search across Petco's product catalog. Returns paginated product listings matching the query. Each result includes pricing, ratings, and availability flags. Pagination via page number; 48 results per page by default.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `limit` | integer | No | Number of results per page. |
| `page` | integer | No | Page number for pagination. |
| `query` | string | Yes | Search keyword or phrase. |
| `sort_by` | string | No | Sort order for results. Accepts Constructor.io sort fields such as 'relevance', 'price', 'num_reviews'. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-petco-com-api-ff41b4c1/search_products \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"limit":"<integer>","page":"<integer>","query":"<string>","sort_by":"<string>"}'
```
