Developer Network Home - Help

Documentation for Yahoo! Shopping Web Services: Merchant Search

Version 1Shopping Web Services : Merchant Search

Submitting Merchant Search Queries

The Merchant Search service allows you to retrieve data on a particular Yahoo! Shopping merchant or set of merchants, using merchant IDs generated from the Product Search and Catalog Listing service. See also the User Product Review and Catalog Specs services.

Support & Community

The Merchant Search service is discussed on the yws-shopping mailing list.

Request URL

http://api.shopping.yahoo.com/ShoppingService/V1/merchantSearch

Request parameters

See information on constructing REST queries

Parameter Value Description
appid string (required) The application ID. See Application IDs for more information.
merchantid integer (required) The merchant id to search for. You may submit multiple values as separate parameters (e.g. merchantid=1021849&merchantid=1015600).
output xml (default),
php,
json
The format for the output. If output=json, the results will be returned in JSON format. If output=php, the results will be returned in Serialized PHP format.
callback string: default no value The name of the callback function to wrap around the JSON data. The following characters are allowed: A-Z a-z 0-9. [] and _. If output=json has not been requested, this parameter has no effect. More information on the callback can be found in the Yahoo! Developer Network JSON Documentation.

Sample Request Url: http://api.shopping.yahoo.com/ShoppingService/v1/MerchantSearch?appid=YahooDemo&merchantid=1021849&merchantid=1015600

Response fields

The schema document for this service response is located at http://api.shopping.yahoo.com/shoppingservice/v1/merchantsearch.xsd

Field Description
MerchantResultSet Contains all of the query responses (one per merchantid submitted). `
Merchant Contains data for each individual merchant. Has attributes:

  • ID: The ID for this merchant.

Name The name of the merchant.
Rating An enclosing tag for user rating information for this merchant.
MaxRating A value from 1 (worst) to 5 (best) representing the maximum rating given to this merchant by a user.
NumRatings The number of users who have rated this merchant.
OverallRating A value from 1 (worst) to 5 (best) representing the average rating given to this merchant by a user.
PriceSatisfactionRating A value from 1 (worst) to 5 (best) representing the average rating based on satisfaction with merchant pricing.
ShippingOptionsRating A value from 1 (worst) to 5 (best) representing the average rating based on satisfaction with merchant shipping options.
TimelyDeliveryRating A value from 1 (worst) to 5 (best) representing the average rating based on satisfaction with merchant delivery fulfillment.
EaseOfPurchaseRating A value from 1 (worst) to 5 (best) representing the average rating based on satisfaction with the buying experience.
CustomerServiceRating A value from 1 (worst) to 5 (best) representing the average rating based on satisfaction with merchant customer service.
RatingUrl The URL to the ratings and reviews overview page for this merchant on Yahoo! Shopping.
InfoUrl The URL for further information about this merchant on Yahoo! Shopping.
IsCertifiedMerchant A Boolean indicating whether the merchant has been certified by Yahoo! Shopping's Buyer Protection program.

Sample response

The following is a sample response for a query for merchants 1015600 (WalMart) and 1021849 (The Apple Store):

Additional Terms of Service

When calling the shopping APIs, you must set the HTTP user agent to a valid web browser string. Bot and spider strings are not valid. The user agent can be set to some default value - it does not have to be changed based on the user's browser. Some examples are as follows:

More information on user agents can be found at http://en.wikipedia.org/wiki/user_agent.

For all Web sites and applications that present data from the Yahoo! Shopping API, the attribution text "Powered by Yahoo! Shopping" must be presented.

Rate Limit

The Merchant Search service is a part of the Yahoo! Shopping Web Services, which are limited to 5,000 queries per appid per day. See information on rate limiting.

Errors

The Merchant Search service returns the standard errors. A 999 error is returned if the query limit has been exceeded.

Copyright © 2008 Yahoo! Inc. All rights reserved.

Privacy Policy - Terms of Service - Copyright Policy - Job Openings