# AP News Scraper — Breaking News Feed API (`nexgendata/ap-news-scraper`) Actor

Monitor AP News for breaking-news coverage. Clean JSON for PR, media-monitoring teams and AI agents.

- **URL**: https://apify.com/nexgendata/ap-news-scraper.md
- **Developed by:** [NexGenData](https://apify.com/nexgendata) (community)
- **Categories:** News, AI
- **Stats:** 13 total users, 4 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $20.00 / 1,000 news articles

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

## 📰 AP News Scraper — Breaking News, Articles & Headlines from the Associated Press

Pull breaking news, full articles, headlines, and section feeds from Associated Press (apnews.com) — by topic, region, or keyword. A drop-in **alternative to** the AP enterprise subscription, NewsAPI ($449/mo), GDELT, Aylien, and Webhose — without enterprise contracts or seat fees.

### Why This Scraper Beats NewsAPI, GDELT, Aylien, Webhose & AP Direct Subscription

| Feature | NexGenData AP News Scraper | NewsAPI | GDELT | Aylien | Webhose | AP Direct |
|---|---|---|---|---|---|---|
| Cost | $5 per 1,000 articles, pay-per-event | $449 - $1,999 / month | Free (quota) | Enterprise sales | $299 - $1,499 / month | Enterprise subscription |
| AP coverage | Full apnews.com | Subset, syndicated | AP via news feeds | Curated | Curated | Native AP |
| Bulk export | Unlimited CSV / JSON / Excel | API JSON | API JSON | API JSON | API JSON | Per contract |
| Auth | Apify token | API key + plan | API key | OAuth | API key | Enterprise contract |
| Time-to-first-row | < 60 seconds | Plan signup | API signup | Sales cycle | Plan signup | Sales cycle |
| Output | Clean JSON | JSON | JSON | JSON | JSON | Variable |
| Schedule + webhook | Native | Plan-gated | None | Plan-gated | Plan-gated | Custom |
| Free tier | Apify free credits | 100 / day dev | Yes (heavy throttle) | Trial | Trial | None |

Most media-intel teams pick this scraper because it is the **only** way to scrape full AP News articles into a CSV at $5/1K — no $449/mo NewsAPI subscription, no enterprise AP contract.

### What You Get

Each article includes:

- **Headline**, subhead, byline (where present)
- **Full article body** (clean text, paragraph-segmented)
- **Published timestamp** + last-updated timestamp
- **Section / category** (Politics, Business, Sports, etc.)
- **Tags** assigned by AP
- **Article URL** (canonical apnews.com)
- **Lead image URL** + caption
- **Related-article URLs** from AP's onsite "related stories"
- **Word count** + estimated read-time
- **Scrape timestamp** for replay / audit

Output is clean JSON — pipe directly into Snowflake, BigQuery, Sheets, or any LLM ingestion pipeline.

### Use Cases

- **Brand monitoring** — track AP mentions of a company or executive in near-real-time
- **Equity research** — pull AP coverage of a ticker before earnings
- **PR / comms** — measure share-of-voice across AP vs Reuters vs Bloomberg
- **Crisis monitoring** — schedule hourly AP scrapes during a developing story
- **Investor relations** — auto-summarize AP coverage in the IR dashboard
- **Trading bots** — feed AP breaking-news into a sentiment model
- **Policy / regulatory teams** — track AP coverage of Federal Register rules
- **Academic media research** — sample AP coverage longitudinally for journalism studies

### Quick Start

```python
from apify_client import ApifyClient
client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("nexgendata/ap-news-scraper").call(run_input={
    "queries": ["Federal Reserve", "OpenAI"],
    "section": "business",
    "maxArticles": 100
})
for article in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(article["headline"], article["publishedAt"])
```

### Pricing

Pay-per-event — no monthly minimum:

- **Actor Start:** ~$0.0002 per run
- **Result:** $0.005 per article scraped

Examples:

- 100 articles ≈ $0.50
- 1,000 articles ≈ $5
- 10,000 articles / month ≈ $50
- Daily 200-article monitor ≈ $30 / month

Compare to NewsAPI Business at $449/mo flat — this actor is roughly **15× cheaper** at typical monitoring volumes.

### Related NexGenData Actors

| Use case | Actor |
|----------|-------|
| News + media monitoring for AI agents | [News MCP Server](https://apify.com/nexgendata/news-mcp-server?fpr=2ayu9b) |
| PR Newswire press release feed | [PR Newswire Press Releases Scraper](https://apify.com/nexgendata/pr-newswire-press-releases-scraper?fpr=2ayu9b) |
| Reddit subreddit + post trend tracking | [Reddit Subreddit Trends](https://apify.com/nexgendata/reddit-subreddit-trends?fpr=2ayu9b) |
| Hacker News stories + comments scraper | [Hacker News Scraper](https://apify.com/nexgendata/hacker-news-scraper?fpr=2ayu9b) |
| AI sentiment analysis on any text | [AI Sentiment Analyzer](https://apify.com/nexgendata/ai-sentiment-analyzer?fpr=2ayu9b) |
| Crunchbase News (dead-tool replacement) | [Crunchbase News Scraper](https://apify.com/nexgendata/crunchbase-news-scraper?fpr=2ayu9b) |
| Federal Register rule + regulation tracker | [Federal Register Rules Scraper](https://apify.com/nexgendata/federal-register-rules-scraper?fpr=2ayu9b) |
| Finance + market data for AI agents | [Finance MCP Server](https://apify.com/nexgendata/finance-mcp-server?fpr=2ayu9b) |

### FAQ

**Q: Is this licensed AP content?**
You scrape publicly visible apnews.com articles. For redistribution beyond internal monitoring / analysis, check AP's terms or talk to AP directly about a license.

**Q: How fresh is the data?**
Live — each request hits apnews.com in real time. Schedule the actor every 5-10 minutes for near-real-time breaking-news ingestion.

**Q: Can I filter by date?**
Yes — pass `dateMin` / `dateMax` in ISO format.

**Q: Does it include images?**
Lead image URL + caption are captured. Image download itself is not part of the actor (point at the URL with your own pipeline).

**Q: Is this rate-limited?**
Apify rotates proxies + manages concurrency. For typical monitoring volumes (hundreds to low thousands of articles per day) there is no practical limit.

**Q: Can I subscribe to a single topic?**
Yes — pass a topic / keyword query and schedule the actor. New articles only land in the dataset; previously-seen URLs are de-duplicated.

**Q: How do I avoid pulling the same article twice?**
The actor de-duplicates by canonical URL within a run. Across runs, store seen-URLs in your warehouse and filter on insert.

### 📰 The NexGenData Newswire & News Suite

**Don't monitor one wire — cover them all.** Pair this with the rest of the suite for complete PR, press-release, and news coverage from a single vendor with one consistent output schema.

**Press-release wires**

- [PR Newswire](https://apify.com/nexgendata/pr-newswire-press-releases-scraper?fpr=2ayu9b) — US corporate announcements & earnings releases
- [PR Newswire Asia](https://apify.com/nexgendata/pr-newswire-asia-press-releases-scraper?fpr=2ayu9b) — APAC corporate announcements
- [Business Wire](https://apify.com/nexgendata/business-wire-press-releases-scraper?fpr=2ayu9b) — company press releases & disclosures
- [GlobeNewswire](https://apify.com/nexgendata/globenewswire-press-releases-scraper?fpr=2ayu9b) — listed-company news & regulatory filings
- [EIN Presswire](https://apify.com/nexgendata/ein-presswire-press-releases-scraper?fpr=2ayu9b) — broad-distribution press releases
- [PR Web](https://apify.com/nexgendata/pr-web-press-releases-scraper?fpr=2ayu9b) — SMB & small-business press releases

**News & headlines**

- **AP News** — Associated Press breaking news & articles *(← you are here)*
- [BBC News](https://apify.com/nexgendata/bbc-news-scraper?fpr=2ayu9b) — global BBC headlines & articles
- [Google News](https://apify.com/nexgendata/google-news-scraper?fpr=2ayu9b) — aggregated headlines & trending topics
- [Hacker News](https://apify.com/nexgendata/hacker-news-scraper?fpr=2ayu9b) — tech & startup stories and discussion
- [Crunchbase News](https://apify.com/nexgendata/crunchbase-news-scraper?fpr=2ayu9b) — funding rounds, M\&A & startup headlines

**Regional / regulatory**

- [Investegate RNS](https://apify.com/nexgendata/investegate-rns-aggregator?fpr=2ayu9b) — UK LSE/AIM regulatory (RNS) announcements

### About NexGenData

NexGenData publishes 260+ buyer-intent actors covering SEC filings, YC alumni, lead generation, competitive intelligence, stock fundamentals across 30+ exchanges, news + media monitoring, and MCP servers for AI agents. All pay-per-result. Browse the full catalog at https://apify.com/nexgendata?fpr=2ayu9b

***

### How NexGenData Pricing Works

Every NexGenData actor uses **pay-per-event** pricing — you only pay for results that actually land in your dataset. No monthly minimum, no seat fees, no surprise overage bills.

- **Actor Start:** a single-event charge each time you spin the actor up (scaled to memory size)
- **Result:** charged per item written to the default dataset
- **No charge** for retries, internal proxy rotation, or failed sub-requests — those are absorbed by the platform

If you only need the data once a quarter, you only pay once a quarter. If you scale to millions of records, the unit cost stays the same.

### Apify Platform Bonus

New to Apify? Sign up with the NexGenData [referral link](https://www.apify.com/?fpr=2ayu9b) — you get free platform credits on signup (enough for several thousand free results) and you help fund the maintenance of this actor fleet.

### Integration Surface

Every actor in the NexGenData catalog can be triggered from:

- **Apify console** — point-and-click run
- **Apify API** — REST + webhooks
- **Apify Python / JS SDKs** — programmatic batch
- **Zapier, Make.com, n8n** — official integrations
- **MCP** — many actors are exposed as MCP tools for Claude / ChatGPT / Cursor agents
- **Schedules** — built-in cron for daily / weekly / monthly runs
- **Webhooks** — POST results to any HTTPS endpoint on dataset write

### Support

NexGenData maintains 260+ Apify actors and ships updates regularly. Bug reports via the Apify console issues tab get a response within 24 hours. Roadmap requests are welcome — high-demand features ship in the next version.

🏠 Home: [thenextgennexus.com](https://thenextgennexus.com)
📦 Full catalog: [apify.com/nexgendata](https://apify.com/nexgendata?fpr=2ayu9b)

### Quick start

**Input** (paste into the input editor or pass via API):

```json
{
  "maxArticles": 20
}
```

**Example output** (one record; representative fields):

```json
{
  "title": "...",
  "url": "https://apnews.com/article/...",
  "author": "The Associated Press",
  "publishedAt": "2026-06-04T12:00:00Z",
  "section": "Business",
  "text": "..."
}
```

**Pricing:** $0.02 per article. You pay only for results, billed per run by Apify.

**Data freshness:** AP News, fetched live at run time — results are as fresh as the moment you run it.

**Use it in a workflow:** chain this with related NexGenData actors, or drop it into n8n via the [`n8n-nodes-nexgendata`](https://www.npmjs.com/package/n8n-nodes-nexgendata) community nodes. Browse the full [NexGenData storefront by workflow](https://thenextgennexus.com/actors-by-workflow/).

### You might also need

- \[pr-newswire-press-releases-scraper]\(https://apify.com/nexgendata/Tracking corporate news? Add the press-release firehose with tickers & JSON-LD — PR Newswire Scraper?fpr=2ayu9b)

# Actor input Schema

## `maxArticles` (type: `integer`):

Maximum number of articles to scrape

## Actor input object example

```json
{
  "maxArticles": 20
}
```

# 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("nexgendata/ap-news-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("nexgendata/ap-news-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 nexgendata/ap-news-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/wkEnoaCeLDGKFEfEz/builds/7pYobHjBTTOuM5Sn8/openapi.json
