API · eBay
GET /ebay/search
Search eBay listings with eBay's filters, including sold listings.
| Request | GET /v1/ebay/search |
| Operation id | ebay.search.all |
| Cost | 2 credits, refunded if the call fails |
| Auth | API key: Authorization: Bearer <key> or x-api-key. |
Search eBay listings with eBay's filters, including sold listings.
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
query | string | yes | Search keywords. Example: iphone 15. |
country | "US" | "GB" | "AU" | "CA" | "DE" | "FR" | "IT" | "ES" | "IE" | "AT" | "CH" | "NL" | "BE" | "PL" | "SG" | "MY" | "PH" | "HK" | "MX" | no | 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. |
page | integer | no | |
sort_by | "best_match" | "price_low" | "price_high" | "newly_listed" | "ending_soonest" | no | One of best_match, price_low, price_high, newly_listed, ending_soonest. |
condition | string | no | Comma-separated: new, refurbished, used. |
buying_format | string | no | Comma-separated: auction, buy_it_now, accepts_offers. |
show_only | string | no | Comma-separated: free_shipping, sold, completed, returns_accepted, local_pickup, authorized_seller, free_returns. |
min_price | number | null | no | |
max_price | number | null | no | |
aspects | string | no | Item aspects: Name=Value pairs separated by ; |
Responses
| Status | Meaning | Schema |
|---|---|---|
200 | A page of listings. | EbaySearch |
400 | Invalid input. Nothing was charged. | Error |
401 | Missing or invalid API key. | Error |
402 | Not enough credits, a spend cap was reached, or payment is required. | Error |
403 | The target is private, or the account is suspended. | Error |
404 | The item does not exist or was removed. | Error |
429 | Too many requests. Wait for Retry-After seconds. | Error |
503 | eBay is temporarily unavailable. Retryable; nothing was charged. | Error |
EbaySearch fields
| Field | Type | Description |
|---|---|---|
query | string | |
country | string | |
page | number | |
next_page | number | null | |
total_results | number | null | |
items | object[] |
Errors use one shape everywhere; see Errors for every code and what to do.