# Hreflang checker: language and region tags of a page

**Use case:** 

Check the hreflang setup of any page. You get every language and region tag, whether an x-default is present and any problems found, plus the page’s declared language. Use it on one URL or a list, and export as JSON, CSV or Excel.

## Input

```json
{
  "startUrls": [
    {
      "url": "https://www.atlassian.com/software/jira"
    }
  ],
  "followLinks": false,
  "maxDepth": 0,
  "maxRequestsPerCrawl": 100,
  "maxConcurrency": 10,
  "extractMetaTags": true,
  "extractSeoAnalysis": true,
  "extractGeoData": false,
  "computeSeoScore": false,
  "extractRdfa": false,
  "extractHCard": false,
  "proxy": {
    "useApifyProxy": true
  }
}
```

## Output

```json
{
  "url": {
    "label": "URL",
    "format": "link"
  },
  "hreflang.tags": {
    "label": "hreflang tags",
    "format": "array"
  },
  "hreflang.hasXDefault": {
    "label": "x-default",
    "format": "boolean"
  },
  "hreflang.issues": {
    "label": "hreflang issues",
    "format": "array"
  },
  "language.htmlLang": {
    "label": "html lang",
    "format": "text"
  },
  "language.contentLanguage": {
    "label": "content-language",
    "format": "text"
  },
  "language.ogLocale": {
    "label": "og:locale",
    "format": "text"
  },
  "dublinCore": {
    "label": "Dublin Core",
    "format": "object"
  }
}
```

## 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 "Hreflang checker: language and region tags of a page". [Sign up or log in](https://console.apify.com/create-task-from-example/YwRURWkmbPBoQvp7l) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Hreflang checker: language and region tags of a page" 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 "Hreflang checker: language and region tags of a page" 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, hreflang tags, x-default, 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 "Hreflang checker: language and region tags of a page" task via API](https://apify.com/autofacts/metadata-scraper.md).

## FAQ

### What does it return?

Each hreflang tag with its language code and URL, whether the page has an x-default, a list of problems found, and the page’s declared language.

### What if a page has no hreflang tags?

You get an empty tag list and no x-default flag. That is a valid result for single-language sites.

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