# Egecarpets — 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 Ege Carpets' complete product catalog and retrieve detailed specifications for any carpet, including materials, weight, structure, backing options, and available colors. Find exactly what you need by searching their inventory and accessing comprehensive product information to compare and make informed purchasing decisions.

**Category:** E-commerce | **Website:** [www.egecarpets.com/en-gb/products/all-products](https://www.egecarpets.com/en-gb/products/all-products) | **Docs:** [parse.bot/marketplace/e1348b4f-804e-4d07-9917-25d174654410/egecarpets-com-api](https://parse.bot/marketplace/e1348b4f-804e-4d07-9917-25d174654410/egecarpets-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-egecarpets-com-api-e1348b4f/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_product_details

Get detailed product information including full specifications (material, weight, structure, backing), available colors with design IDs, and available product types. Uses the product path from list_products results. Each product page is a separate fetch — plan for N+1 if iterating over a list.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `product_path` | string | Yes | Product URL path from the 'path' field in list_products results (e.g. '/en-gb/product/rugs/HIGHLINE-Industrial--Landscape-Tide-Grey-RF55951054'). |

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

### list_products

List carpet products from Ege Carpets with pagination and optional filtering. Returns product summaries including name, design ID, product type, color, concept, collection, designer, and available color variants. Supports filtering by collection, concept, and product type. Results are paginated via skip/take parameters. The total catalog is ~900 products; content results (non-product items) are excluded from the returned array.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `collection` | string | No | Filter by collection name (e.g. 'A New Wave', 'Abstract', 'Industrial Landscape', 'Memory', 'Spectrum'). |
| `concept` | string | No | Filter by concept name. |
| `product_type` | string | No | Filter by product type. |
| `search_term` | string | No | Free-text search term to filter products by name or design. |
| `skip` | integer | No | Number of products to skip for pagination. |
| `sort_by` | string | No | Sort order for results. |
| `take` | integer | No | Number of products to return per page (max 60). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-egecarpets-com-api-e1348b4f/list_products \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"collection":"<string>","concept":"<string>","product_type":"<string>","search_term":"<string>","skip":"<integer>","sort_by":"<string>","take":"<integer>"}'
```
