# Newegg — 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 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. Each call is automatically billed to your wallet in USDC.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/parse-newegg-com-api-469744d5/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## 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.paywithlocus.com/api/wrapped/parse-newegg-com-api-469744d5/get_category_tree \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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.paywithlocus.com/api/wrapped/parse-newegg-com-api-469744d5/get_product_detail \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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.paywithlocus.com/api/wrapped/parse-newegg-com-api-469744d5/get_product_qna \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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.paywithlocus.com/api/wrapped/parse-newegg-com-api-469744d5/get_product_reviews \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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.paywithlocus.com/api/wrapped/parse-newegg-com-api-469744d5/get_product_specifications \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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.paywithlocus.com/api/wrapped/parse-newegg-com-api-469744d5/get_shell_shocker_deals \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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.paywithlocus.com/api/wrapped/parse-newegg-com-api-469744d5/search_products \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"category_id":"<string>","order":"<string>","page":"<integer>","page_size":"<string>","query":"<string>"}'
```
