# Element14 — 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 Newark (element14)'s electronic components catalog to find product details, pricing, stock levels, and technical documentation. Retrieve specifications, explore categories and manufacturers, and access real-time inventory information to compare components.

**Category:** E-commerce | **Website:** [element14.com/](https://element14.com/) | **Docs:** [parse.bot/marketplace/28b44b15-3d0e-47bc-a40e-adcccdf4f4ea/element14-com-api](https://parse.bot/marketplace/28b44b15-3d0e-47bc-a40e-adcccdf4f4ea/element14-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-element14-com-api-28b44b15/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### browse_categories

List top-level product categories and subcategories from the Newark catalog via GraphQL. Returns navigation categories and catalog categories with child subcategories and product counts.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-element14-com-api-28b44b15/browse_categories \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### get_category_products

Retrieve a paginated list of products within a specific category. Uses the category path slug from browse_categories results. Returns up to 25 products per page.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `category_id` | string | Yes | Category path slug from browse_categories catCategories[*].relativeUrl without leading slash (e.g. 'c/connectors', 'c/passive-components/capacitors') |
| `page` | integer | No | Page number for pagination (1-based) |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-element14-com-api-28b44b15/get_category_products \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"category_id":"<string>","page":"<integer>"}'
```

### get_product_details

Retrieve full details for a single product by its Newark order code (publicId). Returns pricing tiers, technical attributes, attachments, and product metadata via the search GraphQL endpoint.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `public_id` | string | Yes | Newark part/order code (e.g. '97K4809', '38K0327') |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-element14-com-api-28b44b15/get_product_details \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"public_id":"<string>"}'
```

### get_product_pricing_and_stock

Retrieve current pricing tiers and live stock quantity for a product via GraphQL. Returns detailed pricing breakpoints by quantity and warehouse stock levels with delivery estimates.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `public_id` | string | Yes | Newark part/order code (e.g. '97K4809') |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-element14-com-api-28b44b15/get_product_pricing_and_stock \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"public_id":"<string>"}'
```

### get_product_specifications

Extract structured technical specifications for a product. Returns attribute name-value pairs including resistance, power rating, tolerance, package type, and other technical parameters.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `public_id` | string | Yes | Newark part/order code (e.g. '97K4809') |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-element14-com-api-28b44b15/get_product_specifications \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"public_id":"<string>"}'
```

### get_product_technical_docs

Retrieve links to all technical documents (datasheets, product change notices, packaging drawings) associated with a product.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `public_id` | string | Yes | Newark part/order code (e.g. '97K4809') |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-element14-com-api-28b44b15/get_product_technical_docs \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"public_id":"<string>"}'
```

### list_manufacturers

Retrieve the full list of manufacturers available on Newark. Returns manufacturer names and their relative URL paths.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-element14-com-api-28b44b15/list_manufacturers \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### search_products

Full-text search over Newark's electronics catalog by keyword or part number. Returns up to 25 products per page with pricing, specifications, and attachments. Searches that map to a single category are automatically resolved server-side. Paginates via page number.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `page` | integer | No | Page number for pagination (1-based) |
| `query` | string | Yes | Search keyword or part number (e.g. 'resistor 1k', '97K4809') |

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