# Camelcamelcamel — 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.

> Track Amazon product prices over time and view historical price trends to find the best deals. Search for popular products and access detailed pricing data to make informed purchasing decisions.

**Category:** E-commerce | **Website:** [camelcamelcamel.com/](https://camelcamelcamel.com/) | **Docs:** [parse.bot/marketplace/887bdb14-2889-4486-a776-90f8edba8f0f/camelcamelcamel-com-api](https://parse.bot/marketplace/887bdb14-2889-4486-a776-90f8edba8f0f/camelcamelcamel-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-camelcamelcamel-com-api-887bdb14/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_popular_products

Retrieve a list of popular products currently trending on CamelCamelCamel. Returns deduplicated product entries with names, ASINs, and CamelCamelCamel URLs. The list refreshes periodically based on site activity.

**Estimated cost:** Metered

_No parameters required._

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

### get_product_details

Extract detailed product information, price history, and chart URLs for a given Amazon product. Accepts either a full Amazon product URL or a bare 10-character ASIN code. Returns pricing data from Amazon, 3rd-party new, and 3rd-party used sellers including lowest/highest/average prices. Each seller type in price_history contains lowest_ever, highest_ever, current_price, and average_price fields. Charts are static PNG image URLs for Amazon, new, and used price history graphs.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `url` | string | Yes | Amazon product URL (e.g. https://www.amazon.com/dp/B09TBMHCXL) or a 10-character ASIN code (e.g. B09TBMHCXL). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-camelcamelcamel-com-api-887bdb14/get_product_details \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"<string>"}'
```
