SiteLens · Targeted Extraction

Find the data you need. Visually or by description.

Click an element or describe what you’re looking for — a price, a product detail, whether something is in stock. SiteLens generates reusable extraction instructions for your application. The page is public and stays where it is: no script, no DNS change, and no server access. Built for developers. Powered by the SiteLens API.

Two ways to identify a field

Visual extraction

Click an element on the webpage preview to identify and extract its content. Hover highlights elements like a browser inspector; a click locks the element so you can review the value and locator.

Description-based extraction

Describe what you want in ordinary language. Example: Professional plan monthly price. SiteLens identifies likely matching elements on the preview and presents ranked candidates for confirmation.

How it works

Preview → Integrate
Enter URLSelect or describeConfirmTestCopy requestIntegrate

The dashboard Targeted Extraction workspace is an interactive tool for creating and testing API extraction requests. Your application owns the request body, any schedule, and any historical data. SiteLens does not store saved extraction configurations, continuously monitor websites, or track changes over time.

1 · Enter URL

Preview a public page as it appears in a browser, including content loaded by JavaScript. Description matching uses that same preview.

2 · Select or describe

Click an element, or describe the content. Description search returns ranked candidates with scores that are match ranks, not probabilities.

3 · Confirm target

Review the value and recommended locator, name the target, and add it. Nothing is kept as a stored SiteLens configuration.

4 · Test extraction

Send the request to POST /capture. A pass confirms the page as it is now.

5 · Copy API request

Copy the JSON. Later calls use the locators (css, testId, role and name, or text)—not the description.

6 · Integrate

Put the request in your application. Call SiteLens when you need a current value. Scheduling and history stay in your system.

What you can extract

Text & HTML

Headings, paragraphs, labels, and snippets as plain text or markup.

Attributes

Link href values and other attributes when you need URLs or IDs.

Input values

Form field values when the rendered page shows them. Sensitive input values are left out of previews.

Extract What You See

Real browser

Extract content directly from rendered webpages, including elements loaded dynamically by JavaScript. SiteLens works with the page as it appears in a browser, not just its original HTML.

Multiple named targets

One request can extract several fields—starter_price, professional_price, product_availability—each with its own locator and extract kind. Ambiguous locators are flagged so you accept match: "first" deliberately.

Developer API integration

POST /capture

Copy a request for POST /capture. Authenticate with Authorization: Bearer sitelens_sk_… and keep the API key on your backend. Each call returns the current values for the locators you confirmed.

{
  "url": "https://example.com/pricing",
  "mode": "browser",
  "fallback": "browser",
  "includeExtraction": false,
  "locators": {
    "starter_price": { "css": ".plan-starter .price" },
    "professional_price": { "testId": "pro-price" },
    "availability": { "role": "status", "name": "In stock" }
  },
  "targets": [
    {
      "name": "starter_price",
      "locator": "starter_price",
      "extract": "text",
      "match": "unique"
    },
    {
      "name": "professional_price",
      "locator": "professional_price",
      "extract": "text",
      "match": "unique"
    },
    {
      "name": "availability",
      "locator": "availability",
      "extract": "text",
      "match": "unique"
    }
  ]
}

Real-world use cases

Prices & plans

Pull subscription or product prices into quotes, catalogs, or billing tools.

Availability

Read stock or status copy from public product pages when you need a current snapshot.

Product details

Pull a product name, a short description, or another specific block from a public product page.

Application integration

Call SiteLens from your backend when your application needs a current value. SiteLens does not store history, saved extraction configurations, or monitoring schedules, and it does not send change notifications.

Common questions

Do I need to install anything on the site I want to read?

No. Targeted Extraction previews and captures public pages from SiteLens infrastructure. You do not add a script, change DNS records, or grant server access. Your API key stays in your application. Localhost and signed-in apps are a different path: SiteLens Local and Desktop run on your machine.

Does the capture request include my description?

No. A description such as “Professional plan monthly price” is only for choosing a candidate in the dashboard. After you confirm it, POST /capture receives an ordinary locator. The same is true of a click: the request carries the locator, not a screenshot coordinate.

Start selecting

Open the dashboard workspace to create and test a capture request, then copy it into your application.