# Mercurynews Tags Scraper (`zerobreak/mercurynews-tags-scraper`) Actor

Extracts topic tags and keyword indexes from The Mercury News into clean, structured datasets. Collects key editorial metadata including tag names, topic identifiers, associated categories, and article counts. Ideal for media monitoring, content categorization, and regional news trend analysis.

- **URL**: https://apify.com/zerobreak/mercurynews-tags-scraper.md
- **Developed by:** [ZeroBreak](https://apify.com/zerobreak) (community)
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.99 / 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.
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

### Mercury News Tags Scraper — News Tag and Topic Catalog Extraction

![Mercury News Tags Scraper cover](https://images.bigibyte.com/cdn-cgi/image/width=1260,height=540,fit=cover,format=webp/apify-actors-covers/mercurynews-tags-scraper-cover.png)

### Overview

Mercury News Tags Scraper collects publicly available tag information from Mercury News.

Extract structured tag records, including tag IDs, names, URL slugs, and usage counts. Use the collected data for topic research, public relations analysis, issue tracking, content discovery, and news taxonomy development.

### Features

- Collect news tag catalog information
- Extract unique tag identifiers
- Retrieve tag names and URL slugs
- Collect tag usage counts
- Include timestamps for tracking collection history
- Build structured topic datasets
- Export results for research and analysis

### Input Parameters

| Parameter | Type | Default | Description |
|-----------|------|---------|-------------|
| `maxItems` | Integer | `3` | Maximum number of tag records to save (up to 1000) |
| `requestTimeoutSecs` | Integer | `30` | Timeout for individual requests, in seconds |

### Example Input

```json
{
  "maxItems": 3,
  "requestTimeoutSecs": 30
}
```

### What Data Does This Actor Extract?

| Field | Description |
|-------|-------------|
| `id` | Unique tag database identifier |
| `name` | Tag name |
| `slug` | URL-friendly tag identifier |
| `count` | Number of posts associated with the tag |
| `scrapedAt` | Timestamp when the record was collected |

### Example Output

```json
{
  "id": 42,
  "name": "2026 Elections",
  "slug": "2026-elections",
  "count": 120,
  "scrapedAt": "2026-11-15T00:00:00+00:00"
}
```

### Use Cases

- Build structured news topic databases
- Track coverage of specific issues and events
- Conduct public relations and media research
- Analyze topic popularity through tag usage counts
- Develop news topic graphs and content taxonomies
- Identify frequently covered subjects
- Monitor changes in tag catalogs over time
- Integrate tag data into dashboards and research pipelines

### Working with Your Dataset

After the actor completes its run, open the dataset from the Apify run page and export your collected tag records.

Supported export formats include:

- JSON
- CSV
- Excel

You can also connect the dataset to Google Sheets, Make, Zapier, or n8n for automated data synchronization and reporting.

### FAQ

**How many tags can one run collect?**

You can collect up to the configured `maxItems`, with a hard maximum of 1000 records per run.

**Do I need a Mercury News account?**

No. The actor is designed to collect publicly available tag information without requiring a personal account.

**What does the `count` field represent?**

It represents the number of posts associated with a tag according to the available source data.

**What happens if a request fails?**

Records already saved remain in the dataset. The run stops with the records collected before the failure.

**Can I schedule recurring runs?**

Yes. Use Apify schedules to automate recurring tag collection and synchronize the results with Google Sheets, Make, Zapier, or n8n.

### Disclaimer

This actor is an independent tool and is not affiliated with, endorsed by, sponsored by, or officially associated with Mercury News or its owners. It collects publicly available information. Users are responsible for complying with applicable laws, source terms of use, rate limits, and attribution requirements.

### Is Web Scraping Legal?

Public data collection can be lawful when you respect terms, avoid personal-data misuse, and do not bypass access controls. This is general information, not legal advice. If you are unsure, consult a lawyer.

To learn more, read Apify's guide [Is web scraping legal?](https://blog.apify.com/is-web-scraping-legal/)

![Mercury News Tags Scraper CTA](https://images.bigibyte.com/cdn-cgi/image/width=840,height=360,fit=cover,format=webp/apify-actors-covers/mercurynews-tags-scraper-cta.png)

# Actor input Schema

## `maxItems` (type: `integer`):

Maximum rows to save per run. Default is 3 for cheap tests. Raise up to 1000 for larger exports.

## `requestTimeoutSecs` (type: `integer`):

Per-request timeout in seconds.

## Actor input object example

```json
{
  "maxItems": 100,
  "requestTimeoutSecs": 30
}
```

# Actor output Schema

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

No description

## `overview` (type: `string`):

No description

# 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("zerobreak/mercurynews-tags-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("zerobreak/mercurynews-tags-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 zerobreak/mercurynews-tags-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,zerobreak/mercurynews-tags-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/2PeHgIJKJp0kwTiMk/builds/oqbmwRy7uIjxB80ZE/openapi.json
