Use Opengraph.io to Scrape Product Details from Amazon.com

Justin Furniss

April 12, 2021

2 min read

A display of some Amazon Best sellers.

As the biggest retailer in the world, Amazon.com is a popular source for product information. Unfortunately, Amazon does not offer Open Graphtags for easy scraping of product data. Using OpenGraph.io, it is now possible to get that information without having to write your own cumbersome web-scraping tool. Let’s say you’d like information on a kid’s plush toy

Fluffy. A stuffed animal.

First, we can see that Amazon displays Production Information on the page, but it’s difficult for developers to access it without doing quite a bit of DOM traversal

Product Description

Next, using Opengraph.io’s debug tool, we can confirm that there are no Open Graph tags on the product page

Screen Shot of the Opengraph Debugger tool showing no results for open graph tags.

However, the OpenGraph.io Hybrid Graph has parsed the page and returns the properties using standard Open Graph tags, such as og:title and og:url

Product Hybrid Graph Response.

Finally, by using the OpenGraph.io API, you now have access to the production information

A screen shot of the Opengraph.io debugger tool showing the product information.

Sign up for OpenGraph.io now!

As you can see above, the API produces easily consumable JSON with product specifications. It includes the dimensions, weight, and even the Amazon.com Best Sellers Rank and the Customer Review data! This data is incredibly useful. With Opengraph.io's handy React Component generator tool, you can automatically create React Components with the data that is relevant to your needs. Sign up now with a free account to start using the powerful Opengraph.io API.

Back to the Blog