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

> Get realistic fake data for products, users, and shopping carts to test your application without needing a real backend. Search for specific products, retrieve individual product details, browse user profiles, and access shopping cart information—all perfect for prototyping and development.

**Category:** Developer Tools | **Website:** [dummyjson.com/](https://dummyjson.com/) | **Docs:** [parse.bot/marketplace/1e5d30f6-766b-4696-8672-b4934f95ff09/dummyjson-com-api](https://parse.bot/marketplace/1e5d30f6-766b-4696-8672-b4934f95ff09/dummyjson-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-dummyjson-com-api-1e5d30f6/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_product

Get full details of a single product by its numeric ID. Returns comprehensive information including price, rating, stock level, dimensions, reviews, warranty, shipping, and return policy.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `product_id` | string | Yes | Numeric product ID (e.g. 1, 42, 100). |

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

### list_carts

List shopping carts with pagination via skip/limit offsets. Optionally filter by user_id to get carts belonging to a specific user. Each cart includes products with quantities, prices, and discount information.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `limit` | integer | No | Maximum number of carts to return per page (ignored when user_id is provided). |
| `skip` | integer | No | Number of carts to skip for pagination (ignored when user_id is provided). |
| `user_id` | string | No | Numeric user ID to filter carts by owner. Omitting returns all carts. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-dummyjson-com-api-1e5d30f6/list_carts \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"limit":"<integer>","skip":"<integer>","user_id":"<string>"}'
```

### list_users

List users with pagination via skip/limit offsets. Returns user profiles including name, contact information, company, and address details.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `limit` | integer | No | Maximum number of users to return per page. |
| `skip` | integer | No | Number of users to skip for pagination. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-dummyjson-com-api-1e5d30f6/list_users \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"limit":"<integer>","skip":"<integer>"}'
```

### search_products

Search or list products. When query is provided, performs full-text search across product titles and descriptions. Without query, returns all products paginated. Each product includes price, rating, stock, dimensions, and category. Paginates via skip/limit offsets.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `limit` | integer | No | Maximum number of products to return per page. |
| `query` | string | No | Search term to match against product title and description. Omitting returns all products. |
| `skip` | integer | No | Number of products to skip for pagination. |

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