Skip to content
All articles

How does the url property work in Schema.org structured data?

guide // , 5 min read, by Darthwares

The url property in Schema.org specifies a web address that directly represents an entity or identifies its official website. Schema.org provides dedicated properties for representing identifiers as textual strings or URL links. Adding proper URL values in standardized structured data blocks helps search engines classify page content and clarify administrative details for entities such as organizations and authors.

A diagram comparing url, sameAs, and mainEntityOfPage properties pointing from a structured data block to different web addresses.
On this page // 6 sections
  1. 01What is the url property in Schema.org?
  2. 02How does url differ from sameAs and mainEntityOfPage?
  3. 03How do search engines use url for author and organization markup?
  4. 04How do you diagnose URL syntax and page setup issues?
  5. 05How do Google canonical URL guidelines work?
  6. 06Common questions

The short version

  • The url property provides a valid web link pointing directly to an entity's official page or website.
  • Schema.org distinguishes url from sameAs, which links to external identity references like Wikipedia, and mainEntityOfPage, which indicates the containing page.
  • Google uses url and sameAs properties to disambiguate authors and clarify administrative details for organizations.
  • Google recommends using valid URLs and avoiding conflicting canonical declarations across sitemaps and canonical tags.

What is the url property in Schema.org?

The url property in Schema.org is a standardized field used to specify a valid web address that identifies a specific item or website. Structured data is a standardized format for providing information about a web page and classifying page content. In JSON-LD encoded within HTML script tags, the url property holds a direct link to the subject being described.

Schema.org provides dedicated properties for representing identifiers as either textual strings or URL links. While properties like identifier represent codes such as ISBNs, GTIN codes, or UUIDs, the url property specifically holds web addresses. For an organization, Google documents that the url property specifies the URL of the organization's official website.

How does url differ from sameAs and mainEntityOfPage?

The url property points to an entity's primary page or website, while sameAs and mainEntityOfPage serve distinct reference roles. The sameAs property contains the URL of a reference web page that unambiguously indicates an item's identity, such as a Wikipedia page, Wikidata entry, or official external reference page. While url identifies the subject's own website address, sameAs connects that subject to external reference pages on other websites.

The mainEntityOfPage property indicates a web page or creative work for which the entity is the primary topic being described. For instance, an organization structured data block might use url to point to the official homepage, while mainEntityOfPage links the entity to a specific article page where that organization is the main subject.

How do search engines use url for author and organization markup?

Google uses the url property to disambiguate authors and clarify organizational details across search features. For organization structured data, Google documents that adding markup to a homepage helps search engines understand administrative details and disambiguate the organization in search results. Google notes there are no required properties for organization markup, but recommends adding all relevant properties, including the organization website URL.

For news, blog, and sports article pages, Google explains that adding Article structured data can help Google understand more about the web page and show better title text, images, and date information for the article in search results on Google Search and other properties, such as Google News and the Google Assistant. When identifying a link to a web page that uniquely identifies the author of an article, Google strongly recommends providing the author type along with the url or sameAs property. Google can understand both url and sameAs when disambiguating authors, provided that valid URLs are used.

How do you diagnose URL syntax and page setup issues?

Diagnosing URL properties in structured data requires checking script markup and page canonical settings. Google documentation emphasizes using valid URLs for properties such as url and sameAs in JSON-LD script tags. Inspecting structured data blocks helps verify that web links follow proper syntax and reflect valid page addresses.

  1. 01Inspect the JSON-LD script tags embedded in the page HTML to locate url and sameAs properties.
  2. 02Verify that every url or sameAs property value uses a valid URL address.
  3. 03Check canonical URL implementations across the site to ensure sitemap entries and rel='canonical' tags match.
Troubleshooting structured data and canonical URLs
IssueDiagnostic checkRecommended action
Author disambiguationCheck for url or sameAs on author objectAdd valid URLs using url or sameAs properties
Conflicting canonical sourcesCompare sitemap URL with rel='canonical' tagDeclare the same canonical URL across all canonicalization methods
Invalid markup URLCheck url string syntax in JSON-LD codeUpdate malformed links to valid URLs

How do Google canonical URL guidelines work?

Google Search Central provides rules for managing canonical URLs when duplicate or very similar pages exist. Google explains that site owners can indicate canonical URL preferences using a number of methods. If a site owner does not specify a canonical URL, Google will identify which version of the URL is objectively the best version to show users in Search.

Google recommends adding a self-referential rel='canonical' link on the canonical page itself. Google documents that site owners should not specify different URLs as canonical for the same page using different canonicalization techniques, such as specifying one URL in a sitemap and a different URL in rel='canonical'. Finally, Google advises against using noindex to prevent selection of a canonical page within a single site because noindex completely blocks the page from Search.

Common questions

What is the primary function of the url property in Schema.org?

The url property in Schema.org provides a valid web address that directly identifies an entity or specifies the official website for an item or organization.

How does Google use the url property for article authors?

Google uses url or sameAs properties to disambiguate article authors, strongly recommending that site owners supply valid URLs alongside the author type.

How does url differ from sameAs in Schema.org?

The url property points to an item's main page or official website, while sameAs links to external reference pages such as Wikipedia or Wikidata entries that unambiguously identify the item.

Can you specify different canonical URLs in sitemaps and rel='canonical' tags?

No, Google explicitly documents that you should not specify different URLs as canonical for the same page using different canonicalization techniques like sitemaps and rel='canonical'.

Primary sources and further reading

This article was researched and written by an AI model and published automatically. It was written from sentences that were checked to appear on the pages below, but a person has not reviewed the text. If something is wrong, tell us at chibivikramathithan@darthwares.com and we will correct it.