Hardware FixRecommendedDevice not working? Your driver may be the problemCheck updates for common hardware issues.Fix DriversHalloween DealsAmazon USHalloween week deals: useful picks before month-endAmazon US: current deals, useful picks and tech finds.Check DealsSlow PC?RecommendedPC slow today? Run a repair scan before it gets worseResolve common Windows issues and optimize system performance.Scan Now×
FREEDOM251

Freedom251 › Blog › Chrome Extensions

How to Read Product Details from an Open Marketplace Page

By Freedom251 Team · · 4 min read

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

For a Chrome extension reading a product page already open in the browser, use parseable Product JSON-LD as the first source and fill missing or unusable fields from marketplace-specific DOM selectors. Then compare the result with the product and offer the shopper can actually see. Neither structured data nor a selector guarantees the right result on every marketplace.

What the extension can read

A Chrome content script runs in the context of a web page and can use the standard DOM to read page details and pass information to the extension. Chrome documents that content scripts run in an isolated world: they cannot simply access JavaScript variables belonging to the page. See Chrome’s content scripts documentation.

As an Amazon Associate I earn from qualifying purchases.

This distinction matters when a marketplace keeps product information in its rendered HTML but also has application-specific state in its JavaScript. The workflow here reads accessible page markup and DOM content; it does not depend on reaching into the site’s private variables.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Why start with Product JSON-LD

Structured data gives an extension named fields and relationships to inspect, rather than requiring it to infer every value from where text happens to appear on the page. Google describes structured data as machine-readable information and lists Product and ProductGroup among types relevant to ecommerce. That is guidance about Google’s use of structured data, not a promise that any particular marketplace supplies it or supplies every useful field. See Google’s ecommerce structured-data guidance.

#1 Best Overall
Sale
Motorola Moto g - 2026 | Unlocked | Made for US 4/128GB | 50MP Camera | Pantone Slipstream, Cellular_Phone
  • Universal unlocked. Compatible with all major U.S. carriers, including Verizon, AT&T, T-Mobile and other prepaid carriers.
  • Super-bright, super-smooth 6.7" display. See your screen clearly even outdoors in sunlight, and enjoy seamless views with a fast-refreshing 120Hz display.*
  • AI-powered camera system. Take stunning photos in any light with the 50MP camera**, look your best with a 32MP selfie cam*****, and capture extreme close-ups.
  • Superfast 5G performance. Unleash your entertainment at 5G speed*** with the MediaTek Dimensity 6300 chipset and up to 12GB of RAM with RAM Boost****.
  • Long-lasting battery + TurboPower charging. Power through day after day with a 5200mAh battery, then get hours of power in just minutes.****

Google Merchant Center recommends JSON-LD and demonstrates a Product with an Offer. Example properties include name, sku, gtin, brand, price, priceCurrency, and availability. Schema.org’s Product vocabulary also includes properties such as brand, GTIN, color, and aggregate rating; those definitions do not establish that a given page uses them. See Merchant Center’s structured-data setup guidance and Schema.org’s Product definition.

JSON-LD and DOM selectors serve different roles

Consideration Product JSON-LD DOM selectors
How fields are identified Uses named structured-data properties and can group a product with its offer. Reads page elements by selectors chosen for a particular marketplace layout.
Agreement with the visible page May be absent, incomplete, or inconsistent with the selected product or displayed offer; check it against what the shopper sees. Can target visible elements, but the selected element and its meaning still need validation.
Maintenance Uses standardized vocabulary, although coverage and consistency vary by page. Requires marketplace-specific selectors and maintenance when layouts change.
Variants and multiple offers Can represent offers and identifiers; preserve the association between each offer and its SKU or GTIN when present. Can read displayed variant or offer details, but selectors must follow the marketplace’s layout and selection behavior.

The coverage and maintenance differences in this table are practical engineering considerations, not measured performance results. Google’s guidance says markup should match values shown to the user. For its product-data matching conditions, Merchant Center also says markup must be present in the HTML returned by the web server rather than generated by JavaScript after page load. That requirement is specific to Google’s matching guidance; it does not mean a browser extension cannot inspect DOM content that appears later.

