# Target Product Scraper — prices, stock and ratings (`blackfalcondata/target-scraper`) Actor

Scrape Target product listings by keyword and get one structured row per product. Every record carries pricing, stock status and ratings. Load the result straight into a spreadsheet or a database without any cleanup work first.

- **URL**: https://apify.com/blackfalcondata/target-scraper.md
- **Developed by:** [Black Falcon Data](https://apify.com/blackfalcondata) (community)
- **Categories:** E-commerce, Lead generation, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.50 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

### What does Target Product Scraper do?

Target Product Scraper extracts structured product data from [target.com](https://target.com) — including full descriptions and seller ratings. It supports keyword search and controllable result limits, so you can run the same query consistently over time. The actor also offers detail enrichment (full descriptions) where the source provides them.

**New to Apify?** [Sign up free](https://console.apify.com/sign-up?fpr=1h3gvi\&fp_sid=ctaplain) and use the included $5 monthly platform credit to test this actor.

### Key features

- **💵 Structured pricing** — current price and regular price as numbers, plus the formatted strings Target displays, an `on_sale` flag and a computed `discount_amount` / `discount_percent`. Target Circle and mass offers ride along in `promotions[]` with the offer text, reward and threshold.
- **📋 Detail enrichment** — toggle two-stage scraping: first collect listings, then enrich each with full description + detail-page-only fields. Off by default to keep runs fast; flip on when you need the deep payload.
- **📦 Compact mode** — drop the heavy fields (image lists, spec bullets, breadcrumbs, package dimensions, rating distribution) and keep the shopping essentials: identity, brand, current and regular price, sale flag, rating and the product URL. Ideal for AI agents and dashboards where the full record is more context than the job needs.
- **🎯 Batch searches** — pass `["term1", "term2"]` as the query to run several searches in one go — shared dedup across them, one dataset, and a single Actor-Start charge instead of one per term.
- **🧹 Empty-field stripping** — drop null, empty-string, and empty-array fields from each record before push. Smaller payloads for AI agents and dashboards that already handle missing fields gracefully.
- **♻️ Incremental mode** — recurring runs emit only products whose tracked fields changed since the prior run — price moves, going on or off sale, stock flipping — and filter the unchanged rest out by default. Built for price monitoring, where the diff is the product. Saves 80-95% on daily re-runs.
- **📤 Export anywhere** — Download the dataset as JSON, CSV, or Excel from the Apify Console, or stream live via the Apify API and integrations (Make, Zapier, Google Sheets, n8n, …).
- **🔌 MCP connectors** — export your results into Notion via Apify's MCP connectors — a clean run-summary page, no glue code. Opt-in via the App connector field; deterministic field-mapping, no AI. Built on Apify's connector framework, so more destinations open up as their catalog grows.

### What data can you extract from target.com?

Each result includes Core product fields (`position`, `page`, `search_keyword`, `response_id`, `sort_by`, `current_page`, `total_pages`, and `total_results`, and more) and detail fields when enrichment is enabled (`description`, `descriptionText`, `descriptionHtml`, `descriptionMarkdown`, and `detailFetched`). In standard mode, all fields are always present — unavailable data points are returned as `null`, never omitted. In compact mode, only core fields are returned.

Enable detail enrichment in the input to get richer fields such as full descriptions where the source provides them.

### Input

The main inputs are a search keyword and a result limit. Additional filters and options are available in the input schema.

Key parameters:

- **`query`** — Product search keyword, e.g. "laptop", "air fryer", "lego star wars". Paste a JSON array for several searches in one run, e.g. \["laptop","monitor"]. Each keyword returns up to 1,200 products.
- **`startUrls`** — Paste target.com search URLs (e.g. https://www.target.com/s?searchTerm=air+fryer). The search term is read from each URL and becomes its own search task; results are merged and deduped across all URLs. (default: `[]`)
- **`maxResults`** — Maximum total products (0 = unlimited). Each search term can return at most 1,200 products. (default: `25`)
- **`includeDetails`** — Fetch full listing details. (default: `true`)
- **`descriptionMaxLength`** — Truncate description to N chars. 0 = no truncation. (default: `0`)
- **`compact`** — Core fields only (for AI-agent/MCP workflows). (default: `false`)
- **`incrementalMode`** — Compare against previous run state. stateKey is optional — defaults to a value derived from search inputs (queries, locations, startUrls, country) so different filter sets never share state. (default: `false`)
- **`stateKey`** — Optional. Stable identifier for the tracked search universe. Leave empty to auto-generate from search inputs.
- **`skipReposts`** — When incremental, skip listings whose content matches an expired listing from a prior run (cross-run duplicate detection). (default: `false`)
- **`telegramToken`** — Telegram bot token (from @BotFather). Required for Telegram notifications.
- **`telegramChatId`** — Telegram chat or channel ID (e.g. "-100123456789"). Required when telegramToken is set.
- **`discordWebhookUrl`** — Discord incoming webhook URL. Server Settings → Integrations → Webhooks → New Webhook.
- ...and 15 more parameters

### Input examples

**Basic search** — Keyword-driven search with a result cap.

→ Full payload per result — all standard fields populated where the source provides them.

```json
{
  "query": "laptop",
  "maxResults": 50
}
```

**Incremental tracking** — Only emit products that changed since the previous run with this `stateKey`.

→ First run builds the baseline state. Subsequent runs emit only records that are new or whose tracked content changed. Set `emitUnchanged: true` to include unchanged records as well.

```json
{
  "query": "laptop",
  "maxResults": 200,
  "incrementalMode": true,
  "stateKey": "laptop-tracker"
}
```

**Compact output for AI agents** — Return only core fields for AI-agent and MCP workflows.

→ Small payload with the most important fields — ideal for piping into LLMs without token overhead.

```json
{
  "query": "laptop",
  "maxResults": 50,
  "compact": true
}
```

### Output

Each run produces a dataset of structured product records. Results can be downloaded as JSON, CSV, or Excel from the Dataset tab in Apify Console.

### Example product record

```json
{
  "position": 1,
  "page": 1,
  "search_keyword": "laptop",
  "response_id": "search-eeb44378-f833-4038-9d54-b1458403c134",
  "sort_by": "relevance",
  "current_page": 1,
  "total_pages": 50,
  "total_results": 1649,
  "result_offset": 0,
  "tcin": "1012621108",
  "original_tcin": "1012621108",
  "title": "HP Essential 14\" HD Laptop, Intel N150, 8GB DDR4, 128GB eMMC, Wi-Fi 6, Win11 Home, 1-Year Microsoft 365 Included",
  "buy_url": "https://www.target.com/p/hp-essential-14-hd-laptop-intel-n150-8gb-ddr4-128gb-emmc-wi-fi-6-win11-home-1-year-microsoft-365-included/-/A-1012621108",
  "portalUrl": "https://www.target.com/p/hp-essential-14-hd-laptop-intel-n150-8gb-ddr4-128gb-emmc-wi-fi-6-win11-home-1-year-microsoft-365-included/-/A-1012621108",
  "primary_image_url": "https://target.scene7.com/is/image/Target/GUEST_26a97166-cbda-4bc7-90cf-2360865533ae",
  "alternate_image_urls": [
    "https://target.scene7.com/is/image/Target/GUEST_3b4067ce-32da-443b-8870-dc5025644831",
    "https://target.scene7.com/is/image/Target/GUEST_745cce7d-5420-4cf8-97b3-b40451b1b80e",
    "https://target.scene7.com/is/image/Target/GUEST_f9dc7ad5-3ce5-42a3-be96-5bd04edcf46f",
    "https://target.scene7.com/is/image/Target/GUEST_ffc68449-7e79-4dd3-9075-87b9cfeb579e",
    "https://target.scene7.com/is/image/Target/GUEST_7222a895-2075-496e-9f7b-80381f9d09ef",
    "... 1 more items"
  ],
  "image_count": 7,
  "brand": "HP Inc.",
  "relationship_type": "Variation Parent",
  "item_type": "Traditional Laptops",
  "vendor_name": "PCOnline",
  "department_id": 56,
  "class_id": 1,
  "category_id": "6k98r",
  "parent_category_id": "5xtf4",
  "is_marketplace": true,
  "is_out_of_stock_all_locations": true,
  "sold_out": false,
  "shipping_availability": "IN_STOCK",
  "free_shipping_enabled": true,
  "formatted_current_price": "$329.98",
  "formatted_comparison_price": "$549.98",
  "current_retail": 329.98,
  "reg_retail": 549.98,
  "on_sale": true,
  "discount_amount": 220,
  "discount_percent": 40,
  "has_promotion": false,
  "variant_count": 1,
  "variant_tcins": [
    "1012311479"
  ],
  "variants": [
    {
      "tcin": "1012096069",
      "theme": "Storage Capacity",
      "value": "128GB"
    },
    {
      "tcin": "1012311479",
      "theme": "Color",
      "value": "Pink",
      "price": 329.98
    }
  ],
  "variant_price_min": 329.98,
  "variant_price_max": 329.98,
  "rating_average": 4,
  "rating_count": 1,
  "bullets": [
    "<B>Dimensions (Overall):</B> 12 inches (H) x 2.7 inches (W) x 17.5 inches (D)",
    "<B>Weight:</B> 4.8 pounds",
    "<B>Hard Drive Speed:</B> Variable RPM",
    "<B>Electronics Condition:</B> New",
    "<B>Number of USB ports:</B> 3",
    "... 30 more items"
  ],
  "ornaments": [
    {
      "ornament": "trending",
      "display": "Trending",
      "long_description": "This item is seeing a recent spike in sales and views compared to usual.",
      "ornament_type": "guest",
      "template_type": "light_marker_with_fire",
      "metadata": "{\"experiments\":[{\"factor\":\"trending_ornament_factor\",\"value\":\"treatment_1\",\"default\":false,\"ios_treatment_id\":\"fb39e52a-dcbd-4dc8-9be2-b331e242bcec\",\"hide_on_control_value\":\"control\",\"ios_hide_on_cont..."
    },
    {
      "ornament": "new_at_target",
      "display": "New at",
      "ornament_type": "enterprise",
      "template_type": "text_with_red_bullseye"
    }
  ],
  "scraped_at": "2026-08-04T07:27:51.085Z",
  "package_dimensions": {
    "depth": 17.5,
    "dimension_unit_of_measure": "INCH",
    "weight": 4.8,
    "weight_unit_of_measure": "POUND",
    "height": 12,
    "width": 2.7
  },
  "return_method": "Mail In or Store",
  "return_policy_url": "https://www.target.com/help/articles/returns-exchanges/returns",
  "import_designation": "made in the USA",
  "variation_hierarchy": [
    {
      "name": "Color",
      "value": "Blue",
      "variation_hierarchy": [
        {
          "name": "Storage Capacity",
          "value": "128GB",
          "tcin": "1012096069",
          "primary_image_url": "https://target.scene7.com/is/image/Target/GUEST_26a97166-cbda-4bc7-90cf-2360865533ae"
        }
      ]
    },
    {
      "name": "Color",
      "value": "Pink",
      "variation_hierarchy": [
        {
          "name": "Storage Capacity",
          "value": "128GB",
          "tcin": "1012311479",
          "primary_image_url": "https://target.scene7.com/is/image/Target/GUEST_d20a442a-e89f-4685-9da0-d5cbd83e5117"
        }
      ]
    }
  ],
  "rating_distribution": {
    "rating1": 0,
    "rating2": 0,
    "rating3": 0,
    "rating4": 1,
    "rating5": 0
  },
  "question_count": 2,
  "recommended_percentage": 0,
  "has_verified_reviews": false,
  "description": "Designed for students, families, remote workers, and everyday users, this 14-inch laptop delivers dependable computing performance in a lightweight and portable design. Combining efficient processing...",
  "descriptionText": "Designed for students, families, remote workers, and everyday users, this 14-inch laptop delivers dependable computing performance in a lightweight and portable design. Combining efficient processing...",
  "descriptionHtml": "<p>Designed for students, families, remote workers, and everyday users, this 14-inch laptop delivers dependable computing performance in a lightweight and portable design. Combining efficient processi...",
  "descriptionMarkdown": "Designed for students, families, remote workers, and everyday users, this 14-inch laptop delivers dependable computing performance in a lightweight and portable design. Combining efficient processing...",
  "ribbons": [
    "New At Target"
  ],
  "breadcrumbs": [
    "target",
    "Electronics & Tech",
    "Computers & Tablets",
    "Laptops",
    "Traditional Laptops"
  ],
  "currency": "USD",
  "listingId": "c7dbd008e1458ea5c103570c6875b162ff460112a4d03ea87353e1070570ce10",
  "searchQuery": "laptop",
  "contentQuality": "full",
  "detailFetched": true,
  "scrapedAt": "2026-08-04T07:27:51.085Z",
  "source": "target.com",
  "contentHash": "a797525c1cc489ca6f392dd269fbaffcd070d63881d244b3c4b2515eacdf582d"
}
```

### Incremental fields

When incremental mode is on, each record also carries:

- `changeType` — one of `NEW`, `UPDATED`, `UNCHANGED`, `REAPPEARED`, `EXPIRED`. Default output covers `NEW` / `UPDATED` / `REAPPEARED`; set `emitUnchanged: true` or `emitExpired: true` to opt into the others.
- `isRepost`, `repostOfId`, `repostDetectedAt` — populated when a new listing matches the tracked content of a previously expired one. Set `skipReposts: true` to drop detected reposts from the output.

### How to scrape target.com

1. Go to [Target Product Scraper](https://apify.com/blackfalcondata/target-scraper?fpr=1h3gvi) in Apify Console.
2. Enter a search keyword.
3. Set `maxResults` to control how many results you need.
4. Enable `includeDetails` if you need full descriptions.
5. Click **Start** and wait for the run to finish.
6. Export the dataset as JSON, CSV, or Excel.

### Use cases

- Extract product data from target.com for market research and competitive analysis.
- Track pricing trends across regions and categories over time.
- Monitor new and changed products on scheduled runs without processing the full dataset every time.
- Feed structured data into AI agents, MCP tools, and automated pipelines using compact mode.
- Export clean, structured data to dashboards, spreadsheets, or data warehouses.
- Benchmark seller / dealer reputation using rating fields.

### How much does it cost to scrape target.com?

Target Product Scraper uses [pay-per-event](https://docs.apify.com/platform/actors/paid-actors/pay-per-event) pricing. You pay a small fee when the run starts and then for each result that is actually produced.

- **Run start:** $0.001 per run
- **Per result:** $0.0015 per product record

Example costs:

- 10 results: **$0.016**
- 25 results: **$0.038**
- 100 results: **$0.15**
- 200 results: **$0.3**
- 500 results: **$0.75**

#### Example: recurring monitoring savings

These examples compare full re-scrapes with incremental runs at different churn rates. Churn is the share of products that are new or whose tracked content changed since the previous run. Actual churn depends on your query breadth, source activity, and polling frequency — the scenarios below are examples, not predictions.

Example setup: 100 products per run, daily polling (30 runs/month). Costs scale linearly with the number of products.

| Churn rate | Full re-scrape run cost | Incremental run cost | Savings vs full re-scrape | Monthly cost after baseline |
|---|---:|---:|---:|---:|
| 5% — stable niche query | $0.15 | $0.0085 | $0.14 (94%) | $0.26 |
| 15% — moderate broad query | $0.15 | $0.02 | $0.13 (84%) | $0.70 |
| 30% — high-volume aggregator | $0.15 | $0.05 | $0.10 (70%) | $1.38 |

Full re-scrape monthly cost at the same cadence: $4.53. First month with incremental costs $0.40 / $0.83 / $1.49 for the 5% / 15% / 30% scenarios because the first run builds baseline state at full cost before incremental savings apply.

Platform usage is included in the per-result fee shown above.

### FAQ

#### How many results can I get from target.com?

The number of results depends on the search query and available products on target.com. Use the `maxResults` parameter to control how many results are returned per run.

#### Does Target Product Scraper support recurring monitoring?

Yes. Enable incremental mode to only receive new or changed products on subsequent runs. This is ideal for scheduled monitoring where you want to track changes over time without re-processing the full dataset.

#### Can I integrate Target Product Scraper with other apps?

Yes. Target Product Scraper works with Apify's [integrations](https://apify.com/integrations?fpr=1h3gvi) to connect with tools like Zapier, Make, Google Sheets, Slack, and more. You can also use webhooks to trigger actions when a run completes.

#### Can I use Target Product Scraper with the Apify API?

Yes. You can start runs, manage inputs, and retrieve results programmatically through the [Apify API](https://docs.apify.com/api/v2). Client libraries are available for JavaScript, Python, and other languages.

#### Can I use Target Product Scraper through an MCP Server?

Yes. Apify provides an [MCP Server](https://apify.com/apify/actors-mcp-server?fpr=1h3gvi) that lets AI assistants and agents call this actor directly. Use compact mode, `descriptionMaxLength`, a single `descriptionFormat`, and `excludeEmptyFields` to keep payloads manageable for LLM context windows.

#### Is it legal to scrape target.com?

This actor extracts publicly available data from target.com. Web scraping of public information is generally considered legal, but you should always review the target site's terms of service and ensure your use case complies with applicable laws and regulations, including GDPR where relevant.

#### Your feedback

If you have questions, need a feature, or found a bug, please [open an issue](https://apify.com/blackfalcondata/target-scraper/issues?fpr=1h3gvi) on the actor's page in Apify Console. Your feedback helps us improve.

### You might also like

- [🚗 mobile.de \[$0.6/1K💰\] Fast Scraper · Finance · Dealer GPS](https://apify.com/blackfalcondata/mobile-de-scraper?fpr=1h3gvi) — Scrape mobile.de — Germany's largest car marketplace (1.4M+ listings) at $0.6 / 1,000 results. Get.
- [ALDI Nord Scraper — Grocery Prices, 5 Markets](https://apify.com/blackfalcondata/aldi-nord-scraper?fpr=1h3gvi) — Scrape the full ALDI NORD grocery catalogue from aldi.nl, aldi.be, www.aldi-nord.de (northern.
- [ALDI Scraper — Grocery Prices, 14 Countries](https://apify.com/blackfalcondata/aldi-scraper?fpr=1h3gvi) — Scrape ALDI grocery products and prices across 14 countries — the UK, Ireland, Germany, Austria,.
- [ALDI US Scraper — Grocery Prices by ZIP Code](https://apify.com/blackfalcondata/aldi-us-scraper?fpr=1h3gvi) — Scrape aldi.us grocery products with prices, package sizes, brands, categories, per-unit pricing.
- [AutoScout24 \[Just 💰$0.8\] — European Cars + Dealer Data](https://apify.com/blackfalcondata/autoscout24-scraper?fpr=1h3gvi) — 💰 $0.8 per 1,000 cars. Scrape autoscout24.com — Europe's largest used-car marketplace covering.
- [Autotrader AU \[$0.9💰\] Car & Caravan Scraper 🇦🇺](https://apify.com/blackfalcondata/autotrader-au-scraper?fpr=1h3gvi) — Scrape autotrader.com.au car & caravan listings — advertised + previous price with a computed.
- [AutoTrader Canada — used car listings](https://apify.com/blackfalcondata/autotrader-ca-scraper?fpr=1h3gvi) — Scrape autotrader.ca — filter by make model year & price · full vehicle specs with listing photos ·.
- [Autotrader UK \[$0.75💰/1K\] - Car Scraper, Full Detail](https://apify.com/blackfalcondata/autotrader-uk-scraper?fpr=1h3gvi) — Scrape UK car listings from Auto Trader by make, model, price, year, mileage, fuel, and body type..

### Getting started with Apify

New to Apify? [Create a free account with $5 credit](https://console.apify.com/sign-up?fpr=1h3gvi\&fp_sid=ctaplain) — no credit card required.

1. Sign up — $5 platform credit included
2. Open this actor and configure your input
3. Click **Start** — export results as JSON, CSV, or Excel

Need more later? [See Apify pricing](https://apify.com/pricing?fpr=1h3gvi).

### Disclaimer

This actor accesses only publicly available data on target.com. You are responsible for how you use the extracted data — in particular any personal information such as names, phone numbers, or email addresses — and for complying with Target Product's terms of use, applicable data-protection law (including the GDPR where it applies), and the anti-spam rules of your jurisdiction.

This actor is not affiliated with, endorsed by, or connected to Target Product.

### Search keywords

target scraper, target api, apify target, target data extraction, target product scraper, target product api, apify target product, target product data extraction, target.com scraper, target.com data, target.com api.

# Actor input Schema

## `query` (type: `string`):

Product search keyword, e.g. "laptop", "air fryer", "lego star wars". Paste a JSON array for several searches in one run, e.g. \["laptop","monitor"]. Each keyword returns up to 1,200 products.

## `startUrls` (type: `array`):

Paste target.com search URLs (e.g. https://www.target.com/s?searchTerm=air+fryer). The search term is read from each URL and becomes its own search task; results are merged and deduped across all URLs.

## `maxResults` (type: `integer`):

Maximum total products (0 = unlimited). Each search term can return at most 1,200 products.

## `includeDetails` (type: `boolean`):

Fetch full listing details.

## `descriptionMaxLength` (type: `integer`):

Truncate description to N chars. 0 = no truncation.

## `compact` (type: `boolean`):

Core fields only (for AI-agent/MCP workflows).

## `incrementalMode` (type: `boolean`):

Compare against previous run state. stateKey is optional — defaults to a value derived from search inputs (queries, locations, startUrls, country) so different filter sets never share state.

## `stateKey` (type: `string`):

Optional. Stable identifier for the tracked search universe. Leave empty to auto-generate from search inputs.

## `skipReposts` (type: `boolean`):

When incremental, skip listings whose content matches an expired listing from a prior run (cross-run duplicate detection).

## `telegramToken` (type: `string`):

Telegram bot token (from @BotFather). Required for Telegram notifications.

## `telegramChatId` (type: `string`):

Telegram chat or channel ID (e.g. "-100123456789"). Required when telegramToken is set.

## `discordWebhookUrl` (type: `string`):

Discord incoming webhook URL. Server Settings → Integrations → Webhooks → New Webhook.

## `slackWebhookUrl` (type: `string`):

Slack incoming webhook URL. api.slack.com/messaging/webhooks.

## `notificationLimit` (type: `integer`):

Maximum number of listings included in each notification message (1–20).

## `notifyOnlyChanges` (type: `boolean`):

When Incremental Mode is on, only send notifications for NEW and UPDATED listings. Has no effect outside incremental mode.

## `whatsappAccessToken` (type: `string`):

WhatsApp Cloud API permanent access token (System User token from Meta Business). Recipient must have messaged the business number within the last 24h (service-conversation window — free since Nov 2024).

## `whatsappPhoneNumberId` (type: `string`):

Your WhatsApp Business phone-number ID (numeric, from Meta dashboard). Required when whatsappAccessToken is set.

## `whatsappTo` (type: `string`):

Recipient phone in E.164 format without + (e.g. "436641234567"). Recipient must have messaged your business number within last 24h.

## `webhookUrl` (type: `string`):

Receives a JSON POST with {metadata, items} after each run. Universal escape hatch for n8n / Make / Zapier / custom backends.

## `webhookHeaders` (type: `object`):

Optional JSON object of custom headers (e.g. {"Authorization":"Bearer ..."}).

## `appConnector` (type: `string`):

Optional. Pick a connected app under Settings → API & Integrations to receive your results (including any contact details). Best-effort across MCP connectors as Apify expands its catalog.

## `mcpIssueTeam` (type: `string`):

Only when the connected app is an issue tracker: the team (name or ID) the summary issue is created under, if that app requires one.

## `descriptionFormat` (type: `string`):

Pick a single description representation. `all` keeps every variant; `text` / `html` / `markdown` drop the others.

## `excludeEmptyFields` (type: `boolean`):

Drop null, empty-string, and empty-array fields from each record before push. Smaller payloads for AI agents and dashboards.

## `emitUnchanged` (type: `boolean`):

When incremental mode is on, also emit listings whose content has not changed since the last run.

## `emitExpired` (type: `boolean`):

When incremental mode is on, also emit listings that were seen before but are no longer found.

## `sortBy` (type: `string`):

Orders the products this run collects. On a broad keyword that is the set the run fetched, not every matching product in the catalogue — narrow the keyword if you need the true top or bottom of the range.

## Actor input object example

```json
{
  "query": "laptop",
  "startUrls": [],
  "maxResults": 5,
  "includeDetails": true,
  "descriptionMaxLength": 0,
  "compact": false,
  "incrementalMode": false,
  "skipReposts": false,
  "notificationLimit": 5,
  "notifyOnlyChanges": false,
  "descriptionFormat": "all",
  "excludeEmptyFields": false,
  "emitUnchanged": false,
  "emitExpired": false,
  "sortBy": "relevance"
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "query": "laptop",
    "maxResults": 5,
    "descriptionFormat": "all",
    "excludeEmptyFields": false
};

// Run the Actor and wait for it to finish
const run = await client.actor("blackfalcondata/target-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "query": "laptop",
    "maxResults": 5,
    "descriptionFormat": "all",
    "excludeEmptyFields": False,
}

# Run the Actor and wait for it to finish
run = client.actor("blackfalcondata/target-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "query": "laptop",
  "maxResults": 5,
  "descriptionFormat": "all",
  "excludeEmptyFields": false
}' |
apify call blackfalcondata/target-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=blackfalcondata/target-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/jMnNOJMfdqBo1QCSw/builds/ymqejUmmkl2GKP6vT/openapi.json
