Skip to main content gottem  — one API for every scraper.
News
Verified

CNN Scraper

Extract news articles, headlines, and video content data from CNN. Built on spider-browser .

Get started Docs
target
cnn.com
success rate
99.9%
latency
~4ms
Quick start

Extract data in minutes.

cnn-scraper.ts
import { SpiderBrowser } from "spider-browser";

const spider = new SpiderBrowser({
  apiKey: process.env.SPIDER_API_KEY!,
});

await spider.connect();
const page = spider.page!;
await page.goto("https://www.cnn.com/business/tech");
await page.content();

const data = await page.evaluate(`(() => {
  const articles = [];
  document.querySelectorAll(".container__item").forEach(el => {
    const headline = el.querySelector(".container__headline-text")?.textContent?.trim();
    const link = el.querySelector("a")?.href;
    if (headline) articles.push({ headline, link });
  });
  return JSON.stringify({ total: articles.length, articles: articles.slice(0, 15) });
})()`);

console.log(JSON.parse(data));
await spider.close();
ready to run · spider-browser · TypeScript
Extraction

Fields you can pull.

HeadlineSummaryCategoryAuthorPublished dateArticle URLVideoRelated
Freshness

Real-time headlines

Capture breaking news and trending stories as they publish.

Sources

Multi-publication

Aggregate articles from thousands of publications in a single scrape.

Parsing

Article extraction

Clean article text, images, and metadata from complex news layouts.

Related

More News scrapers.

Start

Start scraping cnn.com.

Grab an API key and call the endpoint above. The first request resolves the config; every request after hits cache.