Rank #2
Sale
Samsung Galaxy A17 5G Smart Phone 128GB US 1 Yr Manufacturer Warranty Black | Large AMOLED, High-Res Camera, Durable Design, Super Fast Charging, Expandable Storage, Circle to Search, 2025
  • YOUR CONTENT, SUPER SMOOTH: The ultra-clear 6.7" FHD+ Super AMOLED display of Galaxy A17 5G helps bring your content to life, whether you're scrolling through recipes or video chatting with loved ones.¹
  • LIVE FAST. CHARGE FASTER: Focus more on the moment and less on your battery percentage with Galaxy A17 5G. Super Fast Charging powers up your battery so you can get back to life sooner.²
  • MEMORIES MADE PICTURE PERFECT: Capture every angle in stunning clarity, from wide family photos to close-ups of friends, with the triple-lens camera on Galaxy A17 5G.
  • NEED MORE STORAGE? WE HAVE YOU COVERED: With an improved 2TB of expandable storage, Galaxy A17 5G makes it easy to keep cherished photos, videos and important files readily accessible whenever you need them.³
  • BUILT TO LAST: With an improved IP54 rating, Galaxy A17 5G is even more durable than before.⁴ It’s built to resist splashes and dust and comes with a stronger yet slimmer Gorilla Glass Victus front and Glass Fiber Reinforced Polymer back.

Build the extraction in a few deliberate steps

  1. Inspect JSON-LD blocks. In the accessible DOM, find script[type="application/ld+json"] elements and parse each block defensively. A block may contain one object, an array, or a graph. Walk the parsed structures to locate Product data and related variants, then inspect nested offers. These parsing steps are implementation guidance, not a procedure prescribed by the cited documentation.
  2. Normalize useful fields without flattening relationships. Record product name, brand, and available SKU or GTIN, along with each offer’s price, currency, availability, and condition when present. Retain the source object and associate every offer with its product or variant. If several offers exist, do not collapse them into one supposedly definitive price.
  3. Check the selected product and offer against the page. Compare the extracted values with the shopper-visible name, selected variant, displayed price, and availability. When the markup provides identifiers, use SKU or GTIN associations to help keep an offer attached to the correct item. Merchant Center’s guidance calls for structured data to match visible values and describes identifier matching for multiple offers and variants.
  4. Fill gaps with marketplace-specific selectors. If a field is absent or unusable in JSON-LD, query selectors tailored to that marketplace’s DOM. Keep those selectors isolated by site so a layout change can be handled without altering extraction logic for every marketplace. The official Chrome documentation establishes DOM access, not universal product-page selectors; selector design and upkeep are engineering work.
  5. Validate the final record. Treat disagreements between JSON-LD, selected variant, and visible offer as conflicts to resolve, not as permission to silently choose a convenient value. Preserve enough source and association information to diagnose which element or structured-data object supplied a field.

Handle timing and incomplete data carefully

A page may render or update visible product details after the initial document arrives, while Google Merchant Center’s server-returned-HTML condition applies to its own matching guidance. These are different concerns: an extension can inspect the DOM available to its content script, but it must not assume that a value visible later was included in the server-returned markup. Wait for the marketplace’s relevant content to appear before applying its selectors, and validate the extracted result after variant or offer changes.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Do not treat a missing property as proof that the product lacks that information, or assume every marketplace exposes a complete Product object. Use only fields actually found and validated; leave unavailable values unset rather than inventing them.

