> ## 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 Listings API

> eBay listings with title, item URL, marketplace, search rank, price and currency. Search by keyword or pass listing URLs.

`POST /v1/data/ebay/listings/run`

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

## Ways to call it

* **Search Keywords**: set `queries` (optional: `marketplace`, `maxResults`)
* **URLs**: set `urls` (optional: `marketplace`, `maxResults`)

## Request

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

**queries** `string[]`

One or more search keywords. One request reads them all.

**urls** `string[]`

One or more urls. One request reads them all.

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

Marketplace to use. ebay.com 🇺🇸 (USD) by default.

Allowed values: `ebay.com` (ebay.com 🇺🇸 (USD)), `ebay.co.uk` (ebay.co.uk 🇬🇧 (GBP)), `ebay.de` (ebay.de 🇩🇪 (EUR)), `ebay.fr` (ebay.fr 🇫🇷 (EUR)), `ebay.it` (ebay.it 🇮🇹 (EUR)), `ebay.es` (ebay.es 🇪🇸 (EUR)), `ebay.ca` (ebay.ca 🇨🇦 (CAD)), `ebay.com.au` (ebay.com.au 🇦🇺 (AUD)), `ebay.nl` (ebay.nl 🇳🇱 (EUR)), `ebay.at` (ebay.at 🇦🇹 (EUR)), `ebay.ch` (ebay.ch 🇨🇭 (CHF)), `ebay.ie` (ebay.ie 🇮🇪 (EUR)), `ebay.pl` (ebay.pl 🇵🇱 (PLN)), `ebay.com.hk` (ebay.com.hk 🇭🇰 (HKD)), `ebay.com.my` (ebay.com.my 🇲🇾 (MYR)), `ebay.ph` (ebay.ph 🇵🇭 (PHP)), `ebay.com.sg` (ebay.com.sg 🇸🇬 (SGD)).

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

How many 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/listings/run?wait=true" \
  -H "Authorization: Bearer $MINDCASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "params": {
    "queries": [
      "lego 75192"
    ],
    "marketplace": "ebay.co.uk",
    "maxResults": 10
  }
}'
```

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

r = requests.post(
    "https://api.mindcase.co/v1/data/ebay/listings/run",
    params={"wait": "true"},
    headers={"Authorization": f"Bearer {os.environ['MINDCASE_API_KEY']}"},
    json={"params": {
    "queries": [
        "lego 75192"
    ],
    "marketplace": "ebay.co.uk",
    "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/listings/run?wait=true", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.MINDCASE_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({ params: {
  "queries": [
    "lego 75192"
  ],
  "marketplace": "ebay.co.uk",
  "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 |
| `itemUrl` | Item URL | url |
| `marketplace` | Marketplace | text |
| `searchRank` | Search Rank | number |
| `price` | Price | number |
| `currency` | Currency | text |
| `listPrice` | List Price | number |
| `discount` | Discount | text |
| `shippingPrice` | Shipping Price | number |
| `shippingText` | Shipping Text | text |
| `condition` | Condition | text |
| `listingType` | Listing Type | text |
| `buyItNowAvailable` | Buy It Now Available | boolean |
| `bestOfferAvailable` | Best Offer Available | boolean |
| `bidCount` | Bid Count | number |
| `auctionEnds` | Auction Ends | datetime |
| `quantityAvailable` | Quantity Available | number |
| `watchCount` | Watch Count | number |
| `categoryId` | Category ID | text |
| `categoryName` | Category Name | text |
| `itemLocation` | Item Location | text |
| `rating` | Rating | rating |
| `ratingsCount` | Ratings Count | number |
| `sellerName` | Seller Name | text |
| `sellerFeedbackScore` | Seller Feedback Score | number |
| `sellerFeedbackPercent` | Seller Feedback Percent | percentage |
| `sellerIsStore` | Seller Is Store | boolean |
| `sponsored` | Sponsored | boolean |
| `freeReturns` | Free Returns | boolean |
| `authenticityGuarantee` | Authenticity Guarantee | boolean |
| `hasVariations` | Has Variations | boolean |
| `mainImage` | Main Image | url |

## Example response

Abridged: long text and lists are shortened.

```json theme={null}
{
  "job_id": "7f3a1c2e-0b9d-4c55-9a51-3f2e8d1b6a40",
  "agent": "ebay/listings",
  "status": "completed",
  "row_count": 1,
  "truncated": false,
  "data": [
    {
      "itemLocation": null,
      "rating": 5,
      "itemUrl": "https://www.ebay.co.uk/itm/198705966192",
      "sellerName": "walltowallventure",
      "shippingPrice": 58.97,
      "condition": "Pre-owned",
      "marketplace": "ebay.co.uk",
      "categoryId": "19006",
      "sellerIsStore": false,
      "itemId": "198705966192",
      "sponsored": false,
      "mainImage": "https://i.ebayimg.com/images/g/HMkAAeSwKyBqyzG5/s-l225.jpg",
      "sellerFeedbackPercent": 99.4,
      "listPrice": null,
      "categoryName": "LEGO (R) Complete Sets & Packs",
      "ratingsCount": 47,
      "bestOfferAvailable": true,
      "freeReturns": false,
      "authenticityGuarantee": false,
      "buyItNowAvailable": true,
      "sellerFeedbackScore": 162,
      "bidCount": null,
      "searchRank": 1,
      "shippingText": "+ £58.97 postage estimate",
      "quantityAvailable": 1
    }
  ]
}
```

## Related APIs

For what items actually sold for use [`ebay/sold`](https://docs.mindcase.co/apis/ebay/sold).


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