# Target Store Spider (`getdataforme/target-store-spider`) Actor

The Target Store Spider is an Apify Actor that scrapes comprehensive data from Target store pages, including locations, products, prices, and availability....

- **URL**: https://apify.com/getdataforme/target-store-spider.md
- **Developed by:** [GetDataForMe](https://apify.com/getdataforme) (community)
- **Categories:** AI, Agents, E-commerce
- **Stats:** 2 total users, 0 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

## Target Store Spider

### Introduction

The Target Store Spider is a powerful Apify Actor designed to scrape and extract comprehensive data from Target store pages. It enables users to gather detailed information about store locations, product inventories, pricing, and more, making it an essential tool for e-commerce analysis and automation. With reliable performance and easy configuration, this Actor helps businesses and researchers access valuable insights from Target's online presence without manual effort.

### Features

- **Comprehensive Data Extraction**: Scrapes store details including location, hours, product listings, prices, and availability from Target store URLs.
- **High Reliability**: Built with robust error handling to ensure consistent data retrieval even from dynamic web pages.
- **Fast and Scalable**: Processes multiple store URLs efficiently, supporting batch operations for large-scale data collection.
- **Flexible Output**: Delivers structured JSON data that can be easily exported to CSV, Excel, or integrated into other systems.
- **User-Friendly Configuration**: Simple input parameters with validation to minimize setup errors.
- **Apify Integration**: Seamlessly runs on the Apify platform with built-in monitoring and scheduling capabilities.
- **Data Quality Assurance**: Filters out irrelevant content and ensures clean, actionable datasets.

### Input Parameters

| Parameter | Type | Required | Description | Example |
|-----------|------|----------|-------------|---------|
| StoreUrls | array | Yes | An array of Target store URLs to scrape. Each URL must be a valid HTTP/HTTPS link pointing to a Target store page. At least one URL is required. | \["https://www.target.com/sl/waterloo/1792", "https://www.target.com/sl/new-york/1234"] |

### Example Usage

To run the Target Store Spider, provide the input parameters in JSON format. Here's an example:

```json
{
  "StoreUrls": [
    "https://www.target.com/sl/waterloo/1792"
  ]
}
```

Example output (structured JSON):

```json
{
  "storeId": "1792",
  "storeName": "Waterloo Target",
  "location": {
    "address": "123 Main St, Waterloo, IA 50701",
    "phone": "(319) 555-1234",
    "hours": "Mon-Sat: 8am-10pm, Sun: 9am-9pm"
  },
  "products": [
    {
      "name": "Wireless Headphones",
      "price": 49.99,
      "availability": "In stock",
      "url": "https://www.target.com/p/wireless-headphones"
    }
  ],
  "scrapedAt": "2023-10-01T12:00:00Z"
}
```

### Use Cases

- **Market Research and Analysis**: Gather data on product offerings and pricing across multiple Target stores to identify trends and consumer preferences.
- **Competitive Intelligence**: Compare Target's store data with competitors to inform pricing strategies and inventory decisions.
- **Price Monitoring**: Track price changes and availability for specific products to optimize e-commerce operations.
- **Content Aggregation**: Collect store information for directories, apps, or websites requiring up-to-date retail data.
- **Academic Research**: Analyze retail patterns, such as store hours and product diversity, for studies in economics or consumer behavior.
- **Business Automation**: Integrate scraped data into dashboards or workflows for automated reporting and decision-making.

### Installation and Usage

1. Search for "Target Store 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 data in JSON format, with each store URL yielding a structured object. Key fields include:

- `storeId`: Unique identifier for the store.
- `storeName`: Name of the Target store.
- `location`: Object containing address, phone, and operating hours.
- `products`: Array of product objects with name, price, availability, and URL.
- `scrapedAt`: Timestamp of when the data was scraped.

This format ensures easy parsing and integration into databases or analysis tools.

### 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

## `StoreUrls` (type: `array`):

The store urls for the spider.

## Actor input object example

```json
{
  "StoreUrls": [
    "https://www.target.com/sl/waterloo/1792"
  ]
}
```

# 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-store-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-store-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-store-spider --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,getdataforme/target-store-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/MRpWgvkuBaI3wL8jH/builds/KMhagte9jimmqhtB6/openapi.json
