Structured Data URL Properties, Canonical URLs and Media Links
When to use Schema.org URL values versus pages, how Google uses canonical and deep-link URLs in markup, and common URL property mistakes.
Most of this page follows Schema.org: the URL datatype and the many properties whose values are URLs or link-shaped CreativeWork pages. Google Search structured data adds concrete rules for discussion and Q&A URLs. Together they answer a practical question: which URL belongs in which property, and whether you should paste a string URL or describe a separate document.
In Schema.org, URL is a primitive datatype. A property “expects URL” when its range includes URL, often alongside types such as CreativeWork, Person, or Product. Search engines and other consumers use these fields to resolve identity (canonical page), fetch media bytes, follow feeds, or link to policies and licenses.
Schema.org URL datatype: what counts as a URL value
Section titled “Schema.org URL datatype: what counts as a URL value”The Schema.org URL type is defined as datatype URL. Dozens of properties take a URL directly; others accept either a URL or a richer node (for example a CreativeWork that itself has a url).
The general url property on Thing is the item’s own address:
URL of the item.
— Schema.org, Schema.org Version 30.1
For CreativeWork and related types, many “policy” and metadata fields follow the same pattern: value type CreativeWork or URL. Examples in the cluster include license, acquireLicensePage, correctionsPolicy, ethicsPolicy, publishingPrinciples, and documentation. When you only have a single web page, a URL string is enough; when the policy is a structured document with its own metadata, a nested CreativeWork is appropriate.
Canonical page URLs: url, mainEntityOfPage, and sameAs
Section titled “Canonical page URLs: url, mainEntityOfPage, and sameAs”People often conflate “the URL of this page,” “the canonical entity this page is about,” and “this thing’s profile elsewhere.” Schema.org separates these roles.
| Property | Typical use | Range (from cluster) |
|---|---|---|
url |
Address of the described item | Thing → URL |
mainEntityOfPage |
Page that primarily describes this entity | CreativeWork or URL |
sameAs |
External IDs (Wikipedia, official site) | Thing → URL |
isPartOf |
Containing work or collection | CreativeWork or URL |
isBasedOn / isBasedOnUrl |
Source work or direct source URL | CreativeWork, Product, or URL |
sameAs is explicitly for unambiguous identity on another site:
URL of a reference Web page that unambiguously indicates the item’s identity. E.g. the URL of the item’s Wikipedia page, Wikidata entry, or official website.
— Schema.org, Schema.org Version 30.1
relatedLink on WebPage is weaker: a related page, not necessarily an identity statement.
For forum and Q&A markup, Google’s url fields are about canonical discussion location and per-comment or per-answer deep links, not about sameAs identity.
Google discussion and Q&A markup: canonical url and author.url
Section titled “Google discussion and Q&A markup: canonical url and author.url”Google’s Discussion forum structured data and Q&A (QAPage) structured data spell out how URL properties should behave in search-oriented JSON-LD.
Discussion thread url (canonical page)
Section titled “Discussion thread url (canonical page)”URL
The canonical URL of the discussion. In multi-page threads, set this property to the first page URL. For a single discussion, this is usually the current URL.— Google, Discussion forum structured data
Use one stable canonical URL for the whole thread; paginated threads should point at the first page, not every page variant.
author.url (profile page)
Section titled “author.url (profile page)”For posts, comments, and Q&A authors, Google expects a profile page URL, not a homepage generic link:
URL
A link to a web page that uniquely identifies the author of the comment, most likely a profile page of the forum. We recommend marking up that page using profile page structured data.— Google, Discussion forum structured data
The same wording applies to question, answer, and comment authors in Q&A structured data. Pair author.url with profile page structured data on that profile when possible.
Per-item url on comments and answers
Section titled “Per-item url on comments and answers”For a specific comment (when it is not just the original post URL):
URL
The URL to this specific comment on the page, if applicable. Don’t include this property if it’s just the URL of the original post.— Google, Discussion forum structured data
For answers in Q&A, deep links are strongly recommended:
URL
A URL that links directly to this answer. For example:https://www.examplesite.com/question#answer1
It is strongly recommended to provide a URL for each answer because it improves the user experience when the user clicks through to your site.— Google, Q&A (QAPage) structured data
Common conclusion: Schema.org lets any Thing carry a generic url; Google’s forum and Q&A types add canonical thread URL, author profile URL, and fragment or path-level URLs for individual answers and comments. Omit redundant URLs when the comment URL would duplicate the post URL.
Media and software URLs: contentUrl, embedUrl, downloadUrl, and installUrl
Section titled “Media and software URLs: contentUrl, embedUrl, downloadUrl, and installUrl”Media and app properties distinguish where bytes live, where a player lives, and where users install or download.
contentUrl points at the actual media file:
Actual bytes of the media object, for example the image file or video file.
— Schema.org, contentUrl
embedUrl is the player src, not the same as a sitemap loc:
A URL pointing to a player for a specific video. In general, this is the information in the src element of an embed tag and should not be the same as the content of the loc tag.
— Schema.org, Schema.org Version 30.1
downloadUrl is for downloadable binaries on SoftwareApplication; installUrl is when install location differs from the app’s main url. originalMediaLink on MediaReview links to the original content page or file.
Feeds, maps, commerce, and specialized URL properties
Section titled “Feeds, maps, commerce, and specialized URL properties”Several URL properties target a single workflow:
| Property | Meaning (from Schema.org) |
|---|---|
webFeed |
RSS or Atom feed for podcasts, blogs, or dated updates |
discussionUrl |
Page containing comments for a CreativeWork |
codeRepository |
Source repository (GitHub, SVN, etc.) |
paymentUrl |
Where to send payment (Order) |
merchantReturnLink / productReturnLink |
Returns web page or service |
hasMap / map |
Map URL for a Place |
webFeed is documented as:
The URL for a feed, e.g. associated with a podcast series, blog, or series of date-stamped updates. This is usually RSS or Atom.
— Schema.org, webFeed
hasGS1DigitalLink adds product-identification constraints: digital links must use the right GS1 Application Identifiers for the entity granularity (serial, lot, model). That is stricter than “any valid URL string.”
mobileUrl is intentionally narrow—mainly Product and Offer when a separate mobile site exists; Schema.org discourages marking every page with a duplicate mobile URL when responsive design is the norm.
Licenses, colleagues, and graph links
Section titled “Licenses, colleagues, and graph links”license and sdLicense apply to content and to the structured data itself (“typically indicated by URL”). colleague may be a Person or a URL when only a profile link is known.
ownershipFundingInfo accepts AboutPage, CreativeWork, Text, or URL—another case where a plain About URL is valid without nesting.
Common mistakes with URL properties in structured data
Section titled “Common mistakes with URL properties in structured data”- Duplicate semantics: Setting
url, Open Graphog:url, andmainEntityOfPageto unrelated values confuses canonicalization; align them with the real canonical page users and Google see. - Thread pagination: Using page 2’s URL as the discussion
urlinstead of the first page (Discussion forum). - Missing answer deep links: Skipping per-answer
urlin QAPage when fragment URLs exist. - Author
urltoo generic: Linkingauthor.urlto the site root instead of a unique profile. contentUrlvs page URL: Putting the article HTML URL incontentUrlon anImageObjectinstead of the image file URL (contentUrl).- Policy properties: Using a bare URL where consumers expect a
CreativeWorkwith title and date—or the reverse, over-nesting a single policy PDF URL.
How to check this on your site
Section titled “How to check this on your site”- Validate JSON-LD with Google’s Rich Results Test (or inspect parsed URL fields in Search Console) for Discussion forum and Q&A pages.
- Open each declared URL in a browser: canonical thread URL loads the discussion;
author.urlresolves to a profile; answer and comment URLs jump to the correct anchor. - For media markup, confirm
contentUrlreturns the file bytes (correctContent-Type) andembedUrlloads a player, not a duplicate of the page URL. - Cross-check property ranges on Schema.org for any URL you use (
CreativeWorkvsURL-only). - You can check automatically in Answerwell (our tool): https://answerwell.org/workspace
Report an error or ask a question
Section titled “Report an error or ask a question”If something on this page is wrong or unclear, email yimasynthetic@gmail.com with the page URL and the exact sentence you are asking about, and we will correct or clarify it.