Menu

Parsing Product JSON-LD (@graph, ProductGroup, UnitPriceSpecification), OpenGraph & Microdata Across Any Store in 73 MB RAM (Zero Browsers)
📰

Parsing Product JSON-LD (@graph, ProductGroup, UnitPriceSpecification), OpenGraph & Microdata Across Any Store in 73 MB RAM (Zero Browsers)

DEV Community: typescript·apexautomationlabs·about 8 hours ago
#i7tlmWKF
#devtotypescript#devto#dev#product#json
Long article (524 words) — no AI summary yet.
Reading 0:00
15s threshold

Most price-monitoring and e-commerce catalog pipelines either brittle-code CSS selectors for every single storefront or launch headless Playwright/Puppeteer containers that burn 400+ MB of RAM just to extract structured product data that is already sitting in <script type="application/ld+json"> , OpenGraph meta tags, or Schema.org Microdata.

We built an open-source TypeScript + Cheerio Apify Actor ( GitHub | Apify Store ) that normalizes any public product page—across WooCommerce, BigCommerce, Shopify, Magento, and custom stores—into one uniform JSON schema inside a 128 MB RAM container at $1.50 / 1,000 parsed products ( $0.0015 / URL , $0 start fee).

Real-World Schema Quirks We Solved in Pure TypeScript

Parsing real e-commerce stores quickly reveals why naive JSON.parse(ldJson).offers.price breaks across platforms:

WooCommerce @graph + UnitPriceSpecification + HTML in Categories: WooCommerce routinely nests Product inside @graph , links brand / seller via @id references, stores price inside…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.