Article Scraper - Extract Titles, Authors, Tags & Metadata avatar

Article Scraper - Extract Titles, Authors, Tags & Metadata

Pricing

$2.00 / 1,000 per scraped articles

Go to Apify Store
Article Scraper - Extract Titles, Authors, Tags & Metadata

Article Scraper - Extract Titles, Authors, Tags & Metadata

Extract article titles, dates, authors, tags, reading time, canonical URL and og:image from any webpage, or a whole list of URLs in one batch run. Structured JSON output for RAG, lead generation and content monitoring.

Pricing

$2.00 / 1,000 per scraped articles

Rating

0.0

(0)

Developer

Tristan Evans

Tristan Evans

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

11 hours ago

Last modified

Features

Limited permissions

Share

What It Does

The Article Scraper extracts structured article data from any webpage. It fetches the page, parses HTML with BeautifulSoup, and returns clean JSON with titles, dates, summaries, authors, tags, reading time, canonical URLs, Open Graph images, and full article content in both HTML and Markdown formats. The output is designed for RAG pipelines, lead generation, content monitoring, and AI training data collection.

Key capabilities:

  • Article metadata extraction (title, date, summary, author, tags, reading time)
  • Canonical URL and Open Graph image (og:image) resolution
  • Full-text content extraction in HTML and Markdown
  • RSS/Atom feed auto-discovery fallback
  • Pagination support for multi-page articles and listing pages
  • JSON-LD structured data parsing with @graph support
  • Dry-run mode for testing without charges

Features

FeatureDescription
Metadata extractionAuthor, tags, reading time, canonical URL, og:image, site name, locale
Full-text contentComplete article body in HTML and Markdown (RAG-ready)
Structured data parsingJSON-LD (Article, NewsArticle, BlogPosting) with @graph array support
CTA / affiliate linksPer-article cta list of buy/sign-up/affiliate links with the text and why each was flagged
Feed discoveryAuto-finds RSS/Atom feeds when article elements are not found
PaginationFollows rel="next", "Load more" links, and numeric pagination
Dry-run modeTest extraction without consuming compute or triggering charges
Resilient fetchingBrowser UA, retry on 429/5xx, fail-fast on permanent 4xx
Clean outputDeduplication, empty-summary filtering, pay-per-event safety gate

How It Works

  1. Input validation — Accepts a single URL or array of URLs, optional maxItems, includeMetadata, dryRun, and custom userAgent.
  2. Fetch with retries — GET request with browser User-Agent, exponential backoff on 429/500/502/503/504, immediate failure on 404/400/401/403.
  3. Parse HTML — BeautifulSoup parses the document; article candidates found via semantic selectors (<article>, [role="article"], .post, .entry, etc.).
  4. Extract per article — Title from <h1>/og:title, date from time/article:published_time, summary from meta description or first paragraph.
  5. Enrich with metadata (if includeMetadata=true) — Scans page-level meta tags, Open Graph, Twitter Cards, and JSON-LD for author, tags, reading time, canonical URL, og:image, site name, locale.
  6. Full-text extraction — Removes nav, footer, aside, script, style; returns cleaned HTML and Markdown via html2text.
  7. Feed fallback — If no articles found, discovers RSS/Atom links in <head> and parses feed items.
  8. Pagination — Detects next-page links and continues until maxItems or no more pages.
  9. Clean & dedupe — Drops items with blank summaries, deduplicates on (title, URL), enforces maxItems.
  10. Charge gate — In dry-run, returns results without pushing. In production, pushes each item with Actor.push_data(item, charged_event_name="result-item").

Input Parameters

ParameterTypeRequiredDefaultDescription
urlsstring | string[]Yes—Single URL or array of URLs to scrape
maxItemsintegerNo50Maximum articles to return across all URLs
includeMetadatabooleanNotrueExtract author, tags, reading_time, canonical_url, og_image, site_name, locale
dryRunbooleanNofalseRun extraction without pushing to dataset or charging
userAgentstringNoChrome 125 UACustom User-Agent header for requests

Example input:

{
"urls": ["https://example.com/blog"],
"maxItems": 20,
"includeMetadata": true,
"dryRun": false
}

Output Example

Each dataset item contains:

{
"title": "How to Build a Scraper in 2024",
"url": "https://example.com/blog/how-to-build-scraper",
"date": "2024-01-15T10:30:00Z",
"summary": "A step-by-step guide to building robust web scrapers...",
"author": "Jane Developer",
"tags": ["web scraping", "python", "automation"],
"reading_time": 8,
"canonical_url": "https://example.com/blog/how-to-build-scraper",
"og_image": "https://example.com/images/scraper-guide.jpg",
"site_name": "Example Blog",
"locale": "en_US",
"content": "<article>...full HTML...</article>",
"markdown": "# How to Build a Scraper in 2024\n\nA step-by-step guide...",
"cta": [
{
"text": "Try the tool free",
"url": "https://example.com/signup?ref=author",
"reason": "affiliate-param"
}
]
}

