Query Batch Request Format

Batch Requests

Batch requests are very similar to regular requests, except that it allows multiple service calls to be sent in one request. Batch requests save on HTTP turnaround time compared to making multiple individual service invocations.

All parameters except the core AWS parameters (AWSAccessKeyId, Timestamp, Signature, Action) are batched according to the following rules.

Sample Batch Request #1

The following example shows a batch Query request that returns the topsites for the 3 given countries.

Sample Request

http://ats.amazonaws.com?
                    AWSAccessKeyId=
                    [your AWSAccessKeyId]
                    &Timestamp=
                    [timestamp now, format as described in http://www.w3.org/TR/xmlschema-2/#dateTime]
                    &Signature=
                    [signature calculated from request]
                    &Action=TopSites
                    &TopSites.Shared.ResponseGroup=
                    Country
                    &TopSites.1.CountryCode=
                    [query #1]
                    &TopSites.2.CountryCode=
                    [query #2]
                    &TopSites.3.CountryCode=
                    [query #3]