[eBay APIs](/docs/api.md#ebay) 

# eBay Item API

Read the exact public ebay.com listing by item URL or id, including displayed price, condition, images and seller feedback. Listing sold counters are not a transaction history. eBay may restrict anonymous access.

 POST `/v1/ebay/item`

[Parameters](#parameters) [Response](#response) [Errors](#errors) [More examples](#more-examples) 

**Authenticate every request**

Send `Authorization: Bearer YOUR_API_KEY`. [Get an API key →](/docs/guides/authentication.md) 

## Parameters

Send these fields in a flat JSON body. Add `_run` to choose execution options.

Provide at least one of: url; id.

- **`url` string Optional**
  HTTPS ebay.com item URL returned by search. Minimum length: 1. Maximum length: 2000. Pattern: ^https://(?:www\.)?ebay\.com/itm/(?:[^/?#]+/)?[0-9]{8,20}/?(?:[?#].*)?$.

- **`id` string Optional**
  Numeric eBay item id returned by search. Older Browsable item ids remain supported. Pattern: ^(?:[0-9]{8,20}|(?:www-)?ebay-com-itm-(?:[a-zA-Z0-9-]+-)?[0-9]{8,20})$.

- **`marketplace` string Optional**
  Public endpoints currently support ebay.com. Allowed: "ebay.com".

## Response

Every response describes a run. Read `result` once `run_status` is `succeeded`.

- **`run_id`**
  The run to track. Keep it when contacting support.

- **`run_status`**
  Queued, running, waiting for sign-in, succeeded, or failed. Check this even after an HTTP 200.

- **`status_url`**
  Poll this URL while the run is pending. Keep the same run instead of starting another request.

- **`result`**
  The endpoint’s returned data. The example is illustrative; actual fields may be empty or unavailable.

- **`error`**
  On failure, inspect its code, message, retryable and action fields.

### View the complete output schema

```json
{
  "type": "object",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "required": [
    "success",
    "source",
    "query",
    "url",
    "results",
    "count",
    "data",
    "max_results_requested",
    "pagination"
  ],
  "properties": {
    "url": {
      "type": [
        "string",
        "null"
      ]
    },
    "data": {
      "type": "object",
      "required": [
        "id",
        "item_id",
        "variation_id",
        "url",
        "title",
        "price",
        "price_amount",
        "price_currency",
        "condition",
        "availability",
        "availability_text",
        "quantity_text",
        "sold_count_text",
        "watchers_text",
        "brand",
        "gtin13",
        "description",
        "image_url",
        "seller",
        "seller_url",
        "seller_positive_feedback",
        "shipping",
        "delivery",
        "returns",
        "payments",
        "location",
        "category",
        "sold_count",
        "watchers_count",
        "rating",
        "review_count",
        "seller_feedback_score",
        "image_urls",
        "breadcrumbs",
        "item_specifics",
        "shipping_cost"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "url": {
          "type": "string"
        },
        "brand": {
          "type": [
            "string",
            "null"
          ]
        },
        "price": {
          "type": [
            "string",
            "null"
          ]
        },
        "title": {
          "type": "string"
        },
        "gtin13": {
          "type": [
            "string",
            "null"
          ]
        },
        "rating": {
          "type": [
            "number",
            "null"
          ]
        },
        "seller": {
          "type": [
            "string",
            "null"
          ]
        },
        "item_id": {
          "type": "string"
        },
        "returns": {
          "type": [
            "string",
            "null"
          ]
        },
        "category": {
          "type": [
            "string",
            "null"
          ]
        },
        "delivery": {
          "type": [
            "string",
            "null"
          ]
        },
        "location": {
          "type": [
            "string",
            "null"
          ]
        },
        "payments": {
          "type": [
            "string",
            "null"
          ]
        },
        "shipping": {
          "type": [
            "string",
            "null"
          ]
        },
        "condition": {
          "type": [
            "string",
            "null"
          ]
        },
        "image_url": {
          "type": [
            "string",
            "null"
          ]
        },
        "image_urls": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "seller_url": {
          "type": [
            "string",
            "null"
          ]
        },
        "sold_count": {
          "type": [
            "number",
            "null"
          ]
        },
        "breadcrumbs": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "description": {
          "type": [
            "string",
            "null"
          ]
        },
        "availability": {
          "type": [
            "string",
            "null"
          ]
        },
        "price_amount": {
          "type": [
            "string",
            "null"
          ]
        },
        "review_count": {
          "type": [
            "number",
            "null"
          ]
        },
        "variation_id": {
          "type": [
            "string",
            "null"
          ]
        },
        "quantity_text": {
          "type": [
            "string",
            "null"
          ]
        },
        "shipping_cost": {
          "anyOf": [
            {
              "type": "null"
            },
            {
              "type": "object",
              "required": [
                "value",
                "currency"
              ],
              "properties": {
                "value": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "currency": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "additionalProperties": false
            }
          ]
        },
        "watchers_text": {
          "type": [
            "string",
            "null"
          ]
        },
        "item_specifics": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          }
        },
        "price_currency": {
          "type": [
            "string",
            "null"
          ]
        },
        "watchers_count": {
          "type": [
            "number",
            "null"
          ]
        },
        "sold_count_text": {
          "type": [
            "string",
            "null"
          ]
        },
        "availability_text": {
          "type": [
            "string",
            "null"
          ]
        },
        "seller_description": {
          "type": [
            "string",
            "null"
          ]
        },
        "seller_feedback_score": {
          "type": [
            "number",
            "null"
          ]
        },
        "seller_positive_feedback": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "additionalProperties": false
    },
    "count": {
      "type": "integer",
      "minimum": 0
    },
    "query": {
      "type": [
        "string",
        "null"
      ]
    },
    "source": {
      "const": "ebay-item"
    },
    "results": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "id",
          "item_id",
          "variation_id",
          "url",
          "title",
          "price",
          "price_amount",
          "price_currency",
          "condition",
          "availability",
          "availability_text",
          "quantity_text",
          "sold_count_text",
          "watchers_text",
          "brand",
          "gtin13",
          "description",
          "image_url",
          "seller",
          "seller_url",
          "seller_positive_feedback",
          "shipping",
          "delivery",
          "returns",
          "payments",
          "location",
          "category",
          "sold_count",
          "watchers_count",
          "rating",
          "review_count",
          "seller_feedback_score",
          "image_urls",
          "breadcrumbs",
          "item_specifics",
          "shipping_cost"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "brand": {
            "type": [
              "string",
              "null"
            ]
          },
          "price": {
            "type": [
              "string",
              "null"
            ]
          },
          "title": {
            "type": "string"
          },
          "gtin13": {
            "type": [
              "string",
              "null"
            ]
          },
          "rating": {
            "type": [
              "number",
              "null"
            ]
          },
          "seller": {
            "type": [
              "string",
              "null"
            ]
          },
          "item_id": {
            "type": "string"
          },
          "returns": {
            "type": [
              "string",
              "null"
            ]
          },
          "category": {
            "type": [
              "string",
              "null"
            ]
          },
          "delivery": {
            "type": [
              "string",
              "null"
            ]
          },
          "location": {
            "type": [
              "string",
              "null"
            ]
          },
          "payments": {
            "type": [
              "string",
              "null"
            ]
          },
          "shipping": {
            "type": [
              "string",
              "null"
            ]
          },
          "condition": {
            "type": [
              "string",
              "null"
            ]
          },
          "image_url": {
            "type": [
              "string",
              "null"
            ]
          },
          "image_urls": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "seller_url": {
            "type": [
              "string",
              "null"
            ]
          },
          "sold_count": {
            "type": [
              "number",
              "null"
            ]
          },
          "breadcrumbs": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "availability": {
            "type": [
              "string",
              "null"
            ]
          },
          "price_amount": {
            "type": [
              "string",
              "null"
            ]
          },
          "review_count": {
            "type": [
              "number",
              "null"
            ]
          },
          "variation_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "quantity_text": {
            "type": [
              "string",
              "null"
            ]
          },
          "shipping_cost": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "object",
                "required": [
                  "value",
                  "currency"
                ],
                "properties": {
                  "value": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "currency": {
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "additionalProperties": false
              }
            ]
          },
          "watchers_text": {
            "type": [
              "string",
              "null"
            ]
          },
          "item_specifics": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "price_currency": {
            "type": [
              "string",
              "null"
            ]
          },
          "watchers_count": {
            "type": [
              "number",
              "null"
            ]
          },
          "sold_count_text": {
            "type": [
              "string",
              "null"
            ]
          },
          "availability_text": {
            "type": [
              "string",
              "null"
            ]
          },
          "seller_description": {
            "type": [
              "string",
              "null"
            ]
          },
          "seller_feedback_score": {
            "type": [
              "number",
              "null"
            ]
          },
          "seller_positive_feedback": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "additionalProperties": false
      }
    },
    "success": {
      "const": true
    },
    "pagination": {
      "type": "object",
      "required": [
        "cursor",
        "next_cursor",
        "has_next_page",
        "count",
        "strategy"
      ],
      "properties": {
        "count": {
          "type": "integer"
        },
        "cursor": {
          "type": [
            "string",
            "null"
          ]
        },
        "strategy": {
          "type": [
            "string",
            "null"
          ]
        },
        "next_cursor": {
          "type": [
            "string",
            "null"
          ]
        },
        "has_next_page": {
          "type": "boolean"
        }
      },
      "additionalProperties": false
    },
    "max_results_requested": {
      "type": "integer"
    }
  },
  "additionalProperties": false
}
```

### View a polled run response

```json
{
  "run_id": "00000000-0000-4000-8000-000000000001",
  "task_key": "ebay-item",
  "task_name": "eBay Item API",
  "run_status": "succeeded",
  "status_url": "/v1/runs/00000000-0000-4000-8000-000000000001",
  "result": {
    "url": "https://example.com/item-1",
    "data": {
      "id": "id-1",
      "url": "https://example.com/item-1",
      "brand": "sample",
      "price": "180",
      "title": "Stylish Shoreditch Loft with Balcony",
      "gtin13": "sample",
      "rating": 4.91,
      "seller": "sample",
      "item_id": "id-1",
      "returns": "sample",
      "category": "sample",
      "delivery": "sample",
      "location": "London",
      "payments": "sample",
      "shipping": "sample",
      "condition": "sample",
      "image_url": "https://example.com/item-1",
      "image_urls": [
        "https://images.example.com/image_urls-1.jpg"
      ],
      "seller_url": "https://example.com/item-1",
      "sold_count": 1,
      "breadcrumbs": [
        "sample"
      ],
      "description": "Sample description 1",
      "availability": "sample",
      "price_amount": "180",
      "review_count": 1,
      "variation_id": "id-1",
      "quantity_text": "Sample quantity_text 1",
      "shipping_cost": null,
      "watchers_text": "Sample watchers_text 1",
      "item_specifics": {},
      "price_currency": "GBP",
      "watchers_count": 1,
      "sold_count_text": "Sample sold_count_text 1",
      "availability_text": "Sample availability_text 1",
      "seller_description": "Sample seller_description 1",
      "seller_feedback_score": 1.5,
      "seller_positive_feedback": "sample"
    },
    "count": 1,
    "query": "London",
    "source": "ebay-item",
    "results": [
      {
        "id": "id-1",
        "url": "https://example.com/item-1",
        "brand": "sample",
        "price": "180",
        "title": "Stylish Shoreditch Loft with Balcony",
        "gtin13": "sample",
        "rating": 4.91,
        "seller": "sample",
        "item_id": "id-1",
        "returns": "sample",
        "category": "sample",
        "delivery": "sample",
        "location": "London",
        "payments": "sample",
        "shipping": "sample",
        "condition": "sample",
        "image_url": "https://example.com/item-1",
        "image_urls": [
          "https://images.example.com/image_urls-1.jpg"
        ],
        "seller_url": "https://example.com/item-1",
        "sold_count": 1,
        "breadcrumbs": [
          "sample"
        ],
        "description": "Sample description 1",
        "availability": "sample",
        "price_amount": "180",
        "review_count": 1,
        "variation_id": "id-1",
        "quantity_text": "Sample quantity_text 1",
        "shipping_cost": null,
        "watchers_text": "Sample watchers_text 1",
        "item_specifics": {},
        "price_currency": "GBP",
        "watchers_count": 1,
        "sold_count_text": "Sample sold_count_text 1",
        "availability_text": "Sample availability_text 1",
        "seller_description": "Sample seller_description 1",
        "seller_feedback_score": 1.5,
        "seller_positive_feedback": "sample"
      }
    ],
    "success": true,
    "pagination": {
      "count": 1,
      "cursor": "cursor-page-1",
      "strategy": "sample",
      "next_cursor": "cursor-page-1",
      "has_next_page": true
    },
    "max_results_requested": 1
  },
  "error": null
}
```

## Errors & retries

- `400` Fix the fields listed in `errors` before retrying.

- `428` Connect the requested website account using the returned sign-in link.

- `429` Wait for the duration in `Retry-After`.

- `5xx` Retry transient failures with backoff. Keep the request ID.

A failed run has its own error inside the response. Retry it only when `error.retryable` is true.

[Validation, pagination and recovery →](/docs/api/request-guide.md) 

## More examples

### Async request with polling

```bash
RUN=$(curl -s -X POST "https://api-ingress-worker-staging.browsable-staging.workers.dev/v1/ebay/item" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://www.ebay.com/itm/389640259363"}')

RUN_ID=$(echo "$RUN" | jq -er '.run_id // empty') || { echo "$RUN" >&2; exit 1; }
POLL_DELAY=3

while true; do
  RESULT=$(curl -s -H "Authorization: Bearer YOUR_API_KEY" "https://api-ingress-worker-staging.browsable-staging.workers.dev/v1/runs/$RUN_ID")
  STATUS=$(echo "$RESULT" | jq -r '.run_status')
  if [[ "$STATUS" =~ ^(succeeded|failed|errored|cancelled|canceled|expired)$ ]]; then
    echo "$RESULT"
    break
  fi
  sleep "$(awk "BEGIN { print $POLL_DELAY * (0.9 + ($RANDOM % 21) / 100) }")"
  POLL_DELAY=$((POLL_DELAY < 30 ? POLL_DELAY * 2 : 30))
  [ "$POLL_DELAY" -gt 30 ] && POLL_DELAY=30
done
```

```javascript
const runResponse = await fetch("https://api-ingress-worker-staging.browsable-staging.workers.dev/v1/ebay/item", {
  method: "POST",
  headers: {
    Authorization: "Bearer YOUR_API_KEY",
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
  "url": "https://www.ebay.com/itm/389640259363"
}),
});

const runPayload = await runResponse.json();
if (!runResponse.ok) throw new Error(JSON.stringify(runPayload));
const runId = runPayload.run_id;
if (!runId) throw new Error("Run ID not found in response");
let pollDelayMs = 3000;

while (true) {
  const resultResponse = await fetch("https://api-ingress-worker-staging.browsable-staging.workers.dev/v1/runs/" + runId, {
    headers: { Authorization: "Bearer YOUR_API_KEY" },
  });
  const result = await resultResponse.json().catch(() => ({}));
  if (resultResponse.status === 429 || [502, 503, 504].includes(resultResponse.status)) {
    const retryAfter = resultResponse.headers.get("retry-after");
    await new Promise((resolve) => setTimeout(resolve, retryAfter ? Number(retryAfter) * 1000 : pollDelayMs));
    continue;
  }
  if (!resultResponse.ok) throw new Error(`Status request failed: ${resultResponse.status}`);
  const status = result.run_status;
  if (["succeeded", "failed", "errored", "cancelled", "canceled", "expired"].includes(status)) {
    console.log(result);
    break;
  }
  await new Promise((resolve) => setTimeout(resolve, pollDelayMs * (0.9 + Math.random() * 0.2)));
  pollDelayMs = Math.min(pollDelayMs * 2, 30000);
}
```

```python
import random
import time
import requests

run_response = requests.post(
    "https://api-ingress-worker-staging.browsable-staging.workers.dev/v1/ebay/item",
    headers={
        "Authorization": "Bearer YOUR_API_KEY",
        "Content-Type": "application/json",
    },
    json={
    "url": "https://www.ebay.com/itm/389640259363"
},
)
run_payload = run_response.json()
if not run_response.ok:
    raise RuntimeError(run_payload)
run_id = run_payload.get("run_id")
if not run_id:
    raise ValueError("Run ID not found in response")
poll_delay = 3.0

while True:
    result_response = requests.get(
        "https://api-ingress-worker-staging.browsable-staging.workers.dev/v1/runs/" + run_id,
        headers={"Authorization": "Bearer YOUR_API_KEY"},
    )
    if result_response.status_code == 429 or result_response.status_code in (502, 503, 504):
        retry_after = result_response.headers.get("Retry-After")
        time.sleep(float(retry_after) if retry_after else poll_delay)
        continue
    result_response.raise_for_status()
    result = result_response.json()
    status = result.get("run_status")
    if status in ("succeeded", "failed", "errored", "cancelled", "canceled", "expired"):
        print(result)
        break
    time.sleep(poll_delay * random.uniform(0.9, 1.1))
    poll_delay = min(poll_delay * 2, 30.0)
```

### Wait-for-results request

```bash
curl -X POST "https://api-ingress-worker-staging.browsable-staging.workers.dev/v1/ebay/item" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://www.ebay.com/itm/389640259363","_run":{"async":false}}'
```

```javascript
const response = await fetch("https://api-ingress-worker-staging.browsable-staging.workers.dev/v1/ebay/item", {
  method: "POST",
  headers: {
    Authorization: "Bearer YOUR_API_KEY",
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
  "url": "https://www.ebay.com/itm/389640259363",
  "_run": {
    "async": false
  }
}),
});

const result = await response.json();
console.log(result);
```

```python
import requests

response = requests.post(
    "https://api-ingress-worker-staging.browsable-staging.workers.dev/v1/ebay/item",
    headers={
        "Authorization": "Bearer YOUR_API_KEY",
        "Content-Type": "application/json",
    },
    json={
    "url": "https://www.ebay.com/itm/389640259363",
    "_run": {
        "async": False
    }
},
)
result = response.json()
print(result)
```

### Canonical & compatibility routes

You can also send the same JSON body to `/v1/tasks/ebay-item/runs`.

 Example request  Request mode Wait for resultsAsync + polling

```bash
curl -X POST "https://api-ingress-worker-staging.browsable-staging.workers.dev/v1/ebay/item" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://www.ebay.com/itm/389640259363","_run":{"async":false}}'
```

```javascript
const response = await fetch("https://api-ingress-worker-staging.browsable-staging.workers.dev/v1/ebay/item", {
  method: "POST",
  headers: {
    Authorization: "Bearer YOUR_API_KEY",
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
  "url": "https://www.ebay.com/itm/389640259363",
  "_run": {
    "async": false
  }
}),
});

const result = await response.json();
console.log(result);
```

```python
import requests

response = requests.post(
    "https://api-ingress-worker-staging.browsable-staging.workers.dev/v1/ebay/item",
    headers={
        "Authorization": "Bearer YOUR_API_KEY",
        "Content-Type": "application/json",
    },
    json={
    "url": "https://www.ebay.com/itm/389640259363",
    "_run": {
        "async": False
    }
},
)
result = response.json()
print(result)
```

Requests can return before a run finishes. Check run_status and poll status_url when needed.

### View example response

 Example response  Illustrative 

```json
{
  "run_id": "00000000-0000-4000-8000-000000000001",
  "task_key": "ebay-item",
  "task_name": "eBay Item API",
  "run_status": "succeeded",
  "status_url": "/v1/runs/00000000-0000-4000-8000-000000000001",
  "result": {
    "url": "https://example.com/item-1",
    "data": {
      "id": "id-1",
      "url": "https://example.com/item-1",
      "brand": "sample",
      "price": "180",
      "title": "Stylish Shoreditch Loft with Balcony",
      "gtin13": "sample",
      "rating": 4.91,
      "seller": "sample",
      "item_id": "id-1",
      "returns": "sample",
      "category": "sample",
      "delivery": "sample",
      "location": "London",
      "payments": "sample",
      "shipping": "sample",
      "condition": "sample",
      "image_url": "https://example.com/item-1",
      "image_urls": [
        "https://images.example.com/image_urls-1.jpg"
      ],
      "seller_url": "https://example.com/item-1",
      "sold_count": 1,
      "breadcrumbs": [
        "sample"
      ],
      "description": "Sample description 1",
      "availability": "sample",
      "price_amount": "180",
      "review_count": 1,
      "variation_id": "id-1",
      "quantity_text": "Sample quantity_text 1",
      "shipping_cost": null,
      "watchers_text": "Sample watchers_text 1",
      "item_specifics": {},
      "price_currency": "GBP",
      "watchers_count": 1,
      "sold_count_text": "Sample sold_count_text 1",
      "availability_text": "Sample availability_text 1",
      "seller_description": "Sample seller_description 1",
      "seller_feedback_score": 1.5,
      "seller_positive_feedback": "sample"
    },
    "count": 1,
    "query": "London",
    "source": "ebay-item",
    "results": [
      {
        "id": "id-1",
        "url": "https://example.com/item-1",
        "brand": "sample",
        "price": "180",
        "title": "Stylish Shoreditch Loft with Balcony",
        "gtin13": "sample",
        "rating": 4.91,
        "seller": "sample",
        "item_id": "id-1",
        "returns": "sample",
        "category": "sample",
        "delivery": "sample",
        "location": "London",
        "payments": "sample",
        "shipping": "sample",
        "condition": "sample",
        "image_url": "https://example.com/item-1",
        "image_urls": [
          "https://images.example.com/image_urls-1.jpg"
        ],
        "seller_url": "https://example.com/item-1",
        "sold_count": 1,
        "breadcrumbs": [
          "sample"
        ],
        "description": "Sample description 1",
        "availability": "sample",
        "price_amount": "180",
        "review_count": 1,
        "variation_id": "id-1",
        "quantity_text": "Sample quantity_text 1",
        "shipping_cost": null,
        "watchers_text": "Sample watchers_text 1",
        "item_specifics": {},
        "price_currency": "GBP",
        "watchers_count": 1,
        "sold_count_text": "Sample sold_count_text 1",
        "availability_text": "Sample availability_text 1",
        "seller_description": "Sample seller_description 1",
        "seller_feedback_score": 1.5,
        "seller_positive_feedback": "sample"
      }
    ],
    "success": true,
    "pagination": {
      "count": 1,
      "cursor": "cursor-page-1",
      "strategy": "sample",
      "next_cursor": "cursor-page-1",
      "has_next_page": true
    },
    "max_results_requested": 1
  },
  "error": null
}
```

[Understand the response →](#response)

---
Source: https://browsable-api-ux-staging.pages.dev/docs/api/endpoints/post-ebay-item
