Google said "the Mobile-Friendly Test API lets you test URLs using automated tools." "The API method runs all tests, and returns the same information - including a list of the blocked URLs - as the manual test," Google added.
John Mueller from Google penned the announcement adding "we hope this API makes it easier to check your pages for mobile-friendliness and to get any such issues resolved faster."
Here is a sample output of the API results:
The test results output currently include:
- 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.
Forum discussion at Twitter.