cta[].reason is one of affiliate-host (link points at a known affiliate network such as an Amazon or Awin host), affiliate-param (the URL carries an affiliate/tracking parameter such as ref, aff, tag or partner), or button-text (the visible text reads like a call to action: buy, sign up, try free, join). It is a heuristic: bare "here" links and JS-only buttons are missed by design.

cta is always populated (no extra input flag) and the per-article price is unchanged.

Example output

Example output (fields returned in the dataset — 3 articles from github.blog, max 3 results)

titledatereading_timesite_nameurl
Beyond code generation: A developer’s guide to agentic engineering2026-11-061The GitHub Bloghttps://github.blog/ai-and-ml/github-copilot/beyond-code-generation-a-developers-guide-to-agentic-engineering/
GitHub availability report: October 20262026-11-121The GitHub Bloghttps://github.blog/news-insights/company-news/github-availability-report-october-2026/
Git security vulnerabilities announced2026-11-101The GitHub Bloghttps://github.blog/open-source/git/git-security-vulnerabilities-announced-7/

Data from a real run on 2026-11-18 (run A50Avlsqh1kf83lVh, build 0.0.5) scraping github.blog — dataset pMshf3Bi02QsHZeiJ.

Cost Estimate

  • Actor start: $0.001 per run
  • Per article (result-item): $0.002 per cleaned article pushed to dataset
  • Apify platform compute: ~$0.0004–$0.001 per run (depends on memory/CPU seconds)

Typical run (1 URL, ~20 articles): ~$0.041 + compute ≈ $0.05 total
1,000 articles: ~$2.00 + compute ≈ $2.50 total

Free Apify plan runs do not generate revenue for the actor owner. Revenue only accrues from paid-plan users.

Price comparison

ActorPer articlePer 1,000 articlesNotes
Article Scraper~$0.002$2.00Dry runs free, HTML + Markdown output
apify/article-scraper~$0.003$3.001,200+ users/30d
web-scraper-tools/article-extractor~$0.004$4.00No metadata extraction

Limitations

  • JavaScript-rendered content: This actor uses requests + BeautifulSoup (static HTML only). Pages requiring JS execution (React, Vue, infinite scroll) will return incomplete data.
  • Anti-bot protection: Cloudflare, Akamai, and similar WAFs may block or challenge requests. The actor does not solve CAPTCHAs or rotate proxies.
  • Rate limits: Target sites may rate-limit or block aggressive scraping. Use responsibly and respect robots.txt.
  • Selectors are heuristic: Article detection works on common patterns but may miss unusual markup. Custom selectors are not supported.
  • No authentication: Cannot access paywalled or login-required content.
  • Memory limit: Default 256 MB; large pages or many pagination steps may hit memory ceiling.

FAQ

Q: Why is my run returning 0 articles?
A: The page may use JavaScript rendering, have anti-bot protection, or use non-standard markup. Try the URL in dry-run mode and check the diagnostic logs.

Q: Can I scrape a list of article URLs directly?
A: Yes, pass an array of article URLs in urls. The actor will fetch and extract each one.

Q: Does it follow pagination automatically?
A: Yes, it detects rel="next", "Load more" buttons, and numeric pagination links. Set maxItems to control depth.

Q: What's the difference between content and markdown?
A: content is cleaned HTML (scripts/styles/nav removed). markdown is the same content converted to Markdown via html2text for RAG/LLM ingestion.

Q: How are charges calculated?
A: One apify-actor-start ($0.001) per run + one result-item ($0.002) per article with a non-empty summary pushed to the dataset. Dry-run mode incurs zero charges.

Q: Can I use this for product/price scraping?
A: This actor is optimized for articles/blogs. For product data, use a dedicated e-commerce scraper with price/currency/availability selectors.

Q: Can I find affiliate or buy-now links in the articles?
A: Yes. Every article item carries a cta list of flagged call-to-action links with their visible text, absolute URL and the reason it was flagged. Use it for affiliate-link audits, competitor offer monitoring and outreach lists. It is heuristic, not a guarantee of completeness.

Q: Is there a free trial?
A: Apify offers a free plan with $5/month platform credits. Actor runs on the free plan do not generate revenue for the actor owner.

Also see

Local Development

pip install -r requirements.txt
python -m pytest test_fixture.py -q # offline fixture suite (66 tests)
python main.py # reads storage/key_value_stores/default/INPUT.json