Need to Make Your Website Mobile Friendly? Google Has An API for That

Google today released the Mobile Friendly Test API, a tool that lets developers automatically and quickly see if their webpages are mobile friendly. Think of it as a useful instrument for what should be a mandatory business practice.

"Mobile is changing the world. Today, everyone has smartphones with them, constantly communicating and looking for information," explained Google. "In many countries, the number of smartphones has surpassed the number of personal computers; having a mobile-friendly website has become a critical part of having an online presence."

If your website isn't already mobile friendly, it should be. The world has been mobile first for a while now, and Google is doing everything in its power to help developers ensure their offerings are compatible with the widest array of devices. That's where the Mobile Friendly Test API comes in.

The Mobile Friendly Test itself is nothing new. Before today, however, developers had to check their websites against in manually. The Mobile Friendly Test API runs all the URL tests automatically and shows developers all the same data generated by the older manual tests. The Mobile Friendly Test API outputs three statuses that show: 1. if there's an error; 2. if the page is mobile friendly; or 3. if the page is not mobile friendly. Beyond delivering these results, it also allows developers to see what steps they need to take to become mobile friendly.

"We hope this API makes it easier to check your pages for mobile-friendliness and to get any such issues resolved faster," explained Google’s John Mueller in a blog post. "The documentation includes simple samples to help get you started quickly."

For exmaple, the instructions will walk developers through writing their first client application using the Search Console URL Testing Tools API. There are a few prerequisites, and an API key will be required for API calls. 

The API is available here.

Be sure to read the next Mobile article: Final Version of Android Studio 2.3 Focuses On Quality Improvements


Comments (0)