DEV Community

Bruce Axtens
Bruce Axtens

Posted on

Google's PageSpeed Insights API, C# version

Google's PageSpeed Insights API offers solutions in cURL and JavaScript. Over on my github account there's a C# implementation. You still need an API key and what you get in return is still JSON. The parsing of that is left to the reader/user to implement.

In our case, we're only interested in a small subset of the data, so it works to use Newtonsoft.Json.JsonConvert.DeserializeObject on the JSON we receive and pull out what we need from a dynamic.

The project uses RestSharp for the retrieval.


Top comments (3)

anjankant profile image
Anjan Kant

Thanks Bruce for the implementation in visual studio using C#.

gadrawingz profile image
Gad Iradufasha

Great, But Short details

bugmagnet profile image
Bruce Axtens

Writing good articles is important to me, so please tell me what else should I have put in?