Skip to main content

GET/file/{file_id}

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.

Input

Resource URI

GET https://api.ebay.com/buy/feed/v1/file/{file_id}

This method is not supported in Sandbox environment.

URI parameters

ParameterTypeDescription
file_idstringThis path parameter specifies the unique identifier of the feed file that you wish to retrieve.

Use the getFiles method to obtain the fileId value for the desired feed file.

Occurrence: Required

HTTP request headers

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.

HeaderTypeDescription
X-EBAY-C-MARKETPLACE-IDstringIndicates the unique identifier of the eBay marketplace on which the feed file exists.

Example: X-EBAY-C-MARKETPLACE-ID: EBAY_US.

See MarketplaceIdEnum for supported values.

Occurrence: Required

OAuth scope

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):

https://api.ebay.com/oauth/api_scope/buy.item.feed

See OAuth access tokens for more information.

Request payload

This call has no payload.

Request fields

This call has no field definitions.

Output

HTTP response headers

This call has no response headers.

Response payload

Response fields

Output container/fieldTypeDescription
accessAccessEnum

Indicates whether the application is permitted to access the feed file. One of ALLOWED or RESTRICTED.

Occurrence: Always

dimensionsarray of Dimension

An array of dimensions supported by the corresponding feed file.

Currently the only dimension available is CATEGORY.

Example:
"dimensionKey": "CATEGORY",
"values": ["15032"]

Occurrence: Always

dimensions.dimensionKeyDimensionKeyEnum

The key element for a value in the dimensions array, paired with its value(s). Currently, only CATEGORY (available L1 category) is available.

Occurrence: Always

dimensions.valuesarray 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.”

Occurrence: Always

feedDatestring

The date on which the feed was created.

Format: UTC format (yyyy-MM-ddThh:00:00.000Z).

Occurrence: Always

feedScopeFeedScopeEnum

Specifies the frequency with which the feed file is made available (HOURLY, DAILY, WEEKLY).

Currently only DAILY is supported.

Occurrence: Always

feedTypeIdstring

The unique identifier of the feed type.

Note: Refer to Supported feed types for additional details.

Occurrence: Always

fileIdstring

The file's unique identifier. This fileid is used to select the feed file when using the downloadFile method.

Occurrence: Always

formatFormatEnum

Format of the returned feed file. Currently only TSV is supported.

Occurrence: Always

marketplaceIdMarketplaceIdEnum

The eBay marketplace identifier for the marketplace(s) to which the feed applies.

Example: EBAY_UK.

Occurrence: Always

schemaVersionstring

Version of the API schema under which the feed was created.

Occurrence: Always

sizeinteger

Size of the feed file in bytes.

Occurrence: Always

spanTimeDuration

The time span between feed files that applies to the feed type (e.g., hourly, daily, weekly). This is returned in hours.

Possible Values: YEAR, MONTH, DAY, HOUR

Occurrence: Always

span.unitTimeDurationUnitEnum

This enumeration value indicates the time unit used for the time period.

Occurrence: Always

span.valueinteger

The number of units of time in the span.

Occurrence: Always

HTTP status codes

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.

StatusMeaning
200OK
400Bad Request
403Forbidden
404Not Found
500Internal Server Error

Error codes

For more on errors, plus the codes of other common errors, see Handling errors.

CodeDomainCategoryMeaning
13006API_FEEDAPPLICATIONThere was a problem with an eBay internal system or process. Contact eBay developer support for assistance.
13014API_FEEDREQUESTInvalid or missing header X-EBAY-C-MARKETPLACE-ID.
14004API_FEEDREQUESTThe 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.
14009API_FEEDREQUESTInsufficient permissions for the feed type for the specified marketplace. Please contact eBay Technical Support for further assistance.

Warnings

This call has no warnings.

Samples

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: Retrieve a List of a File's Details

The getFile method returns a metadata details for a specified file.

Input

The desired file, test_feedapi_file.gzip, is specified in the URI. The file name is obtained using the getFiles method.

GEThttps://api.ebay.com/buy/feed/v1/file/test_feedapi_file.gzip

Output

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.