Skip to the content
EnrichedNowDocs

    Type to search every page.

    Menu

    Scraper APIAmazon

    amazon.search

    The products on a page of Amazon's search results: prices, ratings and review counts, with advertisements marked.

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

    Start it with POST /v1/scrapers/amazon.search/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.search
    FieldTypeDescription
    queryrequiredstringWhat to search for, e.g. "wireless mouse".Limit: at least 1 characters, at most 200 characters.
    marketplace"us" | "uk" | "de" | "in" | "ca" | "it" | "es" | "nl" | "jp" | "au" | "mx" | "br" | "ae" | "sa" | "eg" | "tr" | "se" | "pl" | "be" | "sg"The marketplace to search, one of us (amazon.com), uk (amazon.co.uk), de (amazon.de), in (amazon.in), ca (amazon.ca), 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).Default: "us".
    pageintegerThe results page, from 1 (Amazon serves at most 20).Limit: 1 to 20. Default: 1.
    max_resultsintegerReturn at most this many items of the page; all of them when not given.Limit: 1 to 100.
    include_sponsoredbooleanFalse leaves the advertisements (sponsored: true) out.Default: true.
    filtersarray of stringFilters to apply, as amazon.results_page names them (an option's filter, e.g. "p_123:213704" for a brand); the options of one filter widen the search, different filters narrow it.
    • One run reads one page of results: 16 to 60 products, as Amazon lays the page out. Ask for the next with page (1 to 20); max_results only trims the page.
    • marketplace is us (amazon.com), uk (amazon.co.uk), de (amazon.de), in (amazon.in), ca (amazon.ca), 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). amazon.fr is not searched: it answers searches with a challenge. The page is the one that marketplace shows a visitor in its own country who is not signed in, in its own language.
    • Advertisements are returned with sponsored true; include_sponsored: false leaves them out. A product shown both as an advertisement and as a result is two records.
    • A search with no product on the page ends ok with zero records. For a query nothing matches Amazon often shows advertisements only: they are returned as advertisements.
    • prime is true when the tile shows the Prime badge or a delivery offer for Prime members, false when other tiles of the page do, and null when none does. A visitor who is not signed in is shown them on amazon.com and rarely elsewhere, so it is not a list of Prime-eligible products. delivery is the tile's delivery line, as written.
    • review_count is the full number of ratings, not the shortened one shown beside the stars. brand is filled only where the tile shows it apart from the title, as clothing does.
    • 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.search
    FieldTypeNotes
    positionintegerThe item's place among the returned items of this page, from 1.
    pageintegerThe results page the item was on.
    asinstringAmazon's product id (ASIN).
    marketplacestringThe marketplace searched, e.g. amazon.com, amazon.co.uk, amazon.de, amazon.co.jp.
    urlstringThe product's address on that marketplace, without tracking parameters.
    titlestringThe product's title, as the tile shows it.
    brandstring or nullThe brand, when the tile shows it apart from the title (clothing does; most tiles do not).
    priceobject or nullThe price shown on the tile; null when the tile 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.
    list_priceobject or nullThe struck-through list price, when the tile shows one.
    amount (in list_price)numberThe amount as the page states it.
    currency (in list_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.
    sponsoredbooleanTrue for an advertisement (a sponsored placement), false for a result.
    primeboolean or nullTrue when the tile shows the Prime badge or a delivery offer for Prime members, false when other tiles of the page do and this one does not, null when no tile of the page shows either (outside amazon.com a visitor who is not signed in is rarely shown them).
    deliverystring or nullThe tile's delivery line, in the page's own words and language, e.g. "FREE delivery Mon, Nov 23"; null when the tile has none.
    imagestring or nullThe tile's image.
    fetched_atstring (date-time)When the results page 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.search/runs?wait=60" \
      -H "Authorization: Bearer $ENRICHEDNOW_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{"input":{"query":"wireless mouse"}}'
    
    # 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.search", {"query": "wireless mouse"})
    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.search", { query: "wireless mouse" });
    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.search", map[string]any{"query": "wireless mouse"})
    	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.search", Map.of("query", "wireless mouse"));
            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.search --input 'query=wireless mouse'

    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": {
        "query": "wireless mouse"
      }
    }

    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.search",
      "scraper_version": 1,
      "status": "ok",
      "reason": null,
      "input": {
        "query": "wireless mouse"
      },
      "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": [
        {
          "position": 3,
          "page": 1,
          "asin": "B004YAVF8I",
          "marketplace": "amazon.com",
          "url": "https://www.amazon.com/dp/B004YAVF8I",
          "title": "Logitech M185 Compact Ambidextrous 2.4 GHz Wireless Mouse - Swift Grey",
          "brand": null,
          "price": {
            "amount": 13.99,
            "currency": "USD"
          },
          "list_price": {
            "amount": 17.99,
            "currency": "USD"
          },
          "rating": 4.4,
          "review_count": 45857,
          "sponsored": false,
          "prime": true,
          "delivery": null,
          "image": "https://m.media-amazon.com/images/I/51WN5aXZWIL._AC_UY218_.jpg",
          "fetched_at": "2026-11-19T18:07:38.354873Z"
        }
      ],
      "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.