# Superc — 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 for products and browse categories at Super C, a Canadian grocery chain, then view detailed product information and find nearby store locations by postal code. Get real-time access to pricing, availability, and inventory across Super C's network.

**Category:** Food & Dining | **Website:** [superc.ca/](https://superc.ca/) | **Docs:** [parse.bot/marketplace/5d07ca8a-adeb-47c8-ab2b-128dad36f0a3/superc-ca-api](https://parse.bot/marketplace/5d07ca8a-adeb-47c8-ab2b-128dad36f0a3/superc-ca-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-superc-ca-api-5d07ca8a/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_categories

Retrieve all top-level product categories (Allées) from the Super C website. Returns approximately 23 categories, each with a name, full URL, and slug suitable for get_category_products.

**Estimated cost:** Metered

_No parameters required._

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

### get_category_products

Browse products within a specific category. Returns up to approximately 42 products sorted by price ascending. The category_slug is obtained from get_categories results.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `category_slug` | string | Yes | Category slug from get_categories results[*].slug (e.g. '/allees/fruits-et-legumes'). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-superc-ca-api-5d07ca8a/get_category_products \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"category_slug":"<string>"}'
```

### get_product_details

Fetch full details for a single product by its URL. Returns name, brand, price, format, description, ingredients list, and product attributes. Some fields (description, ingredients, attributes) may be null or empty depending on the product's data availability.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `product_url` | string | Yes | Full product URL or path from search_products results[*].url (e.g. 'https://www.superc.ca/allees/produits-laitiers-et-oeufs/laits-cremes-et-beurres/laits-entiers-et-2/lait-2/p/055872123012'). |

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

### get_store_by_postal_code

Find Super C stores by postal code. Returns the nearest stores ordered by proximity. If no postal code is provided, returns all stores.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `postal_code` | string | No | Canadian postal code (e.g. 'H2X 1Y4'). Omitting returns all stores. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-superc-ca-api-5d07ca8a/get_store_by_postal_code \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"postal_code":"<string>"}'
```

### search_products

Full-text search over Super C's product catalog by keyword. Returns up to approximately 42 products sorted by price ascending (cheapest first). Query matches product names in French or English. Each result includes pricing, format, and a URL suitable for get_product_details.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `query` | string | Yes | Search keyword in French or English (e.g. 'lait', 'pain', 'poulet'). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-superc-ca-api-5d07ca8a/search_products \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query":"<string>"}'
```
