# eBay (United Kingdom) — 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 eBay UK listings and sold items to find products, compare prices, and view seller feedback and ratings. Access detailed item information, explore categories, and discover daily deals all in one place.

**Category:** Marketplaces | **Website:** [ebay.co.uk/](https://ebay.co.uk/) | **Docs:** [parse.bot/marketplace/f47d2279-9681-4544-9781-ba8791a26136/ebay-co-uk-api](https://parse.bot/marketplace/f47d2279-9681-4544-9781-ba8791a26136/ebay-co-uk-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/ebay-united-kingdom/`
**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 all categories

Get all top-level eBay UK categories and their subcategories with IDs and URLs. Returns a hierarchical structure of categories, each containing subcategories with their own children. No input parameters required.

**Estimated cost:** Metered

_No parameters required._

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

### Get daily deals

Get current eBay UK daily deals and promotions. Returns an array of deal items with title, price, original price (when available), and URL. No input parameters required.

**Estimated cost:** Metered

_No parameters required._

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

### Get item details

Get full details for a specific eBay item by its numeric item ID. Returns title, price, condition, item specifics (brand, model, etc.), seller username, and image URLs. Returns input_not_found if the item does not exist.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `item_id` | string | Yes | eBay item ID (numeric string, 10-14 digits) |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/ebay-united-kingdom/get-item-details \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"item_id":"<string>"}'
```

### Get seller feedback

Get a seller's feedback profile including positive feedback percentage and recent feedback comments with associated items. Returns input_not_found if the seller username does not exist.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `username` | string | Yes | eBay seller username |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/ebay-united-kingdom/get-seller-feedback \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"username":"<string>"}'
```

### Search listings

Search for active product listings on eBay UK by keyword. Returns paginated results including title, price, condition, item ID, URL, and shipping info. Results are ordered by eBay's default Best Match algorithm. Each page returns up to ~60 items.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `category_id` | string | No | eBay category ID to filter results. 0 searches all categories. |
| `page` | integer | No | Page number for pagination (1-based) |
| `query` | string | Yes | Search keyword or phrase |

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

### Search sold listings

Search for sold/completed product listings on eBay UK. Useful for price history and market analysis. Returns items that have already been sold with their final selling price. Paginated, up to ~60 items per page.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `page` | integer | No | Page number for pagination (1-based) |
| `query` | string | Yes | Search keyword or phrase |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/ebay-united-kingdom/search-sold-listings \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"page":"<integer>","query":"<string>"}'
```

### Search sold psa cards

Specialized search for sold PSA-graded trading cards on eBay UK. Searches completed/sold listings and filters results to only include items with PSA in the title. Useful for tracking PSA card prices and market trends.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `card_name` | string | No | Card name and PSA grade to search for (e.g. 'Charizard PSA 10', 'Pikachu PSA 10') |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/ebay-united-kingdom/search-sold-psa-cards \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"card_name":"<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.