{
"opencollection": "1.0.0",
"info": {
"name": "eBay Account Advertising_eligibility Item_sales API",
"version": "v1.9.2"
},
"items": [
{
"info": {
"name": "Item_sales",
"type": "folder"
},
"items": [
{
"info": {
"name": "search",
"type": "http"
},
"http": {
"method": "GET",
"url": "https://api.ebay.com{basePath}/item_sales/search",
"headers": [
{
"name": "X-EBAY-C-ENDUSERCTX",
"value": ""
},
{
"name": "X-EBAY-C-MARKETPLACE-ID",
"value": ""
}
],
"params": [
{
"name": "aspect_filter",
"value": "",
"type": "query",
"description": "This query parameter lets you filter by item aspects. The aspect name/value pairs and category, which is required, is used to limit the results to specific aspects of the item. For example, in a clothing category one aspect pair would be Color/Red. The results are returned in the refinement container.
For example, the method below uses the category ID for Women's Clothing. This will return only sold items for a woman's red or blue shirt. /buy/marketplace_insights/v1_beta/item_sales/search?q=shirt&category_ids=15724&aspect_filter=categoryId:15724,Color:{Red|Blue}
To get a list of the aspects pairs and the category, which is returned in the dominantCategoryId field, set fieldgroups to ASPECT_REFINEMENTS.
/buy/marketplace_insights/v1_beta/item_sales/search?q=shirt&category_ids=15724&fieldgroups=ASPECT_REFINEMENTS
Format: aspectName:{value1|value2}
Required: The category ID is required twice; once as a URI parameter and as part of the aspect_filter parameter. For implementation help, refer to eBay API documentation at https://developer.ebay.com/api-docs/buy/marketplace_insights/types/gct:AspectFilter"
},
{
"name": "category_ids",
"value": "",
"type": "query",
"description": "This query parameter specifies the category ID used to limit the result set. For example, if you search for 'shirt' the result set will be very large. But if you also include the category ID 137084, the results will be limited to 'Men's Athletic Apparel'. For example: /buy/marketplace-insights/v1_beta/item_sales/search?q=shirt&category_ids=137084
The list of eBay category IDs is not published and category IDs are not the same across all the eBay marketplaces. You can use the following techniques to find a category by site:
/buy/marketplace-insights/v1_beta/item_sales/search?epid=241986085&category_ids=168058 /buy/marketplace-insights/v1_beta/item_sales/search?q=iphone&category_ids=15724&filter=price:[50..500],priceCurrency:USD For implementation help, refer to eBay API documentation at https://developer.ebay.com/api-docs/buy/marketplace_insights/types/cos:FilterField"
},
{
"name": "gtin",
"value": "",
"type": "query",
"description": "This query parameter lets you search by the Global Trade Item Number of the item as defined by https://www.gtin.info. This can be a UPC (Universal Product Code), EAN (European Article Number), or an ISBN (International Standard Book Number) value. /buy/marketplace-insights/v1_beta/item_sales/search?gtin=241986085&category_ids=9355 /buy/marketplace-insights/v1_beta/item_sales/search?q=iphone,ipad&category_ids=15724 /buy/marketplace-insights/v1_beta/item_sales/search?q=iphone&category_ids=15724 ipad /buy/marketplace-insights/v1_beta/item_sales/search?q=iphone, ipad&category_ids=15724 * wildcard character is not allowed in this field. - before the field name. Currently, you can only sort by price (in ascending or descending order). | Sort | Result |
|---|---|
&sort=price | Sorts by price in ascending order (lowest price first) |
&sort=-price | Sorts by price in descending order (highest price first) |