# 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 for Locus Pro. Each call burns credits from your workspace balance.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/credits/99-ranch-market/`
**Auth:** `Authorization: Bearer <LOCUS_CREDITS_SECRET_KEY>` (an `lcr_` secret key or a scoped `lcac_` agent credential)
**Required header:** `Idempotency-Key: <fresh UUID per call>`. A retry with the same key replays the stored result without a new charge.
**Response:** the provider response after any endpoint-specific normalization. `X-Locus-Credits-Charged` carries the charge and `X-Locus-Credits-Balance` the remaining balance. Insufficient credits return `402` before the provider is called.
**Pricing:** estimated costs below are USD. Locus debits the credit equivalent at your workspace rate.

Full call contract: https://docs.paywithlocus.com/api-reference/introduction

> Using a Pay With Locus wallet key (`claw_` prefix)? Wallet routes are documented separately: https://docs.paywithlocus.com/wrapped-apis/for-agents

## 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/credits/99-ranch-market/get-product-detail \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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/credits/99-ranch-market/search-products \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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/credits/99-ranch-market/search-stores \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"distance":"<integer>","zip_code":"<string>"}'
```

## Next steps

- [All wrapped API providers](https://paywithlocus.com/wapi/index.md): pick another provider.
- [Find and call tools](https://paywithlocus.com/agent/tools.md): price ceilings, async results, and errors.
- [Credits and billing](https://paywithlocus.com/agent/billing.md): what a call costs and how to add credits.
- [Agent docs index](https://paywithlocus.com/agent/index.md): every Locus agent page.