# bbc.article

An article on bbc.com: headline, byline, published and updated times, section, topics, full text and images.

BBC article, one of the BBC scrapers.

| | |
| --- | --- |
| Id | `bbc.article` |
| Version | 1 |
| Billed per | request — 1 unit for a charged run |
| Runs | within one request |

Start it with `POST /v1/scrapers/bbc.article/runs`. How runs work is in [Running a scraper](https://docs.enrichednow.com/running-a-scraper.md); what a run costs is in [Usage and units](https://docs.enrichednow.com/usage-and-units.md).

## Inputs

The fields of `input`. A field that is not listed here is refused.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `url` | string | yes | The article's address on bbc.com or bbc.co.uk, e.g. `https://www.bbc.com/news/articles/c32l507ev4v4o` or `https://www.bbc.com/culture/article/20241231-how-audrey-hepburn-became-a-secret-spy-during-world-war-two`. Limit: at least 1 characters, at most 2048 characters. |

## Record fields

Every record of a run has these fields. A value that is not known is `null` — never an empty string and never `0`.

| Field | Type | Notes |
| --- | --- | --- |
| `url` | string | The article's address on bbc.com. |
| `article_id` | string | The last part of that address: the article's id, e.g. `c32l507ev4v4o`, or its dated name on the feature sections. |
| `kind` | string or null | What the page is, as the site names it: `article` or `video`. |
| `headline` | string | The headline. |
| `description` | string or null | The one-line summary the page carries for search engines and link previews. |
| `byline` | string or null | The authors' names as printed, joined with commas. Null for an article without a byline. |
| `authors` | array of object | The byline, an entry per author. Empty for an article without one. |
| `authors[].name` | string | The author's name as the byline prints it, without a leading `By`. |
| `authors[].role` | string or null | What the byline says under the name, e.g. `Defence correspondent, near Kupyansk`. Null when it says nothing. |
| `published_at` | string (date-time) or null | When the article was first published, in UTC. |
| `updated_at` | string (date-time) or null | When the article was last updated, in UTC. |
| `section` | string or null | The section the article is filed in, e.g. `US & Canada`, `Culture`. |
| `topics` | array of string | The topics the page lists under the article. |
| `text` | string | The article's text: its paragraphs in order, a blank line between them. A subheading is a paragraph of its own; an item of a list begins with `- `. |
| `subheadings` | array of string | The subheadings inside the article, in order. |
| `word_count` | integer | The number of words in `text`. |
| `images` | array of object | The images inside the article, in order. |
| `images[].url` | string | The image, 1024 pixels wide. |
| `images[].alt` | string or null | The image's description for readers who cannot see it. |
| `images[].caption` | string or null | The caption printed under the image. Null when it has none. |
| `images[].credit` | string or null | The copyright holder the page names, e.g. `Getty Images`. |
| `image` | string or null | The image the page names as its own for link previews. |
| `fetched_at` | string (date-time) | When the page was read, in UTC. |

## Example request

It starts a run with this scraper's example input and waits up to 60 seconds for it. The key is read from `ENRICHEDNOW_API_KEY`.

```bash
curl -X POST "https://api.enrichednow.com/v1/scrapers/bbc.article/runs?wait=60" \
  -H "Authorization: Bearer $ENRICHEDNOW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":{"url":"https://www.bbc.com/news/articles/c32l507ev4v4o"}}'
```

## Example response

The run, once it has ended. A run that has not ended within `wait` comes back with `202` and the status `queued` or `running`.

```json
{
  "id": "run_841742f37553189ff9c27ba1",
  "scraper_id": "bbc.article",
  "scraper_version": 1,
  "status": "ok",
  "reason": null,
  "input": {
    "url": "https://www.bbc.com/news/articles/c32l507ev4v4o"
  },
  "record_count": 1,
  "units": 1,
  "units_per_request": 1,
  "units_per_record": null,
  "units_per_page": null,
  "diagnostics": {
    "requests": 1,
    "bytes": 259214,
    "wall_ms": 885,
    "facts": {}
  },
  "created_at": "2026-11-16T22:37:50.170950Z",
  "started_at": "2026-11-16T22:37:50.178331Z",
  "finished_at": "2026-11-16T22:37:51.066313Z"
}
```

Its records, from `GET /v1/runs/{id}/records`. The record is a real one: this scraper's own parser read it from a page recorded from the site.

```json
{
  "records": [
    {
      "url": "https://www.bbc.com/news/articles/c32l507ev4v4o",
      "article_id": "c32l507ev4v4o",
      "kind": "article",
      "headline": "Inside the old gas pipeline where Ukraine is fighting an underground war",
      "description": "Ukrainian forces are fighting Russian troops in an old Soviet tunnel in the Kharkiv region.",
      "byline": "Jonathan Beale",
      "authors": [
        {
          "name": "Jonathan Beale",
          "role": "Defence correspondent, near Kupyansk"
        }
      ],
      "published_at": "2026-11-18T17:00:04.730000Z",
      "updated_at": "2026-11-18T18:35:41Z",
      "section": "Europe",
      "topics": [
        "Ukraine",
        "War in Ukraine",
        "Russia"
      ],
      "text": "There's a new front in the war in Ukraine, and it is underground.\n\nFor the past seven months Ukrainian forces have been living and fighting Russian troops in an old Soviet gas pipeline in the north-eastern Kharkiv region.\n\nWith a diameter … [truncated]",
      "subheadings": [],
      "word_count": 292,
      "images": [
        {
          "url": "https://ichef.bbci.co.uk/news/1024/cpsprodpb/3c3c/live/379082f0-e35c-11f1-a094-5fdc692f3e33.png",
          "alt": "Map showing the location of a gas pipeline in north-eastern Ukraine near Kupyansk. A red line marks the pipeline running from east to west to the north of the Kupyansk. The map indicates that the area in the north east of the map is … [truncated]",
          "caption": null,
          "credit": "BBC"
        }
      ],
      "image": "https://ichef.bbci.co.uk/news/1024/branded_news/b0a9/live/16401180-e337-11f1-9479-d17d3e98c29d.jpg",
      "fetched_at": "2026-11-19T18:07:39.062533Z"
    }
  ],
  "next_cursor": null
}
```

What was done to the record for this page, and nothing else — the API returns every value whole. A text that was cut ends with `… [truncated]`.

- Shortened: `text`: 1,678 characters, the first 238 shown.
- Shortened: `images[0].alt`: 637 characters, the first 232 shown.

A run does not always end `ok`. [Results and statuses](https://docs.enrichednow.com/results-and-statuses.md#reason-codes) lists every status and the reasons every scraper shares; [the reasons of the BBC scrapers](https://docs.enrichednow.com/results-and-statuses.md#bbc) are in their own section there.
