Batch Requests

Batch requests are similar to regular Query requests, except that they 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 three UrlInfo Rank for the given three URLs.

Example Sample Request

http://awis.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=
                    UrlInfo
                    &UrlInfo.Shared.ResponseGroup=
                    Rank
                    &UrlInfo.1.Url=
                    [website #1]
                    &UrlInfo.2.Url=
                    [website #2]
                    &UrlInfo.3.Url=
                    [website #3]
                


Sample Batch Request #2. The following example shows a batch Query request that returns five sites linking in for the given three URLs.

Example Sample Request

http://awis.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=
                    SitesLinkingIn
                    &SitesLinkingIn.1.Url=
                    [website #1]
                    &SitesLinkingIn.2.Url=
                    [website #2]
                    &SitesLinkingIn.3.Url=
                    [website #3]
                    &SitesLinkingIn.Shared.Count=
                    5
                    &SitesLinkingIn.Shared.ResponseGroup=
                    SitesLinkingIn