Amazon ECS API to fetch 1000 top selling books

前端 未结 4 382
感动是毒
感动是毒 2020-12-29 13:14

I need the API to fetch the top selling books on Amazon. By default it only fetches the top 10 items, but I need more than 10, near about 1000 items content by using single

4条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-29 13:30

    To get the 100 bestselling books you have to specify the ItemPage parameter:

    http://ecs.amazonaws.com/onca/xml?
    Service=AWSECommerceService&
    AWSAccessKeyId=[AWS Access Key ID]&
    Operation=ItemSearch&
    BrowseNode=17&
    SearchIndex=Books&
    ItemPage=2
    &Sort=salesrank
    &Timestamp=[YYYY-MM-DDThh:mm:ssZ]
    &Signature=[Request Signature]
    

    Problem: The maximum ItemPage number that can be returned is 10. So you cant get past 100 books.

    Reference: http://docs.amazonwebservices.com/AWSECommerceService/latest/DG/index.html?ItemSearch.html

提交回复
热议问题