# Macys — 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 Macy's product catalog by navigating categories, searching for items, and viewing detailed product information all in one place. Discover products across different categories and get comprehensive details to help you find exactly what you're looking for.

**Category:** E-commerce | **Website:** [macys.com/](https://macys.com/) | **Docs:** [parse.bot/marketplace/5c7b1722-4868-4e86-859a-200f8725efba/macys-com-api](https://parse.bot/marketplace/5c7b1722-4868-4e86-859a-200f8725efba/macys-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-macys-com-api-5c7b1722/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### browse_category

Browse products in a specific category. Returns product IDs, total count, and available filter facets for the category. Use category_id and pathname from the get_category_navigation endpoint.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `category_id` | string | Yes | Category ID from get_category_navigation (e.g., '55352') |
| `page_index` | integer | No | Page number for paginated results |
| `pathname` | string | Yes | Category pathname starting with /shop/ (e.g., '/shop/jewelry-watches/jewelry/fashion-jewelry'). Obtained from get_category_navigation results url field (strip query params). |
| `products_per_page` | integer | No | Number of product IDs per page |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-macys-com-api-5c7b1722/browse_category \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"category_id":"<string>","page_index":"<integer>","pathname":"<string>","products_per_page":"<integer>"}'
```

### get_category_navigation

Retrieve the site menu structure including all main departments and subcategories with associated category IDs. Returns a flat map of category objects keyed by category ID. Each category includes id, text, url, parent info, children (if any), and categoryPageType. Use this to discover valid category_id and pathname values for the browse_category endpoint.

**Estimated cost:** Metered

_No parameters required._

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

### get_product_details

Retrieve full product details for given product ID(s). Supports batching with comma-separated IDs. Returns comprehensive product data including name, description, brand, pricing, colors, sizes, availability, imagery, and shipping information.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `product_ids` | string | Yes | Single product ID or comma-separated list of product IDs (e.g., '10525052' or '10525052,24607666') |

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

### search_products

Search for products by keyword. Returns full product details for up to 20 matching products including name, description, brand, pricing, colors, sizes, availability, and imagery.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `page_index` | integer | No | Page number for results |
| `query` | string | Yes | Search keyword (e.g., 'shoes', 'handbags', 'watches') |

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