# How to Get eBay Spain Sold Listings with an API

> Get eBay Spain (ebay.es) sold listings as JSON with a tested API request, a real EUR response, Spanish condition and seller labels, and checks for bundles and console-only listings.

Source: https://compsniper.com/guides/ebay-spain-sold-listings-api

---

Regional API guide

# How to Get eBay Spain Sold Listings with an API

To get eBay Spain sold listings with an API, call CompSniper's `GET /v1/scrape` with `ebaySite=ebay.es`. You get sold comps as JSON with EUR prices, sale dates and the original Spanish condition and seller labels, with an optional private or professional seller filter.

By [Marc Andrew](https://compsniper.com/about) October 3, 2026 Tested with a real ebay.es search

## Search ebay.es for completed sales

Create a [free CompSniper account](https://compsniper.com/signup), set your key as `COMPSNIPER_API_KEY` and send the marketplace in `ebaySite`. eBay's own ID `EBAY_ES` works too.

This tested request asks for five recently ended, used Nintendo Switch OLED sales on ebay.es.

Spanish sold listings

```
curl --get --fail-with-body --max-time 75 "https://api.compsniper.com/v1/scrape" \
  --header "Authorization: Bearer $COMPSNIPER_API_KEY" \
  --data-urlencode 'keyword=Nintendo Switch OLED' \
  --data-urlencode 'ebaySite=ebay.es' \
  --data-urlencode 'count=5' \
  --data-urlencode 'itemCondition=used' \
  --data-urlencode 'sortOrder=endedRecently' \
  --data-urlencode 'sold=true'
```

## A real ebay.es response in EUR

We ran the request above on October 3, 2026 at 04:46:08 UTC. It returned HTTP 200 and five listings. This excerpt shows selected fields from one of those five rows; the other rows and top-level fields are omitted. Values are unchanged.

Real response excerpt

```
{
  "keyword": "Nintendo Switch OLED",
  "totalItems": 5,
  "items": [
    {
      "itemId": "278418946271",
      "title": "CONSOLA NINTENDO SWITCH OLED ZELDA TEARS OF THE KINGDOM EDITION COMPLETA CIB",
      "condition": "Usado | Vendedor profesional",
      "conditionId": 3000,
      "soldPrice": "235.64",
      "soldCurrency": "EUR",
      "shippingPrice": null,
      "shippingCurrency": null,
      "shippingType": "unknown",
      "totalPrice": "235.64",
      "endedAt": "2026-10-03",
      "scrapedAt": "2026-10-03T04:46:07.161388+00:00",
      "itemLocation": null,
      "sellerType": "business",
      "bestOfferAccepted": null,
      "url": "https://www.ebay.es/itm/278418946271?nordt=true"
    }
  ]
}
```

`endedAt` is the reported sale date; `scrapedAt` is the collection timestamp. Repeating the request can return different listings. `totalItems: 5` describes the original response, not the one-row excerpt.

This row is a complete Zelda Tears of the Kingdom edition (CIB, complete in box) that sold for **EUR 235.64** on **October 3, 2026** from a professional seller (`sellerType: "business"`).

## Read Spanish condition and seller labels

| Label | How to read it |
| --- | --- |
| Usado | Used. Check what is included. |
| Nuevo | New, not comparable with a used console. |
| Reacondicionado | Refurbished; keep it in its own group. |
| Para piezas o no funciona | For parts or not working. |
| Vendedor particular / profesional | Private or professional seller, not a condition grade. |

Optional professional-seller filter

```
curl --get --fail-with-body --max-time 75 "https://api.compsniper.com/v1/scrape" \
  --header "Authorization: Bearer $COMPSNIPER_API_KEY" \
  --data-urlencode 'keyword=Nintendo Switch OLED' \
  --data-urlencode 'ebaySite=ebay.es' \
  --data-urlencode 'count=5' \
  --data-urlencode 'itemCondition=used' \
  --data-urlencode 'sortOrder=endedRecently' \
  --data-urlencode 'sold=true' \
  --data-urlencode 'sellerType=business'
```

## Price the console you actually have

The five sales in this sample show why bundle contents matter more than the model name:

- Complete consoles with dock and Joy-Con: about **EUR 170 to EUR 187**.
- A complete special edition (Zelda, in box): **EUR 235.64**.
- The tablet only (*Solo*), no dock or controllers: **EUR 129.13**.

The default AI cleanup removes accessories and wrong models, but a console-only unit is still a Switch OLED, so decide yourself whether it belongs in your comparison. Use `relevance=false` when you want every raw result to filter with your own rules.

## Keep EUR and unknown postage honest

totalPrice is not proof of free delivery

Postage was unknown in this sample (`shippingPrice: null`, `shippingType: "unknown"`), so `totalPrice` equals the item price. Keep item-only and delivered prices in separate comparisons.

For a bigger sample, raise `count` up to 240, and keep `ebaySite`, `soldCurrency` and `endedAt` with every stored row.

## Common questions about eBay Spain sold listings

### How do I get eBay Spain sold listings through an API?

Call CompSniper GET /v1/scrape with ebaySite=ebay.es (or the eBay marketplace ID EBAY_ES), a product keyword and your CompSniper Bearer API key. It returns up to 240 sold listings as JSON. The example in this guide returned EUR prices and the Spanish label Usado | Vendedor profesional.

### Do I need a Spanish eBay account?

No. Use your CompSniper key and the same endpoint as every other marketplace. You never supply eBay cookies or an eBay login. Set ebaySite=ebay.es explicitly.

### Can I filter by particular or profesional sellers?

Yes. sellerType=private or sellerType=business filters recognized seller labels on ebay.es. Rows without a recognized label are excluded while the filter is active.

### Why did one Nintendo Switch OLED sell for much less?

In the recorded sample, a listing described as the tablet only (Solo) sold for EUR 129.13, while complete consoles with dock and Joy-Con sold for about EUR 170 to EUR 236. Console-only listings, bundles and special editions are different products for pricing.

### Is shipping free when shippingPrice is null?

No. Postage was unknown in this sample, so totalPrice equals the item price. That is an incomplete delivered total, not proof of free delivery.

### Can I get the raw ebay.es results?

Yes. Add relevance=false for the sold results exactly as eBay lists them. With the default cleanup on, rawMedian and rawSampleCount still report the numbers from before cleanup.

## Continue your integration

Keep each marketplace and currency attached to its own sold comps. These guides use the same endpoint and API key:

- [How to Get eBay Australia Sold Listings with an API](https://compsniper.com/guides/ebay-australia-sold-listings-api)
- [eBay Germany Sold Listings API (2026): ebay.de Sold Prices as JSON](https://compsniper.com/guides/ebay-germany-sold-listings-api)
- [eBay UK Sold Listings API (2026): ebay.co.uk Sold Prices as JSON](https://compsniper.com/guides/ebay-uk-sold-listings-api)
- [How to Get eBay France Sold Listings with an API](https://compsniper.com/guides/ebay-france-sold-listings-api)
- [How to Get eBay Canada Sold Listings with an API](https://compsniper.com/guides/ebay-canada-sold-listings-api)

For the full contract, see the [API reference](https://compsniper.com/docs/api-reference). The [eBay sold listings API overview](https://compsniper.com/ebay-sold-listings-api) covers the product, and the [CSV and Excel guide](https://compsniper.com/guides/export-ebay-sold-listings-csv-excel) covers spreadsheet exports.

Written by the CompSniper team. The examples are dated observations, not current valuations or evidence of complete market coverage. CompSniper is an independent service, not an official eBay API.

## Try your first ebay.es sold search

Create a free CompSniper account, get an API key and run the request above. The free plan includes 100 requests per month, with no credit card required.

[Get your free API key](https://compsniper.com/signup)[Read the quickstart](https://compsniper.com/docs/quickstart)

---

CompSniper: real sold prices from eBay (8 sites), PSA, TCGplayer, Grailed, Poshmark and Mercari, plus Depop and Whatnot listings and Beckett cert lookups, through one API. Free plan, 100 requests a month: https://compsniper.com/signup. Pricing: https://compsniper.com/pricing. All Markdown pages: https://compsniper.com/llms.txt
