Stay organized with collections
Save and categorize content based on your preferences.
Tuesday, January 31, 2017
With so many users on mobile devices, having a mobile-friendly web is important to us all. The
Mobile-Friendly Test
is a great way to check individual pages manually. We're happy to announce that this test is now
available via API as well.
The
Mobile-Friendly Test API
lets you test URLs using automated tools. For example, you could use it to monitor important pages
in your website in order to prevent accidental regressions in templates that you use. The
API method
runs all tests, and returns the same information - including a list of the blocked URLs - as the
manual test. The documentation includes simple samples to help get you started quickly.
We hope this API makes it easier to check your pages for mobile-friendliness and to get any such
issues resolved faster. We'd love to hear how you use the API—you can post in our
forum, and you
can link to any code or implementation that you've set up! As always, if you have any questions,
you can drop by our
webmaster help forum.
Posted by
John Mueller,
Webmaster Trends Analyst, Google Switzerland
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],[],[[["\u003cp\u003eGoogle's Mobile-Friendly Test is now accessible through an API, allowing automated testing of web pages for mobile responsiveness.\u003c/p\u003e\n"],["\u003cp\u003eThe API provides the same comprehensive results as the manual test, including identified issues and blocked URLs.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can use the API to monitor crucial web pages and quickly address any mobile-friendliness regressions.\u003c/p\u003e\n"],["\u003cp\u003eGoogle encourages feedback and sharing of implementations through the webmaster help forum.\u003c/p\u003e\n"],["\u003cp\u003eNote: As of December 2023, the Mobile-Friendly Test and API have been retired.\u003c/p\u003e\n"]]],["The Mobile-Friendly Test was announced as available via API, enabling automated URL testing for mobile-friendliness. The API allowed users to monitor web pages and identify issues like blocked URLs, mirroring the manual test's functionality. Documentation and code samples were provided for ease of use. This aimed to improve detection and resolution of mobile-friendliness problems, however, as of December 2023 the API has been retired.\n"],null,["# Introducing the Mobile-Friendly Test API\n\n| It's been a while since we published this blog post. Some of the information may be outdated (for example, some images may be missing, and some links may not work anymore). As of December 2023, the Mobile-Friendly Test and API [have been retired](/search/blog/2023/04/page-experience-in-search#search-console-reports).\n\nTuesday, January 31, 2017\n\n\nWith so many users on mobile devices, having a mobile-friendly web is important to us all. The\n[Mobile-Friendly Test](https://search.google.com/test/mobile-friendly)\nis a great way to check individual pages manually. We're happy to announce that this test is now\navailable via API as well.\n\n\nThe\n[Mobile-Friendly Test API](/webmaster-tools/search-console-api)\nlets you test URLs using automated tools. For example, you could use it to monitor important pages\nin your website in order to prevent accidental regressions in templates that you use. The\n[API method](/webmaster-tools/search-console-api/reference/rest/v1/urlTestingTools.mobileFriendlyTest/run)\nruns all tests, and returns the same information - including a list of the blocked URLs - as the\nmanual test. The documentation includes simple samples to help get you started quickly.\n\n\nWe hope this API makes it easier to check your pages for mobile-friendliness and to get any such\nissues resolved faster. We'd love to hear how you use the API---you can post in our\n[forum](https://support.google.com/webmasters/go/community), and you\ncan link to any code or implementation that you've set up! As always, if you have any questions,\nyou can drop by our\n[webmaster help forum](https://support.google.com/webmasters/go/community).\n\n\nPosted by\n[John Mueller](https://twitter.com/johnmu),\nWebmaster Trends Analyst, Google Switzerland"]]