# web.article

Read one news or blog article: its title, byline, dates, clean body text and Markdown, lead image, site and language.

News or blog article, one of the Web scrapers.

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

Start it with `POST /v1/scrapers/web.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: http or https, on a public host name. Limit: at most 2048 characters. |
| `render` | boolean | no | How the page is read. Leave it out and the page is read as the server sent it, and loaded in a browser only when that is refused or the page builds its content with JavaScript. true: always in a browser. false: never. |
| `include_links` | boolean | no | Write links in `markdown` as [text](address); false keeps their text only. Default: `true`. |
| `include_images` | boolean | no | Write images in `markdown` as ![alt](address); false keeps their alt text only. Default: `false`. |
| `timeout_s` | number | no | Seconds for reading the page. Limit: 5 to 60. Default: `30`. |

## 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 address that was asked for. |
| `final_url` | string | The address of the page that was read, after redirects. |
| `canonical_url` | string or null | The canonical address the page names for itself. |
| `title` | string or null | The article's headline. |
| `description` | string or null | The article's summary, as the page declares it. |
| `byline` | string or null | The byline as the page prints it, e.g. `By Jane Doe and John Roe`. Null when no printed byline was found. |
| `authors` | array of string | The authors' names the page declares, in its order. |
| `published_at` | string or null | When the article was published, in ISO 8601 as precisely as the page gives it: a date alone, or a date and time with the offset the page states. |
| `modified_at` | string or null | When the article was last changed, in the same form as `published_at`. |
| `section` | string or null | The section of the publication the article is in, e.g. `World`. |
| `tags` | array of string | The article's keywords or tags as the page declares them (the first 30). |
| `lead_image` | string or null | The address of the article's main image. |
| `site_name` | string or null | The name of the publication or site. |
| `language` | string or null | The language the page declares (e.g. en, de-CH); null when it declares none. |
| `article_type` | string or null | The schema.org type the page gives the article, e.g. `NewsArticle` or `BlogPosting`; null when it gives none. |
| `paywalled` | boolean or null | True when the page declares that the article is not free to read; `text` is then the part the publisher shows to every reader. False when it declares the article free; null when it says nothing. |
| `text` | string | The article's body as plain text, one paragraph a line. |
| `markdown` | string | The article's body as Markdown. |
| `word_count` | integer | Words in the body, counted by white space (a language written without spaces counts low). |
| `text_length` | integer | Characters in `text`. |
| `rendered` | boolean | True when the page was loaded in a browser before it was read. |
| `truncated` | boolean | True when the page was longer than 3000000 bytes and was cut there. |
| `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/web.article/runs?wait=60" \
  -H "Authorization: Bearer $ENRICHEDNOW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":{"url":"https://www.theguardian.com/world/2026/nov/18/us-sanctions-icj-judges-myanmar-genocide-ruling-israel-gaza-court"}}'
```

## 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": "web.article",
  "scraper_version": 1,
  "status": "ok",
  "reason": null,
  "input": {
    "url": "https://www.theguardian.com/world/2026/nov/18/us-sanctions-icj-judges-myanmar-genocide-ruling-israel-gaza-court"
  },
  "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.theguardian.com/world/2026/nov/18/us-sanctions-icj-judges-myanmar-genocide-ruling-israel-gaza-court",
      "final_url": "https://www.theguardian.com/world/2026/nov/18/us-sanctions-icj-judges-myanmar-genocide-ruling-israel-gaza-court",
      "canonical_url": "https://www.theguardian.com/world/2026/nov/18/us-sanctions-icj-judges-myanmar-genocide-ruling-israel-gaza-court",
      "title": "Fears grow that US will put Nobel-winning judge under sanctions after Myanmar genocide ruling",
      "description": "A ruling against Myanmar could set precedent for court’s judgment on Israel’s actions in Gaza",
      "byline": null,
      "authors": [
        "Patrick Wintour"
      ],
      "published_at": "2026-11-18T09:58:28+00:00",
      "modified_at": "2026-11-18T20:21:42+00:00",
      "section": "World news",
      "tags": [],
      "lead_image": "https://i.guim.co.uk/img/media/a03f114d715bb74ab2b82e63a222dbf68b76637b/194_0_2161_1729/master/2161.jpg?width=1200&height=630&quality=85&auto=format&fit=crop&precrop=40:21,offset-x50,offset-y0&overlay-align=bottom%2Cleft&overlay-width=100p&overlay-base64=L2ltZy9zdGF0aWMvb3ZlcmxheXMvdGctZGVmYXVsdC5wbmc&enable=upscale&s=241d36456a6aa7c9bcc0d9abfc3646a5",
      "site_name": "the Guardian",
      "language": "en",
      "article_type": "NewsArticle",
      "paywalled": false,
      "text": "Fears are growing that the US could impose sanctions on judges at the international court of justice, including this year’s Nobel peace prize winner, Navi Pillay, if the court rules on Thursday that the Myanmar government committed genocide … [truncated]",
      "markdown": "Fears are growing that the US could impose sanctions on judges at the international court of justice, including this year’s [Nobel peace prize winner, Navi … [truncated]",
      "word_count": 850,
      "text_length": 5486,
      "rendered": false,
      "truncated": false,
      "fetched_at": "2026-11-19T18:07:41.941614Z"
    }
  ],
  "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`: 5,486 characters, the first 240 shown.
- Shortened: `markdown`: 6,124 characters, the first 155 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 Web scrapers](https://docs.enrichednow.com/results-and-statuses.md#web) are in their own section there.
