Contents / Content monitoring

Extraction rules — CSS / XPath / regex / JSON-LD / API JSON

#Which to pick

MethodBest forStability
CSS selectorPlain elements like .price #stockBreaks on redesigns, but easiest to write
XPathStructural targeting like //span[@class='price']More expressive than CSS
RegexContent without a clean tag wrapperLast resort — use carefully
JSON-LDPages with built-in structured data (offers.price, etc.)Most stable — check for it first
API JSONPull the field straight from the XHR API when data loads from oneStable and bandwidth-friendly
Check JSON-LD first

Most e-commerce and content sites embed JSON-LD structured data with canonical field names (like offers.price) — far more stable than scraping visual elements. Pick JSON-LD in the form and fill in the field path directly.

#Writing tips

Related: Create with the wizard · Watch can't fetch content

← Content monitoring