# 99 Ranch Market — 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 Asian groceries from 99 Ranch Market to find specific products, compare details, and check availability across their inventory. Get comprehensive product information including pricing, descriptions, and store availability to help you plan your shopping trips.

**Category:** Food & Dining | **Website:** [www.99ranch.com/](https://www.99ranch.com/) | **Docs:** [parse.bot/marketplace/d8458543-ca10-4ccf-8a6d-c4fa953cfc83/99ranch-com-api](https://parse.bot/marketplace/d8458543-ca10-4ccf-8a6d-c4fa953cfc83/99ranch-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-99ranch-com-api-d8458543/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_product_detail

Retrieve detailed information for a single product by its ID, including all variant options, images, ratings, and category hierarchy.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `product_id` | string | Yes | Numeric product ID from search results (e.g. from search_products.products[*].product_id). |
| `store_id` | string | No | Store identifier that determines product availability and pricing. Defaults to the Monterey Park, CA store. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-99ranch-com-api-d8458543/get_product_detail \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"product_id":"<string>","store_id":"<string>"}'
```

### search_products

Full-text search over the 99 Ranch Market product catalog. Returns paginated results with product name, brand, price, weight, availability, and image. Results are scoped to a specific store (by store_id) and default to in-stock items only. Results are auto-iterated across pages.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `keyword` | string | Yes | Search query to match against product names and descriptions. |
| `page` | integer | No | Page number for pagination, 1-based. |
| `page_size` | integer | No | Number of products per page, maximum 28. |
| `store_id` | string | No | Store identifier that determines product availability and pricing. Defaults to the Monterey Park, CA store. |
| `zip_code` | string | No | 5-digit US ZIP code for store selection context. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-99ranch-com-api-d8458543/search_products \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"keyword":"<string>","page":"<integer>","page_size":"<integer>","store_id":"<string>","zip_code":"<string>"}'
```

### search_stores

Search for 99 Ranch Market store locations by ZIP code and radius distance. Returns stores sorted by proximity, including address, contact info, coordinates, and online/offline availability status.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `distance` | integer | No | Search radius in miles from the ZIP code center. |
| `zip_code` | string | Yes | 5-digit US ZIP code to search around. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-99ranch-com-api-d8458543/search_stores \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"distance":"<integer>","zip_code":"<string>"}'
```
