# Hanes — 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 Hanes clothing products across categories like men's, women's, and sale items, and retrieve detailed information including sizes, colors, and real-time availability. Find exactly what you're looking for with product variants and comprehensive details to compare options before purchase.

**Category:** E-commerce | **Website:** [hanes.com/](https://hanes.com/) | **Docs:** [parse.bot/marketplace/a5c5f8c9-21f7-4830-a1bd-3d3776e5cbd8/hanes-com-api](https://parse.bot/marketplace/a5c5f8c9-21f7-4830-a1bd-3d3776e5cbd8/hanes-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-hanes-com-api-a5c5f8c9/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_category_products

Retrieve products in a specific category by path. Category paths correspond to site navigation segments (e.g. 'men', 'women', 'socks/socks/crew', 'sale'). Returns paginated results with product details, facets for filtering, and pagination info.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `category_path` | string | Yes | The category path (e.g. 'men', 'women', 'socks/socks/crew', 'sale'). |
| `page` | integer | No | Page number. |
| `page_size` | integer | No | Number of items per page. |
| `sort` | string | No | Sort attribute. |
| `sort_direction` | string | No | Sort direction. |

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

### get_men_products

List products for men, optionally filtered by subcategory path. Shortcut for get_category_products with category_path defaulting to 'men'. Returns paginated results with product details, facets, and pagination info.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `page` | integer | No | Page number. |
| `subcategory` | string | No | Subcategory path (e.g. 'men', 'men/underwear'). |

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

### get_product_availability

Get product availability and variant information for a product by SKU. Returns the same combined catalog and inventory data as get_product_details. Use when the primary concern is stock status and variant availability.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `sku` | string | Yes | Product SKU (e.g. 'PBS184', 'LT9020'). |

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

### get_product_details

Get full details for a single product by SKU, including HTML description, product attributes (brand, fabric, gender, country of origin), all images, configurable options, price range, and variant-level stock status and pricing. The response combines catalog metadata with live inventory data.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `sku` | string | Yes | Product SKU (e.g. 'PBS184', 'LT9020'). |

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

### get_sale_products

List products currently on sale. Returns paginated results with product details, facets, and pagination info. Sale items show discounted final prices relative to their regular prices.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `page` | integer | No | Page number. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-hanes-com-api-a5c5f8c9/get_sale_products \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"page":"<integer>"}'
```

### get_women_products

List products for women, optionally filtered by subcategory path. Shortcut for get_category_products with category_path defaulting to 'women'. Returns paginated results with product details, facets, and pagination info.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `page` | integer | No | Page number. |
| `subcategory` | string | No | Subcategory path (e.g. 'women', 'women/bras'). |

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

### search_products

Full-text search over all Hanes products by keyword. Results include product name, SKU, URL, images, price range, and configurable options (color/size). Paginates via integer page counter. Facets for gender, size, and color family are returned alongside items for client-side filtering UI. Sort by relevance, price, or position.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `page` | integer | No | Page number. |
| `page_size` | integer | No | Number of items per page. |
| `query` | string | Yes | Search keyword. |
| `sort` | string | No | Sort attribute. |
| `sort_direction` | string | No | Sort direction. |

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