SEOSEO News

Welcoming the new Search Console URL Inspection API  |  Google Search Central Blog  |  Google Developers


Monday, January 31, 2022

Today we’re launching the new Google Search Console URL Inspection API,
which gives programmatic access to URL-level data for properties you manage in Search Console.

The Search Console APIs are a way to access data outside of Search Console, through external applications and products.
Developers and SEO tools already use the APIs to build custom solutions to view, add, or remove properties and sitemaps, and to run advanced queries on Search performance data.

With the new URL Inspection API, we’re providing a new tool for developers to debug and optimize their pages. You can request the data Search Console has about the indexed version of a URL;
the API will return the indexed information currently available in the URL Inspection tool.

Using the new API

In order to learn how to use the new API, check the API developer documentation.
The request parameters include the URL you’d like to inspect and the URL of the property as defined in Search Console.

The response includes analysis results containing information from Search Console, including index status, AMP, rich results, and mobile usability. For more details, read the
list of parameters and the
Indexed URL results explanation.

Once you make the API call, you will get a response with all relevant results, or an error message if the request fails. If a specific analysis result is missing from the response,
it means the analysis was not available for the URL inspected. Here’s an example of the response you’ll get from the API.

  {
  "inspectionResult": {
    "inspectionResultLink": "
    "indexStatusResult": {
      "verdict": "PASS",
      "coverageState": "Indexed, not submitted in sitemap",
      "robotsTxtState": "ALLOWED",
      "indexingState": "INDEXING_ALLOWED",
      "lastCrawlTime": "2022-01-31T08:39:51Z",
      "pageFetchState": "SUCCESSFUL",
      "googleCanonical": "
      "userCanonical": "
      "referringUrls": [
        "
        "
      ],
      "crawledAs": "MOBILE"
    },
    "mobileUsabilityResult": {
      "verdict": "PASS"
    },
    "richResultsResult": {
      "verdict": "PASS",
      "detectedItems": [
        {
          "richResultType": "Breadcrumbs",
          "items": [
            {
              "name": "Unnamed item"
            }
          ]
        },
        {
          "richResultType": "FAQ",
          "items": [
            {
              "name": "Unnamed item"
            }
          ]
        }
      ]
    }
  }
}

Potential use cases

While building the new API, we consulted various SEOs and publishers with regards to how they would use the API to create solutions with this data. Here are some of the use cases that stand out:

  • SEO tools and agencies can provide ongoing monitoring for important pages and single page debugging options. For example, checking if there are differences between user-declared
    and Google-selected canonicals, or debugging structured data issues from a group of pages.
  • CMS and plugin developers can add page or template-level insights and ongoing checks for existing pages. For example, monitoring changes over time for key pages
    to diagnose issues and help prioritize fixes.

Usage limits

You can find a more detailed description of Search Console APIs usage limits
in the developer documentation. Specifically with regards to the URL Inspection API, the quota is enforced per Search Console
website property (calls querying the same site):

  • 2,000 queries per day
  • 600 queries per minute

Feedback

We believe the new API will bring new opportunities to the ecosystem to innovate with Google Search data; we’re always excited to see the solutions developers and SEOs build around the
Search Console APIs.

If you have any questions or feedback, reach out to us on Twitter, or post a question in the
Search Central community.





Source link

Related Articles

Back to top button
Social media & sharing icons powered by UltimatelySocial
error

Enjoy Our Website? Please share :) Thank you!