# Google Groups Public Archive Scraper (`crawlyth-forge/google-groups-scraper`) Actor

Scrape public Google Groups archives: browse threads, search inside a group, filter by date, and collect full messages with authors, timestamps, participants, attachments and continuation paging.

- **URL**: https://apify.com/crawlyth-forge/google-groups-scraper.md
- **Developed by:** [crawlyth forge](https://apify.com/crawlyth-forge) (community)
- **Categories:** Automation, Developer tools, Social media
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.49 / 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.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
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.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

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

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Google Groups Public Archive Scraper

Google Groups hosts decades of public mailing-list archives: open-source project lists, user help forums, standards discussions and announcement lists. This Actor turns those public archives into a clean dataset you can query, export or monitor — without a Google account, cookies or a browser extension.

Point it at one or more open groups and choose what you need:

- **List threads** — the newest conversations with subject, starter, participants, message count, last activity, views and URL.
- **Full threads with messages** — open each conversation and collect every message: author display name, timestamp, subject, HTML body, plain text, text with quoted replies stripped, attachments, reply-to names and a permalink.
- **Group About page** — description, language, group email, thread count and the public access rules (who can view, post, join and see members).

You can also search inside a group by keyword, restrict threads to a date window, or combine both.

### What you can do with it

- **Developer community research** — compare how often a library, error or proposal is discussed across project lists.
- **Support analytics** — export a user forum and measure response times, recurring problems and active helpers.
- **Mailing-list archive export** — keep a searchable copy of an open list for compliance, migration or offline analysis.
- **Announcement monitoring** — collect release notes and security announcements from public groups.
- **Competitive and standards intelligence** — follow working-group debates without reading the web UI page by page.

### Input

| Input | Default | What it does |
|---|---|---|
| `groups` | `["golang-nuts"]` | Group name, group email or full `groups.google.com` URL. Add several to read them in one run. |
| `mode` | `"threads"` | `threads`, `fullThreads` or `about`. |
| `searchQuery` | – | Search inside each group. Supports phrases and Google Groups operators such as `from:`, `subject:` and `"exact phrase"`. Leave empty to browse newest conversations. |
| `dateFrom` | – | Keep threads whose latest activity is on or after this date (UTC). |
| `dateTo` | – | Keep threads whose latest activity is on or before this date (UTC). |
| `maxThreads` | `25` | Hard cap on records for the run. In full-thread mode it is the number of conversations opened; About mode ignores it. |
| `maxMessagesPerThread` | `100` | Cap per conversation. `0` follows every continuation page Google serves. |
| `maxPages` | `20` | Safety cap on list and search pages per group. |
| `proxyConfiguration` | – | Optional own proxy settings. Leave empty and the Actor picks its route automatically. |

A group can be entered in any of these shapes:

```
golang-nuts
golang-nuts@googlegroups.com
https://groups.google.com/g/golang-nuts
https://groups.google.com/g/golang-nuts/about
```

### Output

One dataset row per thread. In full-thread mode, messages are included as an ordered `messages` array. In About mode, one row per group.

#### Thread fields

| Field | Meaning |
|---|---|
| `recordType` | `thread` or `group`. |
| `groupName`, `groupEmail`, `groupId` | Group identifiers. |
| `threadId`, `subject`, `snippet`, `url` | Conversation identity and link. |
| `starterName` | Display name that opened the thread. |
| `createdTime`, `lastActivityTime` | UTC timestamps in ISO 8601. |
| `messageCount`, `viewCount` | Counts shown by the public archive. |
| `participantCount`, `participants` | People shown on the conversation, with profile links where public. |
| `searchQuery`, `matchedSnippet`, `matchedMessageId`, `matchedMessageUrl` | Present on keyword-search results. |
| `messagesLoaded`, `messagesComplete` | How many messages were attached and whether that matches the stated count. |

#### Message fields (full-thread mode)

| Field | Meaning |
|---|---|
| `position` | 1-based position in the conversation. |
| `messageId`, `url` | Message identity and permalink. |
| `authorName`, `inReplyTo` | Display name and the names this message quotes or answers. |
| `timestamp`, `subject` | Message time (UTC) and subject line. |
| `bodyHtml` | Original message HTML. |
| `bodyText` | Plain text of the message body. |
| `bodyTextWithoutQuotes` | Plain text with quoted replies and `>` lines removed. |
| `attachments` | Attachments exposed by the archive: `name`, `url` and `contentType` when available. |
| `quotedHtml` | The trimmed quote block, when the archive provides one. |

#### Group fields (About mode)

`groupTitle`, `groupEmail`, `groupId`, `description`, `language`, `threadCount`, `whoCanViewGroup`, `whoCanViewMembers`, `whoCanViewConversations`, `whoCanPost`, `whoCanJoin`, `aboutUrl`.

Empty values are omitted at every level, so JSON, CSV and Excel exports stay clean.

### Examples

**Newest 10 conversations from a project list**

```json
{
  "groups": ["golang-nuts"],
  "mode": "threads",
  "maxThreads": 10
}
```

**Every message of 3 recent threads, with quotes removed**

```json
{
  "groups": ["golang-nuts"],
  "mode": "fullThreads",
  "maxThreads": 3,
  "maxMessagesPerThread": 0
}
```

**Search one group between two dates**

```json
{
  "groups": ["golang-nuts"],
  "mode": "threads",
  "searchQuery": "generics",
  "dateFrom": "2025-01-01",
  "dateTo": "2025-12-31",
  "maxThreads": 50
}
```

**Group details**

```json
{
  "groups": ["golang-nuts", "golang-dev"],
  "mode": "about"
}
```

### How paging works

The public archive shows conversations and messages in batches and exposes continuation tokens. This Actor follows those tokens, so a run is not limited to the first visible page. Listing pages, search pages and long conversations each have their own continuation path.

### FAQ

**Do I need a Google account or cookies?**
No. The Actor reads only public group pages. Nothing is posted, joined or changed.

**Which groups work?**
Groups whose conversations are visible to anyone on the web. Private groups and groups that require membership return no posts. Restricted groups sometimes expose the About page while hiding conversations; that is the archive's setting, not a scraper error.

**Why are some author emails missing or masked?**
Google masks member email addresses in public archives, and people who post without a Google account may have only a display name. The Actor never attempts to reveal or reconstruct masked addresses.

**Why is there no member count?**
Google no longer publishes member counts on public About pages. The Actor returns the public access rules and thread count instead of guessing.

**Are attachments downloaded?**
No. The Actor returns the attachment names and links that the archive exposes, so you can fetch the files you need. Some attachments are only visible to group members, in which case no public link exists.

**Can I get deleted or edited posts?**
No. The dataset reflects the public archive at run time. Deleted content and moderator-removed messages are not recoverable.

**Does keyword search cover the whole archive?**
Google's own search index decides what matches within a group. Use quoted phrases, `from:` or `subject:` to narrow results. Date limits are applied to thread activity and also passed to the search index.

**Are results deduplicated?**
Yes. A thread found more than once across groups or search pages is emitted once per group.

**How many messages can one thread return?**
The public thread page serves messages in batches of 100. The Actor follows continuation pages when `maxMessagesPerThread` is `0` or higher than the first batch, up to the configured cap.

**What happens when Google throttles requests?**
The Actor retries transient failures and switches its network route automatically. If every route is refused, affected groups are reported in the run log while the rest of the run continues.

**Are timestamps in UTC?**
Yes. All timestamps are ISO 8601 in UTC.

**Does this work for old Usenet groups?**
Read-only public Usenet archives remain viewable and can be scraped. Posting and subscribing to those groups is closed by Google, which does not affect reading.

### Limits, stated plainly

- **Public content only.** Private groups, members-only conversations and member lists are out of scope.
- **Masked identities stay masked.** Email addresses are not unmasked.
- **No member count.** Google does not publish it on public About pages.
- **Attachment availability depends on the archive.** The Actor returns public attachment links; it does not bypass member-only files.
- **View counts are a snapshot.** They can change between runs.
- **One record per thread.** Message bodies live inside the `messages` array in full-thread mode, which keeps exports easy to join back to their conversation.
- **Archive pagination can change.** Google occasionally changes its public pages; the Actor detects empty or blocked responses and reports them instead of emitting fabricated rows.

### Related data

If you need Google's Forums and Discussions search (Reddit, Quora, Facebook groups and niche forums), use the separate Google Forums search Actor on this account.

# Actor input Schema

## `groups` (type: `array`):

Public groups to read. Accepts a group name (golang-nuts), a group email (golang-nuts@googlegroups.com), or a groups.google.com URL. One per line.

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

List conversations, open each conversation with its messages, or read the group About page.

## `searchQuery` (type: `string`):

Optional keyword or phrase searched inside each group. Supports Google Groups operators such as from:, subject: and quoted "exact phrases". Leave empty to browse the group's newest conversations.

## `dateFrom` (type: `string`):

Only keep threads whose latest activity is on or after this date (YYYY-MM-DD, UTC).

## `dateTo` (type: `string`):

Only keep threads whose latest activity is on or before this date (YYYY-MM-DD, UTC).

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

Hard cap on emitted records for the run. In full-thread mode this is the number of threads opened; in About mode it is ignored.

## `maxMessagesPerThread` (type: `integer`):

Maximum messages attached to each thread in full-thread mode. Use 0 for every message Google serves, including continuation pages.

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

Safety cap on conversation-list and search-result pages fetched per group.

## Actor input object example

```json
{
  "groups": [
    "golang-nuts"
  ],
  "mode": "threads",
  "maxThreads": 1,
  "maxMessagesPerThread": 100,
  "maxPages": 1
}
```

# Actor output Schema

## `threads` (type: `string`):

Dataset with one record per thread (plus a messages array in full-thread mode) or per group in About mode.

# 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 = {
    "groups": [
        "golang-nuts"
    ],
    "mode": "threads",
    "maxThreads": 1,
    "maxMessagesPerThread": 100,
    "maxPages": 1
};

// Run the Actor and wait for it to finish
const run = await client.actor("crawlyth-forge/google-groups-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 = {
    "groups": ["golang-nuts"],
    "mode": "threads",
    "maxThreads": 1,
    "maxMessagesPerThread": 100,
    "maxPages": 1,
}

# Run the Actor and wait for it to finish
run = client.actor("crawlyth-forge/google-groups-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 '{
  "groups": [
    "golang-nuts"
  ],
  "mode": "threads",
  "maxThreads": 1,
  "maxMessagesPerThread": 100,
  "maxPages": 1
}' |
apify call crawlyth-forge/google-groups-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,crawlyth-forge/google-groups-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/P99PDW5c3vUwj3E85/builds/uFYDhsWbTT6ZHXVEg/openapi.json
