Sign inTry it

Search Amazon.es products with price, rating and Prime.

Searches Amazon.es like its search page: title, price and crossed-out price in euros, star rating and number of ratings, Prime, image and product link. Works whether Amazon shows the page in its own language or English. Sort by relevance, price, rating or newest. Sponsored results are dropped by default.

No reports yetRead-only, no login
Site
Amazon, Spain
Version
v3 of 3
Runs, last 7 days
No reports yet
sha256
2fe014b2977d…

Run it with your agent

after installing Wield

Ask in plain words. Your agent finds this recipe and calls it:

“Search Amazon.es products with price, rating and Prime.”

Read-only: it changes nothing on the site. No login needed.

{
  "tool": "run",
  "arguments": {
    "recipe_id": "amazon.es/search-products",
    "params": {
      "query": "cargador usb c"
    }
  }
}

Requests

sent from your browser, in order
  1. 1GET/s?k&page&s

Parameters

from your agent
include_sponsoredboolean = false
pageinteger = 1
querystringrequiredQué buscar, e.g. 'cargador usb c', 'cafetera'
sortenumrelevanceblender = featured; price-asc-rank = cheapest first; review-rank = best rated; date-desc-rank = newest "relevanceblender" | "price-asc-rank" | "price-desc-rank" | "review-rank" | "date-desc-rank" = "relevanceblender"

Returns

to your agent
pageinteger
productsobject[]asin, currency, image_url, price, prime, rating, ratings_count, sponsored, title, url, was_price
querystring

Where it can send

  • www.amazon.es

Anything else is blocked by the extension.

Reads from your session

Nothing. Your browser attaches the site's cookies by itself.

Used only in requests to the addresses on the left. Never sent to wield.run or your agent.

Checks

a run passes when
  • length(output.products) > `10`
  • length(output.products[?sponsored]) == `0`
  • length(output.products[?price > `0`]) > `10`
  • output.products[0].currency == 'EUR'
  • length(output.products[?rating > `0` && rating <= `5`]) > `10`
  • length(output.products[?ratings_count > `0`]) > `10`
  • starts_with(output.products[0].url, 'https://www.amazon.es/dp/')

Raw recipe

Served as canonical JSON from /api/v1/recipes/amazon.es/search-products, so its sha256 matches the ETag and the index.

