# Bbc Article Scraper (`xtracto/bbc-scraper`) Actor

Extract full article text, headline, authors, and publication date from any bbc.com URL. Supports `mode: latest` to fetch newest BBC headlines via RSS. No browser needed - HTTP-only, fast and lightweight.

- **URL**: https://apify.com/xtracto/bbc-scraper.md
- **Developed by:** [Farhan Febrian Nauval](https://apify.com/xtracto) (community)
- **Categories:** News
- **Features:** Limited permissions
- **Stats:** 5 total users, 1 monthly users, 96.6% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 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/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

## BBC News Article Scraper

Extract full article text, headline, description, and metadata from any **bbc.com** article URL. BBC News is the world's most visited news website and covers global events across politics, science, culture, and technology with no subscription required.

### Why Use This Actor?

- **Global news monitoring** - BBC covers every major world event with reliable, edited reporting.
- **Media research** - BBC neutral editorial position makes it a common baseline in comparative media studies.
- **Multilingual comparison** - cross-reference BBC English with BBC World Service or regional sites.
- **Education datasets** - BBC News writing is clear and factual, ideal for training language models.

### How It Works

This actor uses **only HTTP requests** - no browser, no Selenium, no Playwright. Articles are extracted in seconds with RAM usage well under 256 MB.

### Input

```json
{
  "url": "https://www.bbc.com/news/articles/example-id",
  "urls": [
    "https://www.bbc.com/news/articles/article-one",
    "https://www.bbc.com/news/articles/article-two"
  ]
,
  "mode": "article",
  "limit": 10
}
```

### Output

```json
{
  "url": "https://www.bbc.com/news/articles/cyv26e7yd89o?at_medium=RSS&at_campaign=rss",
  "source": "BBC News",
  "title": "What does Makerfield make of by-election and can Burnham win?",
  "description": "Andy Burnham says he will look to stand in the constituency, after Labour MP Josh Simons announces his resignation.",
  "content": "The residents of Makerfield are about to find themselves at the epicentre of the political universe as a by-election battle that could decide the next prime minister is set to take place on their doorstep. The constituency, which is home to around 76,000 voters in the suburbs of Wigan and nearby former mining towns and villages, has not traditionally been a hotbed of political intrigue....",
  "image": "https://ichef.bbci.co.uk/news/1024/branded_news/b267/live/88444110-507b-11f1-b682-cf91850925ea.jpg",
  "language": "en-GB",
  "word_count": 1200,
  "published_date": "",
  "modified_date": "",
  "authors": [],
  "categories": "",
  "tags": ""
}
```

### Fetch Latest News

Set `mode` to `"latest"` to fetch the newest article URLs and titles from BBC News instead of extracting a single article.

**Input:**

```json
{
  "mode": "latest",
  "limit": 10
}
```

**Output** - array of objects:

```json
[
  {
    "url": "https://www.bbc.com/news/articles/cwyxxjgdn94o?at_medium=RSS&at_campaign=rss",
    "title": "Spat at, threatened and kidnapped: British Jews tell of rising antisemitism",
    "published_date": "Mon, 20 Apr 2026 05:00:02 GMT",
    "source": "BBC News"
  }
  //...
]
```

Source: `https://feeds.bbci.co.uk/news/rss.xml` (RSS feed)

### Cron Schedule: Auto-Fetch Newest Articles

Combine `mode: "latest"` and `mode: "article"` to keep a fresh feed running on autopilot:

1. **Schedule** a recurring run of this Actor with `{"mode": "latest", "limit": 20}` via Apify Schedules (UI ▸ Schedules ▸ Create new). A cron expression like `*/30 * * * *` runs it every 30 minutes.
2. **Webhook** the dataset of the latest run into another Actor run with `mode: "article"` and the new URLs as input — Apify integrations let you chain runs via the "Actor finished" webhook without any glue code.
3. The article-mode run extracts the full body, image, authors, and metadata for each URL and appends to your master dataset.

Common cron expressions:

| Frequency | Cron |
|---|---|
| Every 15 minutes | `*/15 * * * *` |
| Hourly | `0 * * * *` |
| Every 6 hours | `0 */6 * * *` |
| Daily at 06:00 UTC | `0 6 * * *` |

### Notes

- Works on `bbc.com/news` and `bbc.co.uk/news` article URLs
- BBC Sport, BBC Bitesize, and other subdomains may require adjustment

### Other News Actors

Need a different news source? All actors in this collection:

| Actor | Source |
|---|---|
| [`aljazeera-scraper`](https://apify.com/xtracto/aljazeera-scraper) | Al Jazeera |
| [`apnews-scraper`](https://apify.com/xtracto/apnews-scraper) | AP News |
| [`bbc-scraper`](https://apify.com/xtracto/bbc-scraper) | BBC News |
| [`cnbc-scraper`](https://apify.com/xtracto/cnbc-scraper) | CNBC |
| [`forbes-scraper`](https://apify.com/xtracto/forbes-scraper) | Forbes |
| [`fortune-scraper`](https://apify.com/xtracto/fortune-scraper) | Fortune |
| [`ft-scraper`](https://apify.com/xtracto/ft-scraper) | Financial Times |
| [`guardian-scraper`](https://apify.com/xtracto/guardian-scraper) | The Guardian |
| [`msn-scraper`](https://apify.com/xtracto/msn-scraper) | MSN News |
| [`nytimes-scraper`](https://apify.com/xtracto/nytimes-scraper) | New York Times |
| [`reuters-scraper`](https://apify.com/xtracto/reuters-scraper) | Reuters |
| [`scmp-scraper`](https://apify.com/xtracto/scmp-scraper) | South China Morning Post |
| [`techcrunch-scraper`](https://apify.com/xtracto/techcrunch-scraper) | TechCrunch |
| [`upi-scraper`](https://apify.com/xtracto/upi-scraper) | UPI |
| [`yahoo-finance-scraper`](https://apify.com/xtracto/yahoo-finance-scraper) | Yahoo Finance |
| [`smart-news-loader`](https://apify.com/xtracto/smart-news-loader) | Any URL - adaptive HTTP loader |
| [`bloomberg-scraper`](https://apify.com/xtracto/bloomberg-news-article-scraper) | Bloomberg |

All actors support `mode: "latest"` for fetching newest article URLs from each source.

# Actor input Schema

## `url` (type: `string`):

Single article URL to extract.

## `urls` (type: `array`):

List of article URLs to extract.

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

Operation mode: 'article' to extract a single article (default), 'latest' to fetch newest headlines from the source's RSS feed.

## `limit` (type: `integer`):

Number of latest articles to return when mode is 'latest'. Default: 10.

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

Optional. Requests go through Apify Proxy when enabled; an article that does not load is retried up to 3 times, each through a new proxy session.

## Actor input object example

```json
{
  "url": "https://www.bbc.co.uk/news/articles/ck054nvzr676o",
  "mode": "article",
  "limit": 10
}
```

# Actor output Schema

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

One row per scraped record, stored in the run's default dataset.

# 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 = {
    "url": "https://www.bbc.co.uk/news/articles/ck054nvzr676o"
};

// Run the Actor and wait for it to finish
const run = await client.actor("xtracto/bbc-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 = { "url": "https://www.bbc.co.uk/news/articles/ck054nvzr676o" }

# Run the Actor and wait for it to finish
run = client.actor("xtracto/bbc-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 '{
  "url": "https://www.bbc.co.uk/news/articles/ck054nvzr676o"
}' |
apify call xtracto/bbc-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,xtracto/bbc-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/eA2SQaDI7xNArEqJy/builds/mtbm3u7hb1TkOj7Qn/openapi.json
