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 6824423
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T21:54:00+00:00 2026-05-26T21:54:00+00:00

When searching Amazon using their API is there a way to separate out hardcover,

  • 0

When searching Amazon using their API is there a way to separate out hardcover, paperback, kindle and pre-orderable books?

I’m using Ruby and Amazon Product gem and have been searching through their documentation looking for info on this and haven’t managed to find anything yet.

I have come across some starting points that I am working through. There seems to a way to get this information via RrelatedItems ResponseGroup as described here. The KindleStore hierarchy seems relevant.

Binding is possibly the field I need to somehow look at and amazon’s API provides a way of getting to AlternateVersions of an ASIN using the AlternativeVersion ResponseGroup type for books.

  • 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-26T21:54:00+00:00Added an answer on May 26, 2026 at 9:54 pm

    I will assume you know how to set up the Amazon Product gem request object correctly. from there, you can do…

    search = req.search( 'Ender\'s Game' )
    search.each('Item') do |item|
      asin = item["ASIN"]
      title = item['ItemAttributes']['Title']
      hash = {
        :response_group => ['ItemAttributes']
        }
      items = req.find( asin, hash )
      items.each('Item') do |ia|
        puts "[#{asin}]: #{title} => [#{ia['ItemAttributes']['Binding']}]"
      end
    end
    

    which produces output like

    [0812550706]: Ender's Game (Ender, Book 1) => [Mass Market Paperback]
    [0765362430]: The Ender Quartet Box Set: Ender's Game, Speaker for the Dead, Xenocide, Children of the Mind => [Mass Market Paperback]
    [0812550757]: Speaker for the Dead (Ender, Book 2) => [Mass Market Paperback]
    [0765342405]: Ender's Shadow (Ender, Book 5) => [Paperback]
    [B003G4W49C]: Ender's Game => [Kindle Edition]
    [0785135820]: Ender's Game: Command School => [Hardcover]
    [0785135804]: Ender's Game: Battle School (Ender's Game Gn) => [Hardcover]
    [0765362449]: The Ender's Shadow Series Box Set: Ender's Shadow, Shadow of the Hegemon, Shadow Puppets, Shadow of the Giant => [Paperback]
    [0785136096]: Ender's Game: Formic Wars: Burning Earth => [Hardcover]
    [0812565959]: Shadow of the Hegemon (Ender, Book 6) => [Mass Market Paperback]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hi all i am using Google Custom search API $search_query = Amazon+Bestsellers+Rank:+200+in+Health+and+Beauty; $amazon_url =
I'm having a few issues using the amazon API to search for ISBN. The
I have a partial which returns results from the Amazon-ecs API (searches for books).
I have a problem searching through amazon web servise using PHP in my CodeIgniter.
Searching for a way to keep a registry of views and named adapters in
Searching for a way to add this code, after the <head> (or some <link
Searching SO and Google, I've found that there are a few Java HTML parsers
On amazon.com and on walmart.com there is a flyout feature when you hover over
iTunes offers a JSON API for searching against app names (e.g., find all apps
searching a photo by dominant colors using mysql is quite simple. assuming that the

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.