Shopify JSON-LD Parser for Openclaw

A specialized tool for extracting structured commerce data and inventory status from Shopify product pages using JSON-LD metadata.

igorganapolsky
v1.0.0
Apr 16, 2026
0
758
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install shopify-jsonld-parser

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install shopify-jsonld-parser using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Shopify JSON-LD Parser?

The Shopify JSON-LD Parser is a high-performance utility designed for Openclaw Skills that automates the extraction of structured metadata from e-commerce websites. By specifically targeting schema.org/Product and Offer scripts, it reliably retrieves critical business data such as pricing, currency, availability, and SKU details from raw HTML files.

This tool is particularly valuable for developers building automated monitoring systems or data pipelines. It streamlines the process of converting unstructured web content into clean, machine-readable JSON data, allowing for deeper analysis of product variants and stock levels across the Shopify ecosystem.

Shopify JSON-LD Parser Use Cases

  • Automating price and inventory tracking for Shopify-based online stores.
  • Extracting SKU and product variant information for catalog management and synchronization.
  • Analyzing competitor availability status (InStock, OutOfStock, PreOrder) across multiple product pages.
  • Transforming raw web fetch results into structured data for downstream analytics within Openclaw Skills workflows.

How Shopify JSON-LD Parser Works

  1. The skill receives an HTML file or string containing the source code of a Shopify product page.
  2. The script identifies and extracts all script tags defined as application/ld+json.
  3. It traverses the JSON objects, supporting both root-level definitions and complex @graph arrays.
  4. The parser isolates the Product and Offer types to extract key-value pairs for pricing, stock, and identification.
  5. The tool normalizes availability enums into standard statuses (available, unavailable, or preorder).
  6. A structured JSON object is generated, ready for consumption by other agents or databases.

Shopify JSON-LD Parser Setup

To integrate this skill into your environment, ensure the script is accessible in your file system and run it via the CLI:

# Basic usage with a local HTML file
python3 skills/shopify-jsonld-parser/scripts/parse_shopify_jsonld.py input.html

# Advanced usage with output formatting
python3 skills/shopify-jsonld-parser/scripts/parse_shopify_jsonld.py input.html --output json

Shopify JSON-LD Parser Data Schema & Taxonomy

The parser generates a standardized output to ensure compatibility across various Openclaw Skills data pipelines:

Property Description
product Metadata including name, description, image, and brand.
offers An array of offer objects containing price, currency, and URL.
inventory_status Normalized string: InStock, OutOfStock, or PreOrder.
sku The unique stock keeping unit identifier.
availability The raw schema.org availability URI.

Shopify JSON-LD Parser Advanced Features

  • Multi-script support: Automatically scans and aggregates data from multiple JSON-LD scripts on a single page.
  • Robust error handling: Gracefully manages malformed JSON-LD or missing schema fields without breaking the workflow.
  • CLI Querying: Use the --query flag to extract specific fields like price or availability directly from the terminal.
  • Flexible output: Support for both JSON and YAML formats to integrate seamlessly with diverse Openclaw Skills environments.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*