Install
openclaw skills install @igorganapolsky/shopify-jsonld-parserParse JSON-LD structured data from Shopify product pages to extract commerce details like product info, offers (price, currency, availability), and inventory status from schema.org/Product and Offer. Use when: (1) analyzing Shopify HTML for product offers/pricing/stock, (2) extracting structured commerce data from web pages or local files, (3) querying JSON-LD for availability (InStock/OutOfStock/PreOrder), prices across variants, or offer counts. Handles @graph arrays and multiple scripts.
openclaw skills install @igorganapolsky/shopify-jsonld-parserParse JSON-LD from Shopify product pages (or any schema.org/Product JSON-LD) to extract structured commerce data reliably.
web_fetch a product page URL.scripts/parse_shopify_jsonld.py input.html (outputs JSON).Example:
exec command="python3 skills/shopify-jsonld-parser/scripts/parse_shopify_jsonld.py page.html"
web_fetch, read, or local).<script type="application/ld+json"> contents.@type: Product, extract:
{product: {...}, offers: [...], inventory_status: "InStock|OutOfStock|Limited|Unknown"}Inventory is typically availability enum, not exact quantity (use Shopify API for levels). Map:
Extract offers from page:
read path="shopify-page.html" → html
write path="tmp.html" content=html
exec command="python3 skills/shopify-jsonld-parser/scripts/parse_shopify_jsonld.py tmp.html" → parsed.json
read path="parsed.json"
Query CLI-style:
Add --query price or --field offers[0].availability flags to script.
scripts/parse_shopify_jsonld.py [input.html] [--query FIELD] [--output json|yaml]
See references/schema.md for schema.org/Product + Offer properties.
{error: "No product JSON-LD found"}