ebay.com – buy-feed
Note: This is a API available only to select developers approved by business units. For information on how to obtain access to this API in production, see the Buy APIs Requirements [blocked].
The Feed API provides the ability to download TSV_GZIP feed files containing eBay items and an hourly snapshot file of the items that have changed within an hour for a specific category, date and marketplace.
In addition to the API, there is an open source written in Java that downloads, combines files into a single file when needed, and unzips the entire feed file. It also lets you specify field filters to curate the items in the file.
- Homepage
- https://api.apis.guru/v2/specs/ebay.com:buy-feed/v1_beta.34.0.json
- Provider
- ebay.com:buy-feed / buy-feed
- OpenAPI version
- 2.0
- Spec (JSON)
- https://api.apis.guru/v2/specs/ebay.com/buy-feed/v1_beta.34.0/openapi.json
- Spec (YAML)
- https://api.apis.guru/v2/specs/ebay.com/buy-feed/v1_beta.34.0/openapi.yaml
Tools (6)
Extracted live via the executor SDK.
-
item.getItemFeedThis method lets you download a TSV_GZIP (tab separated value gzip) Item feed file. The feed file contains all the items from all the child categories of the specified category. The first line of the file is the header, which labels the columns and indicates the order of the values on each line. Each header is described in the section.
There are two types of item feed files generated:
- A daily Item feed file containing all the newly listed items for a specific category, date, and marketplace (feed_scope =
NEWLY_LISTED) - A weekly Item Bootstrap feed file containing all the items in a specific category and marketplace (feed_scope =
ALL_ACTIVE)
Note: Filters are applied to the feed files. For details, see . When curating the items returned, be sure to code as if these filters are not applied as they can be changed or removed in the future.
Downloading feed files
Item feed files are binary gzip files. If the file is larger than 100 MB, the download must be streamed in chunks. You specify the size of the chunks in bytes using the request header. The response header indicates where in the full resource this partial chunk of data belongs and the total number of bytes in the file. For more information about using these headers, see .
In addition to the API, there is an open source written in Java that downloads, combines files into a single file when needed, and unzips the entire feed file. It also lets you specify field filters to curate the items in the file.
Note: A successful call will always return a TSV.GZIP file; however, unsuccessful calls generate errors that are returned in JSON format. For documentation purposes, the successful call response is shown below as JSON fields so that the value returned in each column can be explained. The order of the response fields shows the order of the columns in the feed file.
Restrictions
For a list of supported sites and other restrictions, see .
- A daily Item feed file containing all the newly listed items for a specific category, date, and marketplace (feed_scope =
-
itemGroup.getItemGroupFeedThis method lets you download a TSV_GZIP (tab separated value gzip) Item Group feed file. An item group is an item that has various aspect differences, such as color, size, storage capacity, etc.
There are two types of item group feed files generated:
- A daily Item Group feed file containing the item group variation information associated with items returned in the feed file for a specific day, category, and marketplace. (feed_scope =
NEWLY_LISTED) - A weekly Item Group Bootstrap feed file containing all the item group variation information associated with items returned in the feed file for all the items in a specific category. (feed_scope =
ALL_ACTIVE)
Note: Filters are applied to the feed files. For details, see . When curating the items returned, be sure to code as if these filters are not applied as they can be changed or removed in the future.
The contents of these feed files are based on the contents of the corresponding daily Item or Item Bootstrap feed file. When a new Item or Item Bootstrap feed file is generated, the service reads the file and if an item in the file has a primaryItemGroupId value, which indicates the item is part of an item group, it uses that value to return the item group (parent item) information for that item in the corresponding Item Group or Item Group Bootstrap feed file.
This information includes the name/value pair of the aspects of the items in this group returned in the variesByLocalizedAspects column. For example, if the item was a shirt some of the variation names could be Size, Color, etc. Also the images for the various aspects are returned in the additionalImageUrls column.
The first line in any feed file is the header, which labels the columns and indicates the order of the values on each line. Each header is described in the section.
Combining the Item Group and Item feed files
The Item Group or Item Group Bootstrap feed file contains details about the item group (parent item), including the item group ID itemGroupId. You match the value of itemGroupId from the Item Group feed file with the value of primaryItemGroupId from the corresponding daily Item or Item Bootstrap feed file.
Downloading feed files
Item Group feed files are binary gzip files. If the file is larger than 100 MB, the download must be streamed in chunks. You specify the size of the chunks in bytes using the request header. The response header indicates where in the full resource this partial chunk of data belongs and the total number of bytes in the file. For more information about using these headers, see .
Note: A successful call will always return a TSV.GZIP file; however, unsuccessful calls generate errors that are returned in JSON format. For documentation purposes, the successful call response is shown below as JSON fields so that the value returned in each column can be explained. The order of the response fields shows the order of the columns in the feed file.
Restrictions
For a list of supported sites and other restrictions, see .
- A daily Item Group feed file containing the item group variation information associated with items returned in the feed file for a specific day, category, and marketplace. (feed_scope =
-
itemPriority.getItemPriorityFeedUsing this method, you can download a TSV_GZIP (tab separated value gzip) Item Priority feed file, which allows you to track changes (deltas) in the status of your priority items, such as when an item is added or removed from a campaign. The delta feed tracks the changes to the status of items within a category you specify in the input URI. You can also specify a specific date for the feed you want returned.
Important: You must consume the daily feeds (Item, Item Group) before consuming the Item Priority feed. This ensures that your inventory is up to date.
Downloading feed files
Note: Filters are applied to the feed files. For details, see . When curating the items returned, be sure to code as if these filters are not applied as they can be changed or removed in the future.
Priority Item feed files are binary gzip files. If the file is larger than 100 MB, the download must be streamed in chunks. You specify the size of the chunks in bytes using the request header. The response header indicates where in the full resource this partial chunk of data belongs and the total number of bytes in the file. For more information about using these headers, see .
In addition to the API, there is an open source written in Java that downloads, combines files into a single file when needed, and unzips the entire feed file. It also lets you specify field filters to curate the items in the file.
Note: A successful call will always return a TSV.GZIP file; however, unsuccessful calls generate errors that are returned in JSON format. For documentation purposes, the successful call response is shown below as JSON fields so that the value returned in each column can be explained. The order of the response fields shows the order of the columns in the feed file.
Restrictions
For a list of supported sites and other restrictions, see .
-
itemSnapshot.getItemSnapshotFeedThe Hourly Snapshot feed file is generated each hour every day for most categories. This method lets you download an Hourly Snapshot TSV_GZIP (tab-separated value gzip) feed file containing the details of all the items that have within the specified day and hour for a specific category. This means to generate the 8AM file of items that have changed from 8AM and 8:59AM, the service starts at 9AM. You can retrieve the 8AM snapshot file at 10AM.
Snapshot feeds now include new listings. You can check to identify listings that were newly created within the specified hour.
Note: Filters are applied to the feed files. For details, see . When curating the items returned, be sure to code as if these filters are not applied as they can be changed or removed in the future.
You can use the response from this method to update the item details of items stored in your database. By looking at the value of for a given item, you will be able to tell which information is the latest.
Important: When the value of the availability column is
UNAVAILABLE, only the itemId and availability columns are populated.Downloading feed files
Hourly snapshot feed files are binary gzip files. If the file is larger than 100 MB, the download must be streamed in chunks. You specify the size of the chunks in bytes using the request header. The response header indicates where in the full resource this partial chunk of data belongs and the total number of bytes in the file. For more information about using these headers, see .
Note: A successful call will always return a TSV.GZIP file; however, unsuccessful calls generate errors that are returned in JSON format. For documentation purposes, the successful call response is shown below as JSON fields so that the value returned in each column can be explained. The order of the response fields shows the order of the columns in the feed file.
Restrictions
For a list of supported sites and other restrictions, see .
-
openapi.previewSpecPreview an OpenAPI document before adding it as a source
-
openapi.addSourceAdd an OpenAPI source and register its operations as tools