DEV Community

Bruce Axtens
Bruce Axtens

Posted on

3

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.

Enjoy!

Top comments (3)

Collapse
 
anjankant profile image
Anjan Kant

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

Collapse
 
gadrawingz profile image
Gad Iradufasha

Great, But Short details

Collapse
 
bugmagnet profile image
Bruce Axtens

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

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay