Merchant Search API v1
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 API and Catalog Listing API service.
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 the attribute "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):
Errors
The Merchant Search service returns the standard errors. A 999 error is returned if the query limit has been exceeded.
Related Information
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:
- Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1) (for IE)
- Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.1) Gecko/20060111 Firefox/1.5.0.1 (for FireFox)
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.
Support & Community
The Merchant Search service is discussed on the yws-shopping mailing list.
Ready to get started?
By applying for an Application ID for this service, you hereby agree to the Terms of Use
Yahoo! Groups Discussions
view all
How to report a missing image, or a corrupt image?
Thu, 15 Nov 2007
Yahoo Shopping API - Sandbox vs. Production
Thu, 15 Nov 2007
API for catalogs and products by merchants
Thu, 16 Aug 2007
Thu, 16 Aug 2007

