# Buybuybaby — 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.

> Search and browse buybuy BABY products across categories, view detailed product information including prices and reviews, and discover featured items from the home page. Access reliable, up-to-date inventory data to compare products and make informed purchasing decisions.

**Category:** E-commerce | **Website:** [buybuybaby.com/](https://buybuybaby.com/) | **Docs:** [parse.bot/marketplace/4bd8326b-4c91-457d-9df6-a23d68b8d42a/buybuybaby-com-api](https://parse.bot/marketplace/4bd8326b-4c91-457d-9df6-a23d68b8d42a/buybuybaby-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-buybuybaby-com-api-4bd8326b/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_category_products

Browse products within a specific category on buybuy BABY. Requires category slug and taxonomy ID. Returns products with pagination and category name.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `category_slug` | string | Yes | Category URL slug (e.g., 'diapering/baby-wipes', 'strollers') |
| `page` | integer | No | Page number for pagination |
| `t_id` | string | Yes | Category taxonomy ID (e.g., '85833') |

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

### get_home_featured

Retrieve featured/recommended products from the buybuy BABY homepage. Returns a list of products curated by the site's recommendation engine. These products have a different shape from search/category products, including productId, productLink, thumbnailImage, rating, reviewCount, and priceSet fields.

**Estimated cost:** Metered

_No parameters required._

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

### search_products

Search for products by keyword on buybuy BABY. Returns a paginated list of products with names, prices, brands, images, ratings, and pagination info. Each page returns up to 60 products.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `page` | integer | No | Page number for pagination |
| `query` | string | Yes | Search keyword (e.g., 'stroller', 'baby shampoo', 'diapers') |

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