DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’» is a community of 966,904 amazing developers

We're a place where coders share, stay up-to-date and grow their careers.

Create account Log in
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.

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 Author

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

🀯

"I made 10x faster JSON.stringify() functions, even type safe"

☝️ Must read for JS devs