# Price Extraction With Custom CSS Selectors

**Use case:** 

For pages where the generic price parser misses, point the tracker at your own title, price and availability selectors and get a clean snapshot per URL.

## Input

```json
{
  "startUrls": [
    {
      "url": "https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html"
    }
  ],
  "maxPagesPerRun": 5,
  "respectRobotsTxt": true,
  "customTitleSelector": "h1",
  "customPriceSelector": ".price_color",
  "customAvailabilitySelector": ".availability",
  "includePageTextHash": true
}
```

## Output

```json
{
  "title": {
    "label": "Product title",
    "format": "string"
  },
  "price": {
    "label": "Price",
    "format": "string"
  },
  "currency": {
    "label": "Currency",
    "format": "string"
  },
  "availability": {
    "label": "Availability",
    "format": "string"
  },
  "sku": {
    "label": "SKU",
    "format": "string"
  },
  "host": {
    "label": "Store domain",
    "format": "string"
  },
  "canonicalUrl": {
    "label": "Canonical URL",
    "format": "string"
  },
  "detectedAt": {
    "label": "Checked at",
    "format": "string"
  },
  "confidence": {
    "label": "Confidence",
    "format": "number"
  },
  "contentHash": {
    "label": "Content hash",
    "format": "string"
  },
  "error": {
    "label": "Error",
    "format": "string"
  }
}
```

## About this Actor

This example demonstrates how to use [Ecommerce Price Tracker & Stock Monitor — Any URL](https://apify.com/davidbenittah/competitor-price-stock-monitor) with a specific input configuration. Visit the [Actor detail page](https://apify.com/davidbenittah/competitor-price-stock-monitor) to learn more, explore other use cases, and run it yourself.