What does Google say about SEO? /
Quick SEO Quiz

Test your SEO knowledge in 3 questions

Less than 30 seconds. Find out how much you really know about Google search.

🕒 ~30s 🎯 3 questions 📚 SEO Google

Official statement

The URL Inspection API provides indexation information including the canonical URL declared by the user and the one selected by Google. This API can be used to check whether differences exist between these two canonicals, which helps diagnose indexation problems.
🎥 Source video

Extracted from a Google Search Central video

💬 EN 📅 26/04/2023 ✂ 10 statements
Watch on YouTube →
Other statements from this video 9
  1. Pourquoi l'API Search Console révèle 50 fois plus de données que l'interface standard ?
  2. L'API Search Analytics peut-elle remplacer l'interface Search Console pour piloter votre SEO ?
  3. L'API URL Inspection peut-elle vraiment remplacer les tests manuels d'indexation ?
  4. Peut-on vraiment déboguer les données structurées à grande échelle avec l'API URL Inspection ?
  5. L'API URL Inspection dévoile-t-elle enfin le vrai statut d'indexation de vos pages ?
  6. Faut-il surveiller vos sitemaps via l'API dédiée de Google ?
  7. Pourquoi combiner l'API Search Console avec d'autres sources de données SEO ?
  8. L'API Sites de Search Console peut-elle vraiment simplifier la gestion de vos propriétés ?
  9. Faut-il vraiment passer par les bibliothèques clientes pour exploiter l'API Search Console ?
📅
Official statement from (3 years ago)
TL;DR

The URL Inspection API now exposes two distinct fields: the canonical URL you declare and the one Google actually selects. Comparing these two values helps you quickly identify indexation issues that remain invisible in standard Search Console. It's a diagnostic tool that should be part of any serious technical SEO audit.

What you need to understand

Why Does Google Expose Two Different Canonicals in Its API?

Google has always had the final say on canonical selection. You can declare a canonical URL via the rel="canonical" tag, HTTP headers, or your sitemap, but Google isn't obligated to respect it.

The URL Inspection API formalizes this distinction by returning two fields: user-declared canonical (what you specified) and Google-selected canonical (what Google actually retained). Previously, you had to cross-reference multiple reports to detect these discrepancies — now it's exposed directly.

When Do These Two Values Actually Diverge?

Divergences occur when Google detects conflicting signals or judges your declaration unreliable. For example: near-identical content without consistent canonical tags, chained redirects, poorly managed URL parameters, or misconfigurations between mobile and desktop variations.

Google can also ignore your canonical if the URL you're pointing to returns a 4xx/5xx error, or if it's not indexable (robots.txt, noindex). In those cases, it'll choose another URL from the series as canonical — often the one it judges most relevant to users.

What Are the Essential Takeaways?

  • The URL Inspection API exposes two distinct fields for canonicals: the one you declare and the one Google retains.
  • A gap between these two values signals a potential indexation problem or a misalignment between your intent and Google's analysis.
  • This feature enables automated detection of these discrepancies at scale, via a script or third-party tool querying the API.
  • Google never blindly respects your canonical — it applies its own URL consolidation rules.

SEO Expert opinion

Does This API Really Change the Game for Technical Diagnostics?

Yes, for two reasons. First, it automates a tedious process: previously, you had to manually compare coverage reports, sitemaps, and server logs to spot these divergences. Now, a Python script can query the API on 10,000 URLs and output a CSV of discrepancies in minutes.

Second, it forces Google to be transparent on a point it often dodged: the difference between what the SEO declares and what the crawler actually retains. It ends sterile debates like "but I added the canonical, so why is Google indexing the other URL?"

What Nuances Should You Keep in Mind?

The API doesn't tell you why Google chose a different canonical from yours. You see the gap, but not the cause. It's up to you to cross-reference with logs, redirects, hreflang signals, and more.

Another limitation: the URL Inspection API has a restrictive quota (600 requests/minute for a standard project). For an audit on a large site, you'll need to trim the URLs you test or space out requests. [To verify]: some third-party SEO tools claim to bypass this limit via multiple API keys, but that remains unclear on Google's side.

When Is This Divergence Not Actually a Problem?

