Google

Google mobile-friendly testing tool now has API access

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.

Explore more on

Application programming interface Google Google Search Console John Mueller Mobile web Persistent uniform resource locator URL Web development
Add Search Engine Land as a preferred source on Google

Editorial disclosure

Search Engine Land is owned by Semrush. We remain committed to providing high-quality coverage of marketing topics. Unless otherwise noted, this page’s content was written by either an employee or a paid contractor of Semrush Inc.

About the author

Barry Schwartz
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.