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

# eBay

> Search active eBay listings and retrieve structured data for an item.

## Search active listings

```bash theme={null}
curl --fail-with-body --get "https://api.vexqo.dev/ebay/search" \
  --header "X-API-Key: $VEXQO_API_KEY" \
  --data-urlencode "q=mechanical keyboard" \
  --data-urlencode "page=1" \
  --data-urlencode "per_page=60"
```

| Parameter | Default | Use |
| - | - | - |
| `q` | Required | Nonblank search text, up to 300 characters. |
| `page` | `1` | Page number, from 1 to 100. |
| `per_page` | `60` | `60`, `120`, or `240` results per page. |
| `sort` | `best_match` | `best_match`, `ending_soonest`, `newly_listed`, `price_lowest`, or `price_highest`. |
| `buying_format` | `all` | `all`, `auction`, or `buy_it_now`. |
| `condition` | `any` | `any`, `new`, or `used`. |
| `min_price`, `max_price` | — | Nonnegative USD price bounds; minimum cannot exceed maximum. |
| `category_id` | — | Numeric eBay category ID. |
| `country` | — | Two-letter country code for the request’s network exit. |

Increase `page` to request another results page. Each page is a separate request and is metered separately. Results can change between requests.

> [!NOTE]
>
> This endpoint searches active listings. It does not provide an exhaustive database of completed sales. The `country` option controls where the request originates; it does not switch the API to a different eBay marketplace.

## Retrieve a listing

Use the numeric item ID from an eBay listing URL:

```bash theme={null}
curl --fail-with-body "https://api.vexqo.dev/ebay/listings/LISTING_ID" \
  --header "X-API-Key: $VEXQO_API_KEY"
```

Replace `LISTING_ID` with the item ID. The response describes the listing the source currently exposes, including available item, price, seller, and availability information. Fields that cannot be observed can be null.

| Parameter | Default | Use |
| - | - | - |
| `mode` | `auto` | `auto`, `http`, or `browser`. Start with `auto`. |
| `country` | — | Optional two-letter exit-country code. |
| `include_html` | `false` | Store the source page and return its link as `source.html_url`; adds a credit charge. |
| `headless` | Server default | Advanced browser-mode option; normally omit it. |

`auto` can fall back to a browser when needed. `http` does not use that fallback and can return `503` when no session is available. Explicit `mode=browser` has a higher credit cost.

## Interpret changes carefully

A listing that ends or disappears is not proof that it sold. Save timestamped observations and preserve missing values when comparing price, stock, or status over time.

Use [credits and errors](https://docs.vexqo.dev/usage.md) to plan your batch size and retry policy. The [live API reference](https://api.vexqo.dev/docs) includes all parameter types and validation constraints.


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