# Cheap Glasses Online

**Use case:** 

Read products from the store's cheap-glasses deal section, sorted from lowest to highest price. This task saves up to 20 products. Each product is one dataset row with its name and page link. Prices use the store's currency. You do not need to copy each product page by hand.

## Input

```json
{
  "findProductsBy": "catalogue",
  "brandOrCategoryPageUrls": [
    {
      "url": "https://www.smartbuyglasses.com/designer-sunglasses/ray-ban/"
    }
  ],
  "regionalStorefront": "https://www.smartbuyglasses.com/",
  "catalogue": "all",
  "dealSections": [
    "cheap-glasses"
  ],
  "sortOrder": "price-low-to-high",
  "maxItems": 20
}
```

## Output

```json
{
  "name": {
    "label": "Product name",
    "format": "string"
  },
  "url": {
    "label": "Product page URL",
    "format": "string"
  },
  "brand": {
    "label": "Brand",
    "format": "string"
  },
  "model": {
    "label": "Model",
    "format": "string"
  },
  "variant": {
    "label": "Variant",
    "format": "string"
  },
  "productId": {
    "label": "Product ID",
    "format": "string"
  },
  "sku": {
    "label": "SKU",
    "format": "string"
  },
  "imageUrls": {
    "label": "Product image URLs",
    "format": "array"
  },
  "description": {
    "label": "Description",
    "format": "string"
  },
  "currentPrice": {
    "label": "Current price",
    "format": "number"
  },
  "referencePrice": {
    "label": "Reference price",
    "format": "number"
  },
  "currency": {
    "label": "Currency",
    "format": "string"
  },
  "availability": {
    "label": "Availability",
    "format": "string"
  },
  "remainingStock": {
    "label": "Remaining stock",
    "format": "integer"
  },
  "frame": {
    "label": "Frame details",
    "format": "object"
  },
  "lens": {
    "label": "Lens details",
    "format": "object"
  },
  "rating": {
    "label": "Star rating",
    "format": "number"
  },
  "reviewCount": {
    "label": "Review count",
    "format": "integer"
  },
  "category": {
    "label": "Product category",
    "format": "string"
  },
  "barcodes": {
    "label": "Product barcodes",
    "format": "array"
  },
  "manufacturer": {
    "label": "Manufacturer",
    "format": "string"
  },
  "collection": {
    "label": "Collection",
    "format": "string"
  },
  "releaseYear": {
    "label": "Release year",
    "format": "integer"
  },
  "intendedWearers": {
    "label": "Intended wearers",
    "format": "array"
  },
  "features": {
    "label": "Product features",
    "format": "array"
  },
  "badges": {
    "label": "Product badges",
    "format": "array"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The SmartBuyGlasses Actor is ready to run with the inputs already set for "Cheap Glasses Online". [Sign up or log in](https://console.apify.com/create-task-from-example/iR4zsKHsI6Um7vCIW) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Cheap Glasses Online" task

The SmartBuyGlasses Actor will start running based on the input automatically. You can also change all the input fields, like find products by, brand or category page urls, and more, to match your specific use case.

### 3. Receive the "Cheap Glasses Online" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as product name, product page url, brand, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Cheap Glasses Online" task via API](https://apify.com/maximedupre/smartbuyglasses.md).

## About this Actor

This example demonstrates how to use [SmartBuyGlasses](https://apify.com/maximedupre/smartbuyglasses.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/maximedupre/smartbuyglasses.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/maximedupre/smartbuyglasses.md

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).
