PINGDOM_CHECK

Web Scraping Copilot is live. Build Scrapy spiders 3× faster, free in VS Code.

Install Now
  • Data Services
  • Pricing
  • Login
    Sign up👋 Contact Sales

Zyte Developers

Coding tools & hacks straight to your inbox

Become part of the community and receive a bi-weekly dosage of all things code.

Join us
    • Zyte Data
    • News & Articles
    • Search
    • Social Media
    • Product
    • Data for AI
    • Job Posting
    • Real Estate
    • Zyte API - Ban Handling
    • Zyte API - Headless Browser
    • Zyte API - AI Extraction
    • Web Scraping Copilot
    • Zyte API Enterprise
    • Scrapy Cloud
    • Solution Overview
    • Blog
    • Webinars
    • Case Studies
    • White Papers
    • Documentation
    • Web Scraping Maturity Self-Assesment
    • Web Data compliance
    • Meet Zyte
    • Jobs
    • Terms and Policies
    • Trust Center
    • Support
    • Contact us
    • Pricing
    • Do not sell
    • Cookie settings
    • Sign up
    • Talk to us
    • Cost estimator
Home
Blog
Extract clean content automatically with Zyte API’s new pageContent data type
Light
Dark

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

Read Time
10 Mins
Posted on
October 20, 2025
Announcement
Discover how Zyte API’s new PageContent data type makes content extraction effortless — delivering clean, structured data from any web page automatically.
By
Daniel Cave
IntroductionWhat exactly is pageContent?Part of the Zyte API automatic extraction familyWhy we built pageContentPractical usesHow it worksFor busy buildersTry it today
×

Try Zyte API

Zyte proxies and smart browser tech rolled into a single API.
Start FreeFind out more
Subscribe to our Blog
Table of Contents

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.

All of this arrives as clean JSON, ready to use in your applications.

1{
2    "url": "https://example-news.com/world/europe/2025/08/01/leadership-summit-key-takeaways",
3    "canonicalUrl": "https://example-news.com/2025/08/leadership-summit-key-takeaways/",
4    "title": "Leadership Summit: Key Takeaways | Example News",
5    "headline": "Five Things We Learned at the 2025 European Leadership Summit",
6    "breadcrumbs": [
7        {
8            "name": "Home",
9            "url": "https://example-news.com/"
10        },
11        {
12            "name": "World",
13            "url": "https://example-news.com/world/"
14        },
15        {
16            "name": "Europe",
17            "url": "https://example-news.com/world/europe/"
18        },
19        {
20            "name": "Leadership Summit: Key Takeaways"
21        }
22    ],
23    "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…",
24    "itemMainXPath": "//*[@id='main-article']",
25    "navigationHeader": [
26        {
27            "name": "World",
28            "url": "https://example-news.com/world/"
29        },
30        {
31            "name": "Politics",
32            "url": "https://example-news.com/politics/"
33        },
34        {
35            "name": "Business",
36            "url": "https://example-news.com/business/"
37        },
38        {
39            "name": "Tech",
40            "url": "https://example-news.com/tech/"
41        }
42    ],
43    "navigationSidebar": [
44        {
45            "name": "Most Read",
46            "url": "https://example-news.com/most-read/"
47        },
48        {
49            "name": "Climate",
50            "url": "https://example-news.com/climate/"
51        }
52    ],
53    "navigationFooter": [
54        {
55            "name": "About Us",
56            "url": "https://example-news.com/about/"
57        },
58        {
59            "name": "Privacy Policy",
60            "url": "https://example-news.com/privacy/"
61        },
62        {
63            "name": "Terms of Use",
64            "url": "https://example-news.com/terms/"
65        }
66    ],
67    "pagination": [
68        {
69            "name": "Previous",
70            "url": "https://example-news.com/world/europe/2025/07/31/energy-deal-analysis"
71        },
72        {
73            "name": "Next",
74            "url": "https://example-news.com/world/europe/2025/08/02/eu-digital-markets-update"
75        }
76    ],
77    "nextPage": {
78        "name": "Next",
79        "url": "https://example-news.com/world/europe/2025/08/02/eu-digital-markets-update"
80    },
81    "metadata": {
82        "dateDownloaded": "2025-08-11T15:17:02Z",
83        "probability": 0.6619443893432617
84    }
85}
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:


  • Product

    • product

    • productList

    • productNavigation

  • Articles 

    • article

    • articleList

    • articleNavigation

  • Forum

    • forumThread

  • Job Listing

    • jobPosting

    • jobPostingNavigation

  • Search Engine Results

    • SERP Organic listings (free to use at time of writing)



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

Using pageContent is as simple as enabling pageContent in a JSON request body sent to Zyte API’s /extract endpoint.

1# 1) Put your Zyte API key in an env-var for convenience
2export ZYTE_API_KEY="YOUR_ZYTE_API_KEY"
3
4# 2) Fire the request
5curl \
6  --user "$ZYTE_API_KEY:" \
7  --header 'Content-Type: application/json' \
8  --data '{"url":"https://example-news.com/world/europe/2025/08/01/leadership-summit-key-takeaways","pageContent":true}' \
9  --compressed \
10  https://api.zyte.com/v1/extract
Copy

You can read the docs and try the same call inside the Zyte API Playground.

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 it today

pageContent is live in Zyte API now, and the docs are available to read Try it out in the Zyte API Playground and see how clean content looks when the boilerplate disappears.


👉 Start your first pageContent request now


Questions? Jump into our Discord community — we love hearing what you build when the page just melts away.

×

Try Zyte API

Zyte proxies and smart browser tech rolled into a single API.
Start FreeFind out more

Get the latest posts straight to your inbox

No matter what data type you're looking for, we've got you

G2.com

Capterra.com

Proxyway.com

EWDCI logoMost loved workplace certificateZyte rewardISO 27001 iconG2 rewardG2 rewardG2 reward

© Zyte Group Limited 2026