eBay item API
One eBay listing with price, condition, quantity available and sold, item specifics, seller feedback, shipping and returns.
GET /v1/ebay/items/{product_id}2 credits per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/ebay/items/127943765980",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()Response
200 · 2 credits{ "country": "US", "item": { "item_id": "127943765980", "url": "https://www.ebay.com/itm/127943765980", "title": "Apple iPhone 14 128GB A2649 Unlocked Very Good Condition All Colors", "subtitle": null, "price": { "value": 282.77, "currency": "USD", "raw": "$282.77" }, "condition": "Very Good - Refurbished", "condition_description": "Welcome to the Official Verizon eBay Storefront: Your Trusted Source for High-Quality Refu…", "availability": "InStock", "quantity": "2 available", "sold": "1506 sold", "bids": null, "time_left": null, "brand": "Apple", "gtin": null, "…": "9 more fields" }}Parameters
| Name | Type | Description |
|---|---|---|
product_idpath · required | string | Item number, or an ebay.*/itm/ URL. Example: 127943765980. |
countryquery | "US" | "GB" | "AU" | "CA" | "DE" | "FR" | "IT" | "ES" | "IE" | "AT" | "CH" | "NL" | "BE" | "PL" | "SG" | "MY" | "PH" | "HK" | "MX" | eBay site: US (default), GB, AU, CA, DE, FR, IT, ES, IE, AT, CH, NL, BE, PL, SG, MY, PH, HK, MX. One of US, GB, AU, CA, DE, FR, IT, ES, IE, AT, CH, NL, BE, PL, SG, MY, PH, HK, MX. |
Response fields
200 with a EbayItem, in eBay’s own listing labels and the schema.org Product it embeds.
| Field | Type | Description |
|---|---|---|
country | string | |
item | object |
Status codes
| Status | Meaning |
|---|---|
200 | The item. |
400 | Invalid input. Nothing was charged. |
401 | Missing or invalid API key. |
402 | Not enough credits, a spend cap was reached, or payment is required. |
403 | The target is private, or the account is suspended. |
404 | The item does not exist or was removed. |
429 | Too many requests. Wait for Retry-After seconds. |
503 | eBay is temporarily unavailable. Retryable; nothing was charged. |
Every error has code, message, hint and retryable. All error codes
eBay is a trademark of eBay Inc. We are not affiliated with or endorsed by eBay.