Sometimes Google chooses a different canonical for good reasons. For example, if you have an AMP version and a standard version, and you mismanaged canonical declarations, Google can auto-correct by retaining the most relevant version for users.

Similarly, on e-commerce sites with product variants (color, size), Google may decide a variant URL deserves separate indexation if it adds unique content (customer reviews, different images). In that case, the canonical gap isn't an anomaly — it's Google's editorial decision.

Caution: Don't blindly fix every canonical discrepancy. First analyze the traffic and rankings of affected URLs. Sometimes, the canonical Google chose outperforms the one you declared.

Practical impact and recommendations

How Do You Actually Leverage This API to Audit a Site?

Build a script (Python + Google Search Console API) that queries the URL Inspection API on a sample of strategic URLs: category pages, high-traffic product pages, editorial content pages. Compare the two canonical fields and generate a report of divergences.

If you're not a developer, tools like Screaming Frog or OnCrawl already integrate this feature via the API. Configure a weekly crawl that automatically checks for canonical gaps and alerts you to any drift.

What Mistakes Should You Avoid When Analyzing Divergences?

Don't panic if 5-10% of your URLs show a gap. That's normal on large sites with complex history. Focus on high-impact URLs: those driving traffic or conversions.

Also avoid correcting canonicals without cross-checking traffic data. Sometimes Google is right: the URL it chose performs better than the one you designated. Verify each URL's metrics in Analytics or Search Console before making any changes.

Checklist: What Should You Prioritize?

  • Query the API on a representative URL sample (at least 500-1,000 for a mid-sized site)
  • Identify canonical gaps and sort them by traffic volume in descending order
  • Cross-reference with server logs to see if Google heavily crawls non-canonical URLs
  • Verify rel="canonical" tags and HTTP headers on affected pages
  • Check 301/302 redirects: a redirect chain can disrupt canonical selection
  • Analyze hreflang signals: a misstatement can cause Google to ignore your canonical
  • Measure traffic impact: if Google's chosen URL performs better, leave it as is
The URL Inspection API transforms a once-tedious diagnosis into an automatable process. Stay levelheaded: the tool alerts you to divergences, but your expertise determines whether it's a bug or an optimization on Google's end. For complex sites with thousands of URLs and multi-country architectures, this type of audit can quickly become labor-intensive. If your team lacks technical resources or wants in-depth diagnostics without weeks of effort, reaching out to a specialized SEO agency can drastically accelerate resolution — and avoid hasty fixes that make things worse.

❓ Frequently Asked Questions

L'API URL Inspection est-elle gratuite et accessible à tous ?
Oui, elle est gratuite dans la limite des quotas Google Search Console (600 requêtes par minute par projet). Tout site vérifié dans la Search Console peut y accéder via OAuth.
Si Google choisit une canonical différente, dois-je systématiquement corriger ?
Non. Analyse d'abord le trafic et les positions de l'URL retenue par Google. Parfois, son choix est plus pertinent que ta déclaration initiale.
L'API indique-t-elle pourquoi Google a ignoré ma canonical ?
Non, elle expose uniquement les deux valeurs (déclarée vs sélectionnée). À toi de diagnostiquer la cause en croisant logs, redirections et signaux on-page.
Peut-on forcer Google à respecter notre canonical déclarée ?
Non. Google applique ses propres règles de consolidation. Tu peux renforcer les signaux (cohérence des liens internes, sitemap, hreflang), mais jamais contraindre Google.
Quel échantillon d'URLs faut-il tester en priorité ?
Commence par les pages à fort trafic : catégories, produits phares, contenus éditoriaux stratégiques. Puis étends progressivement selon les ressources API disponibles.
🏷 Related Topics
Crawl & Indexing AI & SEO JavaScript & Technical SEO Domain Name Search Console

🎥 From the same video 9

Other SEO insights extracted from this same Google Search Central video · published on 26/04/2023

🎥 Watch the full video on YouTube →

Related statements

💬 Comments (0)

Be the first to comment.

2000 characters remaining
🔔

Get real-time analysis of the latest Google SEO declarations

Be the first to know every time a new official Google statement drops — with full expert analysis.

No spam. Unsubscribe in one click.