For the same url, Google's PageSpeed Insights gives different scores on Mobile and Desktop. I am trying to understand how to differentiate the device level data while using the PageSpeed Insights API call. Or does the PageSpeed Insights API call give results at an overall level? Can someone please help me with it?
Page Speed API - Differentiate Mobile and Desktop
633 Views Asked by Gokul At
1
There are 1 best solutions below
Related Questions in PAGESPEED-INSIGHTS
- PageSpeed Insights wrongly reporting cache policy?
- Want to pass multiple enum values for PageSpeed Insights API
- Is it possible to set cookies to Page Speed Insights tests?
- Can I rely on Google Lighthouse reports (especially for mobile sites)?
- Why does PageSpeed Insights keeps returning a high TTI (Time to Interactive) for a simple game?
- Lighthouse & pagespeed insights performance score is inconsistent
- Java- How to store Parsing nested json data into Java list
- Google Webfonts destroys CLS score (FOUT)
- PageSpeed Insights: Server-side rendering or Client-side rendering?
- Page Speed shows high score only first time
- get screenshot from PageSpeed Insights, using javascript
- How to improve LCP score of website where h1 is the largest contentful element painted within the viewport
- What are causes of the differece between CoreWebVitals assessment and PageSpeen Insights performance grade?
- PageSpeed Insights / Lighthouse / Unlighthouse all gives differents results
- How to satisfy Accessibility in PageSpeed Insight with a link that contains both an image and text?
Related Questions in CORE-WEB-VITALS
- How to improve LCP score of website where h1 is the largest contentful element painted within the viewport
- CrUX Core Web Vital Report Missing dates
- How do I avoid web vitals INP penalty if the button relies on external resources to work?
- When elements load it is registering a layout shift, but the only shift is those elements appearing
- Find the exact elements that causes INP issue in Core web vitals score for a website
- Till when is the core web vitals INP calculated?
- LCP, CLS and FCP metrics have different values in 'Core Web Vitals Assessment' and 'Performance' sections
- How can I prevent CLS with dynamic images of unknown height and aspect ratio?
- How do websites(especially news) keep their core web vitals as passed (in green) even though their page performances are considerably low
- CLS with Adsense Funding Choice
- Content Layout Shift When Page Loads
- Lighthouse detecting invisible layout shifts ? (incredibly high CLS)
- Why my website keeps requesting resources from server even after the website is fully loaded
- Gtag.js increasing LCP in pagespeed insights
- Google search console added my 21 URls in poor section of core web vitals and showing it as 126 URLs
Related Questions in GOOGLE-PAGESPEED-INSIGHTS-API
- Want to pass multiple enum values for PageSpeed Insights API
- Java- How to store Parsing nested json data into Java list
- How to retrieve 'Properly size images' opportunity information from JSON returned by Google PageSpeed Insights API?
- Google Page Speed Error - Lighthouse returned error: This request took too long to render
- Using PageSpeed Insights API from GAS makes error
- How to get the mobile and desktop API path in page speed insights?
- Find score inside json result of PageSpeed Insights API v5
- Add 'preload' with the fonts in Wordpress
- Geting a ? Performance score in page insights
- PageSpeed Insights API returning 401 error at seemingly random times
- Difference between PagespeedInsights and Lighthouse
- What is the difference between observedLargestContentfulPaint and largestContentfulPaint in Lighthouse?
- Fetching Lighthouse metrics Data for large count of urls without using API key on Python
- Google Pageinsight LCP issue only on mobile device (Vuejs)
- Why Google Page Speed Insights show different score everytime time I analyze the website?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
The
strategyparameter of the PSI API is used to differentiate between desktop and mobile results. Note that when the parameter is omitted,STRATEGY_UNSPECIFIEDdefaults to desktop.The PSI API docs have an API explorer that lets you run queries and see the results in a web UI. Here are a couple of examples:
Desktop:
Mobile:
If you only have the PSI API results and want to know whether it relates to desktop or mobile data, you can look at the the
lhr.lighthouseResult.configSettings.formFactorproperty, which will be'desktop'or'mobile'(where the response object is the valuelhr).See the
ConfigSettingsdocs for more info on theformFactorfield and other metadata about the results.