> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mindcase.co/llms.txt
> Use this file to discover all available pages before exploring further.

# eBay Sold Items API

> Get recent sold eBay listings for any product search: what each item actually sold for, the buyer protection fee and shipping where shown, the total, the sold date, condition, sale type and the seller, on 17 eBay marketplaces.

`POST /v1/data/ebay/sold/run`

**Pricing:** $0.01 per listing ($10.00 per 1,000).

## Request

Send the inputs under `params`. Only the keys below are accepted; any other key returns `422 invalid_params`.

**keywords** `string` *required*

Product words a buyer would type, e.g. 'nintendo switch oled'. One search per run. Listings of a different model than the one you name (iPhone 12 for 'iphone 13') are left out. A web address is not accepted.

**marketplace** `string` (default: com)

Which eBay site to search. Prices come in that site's currency, and condition and location labels in its language. eBay.com by default.

Allowed values: `com` (eBay.com (US, USD)), `co.uk` (eBay.co.uk (UK, GBP)), `de` (eBay.de (Germany, EUR)), `fr` (eBay.fr (France, EUR)), `it` (eBay.it (Italy, EUR)), `es` (eBay.es (Spain, EUR)), `ca` (eBay.ca (Canada, CAD)), `com.au` (eBay.com.au (Australia, AUD)), `nl` (eBay.nl (Netherlands, EUR)), `at` (eBay.at (Austria, EUR)), `ch` (eBay.ch (Switzerland, CHF)), `ie` (eBay.ie (Ireland, EUR)), `pl` (eBay.pl (Poland, PLN)), `com.hk` (eBay.com.hk (Hong Kong, HKD)), `com.my` (eBay.com.my (Malaysia, MYR)), `ph` (eBay.ph (Philippines, PHP)), `com.sg` (eBay.com.sg (Singapore, SGD)).

**days** `integer` (default: 30)

Only sales from the last N days (whole days, UTC). Last 30 days by default; eBay keeps about 90 days of sold listings.

Min `1`.

**maxResults** `integer` (default: 100)

How many sold listings to return in total. Defaults to 100; use 0 for all.

## Example

```bash cURL theme={null}
curl -X POST "https://api.mindcase.co/v1/data/ebay/sold/run?wait=true" \
  -H "Authorization: Bearer $MINDCASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "params": {
    "keywords": "nintendo switch oled",
    "maxResults": 10
  }
}'
```

```python Python theme={null}
import os, requests

r = requests.post(
    "https://api.mindcase.co/v1/data/ebay/sold/run",
    params={"wait": "true"},
    headers={"Authorization": f"Bearer {os.environ['MINDCASE_API_KEY']}"},
    json={"params": {
    "keywords": "nintendo switch oled",
    "maxResults": 10
}},
)
job = r.json()
rows = job.get("data", [])  # if job["status"] == "running", poll /v1/jobs/{job_id}/results
```

```javascript Node.js theme={null}
const r = await fetch("https://api.mindcase.co/v1/data/ebay/sold/run?wait=true", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.MINDCASE_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({ params: {
  "keywords": "nintendo switch oled",
  "maxResults": 10
} }),
});
const job = await r.json();
const rows = job.data ?? []; // if job.status === "running", poll /v1/jobs/{job_id}/results
```

## Response fields

Each row in `data` is one listing, keyed by these fields.

| Field | Name | Type |
| - | - | - |
| `itemId` | Item ID | text |
| `title` | Title | text |
| `url` | URL | url |
| `marketplace` | Marketplace | text |
| `soldPrice` | Sold Price | number |
| `currency` | Currency | text |
| `buyerProtectionFee` | Buyer Protection Fee | number |
| `shippingPrice` | Shipping Price | number |
| `totalPrice` | Total Price | number |
| `soldDate` | Sold Date | date |
| `condition` | Condition | text |
| `listingType` | Listing Type | text |
| `bestOfferAccepted` | Best Offer Accepted | boolean |
| `bidCount` | Bid Count | number |
| `categoryId` | Category ID | text |
| `categoryName` | Category Name | text |
| `itemLocation` | Item Location | text |
| `sellerType` | Seller Type | text |
| `mainImage` | Main Image | url |
| `seller` | Seller | object |

## Example response

Abridged: long text and lists are shortened.

```json theme={null}
{
  "job_id": "7f3a1c2e-0b9d-4c55-9a51-3f2e8d1b6a40",
  "agent": "ebay/sold",
  "status": "completed",
  "row_count": 1,
  "truncated": false,
  "data": [
    {
      "itemLocation": "Located in United States",
      "soldDate": "2026-11-01",
      "condition": "Pre-Owned",
      "sellerType": null,
      "marketplace": "ebay.com",
      "categoryId": "139971",
      "bestOfferAccepted": false,
      "itemId": "158358799498",
      "mainImage": "https://i.ebayimg.com/images/g/0dcAAeSw1MJqutnJ/s-l225.jpg",
      "totalPrice": 207.09,
      "soldPrice": 199.99,
      "categoryName": "Video Game Consoles",
      "seller": {
        "username": "smu125",
        "feedbackScore": 18,
        "feedbackPercent": 80,
        "isStore": false
      },
      "url": "https://www.ebay.com/itm/158358799498",
      "buyerProtectionFee": null,
      "bidCount": null,
      "listingType": "buy_it_now",
      "title": "Nintendo Switch OLED 64GB White Joy-Con, split pad pro controller, Dock, Case!",
      "currency": "USD",
      "shippingPrice": 7.1
    }
  ]
}
```

## Related APIs

For live listings currently for sale use [`ebay/listings`](https://docs.mindcase.co/apis/ebay/listings).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.