# Gcc Luluhypermarket — 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 Lulu Hypermarket's complete product catalog from your app, including categories, product details, brands, and lifestyle collections. Get real-time access to pricing, availability, and trending searches to help users find exactly what they need from the UAE's leading online grocery and retail store.

**Category:** E-commerce | **Website:** [gcc.luluhypermarket.com/](https://gcc.luluhypermarket.com/) | **Docs:** [parse.bot/marketplace/7986854b-068d-43f6-b831-28f76551639c/gcc-luluhypermarket-com-api](https://parse.bot/marketplace/7986854b-068d-43f6-b831-28f76551639c/gcc-luluhypermarket-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-gcc-luluhypermarket-com-api-7986854b/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_categories

Returns all top-level categories available on the site. Category slugs can be used with get_products_by_category to browse products.

**Estimated cost:** Metered

_No parameters required._

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

### get_product_details

Returns full product details by product PK (internal ID). Includes description, images, bullet points, and variants.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `pk` | string | Yes | Product PK (internal ID, e.g. '260', '32822') |

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

### get_products_by_brand

Returns products filtered by brand name. Supports pagination with up to 20 products per page.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `brand` | string | Yes | Brand name (e.g. 'Almarai', 'Al Ain Farms', 'Nestle') |
| `page` | integer | No | Page number for pagination |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-gcc-luluhypermarket-com-api-7986854b/get_products_by_brand \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"brand":"<string>","page":"<integer>"}'
```

### get_products_by_category

Returns products for a given category or subcategory slug. Top-level category slugs (e.g. 'grocery', 'fresh-food') return featured products without pagination. Subcategory slugs (e.g. 'grocery-food-cupboard', 'fresh-food-dairy-eggs-cheese') support pagination with up to 50 products per page.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `category_slug` | string | Yes | Category or subcategory URL slug from get_categories or the site (e.g. 'grocery', 'fresh-food', 'grocery-food-cupboard', 'electronics') |
| `page` | integer | No | Page number for pagination. Only effective for subcategory slugs. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-gcc-luluhypermarket-com-api-7986854b/get_products_by_category \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"category_slug":"<string>","page":"<integer>"}'
```

### get_products_by_lifestyle

Returns products filtered by lifestyle/product type tag. Supports pagination with up to 20 products per page.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `lifestyle` | string | Yes | Lifestyle/product type filter (e.g. 'organic', 'vegan', 'gluten_free') |
| `page` | integer | No | Page number for pagination |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-gcc-luluhypermarket-com-api-7986854b/get_products_by_lifestyle \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"lifestyle":"<string>","page":"<integer>"}'
```

### get_trending_searches

Returns currently trending searches on the site.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-gcc-luluhypermarket-com-api-7986854b/get_trending_searches \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### search_products

Searches for products by text query. Returns up to 20 products per page with pagination info.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `page` | integer | No | Page number for pagination |
| `query` | string | Yes | Search keyword (e.g. 'milk', 'rice', 'chocolate') |

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