# Allmodern — 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 for modern furniture, lighting, and decor products on AllModern with flexible sorting and pagination options. Browse through curated results to find the perfect pieces for your home.

**Category:** E-commerce | **Website:** [allmodern.com/](https://allmodern.com/) | **Docs:** [parse.bot/marketplace/6f0aa8a7-8953-477d-a4eb-db3d1d8eb193/allmodern-com-api](https://parse.bot/marketplace/6f0aa8a7-8953-477d-a4eb-db3d1d8eb193/allmodern-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-allmodern-com-api-6f0aa8a7/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### search_products

Search for products by keyword on AllModern. Returns product listings with name, price, rating, reviews, images, and URLs. Results are paginated with 48 products per page.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `page` | integer | No | Page number for pagination. |
| `query` | string | Yes | Search keyword (e.g. 'sofa', 'lamp', 'rug', 'desk') |
| `sort_by` | string | No | Sort order. Accepted values: 'price_low', 'price_high', 'top_rated', 'most_popular', 'newest'. Omitting returns default recommended order. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-allmodern-com-api-6f0aa8a7/search_products \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"page":"<integer>","query":"<string>","sort_by":"<string>"}'
```
