Structured data is information organized in a predictable, machine-readable format, like a spreadsheet, database table, or JSON object, as opposed to unstructured content like free-form text or raw HTML. Web scraping typically copies the gathered data into a central local database or spreadsheet.
Structured data is also a technical term for markup (like Schema.org tags) that websites embed directly in their HTML to help search engines understand page content. Google defines it as a standardized format for providing information about a page and classifying its content.
Structured vs. Semi-Structured vs. Unstructured Data
| Structured | Semi-structured | Unstructured | |
|---|---|---|---|
| Shape | Fixed fields, such as rows and columns | Labeled fields that can vary from record to record | No predefined fields |
| Examples | Database tables, spreadsheets, CSV files | JSON, XML, HTML | Free text, images, video |
| How you query it | Directly, for example with SQL | After parsing the labels | After extraction or interpretation |
A scraper's job is usually to turn the semi-structured HTML of a web page into structured rows.
Structured Data Markup for Search
- Formats: Google supports JSON-LD, Microdata and RDFa, and recommends JSON-LD where a site's setup allows it.
- Where it goes: JSON-LD goes in a
<script type="application/ld+json">tag, separate from the visible HTML. - Vocabulary: the markup uses Schema.org types, such as
Product,OfferandRecipe, with their properties. - Rich results: valid markup can make a page eligible for enhanced displays on the SERP, but Google doesn't guarantee they will show.
A minimal product example, adapted from Google's merchant listing documentation:
{
"@context": "https://schema.org/",
"@type": "Product",
"name": "Example Mug",
"offers": {
"@type": "Offer",
"price": 12.50,
"priceCurrency": "USD",
"availability": "https://schema.org/InStock"
}
}
Google's Rules for Markup
- Match the page: structured data must be a true representation of the page content.
- No hidden content: don't mark up content that isn't visible to readers of the page.
- Penalty: a structured data manual action removes a page's eligibility for rich results. Google says it doesn't change the page's ranking in web search.
Rich Results Google Has Retired
Google drops rich result types over time, so markup that once showed in search may no longer do anything there:
- FAQ: stopped appearing in Google Search on May 7, 2026.
- Practice problems: documentation removed in January 2026.
- Course info, estimated salary, learning video, special announcement and vehicle listing: documentation removed in September 2025.
JSON-LD Is Often the Cleanest Data on a Page
For scrapers, a page's JSON-LD block can hold the same facts as the visible page in labeled fields, such as a product's price, priceCurrency and availability. Reading it with a JSON parser avoids CSS selectors that break when the page layout changes. Because Google requires markup to represent the visible content, sites that want rich results have a reason to keep it accurate. Still, check it against the visible page, since nothing forces every site to follow Google's rules.
What It Means for Web Scraping
- Look for JSON-LD first: search the HTML for
application/ld+jsonbefore writing selectors for the visible page. - Check the type: read fields only from the
@typeyou need, such asProductorOffer. - Store the output as structured rows: keep one field per column, with units and currencies in their own fields.