Use the getFile method to fetch the details of a feed file available to download, as specified by the file's file_id.
Details in the response include: the feed's file_id, the date it became available, eBay categories that support the feed, its frequency, the time span it covers, its feed type, its format (currently only TSV is available), its size in bytes, the schema under which it was pulled, and the marketplaces it applies to.
This method is not supported in Sandbox environment.
All requests made to eBay REST operations require you to provide the
Authorization HTTP header for authentication authorization.
The table below shows additional HTTP request headers that are either required, conditionally required, or strongly recommended for this method. Other standard HTTP request headers- opens rest request components page (not in this table) can also be used, but they are optional.
|X-EBAY-C-MARKETPLACE-ID||string||This is the ID of the eBay marketplace on which the feed file exists. |
For a list of supported sites and other restrictions, see API Restrictions.
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.
This call has no payload.
This call has no field definitions.
This call has no response headers.
Indicates whether the application is permitted to access the feed file. One of
|dimensions||array of Dimension|
An array of dimensions supported by the corresponding feed file. Occurrence: Always
The key element for a value in the dimensions array, paired with its value(s). Currently, only CATEGORY (available L1 category) is available.
|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.”
The date on which the feed was created.
Specifies the frequency with which the feed file is made available (
The unique identifier of the feed type.
The file's unique identifier. This fileid is used to select the feed file when using the downloadFile method.
Format of the returned feed file. Currently only TSV is supported.
The eBay marketplace identifier for the marketplace(s) to which the feed applies.
Version of the API schema under which the feed was created.
Size of the feed file in bytes.
The time span between feed files that applies to the feed type (e.g., hourly, daily, weekly). This is returned in hours.
This enumeration value indicates the time unit used for the time period.
The number of units of time in the span.
This call can return one of the following HTTP status codes. For an overview of the status codes, see HTTP status codes in Using eBay RESTful APIs.
|500||Internal Server Error|
For more on errors, plus the codes of other common errors, see Handling errors.
|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.|
|14004||API_FEED||REQUEST||The specified file Id does not exist for marketplace specified or may have expired. Please check the maximum allowed look back for the feed type and scope.|
|14009||API_FEED||REQUEST||Insufficient permissions for the feed type for the specified marketplace. Please contact eBay Technical Support for further assistance.|
This call has no warnings.
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.
The getFile method returns a metadata details for a specified file.
The desired file, test_feedapi_file.gzip, is specified in the URI. The file name is obtained using the getFiles method.
The call returns details about the
test_feedapi_file.gzip file. The metadata in the response indicates that the feed file is for Category 1 (‘Collectables’) on the eBay Australia marketplace for November 10, 2021.