# Newegg — 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 Newegg's product catalog and retrieve listings, specifications, customer reviews, Q&A, category trees, and daily deals.

**Category:** E-commerce | **Website:** [newegg.com/](https://newegg.com/) | **Docs:** [parse.bot/marketplace/469744d5-50e2-4710-b146-b8fa36b8863e/newegg-com-api](https://parse.bot/marketplace/469744d5-50e2-4710-b146-b8fa36b8863e/newegg-com-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/newegg/`
**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 category tree

Retrieve the full hierarchical category tree of Newegg including all top-level stores (Components & Storage, Computer Systems, etc.) and their nested subcategories. Each node has StoreId, StoreName, StoreType, and nested SubLeafInfo arrays. Use StoreId values as category_id in search_products.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/newegg/get-category-tree \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### Get product detail

Fetch detailed product information by item number via Newegg's real-time product API. Returns title, brand, price, availability, key specifications (from ViewDescription), and full-resolution image URLs. For full technical specifications organized by section, use get_product_specifications.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `item_number` | string | Yes | Newegg item number (e.g. N82E16834840673, found in search results or product URL) |

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

### Get product qna

Fetch Questions and Answers for a product. Returns paginated Q&A data with question text, answers, and vote counts. Uses offset-based pagination via start parameter.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `item_number` | string | Yes | Newegg item number |
| `size` | string | No | Number of results per page |
| `start` | string | No | Starting index for pagination |

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

### Get product reviews

Fetch paginated customer reviews for a product. Returns review list with ratings, titles, comments, pros/cons, along with aggregate statistics (total count, page count, average rating).

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `item_number` | string | Yes | Newegg item number |
| `page` | integer | No | Page number |

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

### Get product specifications

Fetch the full technical specifications for a product, organized by sections (e.g. CPU, Display, Graphics, Memory, Storage). Returns all specification tables from the product page. More detailed than get_product_detail's Quick Info section.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `item_number` | string | Yes | Newegg item number |

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

### Get shell shocker deals

Fetch current Shell Shocker daily deals from Newegg. Returns today's featured deal items with pricing, images, descriptions, and availability. Deals rotate daily.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/newegg/get-shell-shocker-deals \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### Search products

Full-text search across Newegg product listings. Returns paginated results with product summaries including title, price, brand, availability, and thumbnail. Supports sorting by featured, price, rating, reviews, or best-selling. Each page returns up to page_size items (default 36). The category_id parameter (Newegg's N value) narrows results to a specific category tree node.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `category_id` | string | No | Category/Filter node ID (N parameter from get_category_tree) |
| `order` | string | No | Sort order |
| `page` | integer | No | Page number |
| `page_size` | string | No | Results per page |
| `query` | string | Yes | Search keyword or phrase |

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

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