# Target Urls Spider (`getdataforme/target-urls-spider`) Actor

Target Urls Spider is an Apify Actor that scrapes comprehensive product data from Target.com, including prices, ratings, images, and descriptions. It offers reliable batch processing, structured JSON output, and real-time monitoring for efficient e-commerce analysis and research.

- **URL**: https://apify.com/getdataforme/target-urls-spider.md
- **Developed by:** [GetDataForMe](https://apify.com/getdataforme) (community)
- **Categories:** Automation, Agents, Lead generation
- **Stats:** 3 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $9.00 / 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/actors/running/actors-in-store.md#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

### Description

Target Urls Spider is an Apify Actor that scrapes comprehensive product data from Target.com, including prices, ratings, images, and descriptions. It offers reliable batch processing, structured JSON output, and real-time monitoring for efficient e-commerce analysis and research.

***

## Target Urls Spider

### Introduction

The Target Urls Spider is a powerful Apify Actor designed to scrape detailed product information from Target.com URLs. It extracts comprehensive data such as prices, ratings, images, descriptions, and more, enabling efficient data collection for e-commerce analysis. This tool simplifies the process of gathering structured product data, saving time and effort for businesses and researchers.

### Features

- **Comprehensive Data Extraction**: Retrieves key product details including TCIN, UPC, prices, ratings, reviews, and images from Target product pages.
- **High Reliability**: Built with robust error handling to ensure consistent data scraping even from complex or dynamic pages.
- **Flexible Input**: Accepts a list of URLs for batch processing, supporting multiple products in a single run.
- **Structured Output**: Delivers clean, JSON-formatted data ready for integration into databases, analytics tools, or reports.
- **Performance Optimized**: Utilizes efficient scraping techniques to handle large volumes of URLs without excessive resource usage.
- **No Coding Required**: User-friendly interface on Apify Store for easy setup and execution.
- **Real-Time Monitoring**: Provides logs and progress tracking during runs for transparency and debugging.

### Input Parameters

| Parameter | Type   | Required | Description | Example |
|-----------|--------|----------|-------------|---------|
| Urls      | array  | Yes      | A list of Target product URLs to scrape. Each URL must start with http:// or https:// and point to a valid product page. | \["https://www.target.com/p/premium-basted-young-turkey/-/A-52610578"] |

### Example Usage

#### Input JSON

```json
{
  "Urls": [
    "https://www.target.com/p/premium-basted-young-turkey/-/A-52610578"
  ]
}
```

#### Output JSON

```json
[
  {
    "tcin": "52610578",
    "dpci": "226-05-0023",
    "upc": "210230000002",
    "title": "Premium Basted Young Turkey - Frozen - 10-16lbs - price per lb - Serves 7-11 - Good &#38; Gather&#8482;",
    "weight_range": "10-16lbs",
    "price_per_lb": 0.79,
    "price_per_lb_formatted": "$0.79/lb",
    "max_price_this_variant": "$12.64",
    "average_rating": 4.16,
    "total_reviews": 273,
    "review_distribution": {
      "rating1": 38,
      "rating2": 9,
      "rating3": 16,
      "rating4": 19,
      "rating5": 191
    },
    "page_rating": 4.2,
    "page_review_count": 273,
    "page_question_count": 4,
    "highlights": [
      "Marinated turkey with to 9.5% of  turkey broth, salt, sodium phosphate, sugar and flavoring",
      "Includes gravy packet",
      "Premium USDA turkey with no added hormones or steroids** (**Federal regulations prohibit the use of hormones and steroids in poultry.)",
      "USDA Grade A",
      "Final price will be based on weight.  Alaska & Hawaii will reflect local prices"
    ],
    "description": "Whether you're prepping for Thanksgiving dinner or an everyday meal, make it a little easier on yourself with the Premium Basted Frozen Young Turkey from Good & Gather\u2122. This frozen turkey comes with 12 to 16 pounds of USDA premium turkey that's marinated with turkey broth, salt, sodium phosphate, sugar and flavoring, and it even includes a gravy packet to remove one more step from your meal prep process. Simply keep frozen until getting ready to serve, then cook fully  to 165F before serving. <br /><br />Every product that carries the Good & Gather\u2122 name starts with quality ingredients that deliver great taste, making it easier for you and your family to eat well, every day. We promise you\u2019ll love each bite, or your money back.<br /><br />All Good & Gather products are made without artificial flavors, synthetic colors, artificial sweeteners, and high-fructose corn syrup. Some are specially formulated while others never contained these ingredients.",
    "primary_image": "https://target.scene7.com/is/image/Target/GUEST_0b3659b5-04aa-497c-aba1-8a69d8aa7254",
    "all_images": [
      "https://target.scene7.com/is/image/Target/GUEST_52ecccc3-355b-41db-932e-5304f19368ca",
      "https://target.scene7.com/is/image/Target/GUEST_cc3bc5c5-ce39-4cad-8511-2617d7528a81",
      "https://target.scene7.com/is/image/Target/GUEST_56086218-46fe-4ac5-a880-42adb9718ddb"
    ],
    "serves": "7-11",
    "includes_gravy_packet": true,
    "actor_id": "9mJ1FZtO2w7M9Be4a",
    "run_id": "A8eVtAlI6PvcMX5bn"
  }
]
```

### Use Cases

- **Market Research and Analysis**: Gather pricing and review data to analyze trends in the retail market.
- **Competitive Intelligence**: Monitor competitors' product offerings and customer feedback on Target.
- **Price Monitoring**: Track price changes for products to optimize pricing strategies.
- **Content Aggregation**: Collect product descriptions and images for content creation or catalogs.
- **Academic Research**: Study consumer behavior through ratings and reviews data.
- **Business Automation**: Automate data extraction for inventory management or sales forecasting.

### Installation and Usage

1. Search for "Target Urls Spider" in the Apify Store
2. Click "Try for free" or "Run"
3. Configure input parameters
4. Click "Start" to begin extraction
5. Monitor progress in the log
6. Export results in your preferred format (JSON, CSV, Excel)

### Output Format

The Actor outputs an array of JSON objects, each representing a scraped product. Key fields include identifiers (tcin, upc), pricing (price\_per\_lb, max\_price\_this\_variant), ratings (average\_rating, review\_distribution), content (title, description, highlights), media (primary\_image, all\_images), and metadata (actor\_id, run\_id). Data is structured for easy parsing and integration.

### Support

For custom/simplified outputs or bug reports, please contact:

- Email: support@getdataforme.com
- Subject line: "custom support"
- Contact form: https://getdataforme.com/contact/

We're here to help you get the most out of this Actor!

***

# Actor input Schema

## `Urls` (type: `array`):

The urls for the spider.

## Actor input object example

```json
{}
```

# Actor output Schema

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

Scraped data items from dataset

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("getdataforme/target-urls-spider").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 = {}

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

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

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

```

## CLI example

```bash
echo '{}' |
apify call getdataforme/target-urls-spider --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,getdataforme/target-urls-spider"
        }
    }
}

```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/9mJ1FZtO2w7M9Be4a/builds/etD17W1RKEvdDWTFe/openapi.json
