
« September 2005 | Main | November 2005 »
Several people have asked us about compressing the XML we return from Yahoo! Search Web Services. We'd been reluctant to do it because some browsers and platforms claim to support compression without actually doing so. However, we can now return compressed data to clients that support compression while working well with systems that don't support it so well.
If you want the data we return to be compressed, do the following:
1) Use HTTP 1.1.
2) Pass in an 'Accept-Encoding: gzip' header.
3) Spoof your user-agent to be Mozilla/5.0 (or higher).
Don't forget to do the expansion on the other end!
Will this save you time? Quite possibly. XML compresses nicely, and savings of 50% on the data size are not uncommon. Depending on how busy your processor is, less data over the network may be fast enough to offset the cost of decompression.
Posted by ywsblog at 4:33 PM | Comments (2)
We've added a new call to the Shopping API, User Product Review. It allows you to retrieve Yahoo! user reviews for a specific product and sort them in different ways so that you always find the reviews you are looking for. Track new recommendations, find the most recommended products and keep tabs on the low performers.
Posted by ywsblog at 11:43 AM | Comments (2)
Copyright © 2008 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Copyright Policy - Job Openings