Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6385453
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T02:54:05+00:00 2026-05-25T02:54:05+00:00

I am using the gem amazon_product for searching the books in Amazon. The search

  • 0

I am using the gem amazon_product for searching the books in Amazon.
The search is perfectly fine but it gets me only a list of first 10 books.
I want to get all the search results and paginate them. How can I do this?

My code looks like this,

req = AmazonProduct["us"]
req.configure do |c|
  c.key    = "KEY"
  c.secret = "SECRET_KEY"
  c.tag    = "TAG" 
end
resp = req.search("Books", :power => params[:book][:search_term], :sort => "reviewrank")
@books = resp.to_hash["Items"]["Item"]
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T02:54:05+00:00Added an answer on May 25, 2026 at 2:54 am

    From their API page at – http://webservices.amazon.com/AWSECommerceService/AWSECommerceService.wsdl

    They have “RelatedItemPage” and “ItemPage”

    You should give this a try

    resp = req.search("Books", :power => params[:book][:search_term], :itemPage => 20)
    

    Hope this helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to access my Amazon S3 account using the aws-s3 gem, but no
I'm accessing the Amazon AWS API using the ruby-aaws gem, but without going to
I am using this gem to search for youtube videos and display with ajax
I am using Devise gem and I want to change the redirect path after
When searching Amazon using their API is there a way to separate out hardcover,
I am trying to do an ItemSearch using the Amazon aws-sdk Gem for Ruby
I'm pretty new to using Amazon's ruby-sdk (gem install aws-sdk), and am stuck trying
I tried using gem install pg but it doesn't seem to work. gem install
I started using the asset_sync gem in order to use Amazon S3 as a
I am using paperclip gem and storing the images in the public folder, but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.