Scraper APIWeb
web.article
Read one news or blog article: its title, byline, dates, clean body text and Markdown, lead image, site and language.
- 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; what a run costs is in Usage and units.
Inputs
The fields of input. A field that is not listed here is refused.
| Field | Type | Description |
|---|---|---|
urlrequired | string | The article's address: http or https, on a public host name.Limit: at most 2048 characters. |
render | boolean | 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 | Write links in markdown as [text](address); false keeps their text only.Default: true. |
include_images | boolean | Write images in markdown as ; false keeps their alt text only.Default: false. |
timeout_s | number | 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
# Start a run and wait up to 60 seconds for it to finish
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"}}'
# Read its records, with the id the first call answered
curl "https://api.enrichednow.com/v1/runs/$RUN_ID/records?limit=100" \
-H "Authorization: Bearer $ENRICHEDNOW_API_KEY"from enrichednow import EnrichedNow
client = EnrichedNow() # reads ENRICHEDNOW_API_KEY
# Start a run, wait for it to end, and get its records
result = client.scrape("web.article", {
"url": "https://www.theguardian.com/world/2026/nov/18/us-sanctions-icj-judges-myanmar-genocide-ruling-israel-gaza-court",
})
print(result.run.id, result.run.status, result.run.record_count)
# Read its records: pages are fetched as you go
for record in result.records:
print(record)Install it with pip install enrichednow, then save as run.py and run python3 run.py
import EnrichedNow from "enrichednow";
const client = new EnrichedNow(); // reads ENRICHEDNOW_API_KEY
// Start a run, wait for it to end, and get its records
const { run, records } = await client.scrape("web.article", {
url: "https://www.theguardian.com/world/2026/nov/18/us-sanctions-icj-judges-myanmar-genocide-ruling-israel-gaza-court",
});
console.log(run.id, run.status, run.record_count);
// Read its records: pages are fetched as you go
for await (const record of records) console.log(record);Install it with npm install enrichednow, then save as run.mjs and run node run.mjs
package main
import (
"context"
"fmt"
"log"
"time"
enrichednow "github.com/enrichednow/enrichednow-go"
)
func main() {
client, err := enrichednow.NewClient() // reads ENRICHEDNOW_API_KEY
if err != nil {
log.Fatal(err)
}
ctx, cancel := context.WithTimeout(context.Background(), 10*time.Minute)
defer cancel()
// Start a run, wait for it to end, and get its records
run, records, err := client.Scrape(ctx, "web.article", map[string]any{"url": "https://www.theguardian.com/world/2026/nov/18/us-sanctions-icj-judges-myanmar-genocide-ruling-israel-gaza-court"})
if err != nil {
log.Fatal(err)
}
fmt.Println(run.ID, run.Status, run.RecordCount)
// Read its records: pages are fetched as you go
for records.Next() {
fmt.Println(string(records.Current()))
}
if err := records.Err(); err != nil {
log.Fatal(err)
}
}Install it with go get github.com/enrichednow/enrichednow-go@latest, then save as run.go and run go run run.go
import com.enrichednow.EnrichedNowClient;
import com.enrichednow.ScrapeResult;
import java.util.Map;
public class Run {
public static void main(String[] args) {
EnrichedNowClient client = EnrichedNowClient.fromEnv(); // reads ENRICHEDNOW_API_KEY
// Start a run, wait for it to end, and get its records
ScrapeResult result = client.scrape("web.article", Map.of("url", "https://www.theguardian.com/world/2026/nov/18/us-sanctions-icj-judges-myanmar-genocide-ruling-israel-gaza-court"));
System.out.println(result.run().id() + " " + result.run().status() + " " + result.run().recordCount());
// Read its records: pages are fetched as you go
for (Map<String, Object> record : result.records()) {
System.out.println(record);
}
}
}Add com.enrichednow:enrichednow-java:0.4.0 to your Maven or Gradle build, then save as Run.java
enrichednow run web.article --input url=https://www.theguardian.com/world/2026/nov/18/us-sanctions-icj-judges-myanmar-genocide-ruling-israel-gaza-courtInstall it with curl -fsSL https://raw.githubusercontent.com/enrichednow/enrichednow-cli/main/install.sh | sh
It starts a run with this scraper’s example input, waits for it to finish and reads its records a page at a time. The key is read from ENRICHEDNOW_API_KEY.
The body on its own:
{
"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.
{
"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.
{
"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 lists every status and the reasons every scraper shares; the reasons of the Web scrapers are in their own section there.