Rank #3
Samsung Galaxy A16 5G 128GB Cell Phone, Unlocked Android Smartphone, Large AMOLED Display, Durable Design, Super Fast Charging, Expandable Storage, US Version, 2025, Blue Black (Renewed)
  • Charger NOT Included, 6.7" Super AMOLED FHD+, 90Hz Refresh Rate, 385 ppi, 800 nits (HBM), 1080x2340px, 5000mAh Battery
  • 128GB, 4GB RAM, microSDXC, Exynos 1330 (5nm), Octa-Core, Mali-G68 MP2 or Mali-G57 MC2 GPU
  • Rear Camera: 50MP, f/1.8 (wide) + 5MP, f/2.2 (ultrawide) + 2MP, f/2.4 (macro), LED flash, panorama, HDR; Front Camera: 13MP, f/2.0, Android 14, up to 6 major Android upgrades, One UI 6.1
  • 3G: HSDPA 850/900/1700(AWS)/1900/2100; 4G LTE: 1/2/3/4/5/7/12/13/14/20/25/26/28/29/30/38/39/40/41/48/66/71, 5G: 2/5/25/41/66/71/77/78 SA/NSA/Sub6/mmWave - Nano-SIM + eSIM
  • US Model – Global Connectivity – Compatible with Most GSM Carriers like T-Mobile, AT&T, MetroPCS, etc. Will Also work with CDMA Carriers Such as Verizon, Straight Talk.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

What makes the workflow marketplace-specific

The JSON-LD-first order is a practical implementation choice, not a guarantee in the source documentation. Structured data can reduce reliance on layout-specific parsing when it is present and usable. DOM selectors can then supplement it, but no selector set works across all marketplaces: element structure, labels, variant behavior, and loading timing differ. Expect to tune and maintain selectors per site, and keep visible-page validation as the check on both sources.

Best Value
Tracfone Motorola Moto G 2025, 64GB, Saphire Blue (Locked to | Prepaid Smartphone- 6.6" 120Hz Display, 5G , 50MP Quad Pixel Camera, Long-Lasting Battery
  • Carrier: This phone is locked to Tracfone, which means this device can only be used on the Tracfone wireless network. Tracfone plan required, activating is easy, just 3 steps.
  • DISPLAY: Immersive viewing on a 6.7-inch super-bright 120Hz display with powerful stereo speakers and Bass Boost for cinematic entertainment.
  • CAMERA SYSTEM: Advanced 50MP Quad Pixel camera captures sharp, detailed photos and videos in any lighting condition
  • PERFORMANCE: Lightning-fast 5G connectivity paired with a powerful processor and RAM Boost for smooth multitasking.
  • BATTERY LIFE: Long-lasting 5000mAh battery with TurboPower charging technology delivers hours of power in minutes.
Rank #4
Sale
Samsung Galaxy A17 5G Smart Phone 128GB, US 1 Yr Manufacturer Warranty Blue | Large AMOLED, High-Res Camera, Durable Design, Super Fast Charging, Expandable Storage, Circle to Search, 2025
  • YOUR CONTENT, SUPER SMOOTH: The ultra-clear 6.7" FHD+ Super AMOLED display of Galaxy A17 5G helps bring your content to life, whether you're scrolling through recipes or video chatting with loved ones.¹
  • LIVE FAST. CHARGE FASTER: Focus more on the moment and less on your battery percentage with Galaxy A17 5G. Super Fast Charging powers up your battery so you can get back to life sooner.²
  • MEMORIES MADE PICTURE PERFECT: Capture every angle in stunning clarity, from wide family photos to close-ups of friends, with the triple-lens camera on Galaxy A17 5G.
  • NEED MORE STORAGE? WE HAVE YOU COVERED: With an improved 2TB of expandable storage, Galaxy A17 5G makes it easy to keep cherished photos, videos and important files readily accessible whenever you need them.³
  • BUILT TO LAST: With an improved IP54 rating, Galaxy A17 5G is even more durable than before.⁴ It’s built to resist splashes and dust and comes with a stronger yet slimmer Gorilla Glass Victus front and Glass Fiber Reinforced Polymer back.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Chrome ExtensionsecommerceJSON-LDstructured dataweb scraping

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Recommended PC Tool
Recommended PC Tool
Outdated Drivers Are Slowing You DownFree scan - exact matches
PC Slower Than It Used to Be?Free scan - under a minute

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.