# Search listings

Return filtered eBay listings with display fields and sponsored disclosure.

- Platform: [eBay Commerce & Promotions](https://docs.upscrape.com/docs/platforms/ebay)
- Capability ID: `ebay.products.search`
- Cost: 1 credit per request
- Maximum runtime: 45 seconds
- Execute endpoint: `POST https://data.upscrape.com/execute`

## Request

Use the exact public capability ID in the shared execute envelope.

```bash
curl -X POST https://data.upscrape.com/execute \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":{"condition":3000,"limit":60,"max_price":"500","min_price":"100","page":1,"query":"used laptop","sort":"lowest_price"},"capability":"ebay.products.search"}'
```

## Input

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `category` | `integer` | No |  |
| `condition` | `integer` | No |  |
| `limit` | `integer` | No |  |
| `listing_type` | `string` | No |  |
| `max_price` | `string` | No |  |
| `min_price` | `string` | No |  |
| `page` | `integer` | No |  |
| `query` | `string` | Yes |  |
| `seller` | `string` | No |  |
| `sold` | `boolean` | No |  |
| `sort` | `string` | No |  |

### Example input

```json
{
  "condition": 3000,
  "limit": 60,
  "max_price": "500",
  "min_price": "100",
  "page": 1,
  "query": "used laptop",
  "sort": "lowest_price"
}
```

## Response

Successful output is returned in `results[0].data`. Raw platform output is intentionally open-ended and may evolve with the upstream source.

No committed sample output is available for this capability.


## Execution behavior

A `200` response completed inline. A `202` response was queued; poll `GET /jobs/{id}` until the job reaches `completed` or `failed`. Use an `Idempotency-Key` when retrying must not create a duplicate logical job.

See [jobs and results](https://docs.upscrape.com/docs/api/jobs), [errors and retries](https://docs.upscrape.com/docs/api/errors), and [idempotency](https://docs.upscrape.com/docs/api/idempotency).

## Machine-readable contract

- [Capability OpenAPI 3.1](https://docs.upscrape.com/docs/platforms/ebay/ebay.products.search/openapi.json)
- [Platform OpenAPI 3.1](https://upscrape.com/scrapers/ebay/openapi.json)
- [Focused coding-agent prompt](https://upscrape.com/scrapers/ebay/capabilities/ebay.products.search/llm.md)
