Find current Amazon.de offers matching a supplied product family, model, or feature query, optionally restricted to a price range, and return comparable results with ASINs, prices, ratings, review counts, availability, sponsorship status, seller, condition, and product-page evidence for requested specifications.
Use Cases
Use for Amazon.de requests to find a product matching natural-language requirements, including minimum specifications such as memory or storage, or to inspect one named product's current offer. Treat “new offers” as currently visible new Amazon.de listings unless the caller explicitly requests used or refurbished offers. For a supplied ASIN, inspect the product page directly.
Automation Flow
- If the caller supplies an ASIN, construct
https://www.amazon.de/dp/{asin}and skip search. Otherwise construct one direct search URL:https://www.amazon.de/s?k={url-encoded-query}. Put the product family, model identifiers, and required variants or specifications in{query}; do not visit the homepage or type into the search box. - Navigate to the search URL and run this evaluator in the same browser call. Replace
{min-price}and{max-price}with caller-specified euro amounts as numeric literals (for example,300), ornullfor either missing bound.
(() => {
const minPrice = {min-price};
const maxPrice = {max-price};
const parseEuro = value => {
if (!value) return null;
const m = value.replace(/[^0-9,.\-]/g, '').match(/-?[0-9][0-9.]*,[0-9]{1,2}|-?[0-9][0-9,]*\.[0-9]{1,2}|-?[0-9]+/);
if (!m) return null;
let s = m[0];
if (s.includes(',') && s.includes('.')) s = s.lastIndexOf(',') > s.lastIndexOf('.') ? s.replace(/\./g, '').replace(',', '.') : s.replace(/,/g, '');
else if (s.includes(',')) s = s.replace(/\./g, '').replace(',', '.');
const n = Number(s);
return Number.isFinite(n) ? n : null;
};
const results = [];
const seen = new Set();
document.querySelectorAll('div[data-asin]').forEach(card => {
const asin = card.getAttribute('data-asin');
const heading = card.querySelector('h2');
if (!asin || !heading || seen.has(asin)) return;
seen.add(asin);
const priceEl = card.querySelector('.a-price .a-offscreen');
const priceText = priceEl ? priceEl.textContent.trim() : null;
const price = parseEuro(priceText);
const ratingEl = card.querySelector('i.a-icon-star-small span.a-icon-alt, i.a-icon-star span.a-icon-alt, [aria-label*="Sterne"], .a-icon-alt');
const reviewEl = card.querySelector('span[aria-label][data-csa-c-content-id], [data-csa-c-content-id*="reviews"] span, .s-underline-text');
const text = (card.innerText || '').replace(/\s+/g, ' ').trim();
const availability = [...card.querySelectorAll('.a-color-success, .a-color-state, [class*="availability"]')].map(e => e.textContent.trim()).filter(Boolean).join(' | ') || null;
results.push({asin, url: `https://www.amazon.de/dp/${asin}`, title: heading.innerText.trim(), priceText, price, inBudget: (minPrice === null || (price !== null && price >= minPrice)) && (maxPrice === null || (price !== null && price <= maxPrice)), rating: ratingEl ? (ratingEl.textContent.trim() || ratingEl.getAttribute('aria-label')) : null, reviews: reviewEl ? reviewEl.textContent.trim() : null, availability, sponsored: /Gesponsert/i.test(text)});
});
return {minPrice, maxPrice, results};
})()- Keep products whose visible numeric price meets the inclusive bounds. Flag missing, range, coupon-adjusted, offer-only, or otherwise ambiguous prices instead of treating them as qualifying. Deduplicate by ASIN and rank by exact model and specification match, price, rating, review count, availability, and non-sponsored status.
- For a supplied ASIN or a shortlisted product, navigate directly to
https://www.amazon.de/dp/{asin}. Replace{spec-terms-json}with a JSON array of caller-supplied specification terms, such as["Akkulaufzeit", "4K"], or[]when none were requested, then run this evaluator:
(() => {
const read = selector => { const e = document.querySelector(selector); return e ? e.innerText.trim().replace(/\s+/g, ' | ').slice(0, 2400) : null; };
const first = selectors => { for (const s of selectors) { const v = read(s); if (v) return v; } return null; };
const body = (document.body.innerText || '').replace(/\s+/g, ' ');
const specs = {spec-terms-json};
const terms = specs.map(s => s.trim()).filter(Boolean).map(s => s.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'));
const re = new RegExp([...terms, '\\b(?:neu|gebraucht|refurbished|Verfügbarkeit|Lieferung|EUR)\\b', '€'].join('|'), 'gi');
const evidence = [];
for (const m of body.matchAll(re)) {
evidence.push(body.slice(Math.max(0, m.index - 140), m.index + m[0].length + 220).trim());
if (evidence.length === 40) break;
}
return {asin: location.pathname.match(/\/dp\/([A-Z0-9]+)/i)?.[1] || null, url: location.href, title: read('#productTitle'), price: first(['.a-price .a-offscreen', '#corePrice_feature_div']), rating: first(['#acrPopover', '[data-hook="rating-out-of-text"]']), reviews: read('#acrCustomerReviewText'), seller: first(['#sellerProfileTriggerId', '#merchant-info', '#buyboxInformation .tabular-buybox-text', '[data-feature-name="bylineInfo"]']), condition: first(['#usedBuyBox', '#newBuyBoxPrice + *', '#buybox .a-condition-text', '#tabular-buybox .a-spacing-small', '#offer-listing .a-row']), offerText: first(['#desktop_buybox', '#buybox', '#tabular-buybox', '#corePrice_feature_div']), availability: first(['#availability', '#deliveryBlockMessage', '#mir-layout-DELIVERY_BLOCK-slot-PRIMARY_DELIVERY_MESSAGE_LARGE']), bullets: read('#feature-bullets'), overview: read('#productOverview_feature_div'), specifications: first(['#productDetails_techSpec_section_1', '#technicalSpecifications_feature_div', '#detailBullets_feature_div']), evidence: [...new Set(evidence)].slice(0, 20)};
})()- Report qualifying offers with title, ASIN, direct URL, visible price, rating, reviews, availability, sponsorship, seller, condition, requested-specification evidence, and whether the price is verified within bounds. Separate product-page verification from search-result inference.
Possible Friction Points
- Amazon.de search results expose the opaque product identifier in
div[data-asin]; capture it and never invent an ASIN for/dp/{asin}URLs. - Search results contain mixed rows, duplicate variants, sponsored listings, and offer-only prices. Require both a nonempty
data-asinand anh2title before extracting a result. - German prices commonly use comma decimals and may include thousands separators; preserve the original
.a-price .a-offscreentext and parse it separately. - Product-page selectors vary by localization and offer state. Missing price, seller, condition, or specification fields mean unknown, not negative evidence.
- Do not infer “new” from title wording alone. Verify condition from the buy box or offer text and flag used, renewed, refurbished, or ambiguous offers.
- If Amazon.de shows the delivery-region/location popover and results or availability depend on destination, use the visible location control
a#nav-global-location-popover-link, inspectdiv#a-popover-2, select the requested country inselect#GLUXCountryList, and confirm withbutton[name='glowDoneButton']before rerunning the target search or product-page extraction. This is an optional region setup, not a required homepage step. - Product specifications may be present only in bullets, overview, technical details, or A+ content; report concise matching evidence and do not treat search-title text as verified specifications.
Example Result
{
"asin": "B000000000",
"url": "https://example.com/dp/B000000000",
"title": "Example Title",
"price": "€99.99",
"rating": "4.5 out of 5 stars",
"reviews": "1,234 ratings",
"seller": "Example Seller",
"condition": "New",
"offerText": "Example offer details",
"availability": "In Stock",
"bullets": "Example product feature | Example product feature",
"overview": "Example product overview",
"specifications": "RAM | 8 GB | Speicher | 256 GB SSD",
"evidence": [
"8 GB RAM",
"256 GB SSD"
]
}