# Iprice — 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 thousands of products across categories and brands on iPrice Malaysia, while discovering flash sales, available stores, and exclusive coupons all in one place. Get detailed product information, explore brand listings, and stay updated with the latest shopping news and deals.

**Category:** E-commerce | **Website:** [iprice.my/](https://iprice.my/) | **Docs:** [parse.bot/marketplace/d03b2f25-6ab9-4b37-a976-82b4aa471384/iprice-my-api](https://parse.bot/marketplace/d03b2f25-6ab9-4b37-a976-82b4aa471384/iprice-my-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-iprice-my-api-d03b2f25/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_all_stores

Retrieve all online stores available on iPrice Malaysia, including store logos and product category tags.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-iprice-my-api-d03b2f25/get_all_stores \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### get_brand_list

Retrieve all available brands as a flat list. Each brand has a name and key identifier usable for product group lookups.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-iprice-my-api-d03b2f25/get_brand_list \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### get_categories

Retrieve all available product categories on iPrice Malaysia. Each category has a key usable in get_products_by_category and get_product_detail.

**Estimated cost:** Metered

_No parameters required._

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

### get_coupons

Retrieve available coupon stores from iPrice Malaysia. Returns a list of stores that have active coupon/promo code pages, with store name, logo, URL, and slug.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-iprice-my-api-d03b2f25/get_coupons \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### get_flash_sale_products

Retrieve current flash sale / hot deal products with countdown timers and original prices. Returns products currently on time-limited discount.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `page` | integer | No | Page number for pagination (1-based) |

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

### get_news_articles

Retrieve the latest tech, AI, and shopping news articles from iPrice Malaysia. Each article includes title, URL, category, publication date, and thumbnail image.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-iprice-my-api-d03b2f25/get_news_articles \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### get_product_detail

Look up a product group by its slug identifier (a category or brand-model key from get_categories or search results). Returns price range across stores and individual product listings. Uses the same response shape as search_products.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `slug` | string | Yes | Product slug identifier (e.g. 'mobile_phone', 'Laptop', 'Air_Conditioner'). Obtain from get_categories data[*].key or search_products list[*].group.catalog_key. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-iprice-my-api-d03b2f25/get_product_detail \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"slug":"<string>"}'
```

### get_products_by_category

Browse products within a specific category. Returns paginated product listings for the given category key. Same response shape as search_products.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `category_key` | string | Yes | Category key from get_categories endpoint (e.g. 'mobile_phone', 'Laptop', 'Air_Conditioner') |
| `page` | integer | No | Page number for pagination (1-based) |

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

### search_products

Full-text search across Malaysian online retailers (Shopee, Lazada, AliExpress, TikTok Shop, etc.). Returns paginated product listings with price, store, shop, and currency for each item. Also includes store-level aggregation in `filter` and a recommended product group when available. 25 items per page.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `page` | integer | No | Page number for pagination (1-based) |
| `query` | string | Yes | Search keyword (e.g. 'laptop', 'iphone 15', 'air conditioner') |

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