# Scrape LEGO Sets and Prices from Target

**Use case:** 

Collect LEGO sets from Target.com with title, price, rating, review count, availability and product link. Useful for resellers and deal sites. Change the search term to any brand or product line.

## Input

```json
{
  "searchQueries": [
    "lego star wars"
  ],
  "startUrls": [
    {
      "url": "https://www.target.com/s?searchTerm=lego%20star%20wars"
    },
    {
      "url": "https://www.target.com/c/cereal-breakfast-grocery/-/N-5xt0g"
    },
    {
      "url": "https://www.target.com/p/ap2022-true-wireless-bluetooth-headphones/-/A-85978609"
    }
  ],
  "sortBy": "bestselling",
  "organicOnly": true,
  "defaultPurchasabilityFilter": true,
  "maxItemsPerInput": 30,
  "maxPagesPerInput": 2,
  "includeDetails": false,
  "includeRecentReviews": false,
  "maxRecentReviewsPerProduct": 5,
  "storeId": "2885",
  "onlyNew": false,
  "cacheName": "target-products-scraper-cache",
  "maxConcurrency": 6,
  "requestDelayMs": 250,
  "requestTimeoutMs": 20000,
  "maxRequestRetries": 6,
  "proxyMode": "all",
  "saveDebugResponses": false,
  "proxyConfig": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "US"
  }
}
```

## Output

```json
{
  "query": {
    "label": "Query",
    "format": "string"
  },
  "categoryId": {
    "label": "Category ID",
    "format": "string"
  },
  "tcin": {
    "label": "TCIN",
    "format": "string"
  },
  "upc": {
    "label": "UPC",
    "format": "string"
  },
  "brand": {
    "label": "Brand",
    "format": "string"
  },
  "title": {
    "label": "Title",
    "format": "string"
  },
  "currentPrice": {
    "label": "Current Price",
    "format": "number"
  },
  "regularPrice": {
    "label": "Regular Price",
    "format": "number"
  },
  "onSale": {
    "label": "On Sale",
    "format": "boolean"
  },
  "rating": {
    "label": "Rating",
    "format": "number"
  },
  "ratingCount": {
    "label": "Rating Count",
    "format": "number"
  },
  "reviewCount": {
    "label": "Review Count",
    "format": "number"
  },
  "detailStatus": {
    "label": "Detail Status",
    "format": "string"
  },
  "shipToGuest": {
    "label": "Ship To Guest",
    "format": "boolean"
  },
  "isSponsored": {
    "label": "Sponsored",
    "format": "boolean"
  },
  "productUrl": {
    "label": "Product URL",
    "format": "string"
  },
  "scrapedAt": {
    "label": "Scraped At",
    "format": "string"
  }
}
```

## How it works

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

The Target Products Scraper — No Login Required Actor is ready to run with the inputs already set for "Scrape LEGO Sets and Prices from Target". [Sign up or log in](https://console.apify.com/create-task-from-example/nb92hGEQ0yhBqKEHI) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Scrape LEGO Sets and Prices from Target" task

The Target Products Scraper — No Login Required Actor will start running based on the input automatically. You can also change all the input fields, like search queries, target search, category, or product urls, and more, to match your specific use case.

### 3. Receive the "Scrape LEGO Sets and Prices from Target" 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 query, category id, TCIN, 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 "Scrape LEGO Sets and Prices from Target" task via API](https://apify.com/crowdpull/target-products-scraper.md).

## FAQ

### What data does the Target LEGO search task return?

The Target LEGO search task returns one row per Target product: title, brand, current and regular price, rating, review count, availability and the product link.

### How do I adapt the Target LEGO search task to my own search?

Save the Target LEGO search task to your account, then edit its input. Change Search queries to any products or paste Target search and category URLs. Sort order, price range and minimum rating narrow the results.

### Can the Target LEGO search task run automatically?

The Target LEGO search task can run on an Apify schedule and send results to Google Sheets, Slack, Zapier, Make, n8n or a webhook. Turn on Only new so each scheduled run delivers only products it has not sent before.

### Do I need an account or login for the site to run the Target LEGO search task?

The Target LEGO search task needs only an Apify account. It reads publicly visible pages, so you never enter a login or cookies for the site being scraped.

## About this Actor

This example demonstrates how to use [Target Products Scraper — No Login Required](https://apify.com/crowdpull/target-products-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/crowdpull/target-products-scraper.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/crowdpull/target-products-scraper.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`).
