# List store items

Browse or search a store inventory with pagination.

- Platform: [eBay](https://docs.upscrape.com/docs/platforms/ebay)
- Capability ID: `ebay.store.items.list`
- Cost: 1 credit per request
- Maximum runtime: 180 seconds
- Execute endpoint: `POST https://data.upscrape.com/execute`

## Request

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

```bash
curl --request POST \
  --url https://data.upscrape.com/execute \
  --header "Authorization: Bearer YOUR_API_KEY" \
  --header "Content-Type: application/json" \
  --header "Prefer: wait=30" \
  --data '{
  "input": {
    "limit": 60,
    "page": 1,
    "store": "sunnking"
  },
  "capability": "ebay.store.items.list"
}'
```

## Input

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `limit` | `integer` | No | Maximum number of results to return. Allowed values: `60`, `120`, `240`. |
| `page` | `integer` | No | One-based result page to fetch. |
| `query` | `string` | No | Search query. |
| `store` | `string` | Yes | The store identifier from its eBay store URL. |

### Example input

```json
{
  "limit": 60,
  "page": 1,
  "store": "sunnking"
}
```

## Response

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

### Illustrative sample output

This redacted fixture is an example, not a fixed response schema.

```json
{
  "has_more": true,
  "limit": 60,
  "listings": [
    {
      "condition": "Pre-Owned",
      "image_url": "https://i.ebayimg.com/images/g/5gEAAeSwFONqOXNy/s-l300.jpg",
      "item_id": "206337321458",
      "location": "United States",
      "price": "$169.99",
      "promoted": false,
      "rank": 0,
      "seller_name": "sunnking",
      "sold": false,
      "title": "Intel Xeon W-2255 SRGV8 3.7GHz 10-Core LGA2066 Server CPU Processor",
      "url": "https://www.ebay.com/itm/206337321458"
    },
    {
      "condition": "Open Box",
      "image_url": "https://i.ebayimg.com/images/g/6FcAAeSwS-xp-x3d/s-l300.jpg",
      "item_id": "366391792178",
      "location": "United States",
      "price": "$14.99",
      "promoted": false,
      "rank": 1,
      "seller_name": "sunnking",
      "sold": false,
      "title": "Ceramic Flat Iron Hair Straightener Pink",
      "url": "https://www.ebay.com/itm/366391792178"
    },
    {
      "condition": "Good - Refurbished",
      "image_url": "https://i.ebayimg.com/images/g/gFsAAeSwPZZqOsMI/s-l300.jpg",
      "item_id": "206226410838",
      "location": "United States",
      "price": "$169.99",
      "promoted": false,
      "rank": 2,
      "seller_name": "sunnking",
      "sold": false,
      "title": "22\" Android 13 Touch Screen Vesa Mount Wall Board - Good",
      "url": "https://www.ebay.com/itm/206226410838"
    }
  ],
  "next_page": 2,
  "page": 1,
  "store": "sunnking"
}
```
### Illustrative output fields

Derived from the sample above for orientation only. These fields are not a fixed response schema.

| Path | Observed type | Example |
| --- | --- | --- |
| `has_more` | `boolean` | true |
| `limit` | `integer` | 60 |
| `listings` | `array` | 3 items |
| `listings` | `array` | 3 items |
| `next_page` | `integer` | 2 |
| `page` | `integer` | 1 |
| `store` | `string` | sunnking |

## 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.

## Related documentation

- [Authentication](https://docs.upscrape.com/docs/api/authentication)
- [Jobs and results](https://docs.upscrape.com/docs/api/jobs)
- [Errors and retries](https://docs.upscrape.com/docs/api/errors)
- [Idempotency](https://docs.upscrape.com/docs/api/idempotency)
