PINGDOM_CHECK
Light
Dark

Extract clean content automatically with Zyte API’s new pageContent data type

Read Time
10 Mins
Posted on
October 20, 2025
Table of Content

Today, we’re opening access to pageContent, a brand-new Zyte API automatic extraction data type that delivers the content of any web page as plain text minus the noise.


Everyone who carries out web data extraction is ultimately focused on the same end goal – obtaining the main content of a destination page. But the need to target underlying CSS or XPath selectors for that content complicates the life of every data engineer. 


With pageContent, instead of targeting fragile selectors that are prone to changing, you just send a URL and get back the content from the main body of the page. It’s the fastest route to extract clean LLM friendly content from web pages as plain text.


But pageContent doesn’t only return a page’s main content. It also automatically returns smart navigation links and pagination links, without you needing to script any parsing logic.

What exactly is pageContent?

Think of pageContent as a one-call content fetcher: URLs go in; clean, structured data comes out. 


While a regular Zyte API request returns a target page’s HTML, passing pageContent: true will strip out all the noise and return just the text you want wrapped in JSON with some useful extras like the Xpath for the main content, links and some meta.


itemMain can return the text of a news article, the description of a product listing, the content of a forum post – pretty much, whatever is the main text material of a page.


pageContent is clever and helpful enough to identify and return all these all these useful elements from a target page, to better support your scraping workflows:

Field
What you get

itemMain

Plain text of the page’s primary content, complete with paragraph breaks and sub-heads, separated with extra newlines.

itemMainXPath

XPath to locate that content inside raw HTML for yourself.

headline, title

Content’s main headline and page’s title.

breadcrumbs, navigationHeader, navigationFooter, navigationSidebar

Easy discovery for all surrounding navigation elements.

pagination, nextPage

Pointers to keep your extraction rolling, without regular expressions.

{
    "url": "https://example-news.com/world/europe/2025/08/01/leadership-summit-key-takeaways",
    "canonicalUrl": "https://example-news.com/2025/08/leadership-summit-key-takeaways/",
    "title": "Leadership Summit: Key Takeaways | Example News",
    "headline": "Five Things We Learned at the 2025 European Leadership Summit",
    "breadcrumbs": [
        {
            "name": "Home",
            "url": "https://example-news.com/"
        },
        {
            "name": "World",
            "url": "https://example-news.com/world/"
        },
        {
            "name": "Europe",
            "url": "https://example-news.com/world/europe/"
        },
        {
            "name": "Leadership Summit: Key Takeaways"
        }
    ],
    "itemMain": "BRUSSELS — From energy security to AI regulation, this year’s European Leadership Summit produced a raft of announcements that will shape policy for decades. Here are the five most important take-aways…",
    "itemMainXPath": "//*[@id='main-article']",
    "navigationHeader": [
        {
            "name": "World",
            "url": "https://example-news.com/world/"
        },
        {
            "name": "Politics",
            "url": "https://example-news.com/politics/"
        },
        {
            "name": "Business",
            "url": "https://example-news.com/business/"
        },
        {
            "name": "Tech",
            "url": "https://example-news.com/tech/"
        }
    ],
    "navigationSidebar": [
        {
            "name": "Most Read",
            "url": "https://example-news.com/most-read/"
        },
        {
            "name": "Climate",
            "url": "https://example-news.com/climate/"
        }
    ],
    "navigationFooter": [
        {
            "name": "About Us",
            "url": "https://example-news.com/about/"
        },
        {
            "name": "Privacy Policy",
            "url": "https://example-news.com/privacy/"
        },
        {
            "name": "Terms of Use",
            "url": "https://example-news.com/terms/"
        }
    ],
    "pagination": [
        {
            "name": "Previous",
            "url": "https://example-news.com/world/europe/2025/07/31/energy-deal-analysis"
        },
        {
            "name": "Next",
            "url": "https://example-news.com/world/europe/2025/08/02/eu-digital-markets-update"
        }
    ],
    "nextPage": {
        "name": "Next",
        "url": "https://example-news.com/world/europe/2025/08/02/eu-digital-markets-update"
    },
    "metadata": {
        "dateDownloaded": "2025-08-11T15:17:02Z",
        "probability": 0.6619443893432617
    }
}
Copy

Part of the Zyte API automatic extraction family

pageContent is a close cousin of the other data types that Zyte API can already return automatically through content-specific schemas in structured JSON, thanks to the supervised machine learning models underpinning our automatic extraction:




If you’re tired of writing code, and sick of selectors breaking, automatic extraction is the quickest and easiest way to cut to the chase – AI handles the job of turning HTML into structured data.


But, while using existing automatic extraction data types depends on users already knowing the content type of the end content they want to extract, pageContent does not need this input; it will happily return the page’s main content and other standard elements, whatever the type.


Because pageContent runs through Zyte API, you also get Zyte’s advanced unblocking, proxy rotation and headless browser tech included.

Why we built pageContent

Manual scraping can be painful. The average web page carries a lot of noise for every signal Developers spend hours inspecting ever‑shifting DOMs and updating spiders when a div class changes.


  • Just get results: pageContent lets you skip the pain of parsing. At the end of the day, scraping exists to deliver results, and pageContent makes that quicker, easier and more easily scalable.

  • Light on schema, infinite content: Existing automatic parsing tools on the market return a page’s intrinsic content in a content-specific schema, like article or product description. pageContent returns content in the same schema every time, so your extraction workflow is highly flexible.

  • Cut LLM token costs. Feeding an entire HTML document to a large language model (LLM) is often expensive. itemMain removes boilerplate, nav menus and ads from scraped content, so you can save token and processing costs by supplying only meaningful inputs to your AI.

Practical uses

We think pageContent is going to be pretty popular. For instance:


  1. LLM ingestion – Summarise, classify or translate fresh web pages without paying for useless markup.

  2. Content monitoring and archiving – Store the main text and ignore the rest.

  3. SEO / accessibility audits – Validate presence of headings, breadcrumb trails and pagination in one response.

  4. Crawl orchestration – Use the nextPage URL to drive spiders, zero regular expressions required.


Any time you need pre-parsed, clean text extracted from web pages at any scale, pageContent is going to be a massive time saver, both upfront and ongoing.

How it works

# 1) Put your Zyte API key in an env-var for convenience
export ZYTE_API_KEY="YOUR_ZYTE_API_KEY"

# 2) Fire the request
curl \
  --user "$ZYTE_API_KEY:" \
  --header 'Content-Type: application/json' \
  --data '{"url":"https://example-news.com/world/europe/2025/08/01/leadership-summit-key-takeaways","pageContent":true}' \
  --compressed \
  https://api.zyte.com/v1/extract
Copy

For busy builders

pageContent unlocks new extraction efficiencies for all Zyte’s customers:


  • Developers and data engineers — no more selector maintenance; lower compute bills.

  • Technology leaders — scalable, compliant data pipeline without new infrastructure or headcount.


Product / business intelligence leads — faster time‑to‑data; predictable costs; API drops data straight into pipelines.

×

Try Zyte API

Zyte proxies and smart browser tech rolled into a single API.