# Mindfactory Scraper (`earnest_kombucha/mindfactory-scraper`) Actor

Extract real-time product data (price, availability, manufacturer) from Mindfactory.de by URLs, category, or keyword search. Ideal for price monitoring, competitor analysis, and market research.

- **URL**: https://apify.com/earnest\_kombucha/mindfactory-scraper.md
- **Developed by:** [Tim](https://apify.com/earnest_kombucha) (community)
- **Categories:** E-commerce
- **Stats:** 2 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.01 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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

## Mindfactory Scraper Actor

A flexible Apify Actor that scrapes product data from **Mindfactory.de**. You can provide:

- a list of product URLs,
- a category name (e.g. `CPU`, `Grafikkarten`), or
- a free-text keyword search (e.g. `radeon 9079`, `i7-14700K`).

The Actor returns a structured dataset with:

- **Product URL**
- **Product title**
- **Current price**
- **Availability / stock status**
- **Manufacturer / brand**

### ⚠️ Important Note on Site Protection

Mindfactory.de uses advanced bot protection (Cloudflare Turnstile) that may present a challenge page instead of the actual content, especially when accessed from data center IP addresses (like Apify workers). This can result in empty results for keyword or category searches.

To improve success chances:

- **Use direct product URLs** when possible (these are less likely to trigger challenges).
- **Enable Apify Proxy** (especially residential proxies) in the Actor’s settings. This often reduces the chance of being blocked.
- **If keyword/category search fails**, try again later or switch to providing explicit URLs.

The Actor includes automatic session handling (to obtain necessary cookies) and retry logic, but cannot guarantee bypassing the challenge in all cases.

### How to Use

#### Input

Provide a JSON object with any combination of the following fields:

| Field       | Type        | Description                                                                 |
|-------------|-------------|-----------------------------------------------------------------------------|
| `urls`      | Array\[string] | List of direct product page URLs to scrape.                                 |
| `category`  | String      | Mindfactory category name (e.g. `CPU`, `Mainboards`).                       |
| `keyword`   | String      | Free-text search term (e.g. `GTX 4090`, `Ryzen 9 7950X`).                  |

At least one of the fields must be non-empty.

#### Example Inputs

**Direct URLs:**

```json
{
  "urls": [
    "https://www.mindfactory.de/product_info.php/AMD-Ryzen-7-7800X3D-Box_100100706.html",
    "https://www.mindfactory.de/product_info.php/Intel-Core-i7-14700K-Box_100101234.html"
  ]
}
```

**Category:**

```json
{
  "category": "CPU"
}
```

**Keyword:**

```json
{
  "keyword": "radeon 9079"
}
```

#### Output

Each item in the dataset contains:

```json
{
  "url": "https://www.mindfactory.de/product_info.php/...",
  "title": "Product Name",
  "price": "429,90 €",
  "availability": "Auf Lager",
  "manufacturer": "AMD"
}
```

### Running the Actor

#### In Apify Console

1. Go to the Actor’s page.
2. Open the **Input** tab, paste your JSON, and click **Run**.
3. After the run finishes, check the **Dataset** tab for results (download as JSON, CSV, Excel, etc.).

#### Via Apify API

```bash
curl -X POST "https://api.apify.com/v2/acts/wPjW1m4GzkWxnjo9h/runs?token=YOUR_API_TOKEN" \
     -H "Content-Type: application/json" \
     -d '{"keyword":"Intel Core i7-14700K"}'
```

Replace `YOUR_API_TOKEN` with your actual Apify API token.

#### Scheduling

Use the **Schedule** tab to run the Actor automatically (e.g., every 6 hours for price monitoring).

### Technical Details

- The Actor uses `httpcloak` to bypass common Cloudflare challenges, but may still encounter the newer Turnstile challenge.
- It first attempts to fetch the homepage to obtain necessary cookies, then proceeds with the requested URLs.
- For keyword/category searches, it tries the internal JSON API, falls back to HTML search, and (if configured) uses a Google Custom Search Engine as a last resort.
- To use the Google CSE fallback, you must set two secrets in the Actor’s configuration:
  - `GOOGLE_CSE_API_KEY`: Your Google API key.
  - `GOOGLE_CSE_CX`: Your CSE ID (limited to `site:www.mindfactory.de`).
    If these are not set, the fallback is skipped.
- The Actor respects Apify’s proxy settings if configured (via `Actor.create_proxy_configuration()`).

### Changelog

See the [changelog](CHANGELOG.md) for details.

### License

This Actor is provided as-is. Feel free to modify and redistribute under the MIT License.

***

*Note: If you encounter persistent issues, please check the Actor’s log for error messages. The most common cause is the site’s bot protection presenting a challenge page instead of the expected content.*

# Actor input Schema

## `urls` (type: `array`):

List of direct Mindfactory product URLs to scrape

## `category` (type: `string`):

Mindfactory category name (e.g. CPU, Grafikkarten)

## `keyword` (type: `string`):

Free-text search keyword (e.g. radeon 9079)

## Actor input object example

```json
{}
```

# Actor output Schema

## `url` (type: `string`):

Direct link to the product page on Mindfactory.de

## `title` (type: `string`):

Product name as shown on the page

## `price` (type: `string`):

Current price as displayed on the page (incl. currency)

## `availability` (type: `string`):

Stock status text (e.g. Auf Lager, Lieferzeit: 2‑3 Werktage)

## `manufacturer` (type: `string`):

Brand or manufacturer extracted from the spec table

# 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("earnest_kombucha/mindfactory-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 = {}

# Run the Actor and wait for it to finish
run = client.actor("earnest_kombucha/mindfactory-scraper").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 earnest_kombucha/mindfactory-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,earnest_kombucha/mindfactory-scraper"
        }
    }
}

```

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/wPjW1m4GzkWxnjo9h/builds/uM34KddSKQ4pAlaHg/openapi.json
