Print this pageEmail this pageGo to the ForumsView the PDFShare this page on TwitterShare this page on FacebookBookmark this page on DeliciousSubmit this page to RedditSubmit this page to Digg

Batch Requests

A batch request is similar to a regular query request, except that it allows multiple service calls, or sub-requests, to be sent in one request. Batch requests save on network latency time.


Batch requests save time, not money -- they are billed as though each sub-request was made separately.

All parameters except the core AWS parameters (AWSAccessKeyId, Timestamp, Signature, SignatureMethod, SignatureVersion, and Action) are batched according to the following rules:

Sample Batch Request
    AWSAccessKeyId=[your AWSAccessKeyId]
    &Signature=[signature calculated from request]
    &SignatureMethod=[HmacSha1 or HmacSha256]
    &Timestamp=[time now, format described in Common Request Parameters]
    &TopSites.1.CountryCode=[query #1]
    &TopSites.2.CountryCode=[query #2]
    &TopSites.3.CountryCode=[query #3]