# Politico Rss Scraper (`coder_zoro/politico-rss-scraper`) Actor

This Actor collects political news articles and feed metadata directly from official Politico RSS feeds based on predefined news sections or custom Politico feed URLs. It extracts article headlines, author names, publication dates, article URLs.

- **URL**: https://apify.com/coder_zoro/politico-rss-scraper.md
- **Developed by:** [Zoro](https://apify.com/coder_zoro) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.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/running/actors-in-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

### Politico RSS Scraper — Politics News, Congress Coverage, and RSS Feed Monitoring

![Politico RSS Scraper cover](https://images.bigibyte.com/cdn-cgi/image/width=1260,height=540,fit=cover,format=webp/apify-actors-covers/politico-rss-scraper-cover.png)

Collect news articles from POLITICO's public RSS feeds and organize them into structured datasets. Choose the main politics feed or specific section feeds, filter articles by keywords or publication date, and export headlines, summaries, categories, and media information.

### Overview

This actor collects news items from POLITICO RSS feeds, including politics and Congress coverage. Each feed item becomes a dataset record containing available article details, publication information, content, and links.

Reserved field names are adjusted for dataset compatibility: `title` becomes `itemTitle`, and `description` becomes `itemDescription`.

### Features

- Collect articles from the main POLITICO politics feed.
- Collect articles from section-specific RSS feeds.
- Filter articles using keywords in titles or summaries.
- Filter articles by publication freshness.
- Set a maximum number of collected items.
- Avoid duplicate records using GUIDs or article links.
- Export results in JSON, CSV, Excel, and other supported Apify dataset formats.

### Collection Modes

| Mode | Description |
|---|---|
| `feed` | Collect articles from the main politics news feed. |
| `section_feed` | Collect articles from selected section feeds, including Congress coverage. |

### Input Parameters

| Parameter | Type | Default | Description |
|---|---|---|---|
| `mode` | string | `feed` | Select `feed` for the main politics feed or `section_feed` for section-specific feeds. |
| `feedUrls` | array | Politics and Congress feeds | RSS feed URLs to collect in `section_feed` mode. URLs must belong to `rss.politico.com`. |
| `keywords` | array | `[]` | Keep articles whose title or summary contains at least one specified keyword. |
| `sinceHours` | integer | Empty | Exclude articles older than the specified number of hours, based on `pubDate`. |
| `maxItems` | integer | `100` | Maximum number of successful records per run. Hard maximum: 1,000. |
| `requestDelayMs` | integer | `500` | Delay between requests, in milliseconds. |
| `userAgent` | string | `ActorResearch/1.0` | User-Agent value used during collection. |
| `timeoutSecs` | integer | `300` | Overall run timeout, in seconds. |
| `requestTimeoutSecs` | integer | `30` | Individual request timeout, in seconds. |

### Example Input

```json
{
  "mode": "feed",
  "feedUrls": [
    "https://rss.politico.com/politics-news.xml",
    "https://rss.politico.com/congress.xml"
  ],
  "maxItems": 50,
  "requestDelayMs": 500
}
```

### What Data Does This Actor Extract?

| Field | Description |
|---|---|
| `itemTitle` | Article headline. |
| `link` | Link to the original article. |
| `itemDescription` | Article summary or description. |
| `category` | Article categories, when available. |
| `guid` | RSS item identifier. |
| `pubDate` | Article publication date. |
| `content` | Associated content or media information, when available. |
| `creator` | Content creator information, when available. |
| `contributor` | Contributor information, when available. |
| `encoded` | Encoded article content from the feed, when available. |
| `scrapedAt` | Timestamp indicating when the record was collected. |

### Example Output

```json
{
  "itemTitle": "Republicans' SNAP changes land in crunch time for midterms",
  "link": "https://www.politico.com/news/2026/10/10/snap-changes-republicans-midterms-01115721",
  "itemDescription": "Changes to SNAP from Republicans' megalaw are rolling out in a year when affordability woes top voters' priority lists and grocery prices...",
  "category": [
    "Politics",
    "DC"
  ],
  "guid": "000001a1-2605-d787-a9a1-bec55f590000",
  "pubDate": "Sat, 10 Oct 2026 10:01:20 EDT",
  "content": "https://static.politico.com/18/94/0a05882e486ebc2d47149fbc629e/food-aid-candy-89-52.jpg",
  "creator": "By Eli Okun",
  "contributor": "By Eli Okun",
  "encoded": "<p>Under the political radar, the country's food stamps program is undergoing a slow-motion transformation...</p>",
  "scrapedAt": "2026-10-26T00:00:00+00:00"
}
```

### Use Cases

- **Politics monitoring:** Collect recent POLITICO headlines for research, dashboards, and news monitoring.
- **Congress tracking:** Monitor Congress coverage through section-specific RSS feeds.
- **Keyword monitoring:** Filter articles for topics such as elections, tariffs, healthcare, or economic policy.
- **Freshness filtering:** Use `sinceHours` to focus on recently published articles during scheduled runs.
- **News research:** Organize article titles, summaries, categories, and publication dates for further analysis.
- **Dataset exports:** Save structured news records to CSV or Excel for offline review and downstream workflows.

### Working with Your Dataset

After the actor completes:

1. Open the **Dataset** tab in your Apify run.
2. Review the collected news records.
3. Export the results in JSON, CSV, Excel, or another supported format.
4. Use article links to access the original POLITICO coverage.

RSS feeds provide the latest items published in the feed. Schedule recurring runs if you want to build a historical collection over time.

### FAQ

**Who is this actor for?**

It is designed for researchers, journalists, analysts, and developers who want POLITICO news feed records in a structured dataset.

**What collection modes are available?**

The actor supports `feed` for the main politics feed and `section_feed` for selected section feeds.

**Can I collect Congress news?**

Yes. Use `section_feed` mode and include the Congress RSS feed in `feedUrls`.

**Can I filter articles by keywords?**

Yes. Add keywords to the `keywords` array. An article is retained when its title or summary contains at least one specified keyword.

**Can I collect only recent articles?**

Yes. Set `sinceHours` to exclude articles older than your chosen number of hours.

**What export formats are available?**

You can export the dataset in JSON, CSV, Excel, and other supported Apify dataset formats.

**Can I schedule recurring collections?**

Yes. Configure an Apify schedule to collect the latest feed items periodically.

**How many items can it collect per run?**

The maximum is 1,000 successful records per run. Use `maxItems` to set your preferred collection limit.

### Disclaimer

This actor is an independent tool and is not affiliated with or endorsed by POLITICO. Article content, images, and other published materials remain subject to their respective rights and terms. Users are responsible for ensuring that their collection, storage, and use of the data comply with applicable laws and relevant source terms.

### Is Web Scraping Legal?

Collecting information that is already public is generally legal. There is no single law that bans all forms of web scraping. The limits are the usual ones: do not break into accounts, do not take private or confidential data, and be careful with personal data and copyrighted works. A site's terms can also restrict how you access it. Facts such as a public name, price, or rating are not the same as republishing someone's article or photo.

This actor collects information from public pages. It does not log in and it does not bypass access controls.

For a longer explanation, see Apify's article [Is web scraping legal?](https://blog.apify.com/is-web-scraping-legal/).

# Actor input Schema

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

What to collect. feed uses the main politics news RSS; section_feed uses congress or your feedUrls.

## `feedUrls` (type: `array`):

RSS URLs to read in section_feed mode. Ignored for main feed mode unless empty fallback is needed.

## `keywords` (type: `array`):

Only keep items whose title or description contains any keyword (case-insensitive). Leave empty to keep all.

## `sinceHours` (type: `integer`):

Drop items older than N hours based on pubDate. Leave empty to keep all.

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

Stop after this many successful rows. Hard max is 1000.

## `userAgent` (type: `string`):

User-Agent header sent with each request.

## `requestDelayMs` (type: `integer`):

Milliseconds to wait between requests. Raise if you see 429.

## `timeoutSecs` (type: `integer`):

Overall run budget in seconds.

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

Per-request timeout in seconds.

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

Optional proxy. Leave off unless you need it.

## Actor input object example

```json
{
  "mode": "feed",
  "feedUrls": [
    "https://rss.politico.com/politics-news.xml",
    "https://rss.politico.com/congress.xml"
  ],
  "keywords": [],
  "maxItems": 100,
  "userAgent": "ActorResearch/1.0",
  "requestDelayMs": 500,
  "timeoutSecs": 300,
  "requestTimeoutSecs": 30,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

Dataset rows in the overview table.

## `dataset` (type: `string`):

Full dataset for this run.

## `items` (type: `string`):

Dataset items as JSON.

# 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 = {
    "feedUrls": [
        "https://rss.politico.com/politics-news.xml",
        "https://rss.politico.com/congress.xml"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("coder_zoro/politico-rss-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 = { "feedUrls": [
        "https://rss.politico.com/politics-news.xml",
        "https://rss.politico.com/congress.xml",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("coder_zoro/politico-rss-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 '{
  "feedUrls": [
    "https://rss.politico.com/politics-news.xml",
    "https://rss.politico.com/congress.xml"
  ]
}' |
apify call coder_zoro/politico-rss-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,coder_zoro/politico-rss-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/2HTFpv0ltwgs2XXho/builds/7f7gcUumD0axpTrWx/openapi.json
