# Amazon (Singapore) — Wrapped API

> **You are on:** `https://api.beta.paywithlocus.com/api` | [llms.txt](https://beta.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 heavily discounted products on Amazon.sg and instantly access detailed product information including customer reviews to find the best deals. Get real-time pricing, product specifications, and user feedback all in one place to make smarter shopping decisions.

**Category:** E-commerce | **Website:** [amazon.sg/](https://amazon.sg/) | **Docs:** [parse.bot/marketplace/b3e8a03b-7e79-46a0-a8d6-d0baee7b97e6/amazon-sg-api](https://parse.bot/marketplace/b3e8a03b-7e79-46a0-a8d6-d0baee7b97e6/amazon-sg-api)

Pay-per-use API proxy for Locus Pro. Each call burns credits from your workspace balance.

## Access

**Base URL:** `https://api.beta.paywithlocus.com/api/wrapped/credits/amazon-singapore/`
**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 details

Retrieve full product details and customer reviews for a specific ASIN on Amazon.sg. Returns the product title, pricing, and all available customer reviews. Critical reviews (rating <= 3) are returned separately for convenience. Review titles and bodies may be null if Amazon does not render them on the page.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `asin` | string | Yes | Amazon Standard Identification Number for the product (e.g. B0DCGFKHRF). |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/amazon-singapore/get-product-details \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"asin":"<string>"}'
```

### Search discounted products

Search for products on Amazon.sg filtered by minimum discount percentage. Returns a paginated list of products with ASIN, title, price, original price, discount information, rating, and review count. Pagination is page-based; results per page are determined by Amazon (typically ~20 items). Not all products will have discount data populated — some may show null for price/discount fields depending on how Amazon renders the listing.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `min_discount` | integer | No | Minimum discount percentage to filter by. Accepts values from 10 to 90. |
| `page` | integer | No | Page number for pagination. |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/amazon-singapore/search-discounted-products \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"min_discount":"<integer>","page":"<integer>"}'
```

## Next steps

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