Download OpenAPI specification:Download
Note: This is a (Limited Release) API available only to select developers approved by business units.
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 Feed SDK 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.
This 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 Response fields section.
There are two types of item feed files generated:
NEWLY_LISTED)ALL_ACTIVE)Note: Filters are applied to the feed files. For details, see Feed File Filters. 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.
https://api.ebay.com/buy/feed/v1_beta/item?https://api.sandbox.ebay.com/buy/feed/v1_beta/item?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 Range request header. The Content-range 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 Retrieving a gzip feed file.
In addition to the API, there is an open source Feed SDK 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.
For a list of supported sites and other restrictions, see API Restrictions.
| feed_scope required | string Specifies the type of feed file to return.
|
| category_id required | string An eBay top-level category ID of the items to be returned in the feed file. |
| date | string The date of the daily Item feed file (feed_scope= The date is required only for the daily Item feed file. If you specify a date for the Item Bootstrap file (feed_scope= The Item feed files are generated every day and there are 14 daily files available. Note:
Format:
|
| Accept required | string The formats that the client accepts for the response. |
| X-EBAY-C-MARKETPLACE-ID required | string The ID of the eBay marketplace where the item is hosted. Note: This value is case sensitive. |
| Range required | string This header specifies the range in bytes of the chunks of the gzip file being returned. |
{- "items": [
- {
- "itemId": "string",
- "title": "string",
- "imageUrl": "string",
- "category": "string",
- "categoryId": "string",
- "buyingOptions": "string",
- "sellerUsername": "string",
- "sellerFeedbackPercentage": "string",
- "sellerFeedbackScore": "string",
- "gtin": "string",
- "brand": "string",
- "mpn": "string",
- "epid": "string",
- "conditionId": "string",
- "condition": "string",
- "priceValue": "string",
- "priceCurrency": "string",
- "primaryItemGroupId": "string",
- "primaryItemGroupType": "string",
- "itemEndDate": "string",
- "sellerItemRevision": "string",
- "itemLocationCountry": "string",
- "localizedAspects": "string",
- "sellerTrustLevel": "string",
- "availability": "string",
- "imageAlteringProhibited": true,
- "estimatedAvailableQuantity": 0,
- "availabilityThresholdType": "string",
- "availabilityThreshold": 0,
- "returnsAccepted": true,
- "returnPeriodValue": 0,
- "returnPeriodUnit": "string",
- "refundMethod": "string",
- "returnMethod": "string",
- "returnShippingCostPayer": "string",
- "acceptedPaymentMethods": "string",
- "deliveryOptions": "string",
- "shipToIncludedRegions": "string",
- "shipToExcludedRegions": "string",
- "inferredEpid": "string",
- "inferredGtin": "string",
- "inferredBrand": "string",
- "inferredMpn": "string",
- "inferredLocalizedAspects": "string",
- "additionalImageUrls": "string",
- "originalPriceValue": "string",
- "originalPriceCurrency": "string",
- "discountAmount": "string",
- "discountPercentage": "string",
- "energyEfficiencyClass": "string",
- "qualifiedPrograms": "string",
- "lotSize": 0,
- "lengthUnitOfMeasure": "string",
- "packageWidth": "string",
- "packageHeight": "string",
- "packageLength": "string",
- "weightUnitOfMeasure": "string",
- "packageWeight": "string",
- "shippingCarrierCode": "string",
- "shippingServiceCode": "string",
- "shippingType": "string",
- "shippingCost": "string",
- "shippingCostType": "string",
- "additionalShippingCostPerUnit": "string",
- "quantityUsedForEstimate": 0,
- "unitPrice": "string",
- "unitPricingMeasure": "string",
- "legacyItemId": "string",
- "alerts": "string",
- "sellerAccountType": "string",
- "tyreLabelImageUrl": "string",
- "priorityListingPayload": "string",
- "itemCreationDate": "string",
- "itemWebUrl": "string",
- "defaultImageUrl": "string",
- "itemAffiliateWebUrl": "string",
- "ageGroup": "string",
- "color": "string",
- "pattern": "string",
- "size": "string",
- "gender": "string",
- "material": "string",
- "totalUnits": "string",
- "ecoParticipationFeeValue": "string",
- "ecoParticipationFeeCurrency": "string",
- "takeBackPolicyLabel": "string",
- "takeBackPolicyDescription": "string"
}
]
}This 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:
NEWLY_LISTED)ALL_ACTIVE)Note: Filters are applied to the feed files. For details, see Feed File Filters. 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 Response fields section.
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.
https://api.ebay.com/buy/feed/v1_beta/item_group?https://api.sandbox.ebay.com/buy/feed/v1_beta/item_group?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 Range request header. The content-range 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 Retrieving a gzip feed 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.
For a list of supported sites and other restrictions, see API Restrictions.
| feed_scope required | string Specifies the type of file to return.
|
| category_id required | string An eBay top-level category ID of the items to be returned in the feed file. |
| date | string The date of the daily Item Group feed file (feed_scope= The date is required only for the daily Item Group feed file. If you specify a date for the Item Group Bootstrap file (feed_scope= The Item Group feed files are generated every day and there are 14 daily files available. There is a 48 hour latency when generating the files. This means on July 10, the latest feed file you can download is July 8. Note: The generated files are stored using MST (US Mountain Standard Time), which is -7 hours UTC time.Format: yyyyMMddRequirement: Requirements:
|
| Accept required | string The formats that the client accepts for the response. |
| X-EBAY-C-MARKETPLACE-ID required | string The ID of the eBay marketplace where the item is hosted. Note: This value is case sensitive. |
| Range | string This header specifies the range in bytes of the chunks of the gzip file being returned. |
{- "itemGroups": [
- {
- "itemGroupId": "string",
- "itemGroupType": "string",
- "title": "string",
- "variesByLocalizedAspects": "string",
- "imageUrl": "string",
- "additionalImageUrls": "string",
- "imageAlteringProhibited": true
}
]
}The 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 changed 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 itemCreationDate to identify listings that were newly created within the specified hour.
Note: Filters are applied to the feed files. For details, see Feed File Filters. 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 itemSnapshotDate 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.
https://api.ebay.com/buy/feed/v1_beta/item_snapshot?https://api.sandbox.ebay.com/buy/feed/v1_beta/item_snapshot?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 Range request header. The Content-range 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 Retrieving a gzip feed 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.
For a list of supported sites and other restrictions, see API Restrictions.
| category_id required | string An eBay top-level category ID of the items to be returned in the feed file. |
| snapshot_date required | string The date and hour of the snapshot feed file you want. Each file contains the items that changed within the hour in the specified category. So, the 9AM file contains the items that changed between 9AM and 9:59AM on the day specified. It takes 2 hours to generate a snapshot file, which means to get the file for 9AM the earliest you could submit the call is at 11AM. Note: The Feed API uses GMT, so you must convert your local time to GMT. For example, if you lived in California and wanted the September 15th 7pm file, you would submit the following call: Files are generated on the hour, so minutes and seconds are always zeros. |
| Accept required | string The formats that the client accepts for the response. |
| X-EBAY-C-MARKETPLACE-ID required | string The ID of the eBay marketplace where the item is hosted. Note: This value is case sensitive. |
| Range required | string This header specifies the range in bytes of the chunks of the gzip file being returned. |
{- "items": [
- {
- "itemId": "string",
- "availability": "string",
- "title": "string",
- "imageUrl": "string",
- "category": "string",
- "categoryId": "string",
- "buyingOptions": "string",
- "sellerUsername": "string",
- "sellerFeedbackPercentage": "string",
- "sellerFeedbackScore": "string",
- "gtin": "string",
- "brand": "string",
- "mpn": "string",
- "epid": "string",
- "conditionId": "string",
- "condition": "string",
- "priceValue": "string",
- "priceCurrency": "string",
- "primaryItemGroupId": "string",
- "primaryItemGroupType": "string",
- "itemEndDate": "string",
- "sellerItemRevision": "string",
- "itemLocationCountry": "string",
- "localizedAspects": "string",
- "sellerTrustLevel": "string",
- "imageAlteringProhibited": true,
- "estimatedAvailableQuantity": 0,
- "availabilityThresholdType": "string",
- "availabilityThreshold": 0,
- "itemSnapshotDate": "string",
- "originalPriceValue": "string",
- "originalPriceCurrency": "string",
- "discountAmount": "string",
- "discountPercentage": "string",
- "returnsAccepted": true,
- "returnPeriodValue": 0,
- "returnPeriodUnit": "string",
- "refundMethod": "string",
- "returnMethod": "string",
- "returnShippingCostPayer": "string",
- "energyEfficiencyClass": "string",
- "additionalImageUrls": "string",
- "deliveryOptions": "string",
- "shipToIncludedRegions": "string",
- "shipToExcludedRegions": "string",
- "acceptedPaymentMethods": "string",
- "qualifiedPrograms": "string",
- "lotSize": 0,
- "shippingCarrierCode": "string",
- "shippingServiceCode": "string",
- "shippingType": "string",
- "shippingCost": "string",
- "shippingCostType": "string",
- "additionalShippingCostPerUnit": "string",
- "quantityUsedForEstimate": 0,
- "unitPrice": "string",
- "unitPricingMeasure": "string",
- "inferredEpid": "string",
- "itemCreationDate": "string",
- "legacyItemId": "string",
- "alerts": "string",
- "sellerAccountType": "string",
- "tyreLabelImageUrl": "string",
- "ageGroup": "string",
- "color": "string",
- "pattern": "string",
- "size": "string",
- "gender": "string",
- "material": "string",
- "totalUnits": "string",
- "defaultImageUrl": "string",
- "itemWebUrl": "string",
- "itemAffiliateWebUrl": "string",
- "description": "string",
- "changeMetadata": "string",
- "ecoParticipationFeeValue": "string",
- "ecoParticipationFeeCurrency": "string",
- "takeBackPolicyLabel": "string",
- "takeBackPolicyDescription": "string",
- "authenticityGuaranteeServiceId": "string",
- "authenticityGuaranteeSelection": "string",
- "authenticityGuaranteeFeeValue": "string",
- "authenticityGuaranteeFeeCurrency": "string",
- "couponDiscountType": "string",
- "couponRedemptionCode": "string",
- "couponMessage": "string",
- "couponTermsWebUrl": "string",
- "couponDiscountValue": "string",
- "couponDiscountCurrency": "string",
- "couponExpirationDate": "string"
}
]
}Using 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.
https://api.ebay.com/buy/feed/v1_beta/item_priority?https://api.sandbox.ebay.com/buy/feed/v1_beta/item_priority?Note: Filters are applied to the feed files. For details, see Feed File Filters. 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 Range request header. The Content-range 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 Retrieving a gzip feed file.
In addition to the API, there is an open source Feed SDK 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.
For a list of supported sites and other restrictions, see API Restrictions.
| category_id required | string An eBay top-level category ID of the items to be returned in the feed file. |
| date required | string The date of the feed you want returned. This can be up to 14 days in the past but cannot be set to a date in the future. |
| Accept required | string The formats that the client accepts for the response. |
| X-EBAY-C-MARKETPLACE-ID required | string The ID of the eBay marketplace where the item is hosted. Note: This value is case sensitive. |
| Range required | string Header specifying content range to be retrieved. Only supported range is bytes. |
{- "itemDelta": [
- {
- "itemId": "string",
- "priorityListingPayload": "string",
- "changeMetadata": "string"
}
]
}