# Smartprix — 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 compare smartphones, tablets, and laptops across Indian retailers with detailed specifications, price history, and real-time deal information. Get the latest tech news and track product prices over time to find the best buying opportunities.

**Category:** E-commerce | **Website:** [smartprix.com/](https://smartprix.com/) | **Docs:** [parse.bot/marketplace/d9cc80a6-c67d-43fb-8cd0-cf118d90f811/smartprix-com-api](https://parse.bot/marketplace/d9cc80a6-c67d-43fb-8cd0-cf118d90f811/smartprix-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-smartprix-com-api-d9cc80a6/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_deals

Get current deals and discounted products. Returns paginated deal listings with price drop information, store details, and expiration times.

**Estimated cost:** Metered

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

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

### get_news_articles

Get latest tech news and reviews from the Smartprix blog. Returns paginated articles with title, description, author, categories, and publication timestamps.

**Estimated cost:** Metered

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

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

### get_smartphone_details

Get comprehensive details for a smartphone, including full technical specifications, variants, price comparison across stores, gallery images, FAQs, reviews, and related products. The slug is the product URL path from search results.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `slug` | string | Yes | Product URL slug from search results (e.g. '/mobiles/samsung-galaxy-s25-ultra-ppd1p8z4fzt4'). |

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

### get_smartphone_price_history

Get historical price data for a product. Returns compressed price history with average price, min/max bounds, and day-offset price deltas over the requested time range.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `pid` | string | Yes | Product ID (e.g. 'pd1p8z4fzt4'). Available from search_smartphones results. |
| `range` | string | No | Time range for history. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-smartprix-com-api-d9cc80a6/get_smartphone_price_history \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"pid":"<string>","range":"<string>"}'
```

### list_brands

List all smartphone brands available on the site with product counts. Returns the complete brand catalog with slugs usable as the brand filter in search_smartphones.

**Estimated cost:** Metered

_No parameters required._

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

### list_laptops

List laptops available on the site. Returns paginated product listings with pricing, ratings, specs scores, and store availability.

**Estimated cost:** Metered

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

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

### list_tablets

List tablets available on the site. Returns paginated product listings with pricing, ratings, specs scores, and store availability.

**Estimated cost:** Metered

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

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

### search_smartphones

Search for smartphones with optional filters like brand, price range, and sort order. Returns paginated product listings. Sort cannot be combined with the query parameter; when both are provided, results may be empty. Without any filters, returns the default popularity-sorted listing of all mobiles.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `brand` | string | No | Brand slug to filter by (e.g. 'samsung', 'apple', 'oneplus'). Use slug format from list_brands endpoint. |
| `max_price` | integer | No | Maximum price filter in INR. |
| `min_price` | integer | No | Minimum price filter in INR. |
| `page` | integer | No | Page number for pagination. |
| `query` | string | No | Search keyword. Cannot be combined with sort. |
| `sort` | string | No | Sort order for results. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-smartprix-com-api-d9cc80a6/search_smartphones \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"brand":"<string>","max_price":"<integer>","min_price":"<integer>","page":"<integer>","query":"<string>","sort":"<string>"}'
```
