Search code examples
pythongoogle-search-consolecore-web-vitals

how to download data behind core web vital report in google search console via api?


I am looking for a way to download the data behind core web vital reports in google search console. is there any api for this? so far the only thing I find is the page speed api which is providing the current analysis for given url. What I need is the counts and distribution per day which is exactly what is shown in this report: enter image description here

There is a link to download when I navigate into the report, but I am looking for a python api kind of thing to programmatically download this data. enter image description here


Solution

  • The GSC API currently does not support these new reports.

    The Core Web Vitals data comes from the CrUX report data which does have an API. So you can get similar data via that. I think the PSI API also includes data from CrUX if available. It would probably take some work to get the data in the structure you want it.