shopgraph

v1.0.1
io.github.laundromatic/shopgraph Checked 3 days ago Published 8 months ago

Clean product data from any URL.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

enrich_product

Extract comprehensive product data from a URL including name, price, brand, images, availability, and more. Uses schema.org structured data when available, with LLM fallback. Costs $0.02 per call (cached results are free). Each field carries verification metadata in _shopgraph: provenance (field_method — which source/tier produced it: schema_org, llm, or hybrid), freshness (field_freshness — recency + volatility_class, for volatile fields like price & availability), and abstain (a field is null when ShopGraph cannot verify it on the page). Rely on provenance, freshness, and the abstain sig…

ParameterTypeDescription
url *stringProduct page URL to extract data from
force_refreshbooleanBypass cache entirely. Always triggers live extraction. Costs 3x credits.
formatstringOutput format. "ucp" returns UCP line_item format. Default: "default".
include_scorebooleanInclude agent-readiness score in response.
minimum_confidencenumberAuto-refresh if any cached field's DECAYED confidence falls below this threshold. Costs 2x credits when refresh triggers, 0.25x on cache hit.
payment_method_idstringStripe payment method ID for MPP payment
strict_confidence_thresholdnumberFields below this confidence will be nulled with explanation. Default: off.

enrich_basic

Extract basic product attributes from a URL (name, price, brand, availability). Faster and cheaper than enrich_product. 50 free calls/month — no payment needed. Paid: $0.01 per call after free tier. Each field carries verification metadata in _shopgraph: provenance (field_method — which source/tier produced it: schema_org, llm, or hybrid), freshness (field_freshness — recency + volatility_class, for volatile fields like price & availability), and abstain (a field is null when ShopGraph cannot verify it on the page). Rely on provenance, freshness, and the abstain signal to decide what to…

ParameterTypeDescription
url *stringProduct page URL to extract data from
force_refreshbooleanBypass cache entirely. Always triggers live extraction. Costs 3x credits.
formatstringOutput format. "ucp" returns UCP line_item format. Default: "default".
include_scorebooleanInclude agent-readiness score in response.
minimum_confidencenumberAuto-refresh if any cached field's DECAYED confidence falls below this threshold. Costs 2x credits when refresh triggers, 0.25x on cache hit.
payment_method_idstringStripe payment method ID for MPP payment
strict_confidence_thresholdnumberFields below this confidence will be nulled with explanation. Default: off.

enrich_html

Extract product data from raw HTML you already have (no HTTP fetch needed). Ideal when using Bright Data, Firecrawl, or any scraping API — pipe the HTML through ShopGraph for structured product data. Uses schema.org + LLM fallback. Costs $0.02 per call (cached results are free). Each field carries verification metadata in _shopgraph: provenance (field_method — which source/tier produced it: schema_org, llm, or hybrid), freshness (field_freshness — recency + volatility_class, for volatile fields like price & availability), and abstain (a field is null when ShopGraph cannot verify it on th…

ParameterTypeDescription
html *stringRaw HTML content of the product page
url *stringOriginal URL of the page (used for context and caching)
force_refreshbooleanBypass cache entirely. Always triggers live extraction. Costs 3x credits.
formatstringOutput format. "ucp" returns UCP line_item format. Default: "default".
include_scorebooleanInclude agent-readiness score in response.
minimum_confidencenumberAuto-refresh if any cached field's DECAYED confidence falls below this threshold.
payment_method_idstringStripe payment method ID for MPP payment
strict_confidence_thresholdnumberFields below this confidence will be nulled with explanation. Default: off.

score_product

Extract product data and return agent-readiness score (0-100). Scores structured data completeness, semantic richness, UCP compatibility, pricing clarity, and inventory signals. Full scoring breakdown included.

ParameterTypeDescription
url *stringProduct page URL to extract and score
formatstringOutput format. "ucp" returns UCP line_item format. Default: "default".
payment_method_idstringStripe payment method ID for MPP payment
strict_confidence_thresholdnumberFields below this confidence will be nulled with explanation. Default: off.