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)
Thanks Bruce for the implementation in visual studio using C#.
Great, But Short details
Writing good articles is important to me, so please tell me what else should I have put in?