Using the Browse API, you can create a rich selection of items for your buyers to browse with keyword and category searches. You can also provides the ability to eBay members to add items and change the quantity of an item in their eBay shopping cart as well as view the contents of their eBay cart.
Browse API resources
The Browse API has the following resources:
- item_summary - Retrieve basic information for an item or a group of items based on a keyword, category, eBay product ID (ePID), or GTIN search.
- (Experimental) search_by_image - Retrieve basic information for an item or a group of items based on an image search. (Note: This is an Experimental Release.)
- item - Retrieve detailed information for a purchasable items to enable users to make buying decisions. In addition to the basic item information and providing additional information about shipping, seller, etc., the item details include product review data, item location, return policy terms, and more. This resource also provides a bridge between the RESTful Buy APIs and the legacy APIs, such as Trading and Finding.
- (Experimental) shopping_cart - Provides the ability for eBay members to see the contents of their eBay cart, add, remove, or change the quantity of items in their eBay cart. (Note: This is an Experimental Release.)
The Browse API is designed to be used together with the Buy APIs to create cohesive shopping, browsing, buying applications. For example, your buyers can have a seamless buying experience woven into a social application. This section outlines the high-level use cases for the Browse API.
Find eBay items using search
You can find exactly the items you want to show to your shoppers by searching for items by keyword, category, eBay product ID (EPID), GTIN, or image. Or a combination of these.
Refine the search results
You can control what is returned by the search using the fieldgroups field. By default, search returns matching items. But in addition to or instead of returning items, you can choose to return the aspects (all the variations of an item such and color and size), buying options (fixed or auction), conditions, and categories of the items found. These are known as refinements. This information enables you to create histograms, which enables shoppers to drill down in each refinement narrowing the search results.
Filter the search results by item aspects
You can use the information returned in aspectDistributions to filter the results by specific aspects, such as brand.
Filter the search results by field values
You can use field filters to refine the results based on the value returned in a field, such as listing format, item condition, price range, UPC value, listing end date, location, and more. You can use multiple filters in a single method. For details about, see Buy API Field Filters.
Get the details of each item in a group or a specific item
When the item has variations, you can retrieve the details of the individual items in an item group. You can also retrieve the details of a specific item.
Get item details using a legacy item ID or SKU
You can use the item IDs returned by eBay legacy APIs, such as Trading, Shopping, and Finding, to retrieve the details of the item and the RESTful item ID, which you can use with all the Buy API methods.
Add/change/remove/view items in an eBay cart
You can use the shopping_cart methods to add items to, remove items from, and change the quantity of an item an eBay member's cart on eBay. You can also retrieve all the items in the eBay member's cart. When the eBay member is ready to purchase the items, they go to the eBay site. To use this resource, you will use a User access token and get permission from the eBay member to act on their behalf, which allows you to make changes to their cart on eBay.
Please note the following constraints for the Browse API.
The Buy APIs identifiers for item and order do not match the identifiers used on the eBay site and in buyer emails. So you cannot use the Buy APIs identifiers with any of the eBay legacy APIs, such as Trading and Finding. But you can use the eBay legacy item identifiers in the Browse API getItemByLegacyId method to retrieve items. For details, see the Item ID legacy API compatibility overview in the Buying Integration Guide.
For a list of the supported eBay sites for all the Buy APIs, see Buy API Support by Marketplace.
To specify the site, set the X-EBAY-C-MARKETPLACE-ID request header to the site. For example:
X-EBAY-C-MARKETPLACE-ID = EBAY_GB
Search method restrictions
The following restrictions apply to the search and searchByImage methods.
- The search methods return only "Buy It Now" items. There are no auction items returned.
- The search methods can return a maximum of 10,000 items in a result set. A result set is the complete set of items returned by a method.
- You cannot use a wildcard (
*) in search method requests. For example, the following is not allowed:
shopping_cart resource restrictions
The following lists the restrictions that apply to the shopping_cart resource:
The end user must have an eBay account.
To be added to an eBay cart, the item must be a fixed price (no auctions) item that accepts PayPal payments.
An eBay member can have multiple carts but only one cart per site per member. Once a cart is created, is does not expire but it can be deleted.
shopping_cart resource restrictions
The following lists the restrictions that apply only to the shopping_cart resource:
- The end user must have an eBay account.
- To be added to an eBay cart, the item must be a fixed price (no auctions) item that accepts PayPal payments.
- An eBay member can have multiple carts but only one cart per site per member. Once a cart is created, is does not expire but it can be deleted.
eBay policies and rules
Although the eBay Buy APIs are available for anyone to use in eBay's sandbox environment, use of the APIs in production is restricted. Users must meet standard eligibility requirements, get approvals from eBay support organizations, and sign contracts with eBay and PayPal to access the Buy APIs in production.
See Buy APIs Requirements in the Buying Integration Guide for more information.