Skip to the content
EnrichedNowDocs

    Type to search every page.

    Menu

    Scraper APIAmazon

    amazon.results_page

    What an Amazon results page shows around its products: the corrected query, related searches, filters, sponsored brands and video ads.

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

    Start it with POST /v1/scrapers/amazon.results_page/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.results_page
    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.
    filtersarray of stringFilters to apply, as this scraper's filters name their options (an option's filter, e.g. "p_123:213704").

    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.results_page
    FieldTypeNotes
    querystringThe query asked for.
    marketplacestringThe marketplace searched, e.g. amazon.com, amazon.co.uk, amazon.de.
    pageintegerThe results page read.
    urlstringThe results page's address.
    filters_appliedarray of stringThe filters given in the input, as applied to the page.
    searched_querystring or nullThe query Amazon searched instead of the one typed ("Showing results for …"); null when it searched the query as typed.
    typed_querystring or nullThe words as typed, when Amazon corrected them ("Search instead for …"); null otherwise.
    related_searchesarray of objectThe searches the page suggests next, in its order.
    query (in related_searches[])stringThe search the page suggests.
    url (in related_searches[])stringIts results page on the marketplace.
    filtersarray of objectThe side panel's filters, in its order.
    name (in filters[])stringThe filter's heading as the side panel shows it, e.g. "Brands", "RAM Size", "Marken".
    id (in filters[])stringAmazon's id of the filter, e.g. brandsRefinements or p_n_g-1003119721111.
    options (in filters[])array of objectIts options, in the panel's order (the panel shows a filter's first options; Amazon hides the rest behind "See more").
    name (in filters[].options[])stringThe option as the side panel shows it, in the marketplace's language, e.g. "16 GB" or "4 Stars & Up".
    filter (in filters[].options[])stringThe value that applies this option: give it in filters to amazon.search or amazon.results_page.
    selected (in filters[].options[])booleanTrue when the option is applied on this page.
    brand_adsarray of objectThe brands' advertisements on the page (sponsored brands), in page order; one the page carries twice is returned once.
    format (in brand_ads[])stringstore_spotlight (a brand's store at the top), collection (a brand's products under a headline) or brands_row (several brands' cards in a row).
    placement (in brand_ads[])string or nullWhere the page puts it: top, among_results or bottom.
    brand (in brand_ads[])string or nullThe advertising brand, as the advertisement's own label names it; null for a brands_row, and where the label's wording is not one the reader knows.
    headline (in brand_ads[])string or nullThe advertisement's headline; null for a brands_row.
    brands (in brand_ads[])array of stringThe brands the advertisement shows: the one brand, or each card's brand in a brands_row.
    asins (in brand_ads[])array of stringThe ASINs of the products the advertisement shows, in its order.
    video_adsarray of objectThe video advertisements on the page, in page order.
    placement (in video_ads[])string or nullWhere the page puts it: among_results or bottom.
    asin (in video_ads[])string or nullThe ASIN of the product the video advertises.
    url (in video_ads[])string or nullThat product's address on the marketplace.
    title (in video_ads[])string or nullThe product's title as the block shows it.
    video (in video_ads[])string or nullThe video file's address.
    image (in video_ads[])string or nullThe video's still 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.results_page/runs?wait=60" \
      -H "Authorization: Bearer $ENRICHEDNOW_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{"input":{"query":"headphones","marketplace":"uk"}}'
    
    # 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.results_page", {
        "query": "headphones",
        "marketplace": "uk",
    })
    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.results_page", {
      query: "headphones",
      marketplace: "uk",
    });
    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.results_page", map[string]any{"query": "headphones", "marketplace": "uk"})
    	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.results_page", Map.of("query", "headphones", "marketplace", "uk"));
            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.results_page --input query=headphones --input marketplace=uk

    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": "headphones",
        "marketplace": "uk"
      }
    }

    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.results_page",
      "scraper_version": 1,
      "status": "ok",
      "reason": null,
      "input": {
        "query": "headphones",
        "marketplace": "uk"
      },
      "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": [
        {
          "query": "headphones",
          "marketplace": "amazon.co.uk",
          "page": 1,
          "url": "https://www.amazon.co.uk/s?k=headphones",
          "filters_applied": [],
          "searched_query": null,
          "typed_query": null,
          "related_searches": [
            {
              "query": "headphones wireless",
              "url": "https://www.amazon.co.uk/s?k=headphones+wireless"
            },
            {
              "query": "headphones sony",
              "url": "https://www.amazon.co.uk/s?k=headphones+sony"
            },
            {
              "query": "headphones wired",
              "url": "https://www.amazon.co.uk/s?k=headphones+wired"
            }
          ],
          "filters": [
            {
              "name": "Deals & Discounts",
              "id": "hveDealsRefinements",
              "options": [
                {
                  "name": "Black Friday deals",
                  "filter": "p_n_deal_type:26901098031",
                  "selected": false
                }
              ]
            },
            {
              "name": "Eligible for free delivery",
              "id": "primeRefinements",
              "options": [
                {
                  "name": "Free UK Delivery by Amazon",
                  "filter": "p_n_free_shipping_eligible:20930951031",
                  "selected": false
                }
              ]
            }
          ],
          "brand_ads": [
            {
              "format": "collection",
              "placement": "top",
              "brand": "Drsaec",
              "headline": "Bluetooth 5.4 wireless earbuds",
              "brands": [
                "Drsaec"
              ],
              "asins": [
                "B0CBX76S6G",
                "B0HQGPK6X2",
                "B0FPM5VF1V"
              ]
            }
          ],
          "video_ads": [
            {
              "placement": "among_results",
              "asin": "B0D2HKCMBP",
              "url": "https://www.amazon.co.uk/dp/B0D2HKCMBP",
              "title": "SHOKZ OpenRun Pro 2 Bone Conduction Sports Headphones, Black | Bluetooth 5.3, Noise-Cancelling Mics, IP55 Water Resistant, 12H Playtime, USB-C Quick Charge, Running, Workouts, Secure Fit",
              "video": "https://m.media-amazon.com/images/S/al-eu-726f4d26-7fdb/09ab4260-cb03-4a09-981e-31eaa5fa09d1.mp4/productVideoOptimized.mp4",
              "image": "https://m.media-amazon.com/images/S/al-eu-726f4d26-7fdb/09ab4260-cb03-4a09-981e-31eaa5fa09d1.mp4/r/THUMBNAIL_360P_FRAME_3_CAPTURE_2.JPG"
            }
          ],
          "fetched_at": "2026-11-19T18:35:21.848835Z"
        }
      ],
      "next_cursor": null
    }

    What was done to the record for this page, and nothing else — the API returns every value whole. A text that was cut ends with … [truncated].

    • Shortened: related_searches: 6 items, the first 3 shown.
    • Shortened: filters: 37 items, the first 2 shown.
    • Shortened: brand_ads[0].asins: 6 items, the first 3 shown.

    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.