The getFiles method provides a list of the feed files available for download.Details for each feed returned include the date the feed was generated, the frequency with which it is pulled (currently only HOURLY is supported), its feed type, its fileid, its format (currently only TSV is supported), the eBay marketplaces it applies to, the schema version under which it was generated, its size in bytes, and the time span it covers (in hours).
You can limit your search results by feed type, marketplace, scope, and eBay L1 category.
For a list of supported sites and other restrictions, see API Restrictions.
Resource URI (production)
|feed_type_id||string||The unique identifier for the feed type. Use the getFeedTypes method to identify the available feed types. Currently |
|feed_scope||string||Specifies the frequency with which the feed file is made available (|
|category_ids||string||This query parameter is used to specify one or more eBay L1 category IDs. If this filter is used, only feed files that are supported for the specified category (or categories) will be returned in the response. Each category ID value must be delimited by a comma.|
Max: 20 values
|look_back||string||How far back from the current time to limit the returned feed files. The returned feed files will be those generated between the current time and the look-back time.|
Example: A value of
|limit||string||The number of records to show in the response.|
|continuation_token||string||The server returns this token to the web client when the responses received require multiple pages to display. The web client sends this token back to the server to get the next page of results. |
HTTP request headers
This request requires an access token created with the client credentials grant flow, using one or more scopes from the following list (please check your Application Keys page for a list of OAuth scopes available to your application):
See OAuth access tokens for more information.
|fileMetadata||array of FileMetadata||An array of metadata values describing the available feed files that match the input criteria. |
|fileMetadata.access||AccessEnum||Indicates whether the application is permitted to access the feed file. One of |
|fileMetadata.dimensions||array of Dimension||An array of dimensions supported by the corresponding feed file. |
Currently the only dimension available is CATEGORY.
|fileMetadata.dimensions.dimensionKey||DimensionKeyEnum||The key element for a value in the dimensions array, paired with its value(s). Currently, only CATEGORY (available L1 category) is available. |
|fileMetadata.dimensions.values||array of string||The dimension value(s) paired with the dimensionKey in the dimensions array. Currently, the only supported dimension is CATEGORY, so the values in this array will be L1 eBay categories.” |
|fileMetadata.feedDate||string||The date on which the feed was created. |
Format: UTC format
|fileMetadata.feedScope||FeedScopeEnum||Specifies the frequency with which the feed file is made available (|
|fileMetadata.feedTypeId||string||Unique identifier of the feed type. Currently only |
|fileMetadata.fileId||string||The file's unique identifier. This fileid is used to select the feed file when using the downloadFile method. |
|fileMetadata.format||FormatEnum||Format of the returned feed file. Currently only TSV is supported. |
|fileMetadata.marketplaceId||MarketplaceIdEnum||The eBay marketplace identifier for the marketplace(s) to which the feed applies.|
|fileMetadata.schemaVersion||string||Version of the API schema under which the feed was created. |
|fileMetadata.size||integer||Size of the feed file in bytes. |
|fileMetadata.span||TimeDuration||The time span between feed files that applies to the feed type (e.g., hourly, daily, weekly). This is returned in hours. |
|fileMetadata.span.unit||TimeDurationUnitEnum||This enumeration value indicates the time unit used for the time period. |
|fileMetadata.span.value||integer||The number of units of time in the span. |
|href||string||The URL to to the current set of results. |
|limit||integer||The number of results that will be displayed on each page, as set by the limit URI parameter.|
|next||string||You can use this URL to retrieve the next page of results beyond those displayed on the page if there are more results that match the search criteria. |
|total||integer||The total number of matches for the search criteria. |
For more on errors, plus the codes of other common errors, see Handling errors.
|13003||API_FEED||REQUEST||Invalid 'feed_scope'. Valid values: [HOURLY,DAILY,WEEKLY]|
|13006||API_FEED||APPLICATION||There was a problem with an eBay internal system or process. Contact eBay developer support for assistance.|
|13014||API_FEED||REQUEST||Invalid or missing header X-EBAY-C-MARKETPLACE-ID.|
|14001||API_FEED||REQUEST||Invalid limit. Supported ranges 20 - 100.|
|14002||API_FEED||REQUEST||Invalid or expired continuation token.|
|14005||API_FEED||REQUEST||Maximum number of category_ids exceeded.Limit: 20.|
|14006||API_FEED||REQUEST||Invalid look back period for the feedType and feedScope.Please refer to documentation.|
|14008||API_FEED||REQUEST||Invalid or missing feed type Id.|
|14009||API_FEED||REQUEST||Insufficient permissions for the feed type for the specified marketplace. Please contact eBay Technical Support for further assistance.|
New to making API calls? Please see Making a Call.
Note: Identifiers, such as order IDs or user IDs, and personal data in these samples might be anonymized or may no longer be active on eBay. If necessary, substitute current, relevant eBay data in your requests.
Sample 1: Create a List of Available Downloads
Important: Unfiltered lists can be extremely large; it is best to filter by at least feed type.
test_feedapi_file.gzip, is available for download. It is a daily curated feed restricted to L1 category
1in the Australian marketplace.