# 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 for Locus Pro. Each call burns credits from your workspace balance.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/credits/element14/`
**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

### 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/credits/element14/browse-categories \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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/credits/element14/get-category-products \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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/credits/element14/get-product-details \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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/credits/element14/get-product-pricing-and-stock \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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/credits/element14/get-product-specifications \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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/credits/element14/get-product-technical-docs \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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/credits/element14/list-manufacturers \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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/credits/element14/search-products \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"page":"<integer>","query":"<string>"}'
```

## Next steps

- [All wrapped API providers](https://paywithlocus.com/wapi/index.md): pick another provider.
- [Find and call tools](https://paywithlocus.com/agent/tools.md): price ceilings, async results, and errors.
- [Credits and billing](https://paywithlocus.com/agent/billing.md): what a call costs and how to add credits.
- [Agent docs index](https://paywithlocus.com/agent/index.md): every Locus agent page.