FindPopularItems

FindPopularItems enables you to search for popular items based on a category or keyword. It evaluates popularity based on criteria such as Watch Count and other criteria as determined by eBay. This call returns WatchCount in addition to item information.

On input, you specify keywords or category IDs. You may use them separately to retrieve items by keyword or category, or combine them to limit the search to a specific item and category combination. For example, you could search for popular items by the keyword "Nikon" or by category Digital Cameras (# 29997), but if you combine keyword and category in a single query, you will get the most popular "Nikon" items in the Digital Camera category.

You can exclude category IDs by specifying CategoryIDExclude and you may use it with QueryKeywords and CategoryID. So similarly, you could search for "Nikon" in all categories except Digital Cameras.

For information about specifying affiliate parameters, see Affiliate URL Parameters and HTTP Header Values.

Some items can be listed in two categories- primary and secondary. For example, a signed, 1st edition copy of Harry Potter and the Philosopher's Stone book might belong to the Antiquarian and Collectible (category #29223) as a primary category and Children's books category (category #279) as a secondary category. If you specify a CategoryID or CategoryIDExclude, be aware that FindPopularItems searches both primary and secondary categories. However, only PrimaryCategoryID is included in the results.

You must specify either a keyword or a category ID in the request. A maximum of 20 items is returned.

Note: FindPopularItems can be slower than FindPopularSearches and FindProducts. Also, due to the way popular item data is cached, you may get a faster response when you run the same query a second time.

Best Practices

FindPopularItems can be a great way to find basic information about popular items. It returns information similar to FindItems, so if you need additional information such as Seller Feedback, you can use FindPopularItems with GetSingleItem. First, use FindPopularItems to obtain the ItemID of a popular item. Then use this ItemID as an input in GetSingleItem, along with IncludeSelector set to Details, to obtain the Item.Seller.FeedbackScore in the output( the feedback rating of the seller who is offering this popular item).

More Tips

If you discover other useful practices, feel free to add them in the User-Contributed Notes at the bottom of this page.

If you're looking for more tips, try searching the Knowledge Base and Developer Forums.

Related calls:



Back to top

FindPopularItems Input

The box below lists all fields that could be included in the call request. To learn more about an individual field or its type, click its name in the box (or scroll down to find it in the table below the box).

See also Samples.

See also the Deprecated Objects link above. Fields presented in this color are deprecated, and fields presented in this color are (or soon will be) non-operational.

<?xml version="1.0" encoding="utf-8"?>
<FindPopularItemsRequest xmlns="urn:ebay:apis:eBLBaseComponents">
  <!-- Standard Input Fields -->
  <MessageID> string </MessageID>
  <!-- Call-specific Input Fields -->
  <CategoryID> string </CategoryID>
  <!-- ... more CategoryID nodes here ... -->
  <CategoryIDExclude> string </CategoryIDExclude>
  <!-- ... more CategoryIDExclude nodes here ... -->
  <MaxEntries> int </MaxEntries>
  <QueryKeywords> string </QueryKeywords>
</FindPopularItemsRequest>
Argument Type Reqd? Meaning
Standard Input Fields   [Jump to call-specific fields]
MessageID string Optional If you pass a value in MessageID in a request, we'll return the same value in CorrelationID in the response. If you're making a lot of calls, you can use this for tracking that a response is returned for every request and to match particular responses to particular requests. (In this case, specify a different value for each request.) You can specify any value that is useful to you.
Call-specific Input Fields
CategoryID string
(repeatable)
Conditional Specify CategoryID to restrict your query to a specific category. Up to 10 categories may be specified. If you are using a URL, and you want to specify more than one CategoryID, separate the values with a comma. For example, to specify Fiction Books and Children's Books, specify CategoryID=377,279.

If the specified category ID doesn't match an existing category for the site, an invalid-category error message is returned. To determine valid categories:
Use the FindItemsAdvanced CategoryHistogram value in the IncludeSelector field to retrieve matching categories. Then make another FindItemsAdvanced call with the ID of a matching category.

CategoryID can be used in combination with QueryKeywords and CategoryIDExclude. To retrieve the most popular items across all categorys, do not submit a CategoryID.
Max length: 10.
CategoryIDExclude string
(repeatable)
Optional Specify this value if you want search results to be filtered so that the popular items returned do not include items that belong to a specific category.

CategoryIDExclude is an unbounded field. If you are using a URL, you can separate multiple values with a comma. For example, if you want to specify Records and SuperAudio CDs, specify CategoryIDExclude=306,46354.

If you use CategoryIDExclude, it must be used in with QueryKeywords or CategoryID. The CategoryIDExclude input field need not be used if you specified the CategoryID input field.
MaxEntries int Optional Specifies the maximum number of entries to return in a single call.
Min: 0. Max: 100.
QueryKeywords string Conditional A query that specifies a string for searching titles of items on eBay. If you are using a URL, then to search for multiple words, use "%20". For example, use Harry%20Potter to search for items containing those words in any order. You can incorporate wildcards into a multi-word search, as in the following: ap*%20ip*. The words "and" and "or" are treated like any other word. Only use "and", "or", or "the" if you are searching for listings containing these words. QueryKeywords can be used in combination with CategoryID and CategoryIDExclude.
Max length: 350 (characters).

See Searching by Keywords.



Back to top

FindPopularItems Output

The box below lists all fields that might be returned in the response. To learn more about an individual field or its type, click its name in the box (or scroll down to find it in the table below the box).

See also Samples.

See also the Deprecated Objects link above. Fields presented in this color are deprecated, and fields presented in this color are not returned (or soon will not be returned) or are not operational (or soon will be non-operational).

<?xml version="1.0" encoding="utf-8"?>
<FindPopularItemsResponse xmlns="urn:ebay:apis:eBLBaseComponents">
  <!-- Standard Output Fields -->
  <Ack> AckCodeType </Ack>
  <Build> string </Build>
  <CorrelationID> string </CorrelationID>
  <Errors> ErrorType 
    <ErrorClassification> ErrorClassificationCodeType </ErrorClassification>
    <ErrorCode> token </ErrorCode>
    <ErrorParameters ParamID="string"> ErrorParameterType 
      <Value> string </Value>
    </ErrorParameters>
    <!-- ... more ErrorParameters nodes here ... -->
    <LongMessage> string </LongMessage>
    <SeverityCode> SeverityCodeType </SeverityCode>
    <ShortMessage> string </ShortMessage>
  </Errors>
  <!-- ... more Errors nodes here ... -->
  <Timestamp> dateTime </Timestamp>
  <Version> string </Version>
  <!-- Call-specific Output Fields -->
  <ItemArray> SimpleItemArrayType 
    <Item> SimpleItemType 
      <BidCount> int </BidCount>
      <ConvertedCurrentPrice> AmountType (double) </ConvertedCurrentPrice>
      <EndTime> dateTime </EndTime>
      <GalleryURL> anyURI </GalleryURL>
      <ItemID> string </ItemID>
      <ListingStatus> ListingStatusCodeType </ListingStatus>
      <ListingType> ListingTypeCodeType </ListingType>
      <PrimaryCategoryID> string </PrimaryCategoryID>
      <PrimaryCategoryName> string </PrimaryCategoryName>
      <ShippingCostSummary> ShippingCostSummaryType 
        <ShippingServiceCost> AmountType (double) </ShippingServiceCost>
        <ShippingType> ShippingTypeCodeType </ShippingType>
      </ShippingCostSummary>
      <TimeLeft> duration </TimeLeft>
      <Title> string </Title>
      <ViewItemURLForNaturalSearch> anyURI </ViewItemURLForNaturalSearch>
      <WatchCount> int </WatchCount>
    </Item>
    <!-- ... more Item nodes here ... -->
  </ItemArray>
</FindPopularItemsResponse>
Return Value Type Returned? Meaning
Standard Output Fields   [Jump to call-specific fields]
Ack AckCodeType Always Indicates whether the call was successfully processed by eBay.

Applicable values:

•   CustomCode

(out) Reserved for internal or future use.

•   Failure

(out) Request processing failed

•   Success

(out) Request processing succeeded

•   Warning

(out) Request processing completed with warning information being included in the response message


(Not all values in AckCodeType apply to this field.)
Build string Always This refers to the particular software build that eBay used when processing the request and generating the response. This includes the version number plus additional information. eBay Developer Support may request the build information when helping you resolve technical issues.
CorrelationID string Conditionally If you pass a value in MessageID in a request, we will return the same value in CorrelationID in the response. You can use this for tracking that a response is returned for every request and to match particular responses to particular requests. Only returned if MessageID was used.
Errors ErrorType
(repeatable)
Conditionally A list of application-level errors or warnings (if any) that were raised when eBay processed the request.

Application-level errors occur due to problems with business-level data on the client side or on the eBay server side. For example, an error would occur if the request contains an invalid combination of fields, or it is missing a required field, or the value of the field is not recognized. An error could also occur if eBay encountered a problem in our internal business logic while processing the request.

Only returned if there were warnings or errors.
Errors.ErrorClassification ErrorClassificationCodeType Conditionally API errors are divided between two classes: system errors and request errors.

Applicable values:

•   CustomCode

(out) Reserved for internal or future use.

•   RequestError

(out) An error has occurred either as a result of a problem in the sending application or because the application's end-user has attempted to submit invalid data (or missing data). In these cases, do not retry the request. The problem must be corrected before the request can be made again. If the problem is due to something in the application (such as a missing required field), the application must be changed. If the problem is a result of end-user data, the application must alert the end-user to the problem and provide the means for the end-user to correct the data. Once the problem in the application or data is resolved, resend the request to eBay with the corrected data.

•   SystemError

(out) Indicates that an error has occurred on the eBay system side, such as a database or server down. An application can retry the request as-is a reasonable number of times (eBay recommends twice). If the error persists, contact Developer Technical Support. Once the problem has been resolved, the request may be resent in its original form.




See Errors by Number.
Errors.ErrorCode token Conditionally A unique code that identifies the particular error condition that occurred. Your application can use error codes as identifiers in your customized error-handling algorithms.

See Errors by Number.
Errors.ErrorParameters ErrorParameterType
(repeatable)
Conditionally Some warning and error messages return one or more variables that contain contextual information about the error. This is often the field or value that triggered the error. You can usually predict where these will occur by looking at the "replaceable_value" indicators in our Errors by Number page.

See Errors by Number.
Errors.ErrorParameters
  [ attribute ParamID ]
string Conditionally The index of the parameter in the error.
Errors.ErrorParameters.Value string Conditionally The value of the variable.
Errors.LongMessage string Conditionally A more detailed description of the condition that raised the error.

See Errors by Number.
Errors.SeverityCode SeverityCodeType Conditionally Indicates whether the error caused the request to fail.

If the request fails and the source of the problem is within the application (such as a missing required element), please change the application before you retry the request. If the problem is due to end-user input data, please alert the end-user to the problem and provide the means for them to correct the data. Once the problem in the application or data is resolved, you can attempt to re-send the request to eBay.

If the source of the problem is on eBay's side, you can retry the request as-is a reasonable number of times (eBay recommends twice). If the error persists, contact Developer Technical Support. Once the problem has been resolved, the request may be resent in its original form.

When a warning occurs, the error is returned in addition to the business data. In this case, you do not need to retry the request (as the original request was successful). However, depending on the cause or nature of the warning, you might need to contact either the end user or eBay to effect a long term solution to the problem to prevent it from reoccurring in the future.

Applicable values:

•   CustomCode

(out) Reserved for internal or future use

•   Error

(out) The request that triggered the error was not processed successfully. When a serious application-level error occurs, the error is returned instead of the business data.

•   Warning

(out) The request was processed successfully, but something occurred that may affect your application or the user. For example, eBay may have changed a value the user sent in. In this case, eBay returns a normal, successful response and also returns the warning.




See:
    Errors by Number
    Requirements for Error Handling for more information (in the eBay Trading Web Services guide)
Errors.ShortMessage string Conditionally A brief description of the condition that raised the error.

See Errors by Number.
Timestamp dateTime Always This value represents the date and time when eBay processed the request. The time zone of this value is GMT and the format is the ISO 8601 date and time format (YYYY-MM-DDTHH:MM:SS.SSSZ). See the "dateTime" type for information about this time format and converting to and from the GMT time zone.
Version string Always The release version that eBay used to process the request.

Note: This is usually the latest release version, as specified in the release notes. (eBay releases the API to international sites about a week after we release it to the US site.)

If a field in the response returns the token "CustomCode", it usually means that the field is a code type (a token or enumeration), and that in your request URL (or HTTP header) you specified a version that is older than the version in which the token was added to the call.

See eBay Versioning Strategy.
Call-specific Output Fields
ItemArray SimpleItemArrayType Always A list of active items that were listed with the requested product.
ItemArray.Item SimpleItemType
(repeatable)
Always Contains data for an item listing.
ItemArray.Item.BidCount int Always The number of bids that have been placed on the item.

On most sites, once a Chinese auction has bids, the listing is no longer eligible for Buy It Now. (This is not necessarily true for Dutch auctions. See Item.BuyItNowAvailable for Dutch auctions.)
ItemArray.Item
  .ConvertedCurrentPrice
AmountType (double) Always The listing's current price, converted to the currency of the site specified in the request. If the item is a multi-quantity listing, this is the price of one item.

Price fields are returned as doubles, not necessarily in the usual monetary amount format of the site. For example, a US Dollar value might be returned as 3.879938 instead of 3.88.

For competitive-bidding listings (Chinese and Dutch auctions), this is the current minimum bid price (if the listing has no bids) or the current high bid (if the listing has bids). (Compare to BuyItNowPrice).

For Basic Fixed-Price (FixedPriceItem), Store Inventory (StoresFixedPrice), and Ad format (AdType) listings, this is the current fixed price.

For active items, refresh this value every 24 hours to pick up the current conversion rates (if this value has been converted).
ItemArray.Item.EndTime dateTime Always Time stamp (in GMT) of when the listing is scheduled to end, or time stamp of the actual end time (if the item ended). In FindItemsAdvanced and FindItems, for StoresFixedPrice items which are "Good Till Canceled," this value is 5 minutes later than the actual end time of the item. The discrepancy is intended to facilitate renewal every 30 days of such items' end times.
ItemArray.Item.GalleryURL anyURI Conditionally URL for a picture used as the Gallery thumbnail, if any. The image uses one of the following graphics formats: JPEG, BMP, TIF, or GIF. Only returned if the seller chose to show a gallery image.
ItemArray.Item.ItemID string Always The ID that uniquely identifies the item listing. eBay generates this ID when an item is listed. This ID is unique across all eBay sites.
Max length: 19 (Note: The eBay database specifies 38. Currently, Item IDs are usually 9 to 12 digits).
ItemArray.Item.ListingStatus ListingStatusCodeType Always Specifies a listing's status in eBay's processing workflow. If an item's EndTime is in the past, but no details about the buyer or high bidder are shown (and the user is not anonymous), use this listing status information to determine whether eBay has finished processing the listing.

Applicable values:

•   Active

(out) The listing is still live, or it has recently ended but eBay has not completed processing the listing (e.g., we're still determining the high bidder). A multi-item listing is considered active until all items have winning bids or purchases or the listing's end time has passed. (That is, if the listing has a Quantity of 10, the sale of 1 of those items doesn't end the listing.) If the listing has ended but this Active status is returned, please allow several minutes for eBay to finish processing the listing.

•   Completed

(out) The listing has ended and eBay has completed processing of the sale (if any), such as determining the high bidder. You can think of Completed and Ended as essentially equivalent. (The difference is only meaningful to the seller of the item, as Completed indicates whether eBay has finished calculating certain selling fees.)

•   CustomCode

(out) Placeholder value. See token.

•   Ended

(out) The listing has ended and eBay has completed processing of the sale (if any), such as determining the high bidder.


ItemArray.Item.ListingType ListingTypeCodeType Always The format of the listing, such as online auction, fixed price, or advertisement format.

Applicable values:

•   AdType

(out) Advertisement to solicit inquiries on listings such as real estate. Permits no bidding on that item, service, or property. To express interest, a buyer fills out a contact form that eBay forwards to the the seller as a lead. This format does not enable buyers and sellers to transact online through eBay, and eBay Feedback is not available for ad format listings.

•   Chinese

(out) Single-quantity online auction format. A Chinese auction has a Quantity of 1. Buyers engage in competitive bidding, although Buy It Now may be offered as long as no bids have been placed. Online auctions are listed on eBay.com, and they are also listed in the seller's eBay Store if the seller is a Store owner.

•   CustomCode

(out) Placeholder value. See token.

•   Dutch

(out) Multiple-quantity online auction format. A Dutch auction has a Quantity greater than 1. Buyers engage in competitive bidding. Some sites also offer Buy It Now for Dutch auctions. Online auctions are listed on eBay.com, and they are also listed in the seller's eBay Store if the seller is a Store owner.

•   Express

(out) For Germany only: eBay Express-only format (item is listed only on eBay Express Germany, not on eBay).

•   FixedPriceItem

(out) A basic fixed-price listing with a Quantity of 1 or more. Allows no auction-style bidding. Also known as Buy It Now Only on some sites (not to be confused with the BuyItNow option that is available for Chinese auctions). Fixed-price listings appear on eBay.com, and they are also listed in the seller's eBay Store if the seller is a Store owner.

•   LeadGeneration

(out) Lead Generation format (advertisement-style listing to solicit inquiries or offers, no bidding or fixed price, listed on eBay).

•   Live

(out) Live auction, on-site auction that can include non-eBay bidders. Live auctions are listed on the eBay Live Auctions site, in live auction categories. They can also appear on eBay if the seller lists the lot in a secondary category that is an eBay category.

•   PersonalOffer

(out) Second chance offer made to a non-winning bidder on an ended listing. A seller can make an offer to a non-winning bidder when either the winning bidder has failed to pay for an item or the seller has a duplicate of the item. Second-chance offer items are on eBay, but they do not appear when browsing or searching listings. You need to already know the item ID in order to retrieve a second-chance offer.

•   StoresFixedPrice

(out) A fixed-price format for eBay Store sellers. Store Inventory listings appear after other listings in regular browse and search item lists on eBay. They have a lower Insertion Fee and longer listing durations. Only specified by sellers who have an eBay Store. Store Inventory listings are listed on eBay.com, and they are also listed in the seller's eBay Store.

•   Unknown

(out) Unknown auction type. (This is not normally used.)


(Not all values in ListingTypeCodeType apply to this field.)
ItemArray.Item
  .PrimaryCategoryID
string Always Numeric ID of the first (or only) category in which the item is listed. (Listings can appear in more than one category.)

Note: Currently, GetSingleItem does not return a listing's secondary category, if any.
ItemArray.Item
  .PrimaryCategoryName
string Always Display name of the first (or only) category in which the item is listed. This is a fully qualified category breadcrumb (e.g., Computers & Networking:Laptops, Notebooks).
ItemArray.Item
  .ShippingCostSummary
ShippingCostSummaryType Always Contains basic shipping-related costs for the item. If Item.Quantity is greater than 1, this is the shipping cost for one item. If the seller offers a choice of more than one shipping service (such as UPS Ground and USPS Media mail), this is the cost of the "first" shipping option (usually the lowest cost option).

If a listing has shipping costs, use GetShippingCosts if you want to get more details about the services and costs that the seller is offering.

See GetShippingCosts.
ItemArray.Item
  .ShippingCostSummary
  .ShippingServiceCost
AmountType (double) Conditionally The basic shipping cost of the item. If multiple items were purchased, this includes the ShippingServiceAdditionalCost.
ItemArray.Item
  .ShippingCostSummary
  .ShippingType
ShippingTypeCodeType Always How the seller stated that cost of shipping is to be determined, such as flat rate or calculated or free.

In GetSingleItem, this is always returned when ShippingCostSummary is returned.

Applicable values:

•   Calculated

(out) The calculated shipping model: the posted cost of shipping is based on the seller-offered and buyer-selected shipping service, where the shipping costs are calculated by eBay and the shipping carrier based on the buyer's address, and any packaging/handling costs established by the seller are automatically rolled into the total.

•   CalculatedDomesticFlatInternational

(out) The seller specified one or more calculated domestic shipping services and one or more flat international shipping services.

•   CustomCode

(out) Placeholder value. See token.

•   Flat

(out) The flat rate shipping model: the seller establishes the cost of shipping and cost of shipping insurance, regardless of what any buyer-selected shipping service might charge the seller.

•   FlatDomesticCalculatedInternational

(out) The seller specified one or more flat domestic shipping services and one or more calculated international shipping services.

•   Free

(out) Free is used when the seller is declaring that shipping is free for the buyer. Since Free cannot be selected via API, the seller has two options for signifying that shipping is free when listing an item:
- omit shipping details, mention in the item description that shipping is free, and set ShippingTermsInDescription to true
- select an arbitrary shipping service and set its shipping cost to 0, mention in the item description that shipping is free, and set ShippingTermsInDescription to true
The latter is a better way to communicate "free shipping" because eBay picks up the "0" cost and can more accurately identify shipping costs in search results.

•   Freight

(out) The freight shipping model: the cost of shipping is determined by a third party, FreightQuote.com, based on the item location (zip code). Currently, Freight can only be specified on input via eBay Web site, not via API.

•   NotSpecified

(out) The seller did not specify the shipping type.


ItemArray.Item.TimeLeft duration Always Time left before the listing ends. The duration is represented in the ISO 8601 duration format (PnYnMnDTnHnMnS). For ended listings, the time left is PT0S (zero seconds).
ItemArray.Item.Title string Always Name of the item as it appears in the listing or in search and browse results.

For US eBay Motors vehicles only: In item-retrieval calls (like GetSingleItem and GetMultipleItems), this value shows the vehicle Make and Model (e.g., "Buick : Skylark").

In finding calls (like FindItemsAdvanced), this value concatenates several Item Specifics: The Make (e.g., "Buick"), Model (e.g., Skylark), Submodel (e.g., Limited), and the seller's customized subtitle (e.g., "Great deal!"). Call GetSingleItem with IncludeSelector=ItemSpecifics to see the individual Item Specifics (in Item.ItemSpecifics).

Note: GetSingleItem and FindItemsAdvanced do not return the same Item.Title value for US eBay Motors listings. Here's why:

In general, GetSingleItem maps to eBay's View Item page. The eBay Motors Web site's View Item page shows two vehicle titles in the title bar: One title is a label based on the Year, Make, Model, and Submodel (e.g., "1996 Buick Skylark Limited"). The model is included unless it's "Other" or unspecified. The submodel is included if the seller specified a submodel. The other title is a path based on the Make and Model (e.g., "Buick : Skylark"). The Item.Title value in GetSingleItem maps to this path.

In general, FindItemsAdvanced maps to eBay's advanced search functionality. The Item.Title value described above for FindItemsAdvanced maps to the item's search result title in the eBay Motors search results page.

ItemArray.Item
  .ViewItemURLForNaturalSearch
anyURI Always The URL to view this listing on eBay. This URL is optimized to support natural search. That is, this URL is designed to make items on eBay easier to find via popular Internet search engines. For example, this URL specifies the item title, and it is optimized for natural search: "_W0QQ" is like "?" (question mark), "QQ" is like "&" (ampersand), and "Z" is like "=" (equals sign). You shouldn't modify the query syntax in your application. For example, eBay won't recognize the URL if you change QQ to ?. In the Sandbox environment and on the Hong Kong site (site ID 201), the data returned in this field by FindItemsAdvanced is a standard ViewItem URL, rather than the ViewItem URL for natural search that generally is returned in the Production environment.
ItemArray.Item.WatchCount int Always Watch count for the item.



Back to top

FindPopularItems Detail Controls

This call does not use a detail control mechanism.



Back to top

FindPopularItems Samples

New to making API calls? Please see Making an API Call.

Note: Some item IDs, user IDs, or other data in these samples might no longer be active on eBay. If necessary, you can substitute current eBay data in your requests.

Available samples:

Sample: Basic Call

This search is a basic sample.

Input

Here is an example of using a keyword query to obtain detailed information about popular items.

URL format (HTTP GET). See also the non-wrapped version of this URL. For results in a format other than XML, 
specify a different value for responseencoding.
http://open.api.ebay.com/shopping?callname=FindPopularItems
   &responseencoding=XML
   &appid=YourAppIDHere
   &siteid=0
   &version=531
   &QueryKeywords=harry%20original

   Here is the same input in XML format (HTTP POST). Note that this does not include standard values.

XML format (HTTP POST). Also available is the .txt version of this XML.

<?xml version="1.0" encoding="utf-8"?>
<FindPopularItemsRequest xmlns="urn:ebay:apis:eBLBaseComponents">
  <QueryKeywords>harry original</QueryKeywords>
</FindPopularItemsRequest>

Output

Here is an example of the output that you can obtain using this call.

   If you chose XML as the response encoding type, you would get something like this.

XML format. Also available is the .txt version of this XML.

<?xml version="1.0" encoding="UTF-8" ?> 
<FindPopularItemsResponse xmlns="urn:ebay:apis:eBLBaseComponents">
  <Timestamp>2007-09-10T22:10:57.546Z</Timestamp> 
  <Ack>Success</Ack> 
  <Build>e531_core_APILW2_5302589_R1</Build> 
  <Version>531</Version> 
  <ItemArray>
    <Item>
      <ItemID>330000921552</ItemID>
      <EndTime>2007-09-14T23:22:59.000Z</EndTime>
      <ViewItemURLForNaturalSearch>http://cgi.ebay.com/Harry-Potter-And-The-Chamber-Of-Secrets-Original-S_W0QQitemZ330000921552QQcategoryZ307QQcmdZViewItem</ViewItemURLForNaturalSearch>
      <ListingType>Chinese</ListingType>
      <GalleryURL>http://thumbs.ebaystatic.com/pict/330000921552.jpg</GalleryURL>
      <PrimaryCategoryID>307</PrimaryCategoryID>
      <PrimaryCategoryName>Music:CDs</PrimaryCategoryName>
      <BidCount>1</BidCount>
      <ConvertedCurrentPrice currencyID="USD">3.9</ConvertedCurrentPrice>
      <ListingStatus>Active</ListingStatus>
      <TimeLeft>P6DT23H42M12S</TimeLeft>
      <Title>Harry Potter And The Chamber Of Secrets - Original S...</Title>
      <ShippingCostSummary>
        <ShippingServiceCost currencyID="USD">2.99</ShippingServiceCost>
        <ShippingType>Flat</ShippingType>
      </ShippingCostSummary>
      <WatchCount>2</WatchCount>
    </Item>
    <Item>
      <ItemID>170000840407</ItemID>
      <EndTime>2009-09-06T00:34:42.000Z</EndTime>
      <ViewItemURLForNaturalSearch>http://cgi.ebay.com/Harry-Potter-And-The-Chamber-Of-Secrets-Original-S_W0QQitemZ170000840407QQcategoryZ307QQcmdZViewItem</ViewItemURLForNaturalSearch>
      <ListingType>Chinese</ListingType>
      <PrimaryCategoryID>307</PrimaryCategoryID>
      <PrimaryCategoryName>Music:CDs</PrimaryCategoryName>
      <BidCount>1</BidCount>
      <ConvertedCurrentPrice currencyID="USD">5.0</ConvertedCurrentPrice>
      <ListingStatus>Active</ListingStatus>
      <TimeLeft>P729DT53M55S</TimeLeft>
      <Title>Harry Potter And The Chamber Of Secrets - Original S...</Title>
      <ShippingCostSummary>
        <ShippingType>NotSpecified</ShippingType>
      </ShippingCostSummary>
      <WatchCount>0</WatchCount>
    </Item>
  </ItemArray>
</FindPopularItemsResponse>

Back to list of samples

Sample: QueryKeyword and CategoryIDExclude Call

This search is a sample that combines QueryKeyword and CategoryIDExclude.

Input

Here is an example of using a keyword query and excluding category to obtain detailed information about popular items which do not belong to a specific category. In this example, we query for items with the keyword "potter" and do not belong to Children's Books (Category #279). We might construct a query like this to eliminate popular "Harry Potter" Children's books from the results, which may have skewed the results as the output is limited to 20 items.

URL format (HTTP GET). See also the non-wrapped version of this URL. For results in a format other than XML, 
specify a different value for responseencoding.
http://open.api.ebay.com/shopping?callname=FindPopularItems
   &responseencoding=XML
   &appid=YourAppIDHere
   &siteid=0
   &version=531
   &QueryKeywords=potter
   &CategoryIDExclude=279

   Here is the same input in XML format (HTTP POST). Note that this does not include standard values.

XML format (HTTP POST). Also available is the .txt version of this XML.

<?xml version="1.0" encoding="utf-8"?>
<FindPopularItemsRequest xmlns="urn:ebay:apis:eBLBaseComponents">
        <QueryKeywords>potter</QueryKeywords>
        <CategoryIDExclude>279</CategoryIDExclude>
</FindPopularItemsRequest>

Output

Here is an example of the output that you can obtain using this call.

   If you chose XML as the response encoding type, you would get something like this.

XML format. Also available is the .txt version of this XML.

<?xml version="1.0" encoding="utf-8"?>
<FindPopularItemsResponse xmlns="urn:ebay:apis:eBLBaseComponents">
  <Timestamp>2007-09-19T02:09:50.875Z</Timestamp>
  <Ack>Success</Ack>
  <Build>e531_intl_APILW2_5348019_R1</Build>
  <Version>531</Version>
  <ItemArray>
    <Item>
      <ItemID>102000050018</ItemID>
      <EndTime>2009-09-17T09:40:00.000Z</EndTime>
      <ViewItemURLForNaturalSearch>http://cgi.ebay.com/Solomon-Super-Gallery-PDP-Core-Harry-Potter_W0QQitemZ102000050018QQcategoryZ617QQcmdZViewItem</ViewItemURLForNaturalSearch>
      <ListingType>Chinese</ListingType>
      <GalleryURL>http://thumbs.ebaystatic.com/pict/102000050018.jpg</GalleryURL>
      <PrimaryCategoryID>617</PrimaryCategoryID>
      <PrimaryCategoryName>DVDs & Movies:DVD, HD DVD & Blu-ray</PrimaryCategoryName>
      <BidCount>13</BidCount>
      <ConvertedCurrentPrice currencyID="USD">255.0</ConvertedCurrentPrice>
      <ListingStatus>Active</ListingStatus>
      <TimeLeft>P729DT7H30M10S</TimeLeft>
      <Title>Solomon Super Gallery PDP Core Harry Potter</Title>
      <ShippingCostSummary>
        <ShippingType>NotSpecified</ShippingType>
      </ShippingCostSummary>
      <WatchCount>15</WatchCount>
    </Item>
    <Item>
      <ItemID>102000631919</ItemID>
      <EndTime>2009-09-17T09:40:00.000Z</EndTime>
      <ViewItemURLForNaturalSearch>http://cgi.ebay.com/GwQ-FindItemsAdvanced-CH_W0QQitemZ102000631919QQcategoryZ617QQcmdZViewItem</ViewItemURLForNaturalSearch>
      <ListingType>Chinese</ListingType>
      <GalleryURL>http://thumbs.ebaystatic.com/pict/102000631919.jpg</GalleryURL>
      <PrimaryCategoryID>617</PrimaryCategoryID>
      <PrimaryCategoryName>DVDs & Movies:DVD, HD DVD & Blu-ray</PrimaryCategoryName>
      <BidCount>13</BidCount>
      <ConvertedCurrentPrice currencyID="USD">255.0</ConvertedCurrentPrice>
      <ListingStatus>Active</ListingStatus>
      <TimeLeft>P729DT7H30M10S</TimeLeft>
      <Title>GwQ FindItemsAdvanced CH</Title>
      <ShippingCostSummary>
        <ShippingType>NotSpecified</ShippingType>
      </ShippingCostSummary>
      <WatchCount>14</WatchCount>
    </Item>
    <Item>
      <ItemID>102000050019</ItemID>
      <EndTime>2009-09-17T09:40:00.000Z</EndTime>
      <ViewItemURLForNaturalSearch>http://cgi.ebay.com/Solomon-Super-Gallery-PDP-Core-Harry-Potter_W0QQitemZ102000050019QQcategoryZ617QQcmdZViewItem</ViewItemURLForNaturalSearch>
      <ListingType>Chinese</ListingType>
      <GalleryURL>http://thumbs.ebaystatic.com/pict/102000050019.jpg</GalleryURL>
      <PrimaryCategoryID>617</PrimaryCategoryID>
      <PrimaryCategoryName>DVDs & Movies:DVD, HD DVD & Blu-ray</PrimaryCategoryName>
      <BidCount>3</BidCount>
      <ConvertedCurrentPrice currencyID="USD">26.0</ConvertedCurrentPrice>
      <ListingStatus>Active</ListingStatus>
      <TimeLeft>P729DT7H30M10S</TimeLeft>
      <Title>Solomon Super Gallery PDP Core Harry Potter</Title>
      <ShippingCostSummary>
        <ShippingType>NotSpecified</ShippingType>
      </ShippingCostSummary>
      <WatchCount>5</WatchCount>
    </Item>
    <Item>
      <ItemID>220000510279</ItemID>
      <EndTime>2009-09-17T10:34:53.000Z</EndTime>
      <ViewItemURLForNaturalSearch>http://cgi.ebay.com/Harry-Potter-and-the-Chamber-of-Secrets-by-J-K-Row_W0QQitemZ220000510279QQcategoryZ29792QQcmdZViewItem</ViewItemURLForNaturalSearch>
      <ListingType>Chinese</ListingType>
      <PrimaryCategoryID>29792</PrimaryCategoryID>
      <PrimaryCategoryName>Books:Audiobooks</PrimaryCategoryName>
      <BidCount>1</BidCount>
      <ConvertedCurrentPrice currencyID="USD">3.0</ConvertedCurrentPrice>
      <ListingStatus>Active</ListingStatus>
      <TimeLeft>P729DT8H25M3S</TimeLeft>
      <Title>Harry Potter and the Chamber of Secrets by J. K. Row...</Title>
      <ShippingCostSummary>
        <ShippingType>NotSpecified</ShippingType>
      </ShippingCostSummary>
      <WatchCount>2</WatchCount>
    </Item>
    <Item>
      <ItemID>3601373295</ItemID>
      <EndTime>2009-09-13T10:53:13.000Z</EndTime>
      <ViewItemURLForNaturalSearch>http://cgi.ebay.com/Harry-Potter-and-the-Chamber-of-Secrets-2003-DVD_W0QQitemZ3601373295QQcategoryZ617QQcmdZViewItem</ViewItemURLForNaturalSearch>
      <ListingType>Chinese</ListingType>
      <GalleryURL>http://thumbs.ebaystatic.com/pict/3601373295.jpg</GalleryURL>
      <PrimaryCategoryID>617</PrimaryCategoryID>
      <PrimaryCategoryName>DVDs & Movies:DVD, HD DVD & Blu-ray</PrimaryCategoryName>
      <BidCount>3</BidCount>
      <ConvertedCurrentPrice currencyID="USD">7.1</ConvertedCurrentPrice>
      <ListingStatus>Active</ListingStatus>
      <TimeLeft>P725DT8H43M23S</TimeLeft>
      <Title>Harry Potter and the Chamber of Secrets (2003, DVD)</Title>
      <ShippingCostSummary>
        <ShippingServiceCost currencyID="USD">2.49</ShippingServiceCost>
        <ShippingType>Flat</ShippingType>
      </ShippingCostSummary>
      <WatchCount>1</WatchCount>
    </Item>
    <Item>
      <ItemID>220000280110</ItemID>
      <EndTime>2009-09-17T10:34:53.000Z</EndTime>
      <ViewItemURLForNaturalSearch>http://cgi.ebay.com/Harry-Potter_W0QQitemZ220000280110QQcategoryZ1463QQcmdZViewItem</ViewItemURLForNaturalSearch>
      <ListingType>Chinese</ListingType>
      <PrimaryCategoryID>1463</PrimaryCategoryID>
      <PrimaryCategoryName>Collectibles:Trading Cards:Phone Cards</PrimaryCategoryName>
      <BidCount>3</BidCount>
      <ConvertedCurrentPrice currencyID="USD">1.0</ConvertedCurrentPrice>
      <ListingStatus>Active</ListingStatus>
      <TimeLeft>P729DT8H25M3S</TimeLeft>
      <Title>Harry Potter.</Title>
      <ShippingCostSummary>
        <ShippingType>NotSpecified</ShippingType>
      </ShippingCostSummary>
      <WatchCount>1</WatchCount>
    </Item>
    <Item>
      <ItemID>3601374166</ItemID>
      <EndTime>2009-09-17T11:07:17.000Z</EndTime>
      <ViewItemURLForNaturalSearch>http://cgi.ebay.com/GwQ-FindItemsAdvanced-CH_W0QQitemZ3601374166QQcategoryZ617QQcmdZViewItem</ViewItemURLForNaturalSearch>
      <ListingType>Chinese</ListingType>
      <GalleryURL>http://thumbs.ebaystatic.com/pict/3601374166.jpg</GalleryURL>
      <PrimaryCategoryID>617</PrimaryCategoryID>
      <PrimaryCategoryName>DVDs & Movies:DVD, HD DVD & Blu-ray</PrimaryCategoryName>
      <BidCount>3</BidCount>
      <ConvertedCurrentPrice currencyID="USD">7.1</ConvertedCurrentPrice>
      <ListingStatus>Active</ListingStatus>
      <TimeLeft>P729DT8H57M27S</TimeLeft>
      <Title>GwQ FindItemsAdvanced CH</Title>
      <ShippingCostSummary>
        <ShippingServiceCost currencyID="USD">2.49</ShippingServiceCost>
        <ShippingType>Flat</ShippingType>
      </ShippingCostSummary>
      <WatchCount>1</WatchCount>
    </Item>
    <Item>
      <ItemID>170001134829</ItemID>
      <EndTime>2007-09-21T20:10:06.000Z</EndTime>
      <ViewItemURLForNaturalSearch>http://cgi.ebay.com/SDK-item-title_W0QQitemZ170001134829QQcategoryZ378QQcmdZViewItem</ViewItemURLForNaturalSearch>
      <ListingType>FixedPriceItem</ListingType>
      <PrimaryCategoryID>378</PrimaryCategoryID>
      <PrimaryCategoryName>Books:Nonfiction Books</PrimaryCategoryName>
      <ConvertedCurrentPrice currencyID="USD">10.0</ConvertedCurrentPrice>
      <ListingStatus>Active</ListingStatus>
      <TimeLeft>P2DT18H16S</TimeLeft>
      <Title>SDK item title</Title>
      <ShippingCostSummary>
        <ShippingServiceCost currencyID="USD">1.0</ShippingServiceCost>
        <ShippingType>Flat</ShippingType>
      </ShippingCostSummary>
      <WatchCount>0</WatchCount>
    </Item>
    <Item>
      <ItemID>170001134913</ItemID>
      <EndTime>2007-09-21T23:06:12.000Z</EndTime>
      <ViewItemURLForNaturalSearch>http://cgi.ebay.com/Promo-Item_W0QQitemZ170001134913QQcategoryZ378QQcmdZViewItem</ViewItemURLForNaturalSearch>
      <ListingType>FixedPriceItem</ListingType>
      <PrimaryCategoryID>378</PrimaryCategoryID>
      <PrimaryCategoryName>Books:Nonfiction Books</PrimaryCategoryName>
      <ConvertedCurrentPrice currencyID="USD">10.0</ConvertedCurrentPrice>
      <ListingStatus>Active</ListingStatus>
      <TimeLeft>P2DT20H56M22S</TimeLeft>
      <Title>Promo Item</Title>
      <ShippingCostSummary>
        <ShippingServiceCost currencyID="USD">1.0</ShippingServiceCost>
        <ShippingType>Flat</ShippingType>
      </ShippingCostSummary>
      <WatchCount>0</WatchCount>
    </Item>
    <Item>
      <ItemID>170000840407</ItemID>
      <EndTime>2009-09-17T09:32:14.000Z</EndTime>
      <ViewItemURLForNaturalSearch>http://cgi.ebay.com/Harry-Potter-And-The-Chamber-Of-Secrets-Original-S_W0QQitemZ170000840407QQcategoryZ307QQcmdZViewItem</ViewItemURLForNaturalSearch>
      <ListingType>Chinese</ListingType>
      <PrimaryCategoryID>307</PrimaryCategoryID>
      <PrimaryCategoryName>Music:CDs</PrimaryCategoryName>
      <BidCount>1</BidCount>
      <ConvertedCurrentPrice currencyID="USD">5.0</ConvertedCurrentPrice>
      <ListingStatus>Active</ListingStatus>
      <TimeLeft>P729DT7H22M24S</TimeLeft>
      <Title>Harry Potter And The Chamber Of Secrets - Original S...</Title>
      <ShippingCostSummary>
        <ShippingType>NotSpecified</ShippingType>
      </ShippingCostSummary>
      <WatchCount>0</WatchCount>
    </Item>
    <Item>
      <ItemID>190000456297</ItemID>
      <EndTime>2009-09-17T09:40:00.000Z</EndTime>
      <ViewItemURLForNaturalSearch>http://cgi.ebay.com/harry-potter-gwq-minimium_W0QQitemZ190000456297QQcategoryZ617QQcmdZViewItem</ViewItemURLForNaturalSearch>
      <ListingType>Chinese</ListingType>
      <PrimaryCategoryID>617</PrimaryCategoryID>
      <PrimaryCategoryName>DVDs & Movies:DVD, HD DVD & Blu-ray</PrimaryCategoryName>
      <BidCount>1</BidCount>
      <ConvertedCurrentPrice currencyID="USD">1.0</ConvertedCurrentPrice>
      <ListingStatus>Active</ListingStatus>
      <TimeLeft>P729DT7H30M10S</TimeLeft>
      <Title>harry potter gwq minimium</Title>
      <ShippingCostSummary>
        <ShippingType>NotSpecified</ShippingType>
      </ShippingCostSummary>
      <WatchCount>0</WatchCount>
    </Item>
  </ItemArray>
</FindPopularItemsResponse>

Back to list of samples



Back to top

FindPopularItems Change History
Version Description
565
2008-05-14
  • MaxEntries (added): You can now see up to 100 items returned.
531
2007-21-09
  • (added) New call.



Back to top

User-Contributed Notes
   
 
 
 

This document was generated with a customized version of the apireferencedocs tool [0.5M zip].

© 2005–2008 eBay, Inc. All rights reserved.