eBay product reviews show how buyers rate a product, what they complain about, and whether people who bought it new feel differently from people who bought it pre-owned. If you want to scrape eBay product reviews for sentiment tracking, product research, or watching for new complaints after a release, you need them as structured data, not pages you read one at a time.

Instead of building and maintaining your own eBay review scraper, you can use SerpApi's eBay Product Reviews API. Send a product's catalog ID and get back its average rating, star breakdown, and each review's rating, text, date, condition, and verified-purchase status, as JSON or Markdown.

In this tutorial, you'll try the API in the playground, then call it with cURL, Python, and JavaScript. You'll also export reviews to CSV, page through them, and filter them by keyword, condition, and sort order.

SerpApi's eBay product reviews documentation

What data can you retrieve with the eBay Product Reviews API?

The response has one main object, product_results. It contains a product summary, and the reviews are in product_results.reviews.list. Here's what's most useful:

  • Product summary: The product's title, its average rating out of 5, and rating_count, which includes ratings left without a written review.
  • Rating breakdown: ratings shows how many ratings each star level received. Some products also include aspects, such as "Good value", with the percentage of reviewers who agree.
  • Review content: Each review has its own rating, title, and text.
  • Review details: created_time shows when the review was written, verified_purchase shows whether eBay verified that the reviewer bought the item, and condition shows whether they bought it new, refurbished, or pre-owned.
  • Helpfulness and photos: helpful_count and not_helpful_count show how other shoppers voted. Reviews with photos include an images list.
  • Filters and related listings: conditions lists the conditions reviewers bought the product in, each with its rating count and a ready-made serpapi_link. Each review's product object names the listing the reviewer bought, with a link to that listing in the separate eBay Product API.

Each page returns up to 10 reviews. The first page can have up to 11, because eBay shows up to two top reviews first. See the eBay Product Reviews API documentation for the full list of fields and parameters.

How to use the eBay Product Reviews API

Try it in the playground

