How to Check URLs in JSON-LD Without Confusing Them With Page Links

Use this checklist to audit JSON-LD URLs, verify entities and assets, inspect redirects, and distinguish structured data from page links.

Published
Reading time
7 min read
How to Check URLs in JSON-LD Without Confusing Them With Page Links
On this page

When you check URLs in JSON-LD structured data, an address can be reachable and still describe the wrong thing. An organization’s sameAs URL, an article’s url, and an image URL each serve a different purpose. None should automatically be treated as a visible page link or as the page’s canonical URL.

This checklist helps technical SEO specialists and developers match each URL to its intended entity or asset, inspect its destination, and identify problems that an HTTP status check alone can miss.

Key Takeaways

  • Audit each URL in the context of its property and the entity that contains it.
  • url, image, and sameAs can describe different kinds of relationships; their appropriate use depends on the schema type and consumer.
  • The page’s canonical URL is a separate concern. Some structured-data URLs may match it, but others should not.
  • Check redirects, accessibility, and the destination’s contents—not just whether it returns a successful status.
  • JSON-LD URLs are structured-data values. They are not necessarily clickable links in the page’s visible HTML.

Start With the Entity and Property

Extract each JSON-LD block from the page and record the property, its enclosing entity, and the URL value. Pages may contain several blocks, nested entities, or an @graph containing multiple entities.

PropertyAudit question
urlDoes this URL represent the entity described at this point in the markup?
imageDoes the value identify an appropriate image for that entity, and is the asset accessible where needed?
sameAsDoes the destination identify the same entity, rather than merely a related site or account?
@idIs this an intentional identifier for the entity, and is it used consistently when the entity is referenced?

These questions are starting points, not universal validation rules. The expected properties and value forms vary by schema type and by the consumer of the structured data. For example, an image value can be represented differently depending on the markup and the requirements being applied.

Research limitation: Schema.org documentation and Google Search Central structured-data guidance were not available to consult for this article. Before changing production markup, check their current guidance for the specific types, properties, and Google feature you use. A generally meaningful Schema.org property is not, by itself, proof of eligibility for a Google search feature.

Advertisement

Compare Each URL With Its Intended Target

Consider this illustrative page. The example.com addresses are fictional examples, not destinations to test as part of this article.

<link rel="canonical" href="https://example.com/guides/url-audits">

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Article",
  "@id": "https://example.com/guides/url-audits#article",
  "url": "https://example.com/guides/url-audits",
  "image": "https://example.com/images/url-audits-cover.jpg",
  "publisher": {
    "@type": "Organization",
    "name": "Example Company",
    "url": "https://example.com/",
    "sameAs": "https://social.example.com/example-company"
  }
}
</script>

Audit the values separately:

  1. Article url: Check that it identifies the intended article. In this example it matches the page’s declared canonical URL, which may be appropriate for the article being described.
  2. Article @id: The fragment identifies the article entity. Do not automatically remove it merely because it differs from the canonical URL.
  3. Article image: Check that the destination is the intended cover image, not an old campaign image or an HTML error page returned from an image-looking URL.
  4. Publisher url: Check that it represents the publisher. It need not match the article’s canonical URL.
  5. Publisher sameAs: Check that the profile represents that same publisher. A partner’s profile or a different company with a similar name would be an identity mismatch, even if the profile loads.

The canonical link in the example is a page-level canonical declaration. It does not make every URL in the JSON-LD canonical. Conversely, a URL inside JSON-LD does not necessarily appear as an <a href> link that a visitor can click. Audit visible links separately in the rendered page’s HTML.

Checklist: Inspect the Destination

For each relevant URL:

  • Record the context. Capture the page, entity type, property, URL, and intended entity or asset. Preserve fragments such as #article when recording identifiers.
  • Compare with the source of truth. Check the CMS, asset library, organization profile, or other maintained record. Look for old domains, obsolete paths, and copy-pasted values from another page.
  • Inspect the redirect chain. Record the initial URL, intermediate redirects, and final destination. Confirm that the final destination still represents the intended entity or asset. Decide whether to update a stale value rather than relying indefinitely on a redirect.
  • Check accessibility in context. An asset may work for a signed-in editor but fail for an unauthenticated visitor or a relevant crawler. Check for login screens, access restrictions, expired assets, and environment-specific behavior. Verify current consumer-specific requirements before assuming an access pattern is acceptable.
  • Inspect the response content. A successful response can still contain the wrong profile, a generic landing page, or an error message. For an image, confirm that the response is the intended image, not merely that the path ends in an image extension.
  • Recheck after the fix. Inspect the structured data actually delivered on the affected page, including any client-rendered markup, and confirm that the corrected value appears in the right entity.

A redirect is not automatically an error, and a successful HTTP response is not proof that a URL is semantically correct. Both the destination and its relationship to the marked-up entity matter.

Advertisement

Inspect Redirects and Responses

For a URL you control or are authorized to inspect, curl can help you investigate. Replace the example address with the URL under review; do not send credentials or private URLs to third-party services.

curl --head --location --max-redirs 10 --max-time 20 'https://example.com/path'

Review the response headers and any Location values. This follows redirects for a HEAD request. Some servers handle HEAD differently from GET, so a failed or surprising HEAD response warrants a separate GET check.

curl --location --max-redirs 10 --max-time 20 \
  --output /dev/null --write-out 'Final URL: %{url_effective}\nHTTP status: %{http_code}\nContent type: %{content_type}\n' \
  'https://example.com/path'

The second command discards the response body. It can help identify the final URL, status, and reported content type, but it cannot establish whether the page or image is the correct one. Inspect the destination itself when it is safe and appropriate to do so. These commands have not been executed for this article.

Use caution with automated URL auditing: restrict which destinations a checker can request, especially if URLs come from untrusted markup. A parser or hostname check alone does not prevent requests to internal services. Apply destination and network controls, revalidate redirects, and set time and resource limits.

Common Mistakes

  • Replacing every structured-data URL with the canonical URL. An organization, image, or external identity profile may correctly have a different URL.
  • Treating every URL as an on-page link. JSON-LD describes data; it does not necessarily create a visible or clickable link.
  • Accepting any successful response as a pass. The destination may be a soft error, unrelated profile, outdated asset, or generic homepage.
  • Checking only the initial URL. A redirect can hide a move to an unintended or inaccessible destination.
  • Assuming a sameAs destination is correct because it mentions the entity. Confirm that it identifies the entity itself, not just a related business, article, or directory topic.
  • Ignoring delivery differences. Source HTML, the rendered page, authenticated sessions, and crawler access can expose different results.

Best Practices

Maintain an inventory of recurring entity URLs, such as publisher profiles and brand assets, so a domain or account change can be updated consistently. Prioritize shared templates and high-impact entity records before fixing individual pages.

Use URL and structured-data validation as complementary checks: syntax can reveal malformed markup, while a human or trusted source-of-truth comparison establishes whether the values mean what they should. Review current feature-specific guidance before interpreting validation results as search eligibility.

Conclusion

A useful JSON-LD URL audit starts with the entity and property, then follows the URL to verify the destination’s identity, accessibility, and relevance. Keep that work separate from auditing visible page links and canonical declarations.

What would your domain sell for?

A free TidyURLs account unlocks the Domain Estimator. It prices a name from 191,011 real domain sales.