# Extract JSON-LD and schema markup from any URL

**Use case:** 

Paste a page URL and get the structured data on it: every JSON-LD block, any microdata, and the list of schema.org types the page declares (Article, Product, Organization and so on). Export as JSON, CSV or Excel, or call it from the API. Use it to check your own markup or see how a competitor marks up theirs.

## Input

```json
{
  "startUrls": [
    {
      "url": "https://blog.apify.com/introducing-apify-ai"
    }
  ],
  "followLinks": false,
  "maxDepth": 0,
  "maxRequestsPerCrawl": 100,
  "maxConcurrency": 10,
  "extractMetaTags": true,
  "extractSeoAnalysis": true,
  "extractGeoData": true,
  "computeSeoScore": true,
  "extractRdfa": false,
  "extractHCard": false,
  "proxy": {
    "useApifyProxy": true
  }
}
```

## Output

```json
{
  "url": {
    "label": "URL",
    "format": "link"
  },
  "title": {
    "label": "Title",
    "format": "text"
  },
  "schemaTypes": {
    "label": "Schema Types",
    "format": "array"
  },
  "linkedData": {
    "label": "Linked Data",
    "format": "array"
  },
  "microdata": {
    "label": "Microdata",
    "format": "array"
  },
  "rdfa": {
    "label": "RDFa",
    "format": "array"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The Schema Markup Scraper & SEO Auditor Actor is ready to run with the inputs already set for "Extract JSON-LD and schema markup from any URL". [Sign up or log in](https://console.apify.com/create-task-from-example/gFox8DTQ5PqHre2Qe) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Extract JSON-LD and schema markup from any URL" task

The Schema Markup Scraper & SEO Auditor Actor will start running based on the input automatically. You can also change all the input fields, like start urls, follow links, and more, to match your specific use case.

### 3. Receive the "Extract JSON-LD and schema markup from any URL" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as URL, title, schema types, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Extract JSON-LD and schema markup from any URL" task via API](https://apify.com/autofacts/metadata-scraper.md).

## FAQ

### What does it return for a page?

The schema.org types the page declares, its full JSON-LD blocks and any microdata. Each page is one record.

### Does it validate my markup against Google’s rich-result rules?

No. It reports what is on the page. It does not check the properties against Google’s or schema.org’s requirements.

### Can I check many pages at once?

Yes. Add more URLs to the list, or turn on link following to crawl a section of a site. Set a page limit to cap cost. Export the results as JSON, CSV or Excel.

### Does it work on pages built with JavaScript?

It reads the HTML the server sends, so content added only by JavaScript is not seen. Some sites also block automated requests, and those pages can fail.

### How much does it cost?

You pay per URL checked: $0.005 on the Free plan, $0.004 on Starter and less on larger plans. URLs that fail to load are not charged. Apify’s free monthly credit covers about 1,000 URLs.

## About this Actor

This example demonstrates how to use [Schema Markup Scraper & SEO Auditor](https://apify.com/autofacts/metadata-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/autofacts/metadata-scraper.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

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 full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/autofacts/metadata-scraper.md

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`).