The API takes a catalog ID. It's the number in an eBay catalog product link, such as https://www.ebay.com/p/8040996571. It's different from the item ID in a single listing link (https://www.ebay.com/itm/...).

If you only have a search term or a listing, you can get the catalog ID from:

How to Scrape eBay Product Listings and Details
Learn how to scrape eBay product listings, prices, and product details from search results using SerpApi. This step-by-step guide covers extracting structured JSON, handling challenges like CAPTCHA, and exporting data to CSV for analysis.
  • product_results.catalog_id in eBay Product API results.

Open the SerpApi Playground with catalog ID 8040996571, a "Microsoft Xbox Series S 512GB Video Game Console - White" catalog product. The engine is set to ebay_product_reviews, and the product goes in the catalog_id parameter.

Run the search and expand product_results. Check the overall rating and the ratings breakdown, then open reviews.list to read the individual reviews. Open conditions to see how many ratings came from buyers of new and pre-owned items.

SerpApi's eBay product reviews playground

Get your API key

To call the API from code, you need a SerpApi API key. Create a free SerpApi account, then copy your key from the API key page.

Store the key in an environment variable so it stays out of your code:

export SERPAPI_API_KEY="YOUR_SERPAPI_API_KEY"

Replace YOUR_SERPAPI_API_KEY with your own key on your machine, and keep it private. Don't commit it to a repository or share it in screenshots.

Make a GET request

The endpoint is https://serpapi.com/search with engine=ebay_product_reviews. This request returns JSON, the default format:

https://serpapi.com/search?engine=ebay_product_reviews&catalog_id=8040996571&api_key=YOUR_SERPAPI_API_KEY

Add output=md to get the same results as Markdown:

https://serpapi.com/search?engine=ebay_product_reviews&catalog_id=8040996571&api_key=YOUR_SERPAPI_API_KEY&output=md

Markdown output is a compact, readable version of the results, which works well as input for an LLM or AI agent. Use JSON when your code needs exact fields, such as verified_purchase or helpful_count.

cURL implementation

Here's the same request with cURL:

curl --get https://serpapi.com/search \
  --data-urlencode "engine=ebay_product_reviews" \
  --data-urlencode "catalog_id=8040996571" \
  --data-urlencode "api_key=$SERPAPI_API_KEY"

Two parameters are required, plus your key:

  • engine: Set to ebay_product_reviews.
  • catalog_id: The eBay ID of the catalog product whose reviews you want.
  • api_key: Your SerpApi API key, read here from the environment variable.

Python implementation

Install the official SerpApi Python library:

pip install serpapi

Create a file named main.py:

import os
import sys

import serpapi

client = serpapi.Client(api_key=os.environ["SERPAPI_API_KEY"])

results = client.search({
    "engine": "ebay_product_reviews",
    "catalog_id": "8040996571",
})

if "error" in results:
    sys.exit(f"eBay Product Reviews API: {results['error']}")

product = results.get("product_results", {})
print(f"{product.get('title')}: {product.get('rating')} out of 5 from {product.get('rating_count')} ratings")

for review in product.get("reviews", {}).get("list", []):
    print(f"{review.get('rating')}/5 | {review.get('created_time')} | {review.get('title')}")

Run it:

python main.py

The first line shows the product's title, its average rating, and its number of ratings. Then each review prints on its own line, with its star rating, the date it was written, and its title. Dates use the format of the eBay site, such as Sep 01, 2023 on ebay.com.

On the first page of the default sort, eBay's top reviews come first. They have a top_review field set to favorable or critical.

If the search fails, the response includes an error message, and the script prints it and stops.

Terminal output from the Python script

Export results to CSV

Each review is a repeated record, so reviews fit neatly into a spreadsheet. Add import csv at the top of main.py, then add this to the end. It reuses the product variable from the request above:

with open("ebay_reviews_8040996571.csv", "w", newline="", encoding="utf-8") as file:
    writer = csv.writer(file)
    writer.writerow([
        "review_id", "rating", "title", "text", "created_time",
        "verified_purchase", "condition", "helpful_count", "not_helpful_count",
    ])

    for review in product.get("reviews", {}).get("list", []):
        writer.writerow([
            review.get("review_id"),
            review.get("rating"),
            review.get("title"),
            review.get("text"),
            review.get("created_time"),
            review.get("verified_purchase"),
            review.get("condition"),
            review.get("helpful_count"),
            review.get("not_helpful_count"),
        ])

Each row is one review. The text column holds the full review, including line breaks, and the csv module quotes it so that spreadsheet apps read it as a single cell. The file leaves out reviewer usernames, because you don't need them to analyze ratings and review text.

The exported CSV opened in a spreadsheet, one review per row

JavaScript implementation

Install the official SerpApi JavaScript library:

npm install serpapi

Create a file named main.js:

async function main() {
  const { getJson } = await import("serpapi");

  const apiKey = process.env.SERPAPI_API_KEY;
  if (!apiKey) {
    throw new Error("Set the SERPAPI_API_KEY environment variable first.");
  }

  const results = await getJson({
    engine: "ebay_product_reviews",
    catalog_id: "8040996571",
    api_key: apiKey,
  });

  if (results.error) {
    throw new Error(`eBay Product Reviews API: ${results.error}`);
  }

  const product = results.product_results ?? {};
  console.log(`${product.title}: ${product.rating} out of 5 from ${product.rating_count} ratings`);

  for (const review of product.reviews?.list ?? []) {
    console.log(`${review.rating}/5 | ${review.created_time} | ${review.title}`);
  }
}

main().catch((error) => {
  console.error(error.message);
  process.exitCode = 1;
});

Run it:

node main.js

You'll see the same product summary and reviews as in the Python example.

Other languages and no-code options

  • SerpApi has libraries for other languages too. See all integrations.
  • With SerpApi's Make.com app, you can call engines that don't have their own Make module through the Universal Module ("Make an API Call"), using /search.json with engine=ebay_product_reviews and catalog_id. The Universal Module doesn't page through results automatically.
  • SerpApi's verified n8n node covers a list of popular APIs, including eBay Search API. For the eBay Product Reviews API, use n8n's HTTP Request node with the engine parameter.

How to paginate the results

The eBay Product Reviews API uses the page parameter:

  • page defaults to 1. Each page has up to 10 reviews, and the first page can have up to 11.
  • Each response includes serpapi_pagination with the current page number. When more reviews exist, it includes a next link and an other_pages list of links by page number, and from page 2 onward, a previous link.
  • search_information.total_results tells you how many reviews match your search, so you can estimate how many pages there are.
  • When there's no next link, you've reached the last page.

To request page 2 directly:

https://serpapi.com/search?engine=ebay_product_reviews&catalog_id=8040996571&page=2&api_key=YOUR_SERPAPI_API_KEY

In Python, you can loop through a few pages. Replace everything after the client = ... line in main.py with this:

for page in range(1, 4):
    results = client.search({
        "engine": "ebay_product_reviews",
        "catalog_id": "8040996571",
        "page": page,
    })

    if "error" in results:
        sys.exit(f"eBay Product Reviews API: {results['error']}")

    for review in results.get("product_results", {}).get("reviews", {}).get("list", []):
        print(f"Page {page}: {review['rating']}/5 | {review['title']}")

    if "next" not in results.get("serpapi_pagination", {}):
        break

The loop stops after three pages, or earlier when there's no next page. Each page is a separate search and uses one search credit, so keep the page limit small while you're testing.

Customize or filter the results

Three parameters help you focus on the reviews you care about:

  • q: Searches the review text, like the review search box on eBay. For example, controller or battery life.
  • condition: Returns only reviews from buyers who bought the item in a given condition: new, refurbished, or pre_owned. Like on eBay, it also filters the product's ratings, so rating and ratings describe only that condition.
  • sort_by: Sets the order of the reviews: most_relevant (the default), most_recent, highest_rating, or lowest_rating. most_recent sorts by the date of each review's last edit, updated_time.

eBay's top reviews come first only on the first page sorted by relevance or rating, and only without q or condition.

For example, this finds reviews that mention the controller from buyers of pre-owned consoles:

results = client.search({
    "engine": "ebay_product_reviews",
    "catalog_id": "8040996571",
    "q": "controller",
    "condition": "pre_owned",
})

Use it in main.py in place of the original client.search(...) call. The rest of the script stays the same. In the documentation's sample response, this combination narrows search_information.total_results from 541 reviews to 12.

To see the newest reviews first, for example to watch for recent complaints, set "sort_by": "most_recent" instead.

Conclusion

You can now get the reviews of an eBay catalog product as JSON or Markdown, with each review's rating, text, date, condition, and verified-purchase status. You can also export them to CSV, page through them, and narrow them by keyword, condition, and sort order. To try other products and parameters, open the eBay Product Reviews API playground.

For your next project, these tutorials work with related data:

Frequently asked questions

Is the eBay Product Reviews API an official eBay API? 

No. The eBay Product Reviews API is a SerpApi API. It returns the reviews of an eBay catalog product as structured JSON or Markdown through SerpApi's search endpoint, using engine=ebay_product_reviews.

Where do I find a product's catalog_id? 

It's the number in the product's catalog link, https://www.ebay.com/p/{catalog_id}. You can also get it from organic_results[].epid in eBay Search API results, or from product_results.catalog_id in eBay Product API results.

How many reviews does one request return? 

Up to 10 reviews per page, or up to 11 on the first page, because eBay shows up to two top reviews first. Use the page parameter or the serpapi_pagination links to get the other pages.

Can I get reviews from other eBay sites? 

Yes. Set ebay_domain to ebay.com (the default), ebay.ca, ebay.co.uk, ebay.com.au, or ebay.de. Dates and condition names follow that site's format and language. For example, a pre-owned condition on ebay.de is Gebraucht. Each review's source field shows the eBay site where the review was written.

Can I get the results in Markdown instead of JSON? 

Yes. Add output=md to your request. JSON is the default and is the better choice when your code needs specific fields.