# Forocoches Forum Scraper 📊 - Extract Threads, Posts & Users (`tikitakaclaw/forocoches-scraper`) Actor

Scrape Spain's largest Spanish-speaking forum (forocoches.com) - extract threads, posts, users, replies, and engagement metrics. Built for market research, sentiment analysis, brand monitoring, and lead generation. No browser required, fast HTTP scraping.

- **URL**: https://apify.com/tikitakaclaw/forocoches-scraper.md
- **Developed by:** [TikitakaClaw Pikipiki](https://apify.com/tikitakaclaw) (community)
- **Categories:** Automation, Social media, AI
- **Stats:** 2 total users, 1 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 1,000 record scrapeds

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 a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use 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

## Forocoches Forum Scraper 📊

**Scrape Spain's largest Spanish-speaking forum** — forocoches.com. Extract threads, posts, users, replies, and engagement metrics. Built for market research, sentiment analysis, brand monitoring, and lead generation.

> 🎯 **No browser required.** Uses fast HTTP requests + Cloudflare/Varnish cache. 5-10× cheaper than browser-based scrapers.

---

### What you can scrape

| Mode | Output |
|---|---|
| **`forum_threads`** | List of threads in a subforum (titles, authors, reply counts, views) + optionally first-page posts |
| **`thread_posts`** | Full post content from specific thread URLs, with replies across pages |

#### Subforums supported (28+ verified)
- `2` General · `4` Coches · `11` Compra-Venta Motor
- `17` Electrónica · `43` Videojuegos · `94` Criptomonedas · `57` InverForo
- `23` Empleo · `27` Viajes · `95` Basket · `93` Oposiciones
- _Any forum ID works — full list at https://forocoches.com/foro/_

---

### Input

```json
{
  "mode": "forum_threads",
  "forumId": 2,
  "maxPages": 3,
  "maxThreads": 100,
  "includePostContent": true,
  "maxPostsPerThread": 100,
  "proxyConfiguration": { "useApifyProxy": false }
}
````

**Full schema:** see [Input Schema](.actor/input_schema.json) in the Actor console.

#### Field reference

| Field | Type | Default | Description |
|---|---|---|---|
| `mode` | enum | `forum_threads` | `forum_threads` or `thread_posts` |
| `forumId` | integer | `2` | Subforum ID (only for `forum_threads` mode) |
| `threadUrls` | string\[] | `[]` | Thread URLs (only for `thread_posts` mode, max 50) |
| `maxPages` | integer | `3` | Max pages per forum/thread (each page = ~30 items) |
| `maxThreads` | integer | `100` | Cap threads in `forum_threads` mode |
| `includePostContent` | boolean | `true` | Extract post text in forum mode (slower but richer) |
| `maxPostsPerThread` | integer | `100` | Cap posts per thread |
| `proxyConfiguration` | object | `{}` | Optional Apify Proxy |

***

### Output

Each dataset item is either a **thread summary** or a **post**.

#### Thread example

```json
{
  "itemType": "thread",
  "threadId": 10732383,
  "title": "¿Creeis que las Paraguayas son las latinas mas hermosas del mundo?",
  "forumId": 2,
  "forumName": "General",
  "author": "IKEA",
  "authorId": 884267,
  "replyCount": 231,
  "viewCount": 15420,
  "threadDate": "2026-07-04T21:26:07+00:00",
  "lastPostDate": "2026-07-05T17:35:41+00:00",
  "url": "https://forocoches.com/foro/showthread.php?t=10732383"
}
```

#### Post example

```json
{
  "itemType": "post",
  "threadId": 10732383,
  "postId": 515349950,
  "author": "IKEA",
  "authorId": 884267,
  "authorPostCount": 810,
  "authorRegistrationDate": "Jun 2024",
  "content": "🤔🤔🤔🤔",
  "contentLength": 8,
  "imageCount": 0,
  "quoteCount": 0,
  "postDate": "23:26",
  "url": "https://forocoches.com/foro/showthread.php?t=10732383&p=515349950#post515349950"
}
```

***

### Pricing

**Pay per event:**

| Event | Cost |
|---|---|
| Thread extracted | $0.003 |
| Post extracted | $0.002 |

> ℹ️ Apify's platform usage (compute units) is **passed through to you** — no markup. You only pay the per-event fee on top of CU.

**Example:** scraping a forum with 100 threads × 50 posts each = `100 × $0.003 + 5000 × $0.002` = `$0.30 + $10.00 = $10.30` per run (plus CU which is typically <$1).

***

### Use cases

1. **🎯 Brand monitoring** — track mentions of your product/brand across popular threads in real-time
2. **💼 Lead generation** — users post "looking for X service" in relevant subforums; extract those
3. **📊 Market research** — sentiment analysis on Spanish-speaking car/tech/crypto communities
4. **🤖 LLM training data** — rich Spanish conversational data for fine-tuning models
5. **🔍 Trend discovery** — see what topics are blowing up before they hit mainstream media
6. **📰 Journalism** — track breaking stories discussed in real-time

***

### Limits & best practices

- **Default rate limiting:** 1-2 req/s. The Actor waits 0.5-1s between requests to stay polite.
- **Use proxies for large runs:** If scraping >500 threads, enable Apify Proxy to avoid IP throttling.
- **Data retention:** Default Apify plan keeps datasets 7 days. Export promptly.
- **Post dates are relative:** Forocoches shows "Hoy HH:MM" / "Ayer HH:MM" instead of full timestamps. For precise dates, combine with thread metadata from the JSON-LD.
- **Private/authenticated content:** This scraper only handles **public** content. It does not log in.

***

### Technical notes

- **Engine:** Python 3.11 + httpx (HTTP/2) + Apify SDK v3
- **No browser:** 5-10× faster and cheaper than Playwright scrapers
- **Retries:** 3 attempts with exponential backoff on 429/503
- **Memory:** ~256 MB typical, max 512 MB recommended
- **Build time:** ~30s

***

### Changelog

- **0.1.0** (2026-07-05) — Initial release. forum\_threads + thread\_posts modes. 28+ verified subforums.

***

### Support

- 🐛 Report issues: Apify Console → this Actor → Issues tab
- 💬 Questions: [Apify Discord](https://discord.com/invite/jyEM2PRvMU) `#tikitakaclaw` channel
- 📧 Author: [@tikitakaclaw](https://apify.com/tikitakaclaw) on Apify

***

### License

This Actor is provided as-is. You are responsible for complying with Forocoches' terms of service and applicable laws. Be a good citizen — don't hammer the site, respect rate limits, and use scraped data ethically.

# Actor input Schema

## `mode` (type: `string`):

What to scrape: list threads from a forum, or scrape all posts from specific threads.

## `forumId` (type: `integer`):

ID of the Forocoches subforum to scrape (e.g. 2=General, 4=Coches, 94=Criptomonedas, 43=Videojuegos). Get full list at https://forocoches.com/foro/. Ignored when mode = 'thread\_posts'.

## `threadUrls` (type: `array`):

List of Forocoches thread URLs to scrape. Each must be like https://forocoches.com/foro/showthread.php?t=XXXXXXX. Accepts up to 50 URLs per run.

## `maxPages` (type: `integer`):

Maximum pagination pages. Each page has ~30 threads or ~30 posts. Set lower for faster/cheaper runs.

## `maxThreads` (type: `integer`):

Cap on total threads extracted per run. Protects against huge runs.

## `includePostContent` (type: `boolean`):

Extract full post text. Disable for thread-list-only runs to save bandwidth and cost.

## `maxPostsPerThread` (type: `integer`):

Cap on posts extracted per thread. Threads can have thousands of replies.

## `proxyConfiguration` (type: `object`):

⚠️ REQUIRED: Forocoches blocks datacenter IPs (HTTP 403). Use Apify Residential proxy in Spain (ES) — the forum rejects requests from non-residential IPs. Disable only for testing with very small runs.

## Actor input object example

```json
{
  "mode": "forum_threads",
  "forumId": 2,
  "threadUrls": [],
  "maxPages": 3,
  "maxThreads": 100,
  "includePostContent": true,
  "maxPostsPerThread": 100,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "countryCode": "ES"
  }
}
```

# 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("tikitakaclaw/forocoches-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("tikitakaclaw/forocoches-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 '{}' |
apify call tikitakaclaw/forocoches-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Forocoches Forum Scraper 📊 - Extract Threads, Posts & Users",
        "description": "Scrape Spain's largest Spanish-speaking forum (forocoches.com) - extract threads, posts, users, replies, and engagement metrics. Built for market research, sentiment analysis, brand monitoring, and lead generation. No browser required, fast HTTP scraping.",
        "version": "0.6",
        "x-build-id": "bCY5h5PRl56bQqhy8"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/tikitakaclaw~forocoches-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-tikitakaclaw-forocoches-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/tikitakaclaw~forocoches-scraper/runs": {
            "post": {
                "operationId": "runs-sync-tikitakaclaw-forocoches-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/tikitakaclaw~forocoches-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-tikitakaclaw-forocoches-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "mode"
                ],
                "properties": {
                    "mode": {
                        "title": "Scraping mode",
                        "enum": [
                            "forum_threads",
                            "thread_posts"
                        ],
                        "type": "string",
                        "description": "What to scrape: list threads from a forum, or scrape all posts from specific threads.",
                        "default": "forum_threads"
                    },
                    "forumId": {
                        "title": "Forum ID",
                        "minimum": 1,
                        "type": "integer",
                        "description": "ID of the Forocoches subforum to scrape (e.g. 2=General, 4=Coches, 94=Criptomonedas, 43=Videojuegos). Get full list at https://forocoches.com/foro/. Ignored when mode = 'thread_posts'.",
                        "default": 2
                    },
                    "threadUrls": {
                        "title": "Thread URLs (only for thread_posts mode)",
                        "type": "array",
                        "description": "List of Forocoches thread URLs to scrape. Each must be like https://forocoches.com/foro/showthread.php?t=XXXXXXX. Accepts up to 50 URLs per run.",
                        "default": [],
                        "items": {
                            "type": "string"
                        }
                    },
                    "maxPages": {
                        "title": "Max pages to crawl",
                        "minimum": 1,
                        "maximum": 50,
                        "type": "integer",
                        "description": "Maximum pagination pages. Each page has ~30 threads or ~30 posts. Set lower for faster/cheaper runs.",
                        "default": 3
                    },
                    "maxThreads": {
                        "title": "Max threads to scrape (forum_threads mode)",
                        "minimum": 1,
                        "maximum": 1000,
                        "type": "integer",
                        "description": "Cap on total threads extracted per run. Protects against huge runs.",
                        "default": 100
                    },
                    "includePostContent": {
                        "title": "Include post text content",
                        "type": "boolean",
                        "description": "Extract full post text. Disable for thread-list-only runs to save bandwidth and cost.",
                        "default": true
                    },
                    "maxPostsPerThread": {
                        "title": "Max posts per thread",
                        "minimum": 1,
                        "maximum": 1000,
                        "type": "integer",
                        "description": "Cap on posts extracted per thread. Threads can have thousands of replies.",
                        "default": 100
                    },
                    "proxyConfiguration": {
                        "title": "Proxy configuration",
                        "type": "object",
                        "description": "⚠️ REQUIRED: Forocoches blocks datacenter IPs (HTTP 403). Use Apify Residential proxy in Spain (ES) — the forum rejects requests from non-residential IPs. Disable only for testing with very small runs.",
                        "default": {
                            "useApifyProxy": true,
                            "apifyProxyGroups": [
                                "RESIDENTIAL"
                            ],
                            "countryCode": "ES"
                        }
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
