Google mobile-friendly testing tool now has API access

Using the new API Google released, developers can now build their own tools around the mobile-friendly testing tool to see if pages are mobile-friendly.

Chat with SearchBot

Google has released a new API for the mobile-friendly testing tool named the mobile-friendly test API.

The API is a simple and quick tool that you can use to build your own tools to see what pages are mobile-friendly.

Google’s John Mueller said, “The API method runs all tests, and returns the same information — including a list of the blocked URLs — as the manual test.” He added, “The documentation includes simple samples to help get you started quickly.”

The API test outputs include these three statuses:

  • MOBILE_FRIENDLY_TEST_RESULT_UNSPECIFIED Internal error when running this test. Please try running the test again.
  • MOBILE_FRIENDLY The page is mobile friendly.
  • NOT_MOBILE_FRIENDLY The page is not mobile friendly.

You can access the API at developers.google.com/webmaster-tools/search-console-api.


About the author

Barry Schwartz
Staff
Barry Schwartz is a technologist and a Contributing Editor to Search Engine Land and a member of the programming team for SMX events. He owns RustyBrick, a NY based web consulting firm. He also runs Search Engine Roundtable, a popular search blog on very advanced SEM topics.

In 2019, Barry was awarded the Outstanding Community Services Award from Search Engine Land, in 2018 he was awarded the US Search Awards the "US Search Personality Of The Year," you can learn more over here and in 2023 he was listed as a top 50 most influential PPCer by Marketing O'Clock.

Barry can be followed on X here and you can learn more about Barry Schwartz over here or on his personal site.

Get the newsletter search marketers rely on.