Skip to the content
EnrichedNowDocs

    Type to search every page.

    Menu

    Scraper APIAmazon

    amazon.bestsellers

    The products Amazon ranks in a category's Best Sellers or New Releases list: rank, title, price, rating and number of ratings.

    Id
    amazon.bestsellers
    Version
    1
    Billed per
    request — 1 unit for a charged run
    Runs
    within one request

    Start it with POST /v1/scrapers/amazon.bestsellers/runs. How runs work is in Running a scraper; what a run costs is in Usage and units.

    Inputs

    The fields of input. A field that is not listed here is refused.

    Inputs of amazon.bestsellers
    FieldTypeDescription
    categorystringThe category, as the list's own address names it: e.g. electronics, books, or electronics/172456 for a category further down. Leave it out for the list of all departments.Limit: at most 90 characters.
    ranking"best_sellers" | "new_releases"Which list: best_sellers or new_releases.Default: "best_sellers".
    marketplace"us" | "uk" | "de" | "in" | "ca" | "fr" | "it" | "es" | "nl" | "jp" | "au" | "mx" | "br" | "ae" | "sa" | "eg" | "tr" | "se" | "pl" | "be" | "sg"The marketplace to read, one of us (amazon.com), uk (amazon.co.uk), de (amazon.de), in (amazon.in), ca (amazon.ca), fr (amazon.fr), it (amazon.it), es (amazon.es), nl (amazon.nl), jp (amazon.co.jp), au (amazon.com.au), mx (amazon.com.mx), br (amazon.com.br), ae (amazon.ae), sa (amazon.sa), eg (amazon.eg), tr (amazon.com.tr), se (amazon.se), pl (amazon.pl), be (amazon.com.be), sg (amazon.sg). us when not given.
    urlstringThe address of a list page instead of category, ranking and marketplace, e.g. https://www.amazon.com/gp/bestsellers/electronics/172456.Limit: at most 2048 characters.
    pageintegerThe page of a category's list: 1 (ranks 1 to 50) or 2 (51 to 100).Limit: 1 to 2. Default: 1.
    max_resultsintegerReturn at most this many products of the page; all of them when not given.Limit: 1 to 100.
    • category is the category as the list's own address names it: electronics, books, or electronics/172456 for one further down, where the number is Amazon's id of the category. The quickest way to one is to open the list on Amazon and give its address as url.
    • ranking is best_sellers or new_releases. marketplace is us (amazon.com), uk (amazon.co.uk), de (amazon.de), in (amazon.in), ca (amazon.ca), fr (amazon.fr), it (amazon.it), es (amazon.es), nl (amazon.nl), jp (amazon.co.jp), au (amazon.com.au), mx (amazon.com.mx), br (amazon.com.br), ae (amazon.ae), sa (amazon.sa), eg (amazon.eg), tr (amazon.com.tr), se (amazon.se), pl (amazon.pl), be (amazon.com.be) or sg (amazon.sg); category names differ between marketplaces.
    • A category's list is 100 products on two pages: page 1 is ranks 1 to 50, page 2 is 51 to 100.
    • Each page describes its first 30 products in full. The last 20 come back with asin, rank and url only, and listed_only true: read them with amazon.product.
    • Without a category the run returns Amazon's list of all departments: the first products of each, where rank is the rank within the department and category is the department's heading.
    • A category the marketplace does not have, or whose list is empty, ends failed with not_found, and costs nothing.
    • A challenge or Amazon's error page ends the run failed with captcha or blocked, and costs nothing — see the reasons of this family.

    Record fields

    Every record of a run has these fields. A value that is not known is null — never an empty string and never 0.

    Record fields of amazon.bestsellers
    FieldTypeNotes
    rankintegerThe product's rank in the list, from 1. On the list of all departments: its rank within its department.
    rankingstringWhich list: best_sellers or new_releases.
    categorystring or nullThe list's heading as the page writes it, e.g. "Best Sellers in Electronics"; on the list of all departments, the heading of the product's department.
    asinstringAmazon's product id (ASIN).
    marketplacestringThe marketplace the list was read on, e.g. amazon.com, amazon.co.uk, amazon.de, amazon.co.jp.
    urlstringThe product's address on that marketplace, without tracking parameters.
    titlestring or nullThe product's title, as the list shows it; null when listed_only.
    priceobject or nullThe price shown in the list; null when it shows none.
    amount (in price)numberThe amount as the page states it.
    currency (in price)string or nullThe ISO currency code of the amount (USD, GBP, EUR, INR, CAD, JPY, …): the one the page gives, or the marketplace's own where the page writes only its sign; null when the page gives neither.
    ratingnumber or nullAverage customer rating, 0 to 5.
    review_countinteger or nullNumber of customer ratings.
    imagestring or nullThe product's image in the list.
    listed_onlybooleanTrue for a product the page names with its rank and nothing else: a category's page writes out the first 30 of its 50 products and only names the last 20. Read those with amazon.product.
    pageintegerThe page of the list the product was on: 1 (ranks 1 to 50) or 2 (51 to 100).
    fetched_atstring (date-time)When the list was read, in UTC.

    Example request

    # Start a run and wait up to 60 seconds for it to finish
    curl -X POST "https://api.enrichednow.com/v1/scrapers/amazon.bestsellers/runs?wait=60" \
      -H "Authorization: Bearer $ENRICHEDNOW_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{"input":{"category":"electronics"}}'
    
    # Read its records, with the id the first call answered
    curl "https://api.enrichednow.com/v1/runs/$RUN_ID/records?limit=100" \
      -H "Authorization: Bearer $ENRICHEDNOW_API_KEY"
    from enrichednow import EnrichedNow
    
    client = EnrichedNow()  # reads ENRICHEDNOW_API_KEY
    
    # Start a run, wait for it to end, and get its records
    result = client.scrape("amazon.bestsellers", {"category": "electronics"})
    print(result.run.id, result.run.status, result.run.record_count)
    
    # Read its records: pages are fetched as you go
    for record in result.records:
        print(record)

    Install it with pip install enrichednow, then save as run.py and run python3 run.py

    import EnrichedNow from "enrichednow";
    
    const client = new EnrichedNow(); // reads ENRICHEDNOW_API_KEY
    
    // Start a run, wait for it to end, and get its records
    const { run, records } = await client.scrape("amazon.bestsellers", { category: "electronics" });
    console.log(run.id, run.status, run.record_count);
    
    // Read its records: pages are fetched as you go
    for await (const record of records) console.log(record);

    Install it with npm install enrichednow, then save as run.mjs and run node run.mjs

    package main
    
    import (
    	"context"
    	"fmt"
    	"log"
    	"time"
    
    	enrichednow "github.com/enrichednow/enrichednow-go"
    )
    
    func main() {
    	client, err := enrichednow.NewClient() // reads ENRICHEDNOW_API_KEY
    	if err != nil {
    		log.Fatal(err)
    	}
    	ctx, cancel := context.WithTimeout(context.Background(), 10*time.Minute)
    	defer cancel()
    
    	// Start a run, wait for it to end, and get its records
    	run, records, err := client.Scrape(ctx, "amazon.bestsellers", map[string]any{"category": "electronics"})
    	if err != nil {
    		log.Fatal(err)
    	}
    	fmt.Println(run.ID, run.Status, run.RecordCount)
    
    	// Read its records: pages are fetched as you go
    	for records.Next() {
    		fmt.Println(string(records.Current()))
    	}
    	if err := records.Err(); err != nil {
    		log.Fatal(err)
    	}
    }

    Install it with go get github.com/enrichednow/enrichednow-go@latest, then save as run.go and run go run run.go

    import com.enrichednow.EnrichedNowClient;
    import com.enrichednow.ScrapeResult;
    import java.util.Map;
    
    public class Run {
        public static void main(String[] args) {
            EnrichedNowClient client = EnrichedNowClient.fromEnv(); // reads ENRICHEDNOW_API_KEY
    
            // Start a run, wait for it to end, and get its records
            ScrapeResult result = client.scrape("amazon.bestsellers", Map.of("category", "electronics"));
            System.out.println(result.run().id() + " " + result.run().status() + " " + result.run().recordCount());
    
            // Read its records: pages are fetched as you go
            for (Map<String, Object> record : result.records()) {
                System.out.println(record);
            }
        }
    }

    Add com.enrichednow:enrichednow-java:0.4.0 to your Maven or Gradle build, then save as Run.java

    enrichednow run amazon.bestsellers --input category=electronics

    Install it with curl -fsSL https://raw.githubusercontent.com/enrichednow/enrichednow-cli/main/install.sh | sh

    It starts a run with this scraper’s example input, waits for it to finish and reads its records a page at a time. The key is read from ENRICHEDNOW_API_KEY.

    The body on its own:

    JSON
    {
      "input": {
        "category": "electronics"
      }
    }

    Example response

    The run, once it has ended. A run that has not ended within wait comes back with 202 and the status queued or running.

    JSON
    {
      "id": "run_841742f37553189ff9c27ba1",
      "scraper_id": "amazon.bestsellers",
      "scraper_version": 1,
      "status": "ok",
      "reason": null,
      "input": {
        "category": "electronics"
      },
      "record_count": 1,
      "units": 1,
      "units_per_request": 1,
      "units_per_record": null,
      "units_per_page": null,
      "diagnostics": {
        "requests": 1,
        "bytes": 259214,
        "wall_ms": 885,
        "facts": {}
      },
      "created_at": "2026-11-16T22:37:50.170950Z",
      "started_at": "2026-11-16T22:37:50.178331Z",
      "finished_at": "2026-11-16T22:37:51.066313Z"
    }

    Its records, from GET /v1/runs/{id}/records. The record is a real one: this scraper's own parser read it from a page recorded from the site.

    JSON
    {
      "records": [
        {
          "rank": 2,
          "ranking": "best_sellers",
          "category": "Best Sellers in Electronics",
          "asin": "B0DCH8VDXF",
          "marketplace": "amazon.com",
          "url": "https://www.amazon.com/dp/B0DCH8VDXF",
          "title": "Apple EarPods Headphones with USB-C Plug, Wired Ear Buds with Built-in Remote to Control Music, Phone Calls, and Volume",
          "price": {
            "amount": 19,
            "currency": "USD"
          },
          "rating": 4.5,
          "review_count": 20386,
          "image": "https://images-na.ssl-images-amazon.com/images/I/513OSdW4elL._AC_UL300_SR300,200_.jpg",
          "listed_only": false,
          "page": 1,
          "fetched_at": "2026-11-19T18:07:38.245373Z"
        }
      ],
      "next_cursor": null
    }

    A run does not always end ok. Results and statuses lists every status and the reasons every scraper shares; the reasons of the Amazon scrapers are in their own section there.