'ASP.NET Core analyze SEO with Google Page Speed Insights API

I would like to create an MVC Web Application to show details(page's performance, accessibility, and SEO) of a URL inserted by the user.

With the below code I can reach the list of all DiscoveryService prepared by Google.

using Google.Apis.Discovery.v1;
using Google.Apis.Discovery.v1.Data;
using Google.Apis.Services;


var service = new DiscoveryService(new BaseClientService.Initializer
{
    ApiKey = "API-Key",
});
var result = await service.Apis.List().ExecuteAsync();

How can I use Google.Apis.PagespeedInsights.v5 to measure the performance of a web page?

Any suggestions or help would be greatly appreciated.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source