# Pullandbear — 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 Pull & Bear's complete product catalog across all categories, view detailed product information, and discover store locations. Find exactly what you're looking for with powerful search functionality and organized category navigation.

**Category:** E-commerce | **Website:** [www.pullandbear.com/](https://www.pullandbear.com/) | **Docs:** [parse.bot/marketplace/11658cbd-bd50-4599-b16c-b9573922e799/pullandbear-com-api](https://parse.bot/marketplace/11658cbd-bd50-4599-b16c-b9573922e799/pullandbear-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-pullandbear-com-api-11658cbd/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_categories

Get the full category tree for the Pull & Bear catalog. Returns a hierarchical structure with Woman, Man, and Landing sections, each containing nested subcategories. Category IDs from the response can be used with get_category_products to retrieve products.

**Estimated cost:** Metered

_No parameters required._

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

### get_category_products

Get products listed in a specific category. Returns product summaries with the same structure as search_products. Use category IDs obtained from get_categories (leaf categories with DISPLAY_CONTENT attribute work best).

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `category_id` | string | Yes | Category ID from get_categories response (e.g. '1030204693' for Women's Jeans See All). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-pullandbear-com-api-11658cbd/get_category_products \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"category_id":"<string>"}'
```

### get_product_details

Get full product details by product ID. Returns comprehensive product information including description, reference, all available colors with per-size availability and pricing, material composition, care instructions, and all product images. The product_id comes from search_products or get_category_products results.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `product_id` | string | Yes | Numeric product ID (e.g. '753545375' from search_products results). |

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

### get_stores

Find nearby Pull & Bear physical stores by geographic coordinates. Searches within a 100km radius and returns store locations with address, city, country, phone numbers, store type, opening hours, and operational status.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `lat` | string | Yes | Latitude coordinate (e.g. '40.7128' for New York City). |
| `lng` | string | Yes | Longitude coordinate (e.g. '-74.006' for New York City). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-pullandbear-com-api-11658cbd/get_stores \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"lat":"<string>","lng":"<string>"}'
```

### search_products

Search products by keyword within a section (woman or man). Returns paginated results with product names, prices, availability by size, color options, and images. Each result includes a product_id that can be used with get_product_details.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `limit` | integer | No | Maximum number of products to return per request. |
| `offset` | integer | No | Pagination offset (0-based index of the first result to return). |
| `query` | string | Yes | Search term (e.g. 'jacket', 'jeans', 't-shirt'). |
| `section` | string | No | Product section to search within. Omitting defaults to 'woman'. |

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