# Structured Data Extractor: JSON-LD, OG & Microdata (`tindacloud/structured-data-extractor`) Actor

JSON-LD extractor for any web page: schema.org structured data, Open Graph, Twitter cards, microdata, RSS feeds and meta tags — the machine-readable data a page already publishes.

- **URL**: https://apify.com/tindacloud/structured-data-extractor.md
- **Developed by:** [Seungki Min](https://apify.com/tindacloud) (community)
- **Categories:** Developer tools, AI, SEO tools
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 pages

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Structured Data Extractor: JSON-LD, OG & Microdata

A **JSON-LD extractor** for any web page. Every page already tells machines what it is — product, article, job posting, recipe, event — and this Actor hands you that data, clean, without a single selector.

### What data can this tool extract?

| Source | What it holds |
|---|---|
| **JSON-LD (schema.org)** | Product prices, article authors and dates, job postings, recipes, events, ratings |
| **Open Graph + Twitter cards** | Title, description, image, type — what a link preview shows |
| **Microdata** | The older itemprop markup, still common on shops |
| **Meta tags** | Description, keywords, author, robots, canonical, language, generator |
| **Feeds** | RSS / Atom / JSON feed URLs declared by the page |
| **Links** | hreflang alternates, manifest, favicon |

`schemaTypes` lists every type found, so you can tell at a glance whether a page is a `Product`, an `Article` or a `JobPosting`.

### Why scrape structured data this way?

Scrapers break because they chase CSS classes. Structured data is maintained by the site itself — they *want* it read correctly, because Google reads it too. For AI agents that need to know what a page is before deciding what to do with it, this is the cheapest possible first call.

### How to extract structured data from a page

| Field | What it does |
|---|---|
| `urls` | Any pages |
| `include` | Pick which parts you want |
| `schemaTypes` | Keep only pages declaring e.g. `Product`, `JobPosting` |
| `onlyPagesWithSchema` | Skip pages with none — not charged |

### What the structured data output looks like

```json
{
  "url": "https://docs.apify.com/",
  "title": "Apify Documentation",
  "jsonLd": [],
  "jsonLdCount": 0,
  "schemaTypes": [],
  "openGraph": {
    "title": "Apify Documentation",
    "image": "https://apify.com/og-image/docs-article",
    "url": "https://docs.apify.com/",
    "locale": "en"
  },
  "twitterCard": {
    "card": "summary_large_image",
    "image": "https://apify.com/og-image/docs-article"
  },
  "microdata": [],
  "meta": {
    "description": null,
    "keywords": null,
    "author": null,
    "robots": null,
    "generator": "Docusaurus v3.10.2",
    "viewport": "width=device-width, initial-scale=1.0",
    "themeColor": null,
    "canonical": "https://docs.apify.com/",
    "language": "en",
    "charset": "UTF-8"
  },
  "feeds": [],
  "alternateLanguages": [
    {
      "hreflang": "en",
      "url": "https://docs.apify.com/"
    },
    {
      "hreflang": "x-default",
      "url": "https://docs.apify.com/"
    }
  ],
  "manifestUrl": null,
  "faviconUrl": "https://docs.apify.com/img/favicon.ico",
  "requestedUrl": "https://docs.apify.com/platform",
  "scrapedAt": "2026-09-21T11:09:40.228Z"
}
```

### How fast is it and what does it cost?

4 pages took **3 seconds**, eight at a time. Pages that cannot be read are reported and not charged.

### Ready-made examples

Open one, change the fields, press Start — nothing to configure:

- [JSON-LD extractor for any page](https://apify.com/tindacloud/structured-data-extractor/examples/json-ld-extractor-for-any-page)

### Frequently asked questions

#### Do I need an API key or a login?

No. Paste your input, press Start. There is nothing to connect and no account on the target site to create.

#### How do I export the results?

Every run produces a dataset you can download as JSON, CSV, Excel, XML or HTML, or read through the Apify API from your own code. You can also connect it to Make, Zapier or n8n.

#### Can I run this on a schedule?

Yes. Apify schedules run it every hour, day or week without you being there. Each run is independent, so a schedule gives you a fresh snapshot every time.

#### Can I call it from Python or JavaScript?

Yes — the Apify API runs any Actor and returns the dataset, and the official Python and JavaScript clients wrap it in a few lines. AI agents can call it too, through Apify's MCP server.

#### What does it cost?

You pay per result, not per hour. Filters are applied before anything is charged, so narrowing the input directly lowers the bill. Pages that cannot be read are reported in the log and never charged.

#### Is this data public?

Everything collected here is what any web page shows to anyone without logging in. Check the target site's terms and the rules that apply to you before using the data commercially.

### Related scrapers

- [Website to Markdown for AI & RAG](https://apify.com/tindacloud/website-to-markdown) — the readable content
- [Price & Stock Monitor for Any Shop](https://apify.com/tindacloud/price-stock-monitor) — uses this data to track prices
- [Website Change Monitor](https://apify.com/tindacloud/website-change-monitor) — tells you when any of it changes

# Actor input Schema

## `urls` (type: `array`):

Any pages. The Actor returns the machine-readable data the page already publishes — no guessing, no selectors.

## `include` (type: `array`):

Leave empty for everything.

## `schemaTypes` (type: `array`):

Keep only pages that declare one of these, e.g. “Product”, “Article”, “JobPosting”, “Recipe”, “Event”, “LocalBusiness”.

## `onlyPagesWithSchema` (type: `boolean`):

Skip pages that publish none — you are not charged for them.

## `maxResults` (type: `integer`):

Total limit.

## `proxy` (type: `object`):

Apify Proxy is used as a fallback when a site blocks a direct request.

## Actor input object example

```json
{
  "urls": [
    "https://www.imdb.com/title/tt0111161/",
    "https://apify.com/store",
    "https://www.bbc.com/news"
  ],
  "include": [
    "jsonLd",
    "openGraph",
    "microdata",
    "meta",
    "feeds",
    "links"
  ],
  "onlyPagesWithSchema": false,
  "maxResults": 1000,
  "proxy": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `results` (type: `string`):

All results in a table view.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "urls": [
        "https://www.imdb.com/title/tt0111161/",
        "https://apify.com/store",
        "https://www.bbc.com/news"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("tindacloud/structured-data-extractor").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "urls": [
        "https://www.imdb.com/title/tt0111161/",
        "https://apify.com/store",
        "https://www.bbc.com/news",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("tindacloud/structured-data-extractor").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "urls": [
    "https://www.imdb.com/title/tt0111161/",
    "https://apify.com/store",
    "https://www.bbc.com/news"
  ]
}' |
apify call tindacloud/structured-data-extractor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,tindacloud/structured-data-extractor"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/Tx39aiyZm13vAbzxS/builds/ckwfR1tiEGvqDTXac/openapi.json