Check it yourself
curl -s https://wield.run/api/v1/recipes/amazon.es/search-products | shasum -a 256
# 2fe014b2977de7946ec91e769681b3a8d791d297e3bef3a4deb5a50a336ce4a0
amazon.es/search-products.json, v3
{
  "description": "Searches Amazon.es like its search page: title, price and crossed-out price in euros, star rating and number of ratings, Prime, image and product link. Works whether Amazon shows the page in its own language or English. Sort by relevance, price, rating or newest. Sponsored results are dropped by default.",
  "effect": "read",
  "id": "amazon.es/search-products",
  "keywords": [
    "amazon",
    "amazon.es",
    "comprar",
    "precio",
    "ofertas",
    "opiniones",
    "prime",
    "productos",
    "shopping",
    "buy",
    "price",
    "reviews",
    "products",
    "spain"
  ],
  "output": {
    "schema": {
      "properties": {
        "page": {
          "type": "integer"
        },
        "products": {
          "items": {
            "properties": {
              "asin": {
                "type": "string"
              },
              "currency": {
                "description": "Currency Amazon displayed (USD in the US; visitors elsewhere may see EUR etc.)",
                "type": [
                  "string",
                  "null"
                ]
              },
              "image_url": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "price": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "prime": {
                "type": "boolean"
              },
              "rating": {
                "description": "0-5 stars",
                "type": [
                  "number",
                  "null"
                ]
              },
              "ratings_count": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "sponsored": {
                "type": "boolean"
              },
              "title": {
                "type": "string"
              },
              "url": {
                "format": "uri",
                "type": "string"
              },
              "was_price": {
                "description": "Struck-through price, when shown",
                "type": [
                  "number",
                  "null"
                ]
              }
            },
            "type": "object"
          },
          "type": "array"
        },
        "query": {
          "type": "string"
        }
      },
      "required": [
        "query",
        "products"
      ],
      "type": "object"
    },
    "value": "let $sp = params.include_sponsored in {query: params.query, page: params.page, products: steps.search.items[?asin != `null` && asin != '' && title != `null` && ($sp || sponsored == `null`)].{asin: asin, title: title, price: price && (let $t = replace(replace(replace(replace(replace(price, '€', ''), 'EUR', ''), ' ', ''), ' ', ''), ' ', '') in ((contains($t, ',') && length(split($t, ',')[-1]) == `2` && !contains(split($t, ',')[-1], '.')) && to_number(replace(replace($t, '.', ''), ',', '.')) || to_number(replace($t, ',', '')))) || `null`, was_price: was_price && (let $t = replace(replace(replace(replace(replace(was_price, '€', ''), 'EUR', ''), ' ', ''), ' ', ''), ' ', '') in ((contains($t, ',') && length(split($t, ',')[-1]) == `2` && !contains(split($t, ',')[-1], '.')) && to_number(replace(replace($t, '.', ''), ',', '.')) || to_number(replace($t, ',', '')))) || `null`, currency: price && 'EUR' || `null`, rating: rating && to_number(replace(split(replace(replace(rating, ' ', ' '), ' ', ' '), ' ')[0], ',', '.')) || `null`, ratings_count: reviews_label && to_number(replace(replace(join('', split(replace(replace(reviews_label, ' ', ' '), ' ', ' '), ' ')[:-1]), ',', ''), '.', '')) || `null`, prime: prime != `null`, sponsored: sponsored != `null`, image_url: image, url: join('', ['https://www.amazon.es/dp/', asin])}}"
  },
  "params": {
    "additionalProperties": false,
    "properties": {
      "include_sponsored": {
        "default": false,
        "type": "boolean"
      },
      "page": {
        "default": 1,
        "maximum": 20,
        "minimum": 1,
        "type": "integer"
      },
      "query": {
        "description": "Qué buscar, e.g. 'cargador usb c', 'cafetera'",
        "maxLength": 120,
        "minLength": 2,
        "type": "string"
      },
      "sort": {
        "default": "relevanceblender",
        "description": "relevanceblender = featured; price-asc-rank = cheapest first; review-rank = best rated; date-desc-rank = newest",
        "enum": [
          "relevanceblender",
          "price-asc-rank",
          "price-desc-rank",
          "review-rank",
          "date-desc-rank"
        ],
        "type": "string"
      }
    },
    "required": [
      "query"
    ],
    "type": "object"
  },
  "provenance": {
    "method": "browser-inspect",
    "notes": "Same search page and card markup as amazon.com/search-products and amazon.de/search-products. Spanish formats: prices '1.299,99 €', rating '4,3 de 5 estrellas', ratings from the review link's aria-label '777 calificaciones'. Answers servers. The rating count label uses a no-break space before the word, so it is normalised before splitting. v2 (2026-11-07 22:09): Amazon follows the visitor's language, and a browser that prefers English gets '€8.47', '4.5 out of 5 stars', '5,970 ratings'. v1 parsed prices the local way only, so it read '€8.47' as 847 and lost the rating. v2 parses language-neutrally, as amazon.fr/search-products does (decimal comma only before exactly two final digits; rating from the star icon text; count = aria-label minus its last word). v3 (2026-11-07 22:38): tos.notes only; requests and output unchanged.",
    "recorded_at": "2026-11-07T22:09:00+01:00",
    "recorded_by": "C4"
  },
  "requires_login": false,
  "schema": "https://wield.run/schema/recipe/v1.json",
  "site": {
    "country": "ES",
    "id": "amazon.es",
    "language": "es",
    "login_url": "https://www.amazon.es/ap/signin",
    "name": "Amazon",
    "origin": "https://www.amazon.es",
    "origins": [
      "https://www.amazon.es"
    ]
  },
  "steps": [
    {
      "expect": {
        "assert": "contains(body, 's-search-result')",
        "content_type": "html",
        "status": [
          200
        ]
      },
      "extract": {
        "html_items": {
          "items": {
            "fields": {
              "asin": {
                "attr": "data-asin",
                "selector": ":scope"
              },
              "image": {
                "attr": "src",
                "selector": "img.s-image"
              },
              "price": {
                "selector": ".a-price:not(.a-text-price) .a-offscreen"
              },
              "prime": {
                "selector": "i.a-icon-prime"
              },
              "rating": {
                "selector": "i[class*=\"a-star\"] .a-icon-alt"
              },
              "reviews": {
                "selector": "a[href*=\"#customerReviews\"] span"
              },
              "reviews_label": {
                "attr": "aria-label",
                "selector": "a[href*=\"#customerReviews\"]"
              },
              "sponsored": {
                "selector": ".puis-sponsored-label-text"
              },
              "title": {
                "selector": "h2"
              },
              "was_price": {
                "selector": ".a-price[data-a-strike=\"true\"] .a-offscreen"
              }
            },
            "max": 60,
            "selector": "[data-component-type=\"s-search-result\"]"
          }
        }
      },
      "id": "search",
      "parse": "html",
      "request": {
        "headers": {
          "Accept": "text/html"
        },
        "method": "GET",
        "query": {
          "k": "{{params.query}}",
          "page": "{{params.page}}",
          "s": "{{params.sort}}"
        },
        "url": "/s"
      }
    }
  ],
  "task": "Search Amazon.es products with price, rating and Prime",
  "tos": {
    "notes": "Amazon's robots.txt disallows Claude-User (AI agents acting for users) and Anthropic's crawlers on all paths, and Amazon's Conditions of Use restrict robots and data mining. Wield runs it only when the user asks, in the user's own browser, one search page per call: no bulk collection, no purchases, no account actions.",
    "reviewed": false
  },
  "verify": {
    "checks": [
      "length(output.products) > `10`",
      "length(output.products[?sponsored]) == `0`",
      "length(output.products[?price > `0`]) > `10`",
      "output.products[0].currency == 'EUR'",
      "length(output.products[?rating > `0` && rating <= `5`]) > `10`",
      "length(output.products[?ratings_count > `0`]) > `10`",
      "starts_with(output.products[0].url, 'https://www.amazon.es/dp/')"
    ],
    "example_params": {
      "query": "cargador usb c"
    },
    "max_ms": 6000
  },
  "version": 3
}