# Anker — 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 Anker products to find prices, images, variants, and availability information directly from their online store. Get detailed product specifications to compare items and make informed purchasing decisions.

**Category:** E-commerce | **Website:** [www.anker.com/](https://www.anker.com/) | **Docs:** [parse.bot/marketplace/06a979dd-b2ab-4772-a4ed-b2e654b29391/anker-com-api](https://parse.bot/marketplace/06a979dd-b2ab-4772-a4ed-b2e654b29391/anker-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-anker-com-api-06a979dd/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_product

Retrieve full details for a specific Anker product by its handle (URL slug). Returns complete product information including all variants with inventory levels, HTML description, SEO metadata, and timestamps. The handle is available in search results as `products[*].handle`.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `handle` | string | Yes | Product handle/slug from the URL path (e.g. 'a2656' from anker.com/products/a2656). Available in search_products results as products[*].handle. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-anker-com-api-06a979dd/get_product \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"handle":"<string>"}'
```

### search_products

Full-text search over Anker's product catalog. `query` matches product titles, descriptions, and tags. `sort` controls result ordering. Paginates via cursor (`after`). Each ProductSummary exposes a `.details()` navigation to the full Product.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `after` | string | No | Cursor for next page pagination (from end_cursor in previous response) |
| `limit` | integer | No | Number of results per page (1-50) |
| `query` | string | No | Search keyword |
| `sort` | string | No | Sort order for results |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-anker-com-api-06a979dd/search_products \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"after":"<string>","limit":"<integer>","query":"<string>","sort":"<string>"}'
```
