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 signal to decide what to trust.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Product page URL to extract data from | |
| format | No | Output format. "ucp" returns UCP line_item format. Default: "default". | default |
| force_refresh | No | Bypass cache entirely. Always triggers live extraction. Costs 3x credits. | |
| include_score | No | Include agent-readiness score in response. | |
| payment_method_id | No | Stripe payment method ID for MPP payment | |
| minimum_confidence | No | Auto-refresh if any cached field's DECAYED confidence falls below this threshold. Costs 2x credits when refresh triggers, 0.25x on cache hit. | |
| strict_confidence_threshold | No | Fields below this confidence will be nulled with explanation. Default: off. |