Download OpenAPI specification:Download
(Limited Release) The Marketplace Insights API provides the ability to search for sold items on eBay by keyword, GTIN, category, and product and returns the of sales history of those items.
This method searches for sold eBay items by various URI query parameters and retrieves the sales history of the items for the last 90 days. You can search by keyword, category, eBay product ID (ePID), or GTIN, or a combination of these.
This method also supports the following:
For details and examples of these capabilities, see Browse API in the Buying Integration Guide.
There are pagination controls (limit and offset fields) and sort query parameters that control/sort the data that is returned. By default, the results are sorted by "Best Match". For more information about Best Match, see the eBay help page Best Match.
https://api.ebay.com/buy/marketplace_insights/v1_beta/item_sales/search?https://api.sandbox.ebay.com/buy/marketplace_insights/v1_beta/item_sales/search?You will want to use the X-EBAY-C-ENDUSERCTX request header with this method. If you are an eBay Network Partner you must use affiliateCampaignId=ePNCampaignId,affiliateReferenceId=referenceId in the header in order to be paid for selling eBay items on your site . For details see, Request headers in the Buy APIs Overview.
Query parameter values need to be URL encoded. For details, see URL encoding query parameter values.
For a list of supported sites and other restrictions, see API Restrictions.
| aspect_filter | string This field 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. | ||||||
| category_ids | string The category ID is required and is used to limit the results. For example, if you search for 'shirt' the result set will be very large. But if you also include the category ID 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:
| ||||||
| epid | string The ePID is the eBay product identifier of a product from the eBay product catalog. This field limits the results to only items in the specified ePID. | ||||||
| fieldgroups | string This field lets you control what is to be returned in the response and accepts a comma separated list of values.
Default: MATCHING_ITEMS | ||||||
| filter | string This field supports multiple field filters that can be used to limit/customize the result set. The following example filters the result set by price. Note: To filter by price, price and priceCurrency must always be used together. /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
| ||||||
| gtin | string This field 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. | ||||||
| limit | string The number of items, from the result set, returned in a single page. | ||||||
| offset | string Specifies the number of items to skip in the result set. This is used with the limit field to control the pagination of the output. | ||||||
| q | string A string consisting of one or more keywords that are used to search for items on eBay. The keywords are handled as follows:
* wildcard character is not allowed in this field. Required: At least 1 category_ids Optional: Any combination of epid, gtin, or q | ||||||
| sort | string This field specifies the order and the field name to use to sort the items. To sort in descending order use
Default: ascending For implementation help, refer to eBay API documentation at https://developer.ebay.com/api-docs/buy/marketplace_insights/types/cos:SortField |
{- "href": "string",
- "itemSales": [
- {
- "additionalImages": [
- {
- "height": 0,
- "imageUrl": "string",
- "width": 0
}
], - "adultOnly": true,
- "bidCount": 0,
- "buyingOptions": [
- "string"
], - "categories": [
- {
- "categoryId": "string"
}
], - "condition": "string",
- "conditionId": "string",
- "epid": "string",
- "image": {
- "height": 0,
- "imageUrl": "string",
- "width": 0
}, - "itemAffiliateWebUrl": "string",
- "itemGroupHref": "string",
- "itemGroupType": "string",
- "itemHref": "string",
- "itemId": "string",
- "itemLocation": {
- "addressLine1": "string",
- "addressLine2": "string",
- "city": "string",
- "country": "string",
- "county": "string",
- "postalCode": "string",
- "stateOrProvince": "string"
}, - "itemWebUrl": "string",
- "lastSoldDate": "string",
- "lastSoldPrice": {
- "convertedFromCurrency": "string",
- "convertedFromValue": "string",
- "currency": "string",
- "value": "string"
}, - "seller": {
- "feedbackPercentage": "string",
- "feedbackScore": 0,
- "username": "string"
}, - "thumbnailImages": [
- {
- "height": 0,
- "imageUrl": "string",
- "width": 0
}
], - "title": "string",
- "totalSoldQuantity": 0
}
], - "limit": 0,
- "next": "string",
- "offset": 0,
- "prev": "string",
- "refinement": {
- "aspectDistributions": [
- {
- "aspectValueDistributions": [
- {
- "localizedAspectValue": "string",
- "matchCount": 0,
- "refinementHref": "string"
}
], - "localizedAspectName": "string"
}
], - "buyingOptionDistributions": [
- {
- "buyingOption": "string",
- "matchCount": 0,
- "refinementHref": "string"
}
], - "categoryDistributions": [
- {
- "categoryId": "string",
- "categoryName": "string",
- "matchCount": 0,
- "refinementHref": "string"
}
], - "conditionDistributions": [
- {
- "condition": "string",
- "conditionId": "string",
- "matchCount": 0,
- "refinementHref": "string"
}
], - "dominantCategoryId": "string"
}, - "total": 0
}