---
title: "Schema.org Params · Unhead"
canonical_url: "https://unhead.unjs.io/docs/react/schema-org/guides/core-concepts/params"
last_updated: "2026-08-24T03:14:13.507Z"
meta:
  description: "Configure shared Schema.org metadata with host, path, inLanguage, currency, and trailingSlash. Each resolver inherits the values it supports."
  "og:description": "Configure shared Schema.org metadata with host, path, inLanguage, currency, and trailingSlash. Each resolver inherits the values it supports."
  "og:title": "Schema.org Params · Unhead"
---

Home

`
Unhead on GitHub

Switch to ReactSwitch to TypeScriptSwitch to VueSwitch to SvelteSwitch to Solid.jsSwitch to AngularSwitch to Nuxt

**Core Concepts**

# **Schema.org Params**

[Copy for LLMs](https://raw.githubusercontent.com/unjs/unhead/refs/heads/main/docs/schema-org/2.guides/1.core-concepts/3.params.md)

Schema.org params provide shared metadata such as `**host**`, `**path**`, `**currency**`, and `**inLanguage**`. Each node resolver inherits only the fields it supports.

## Schema.org params

Params let you configure metadata used by multiple Schema.org nodes. Set them with the `**schemaOrg**` property in `**templateParams**`.

```
import { useHead } from '@unhead/react'

useHead({
  templateParams: {
    schemaOrg: {
      host: 'https://example.com',
      path: '/blog'
    }
  }
})
```

## Available params

### `**host**`

- **type**: `**string**`  
  The origin of your production site, including the protocol, such as `**https://example.com**`. It is used to generate absolute IDs and URLs.

### `**path**`

- **type**: `**string**`
- **default**: `**/**`  
  The path of the current page. Set it on each page when you are not deriving it in a framework integration.

### `**inLanguage**`

- **type**: `**string**`
- **default**: `**undefined**`  
  Sets `**inLanguage**` for resolvers that inherit it. Use a valid language tag, such as `**en-AU**`.

### `**trailingSlash**`

- **type**: `**boolean**`
- **default**: `**false**`  
  Whether to retain a trailing slash on generated page URLs. The root path remains `**/**` in either mode.

### `**currency**`

- **type**: `**string**`
- **default**: `**undefined**`  
  Default currency for Offer and other commerce-related nodes that inherit it. Use an ISO 4217 code, such as `**USD**`, `**EUR**`, or `**GBP**`.

### Page metadata

The following optional string params are inherited by resolvers that declare support for them:

- `**title**`
- `**description**`
- `**image**`
- `**datePublished**`
- `**dateModified**`

## Script Position

`**tagPosition**` is an entry option, not a shared Schema.org param. Pass it as the second argument to `**useSchemaOrg()**`:

```
useSchemaOrg(nodes, {
  tagPosition: 'head', // or 'bodyOpen' / 'bodyClose'
})
```

The default is `**bodyClose**`.

## Param inheritance

Each resolver declares the metadata it inherits. For example, Article inherits `**inLanguage**`, while Product uses `**currency**` through its nested Offer resolver.

```
useHead({
  templateParams: {
    schemaOrg: {
      host: 'https://example.com',
      inLanguage: 'en-AU',
      currency: 'AUD'
    }
  }
})

// Each helper uses the params supported by its resolver
useSchemaOrg([
  defineWebPage(), // uses host and path for its URL and ID
  defineArticle(), // inherits inLanguage
  defineProduct({ name: 'Widget', offers: { price: 99 } }) // the Offer inherits currency
])
```

[Edit this page](https://github.com/unjs/unhead/edit/main/docs/schema-org/2.guides/1.core-concepts/3.params.md)

[Markdown For LLMs](https://raw.githubusercontent.com/unjs/unhead/refs/heads/main/docs/schema-org/2.guides/1.core-concepts/3.params.md)

**Did this page help you? **

[**Google Search Fields** Use typed required and recommended properties for Google Search structured data features.](https://unhead.unjs.io/docs/schema-org/guides/core-concepts/google-search-fields) [**Custom Nodes** Create custom Schema.org types not in built-in helpers. Pass plain objects to useSchemaOrg() with TypeScript support via schema-dts.](https://unhead.unjs.io/docs/schema-org/guides/recipes/custom-nodes)

**On this page **

- [Schema.org params](#schemaorg-params)
- [Available params](#available-params)
- [Script Position](#script-position)
- [Param inheritance](#param-inheritance)