JunaidAK / SpeedTest.Net

A simple https://speedtest.net client to calculate download speed in KB/s.
MIT License
24 stars 11 forks source link

SpeedTest.Net

A simple https://speedtest.net and https://fast.com client to calculate download speed in multiple units. Made with love using .Net Core.

Install via nuget

Install-Package SpeedTest.NetCore -Version 2.1.0

Get a Server closest to your location

var server = await SpeedTestClient.GetServer();

Or Get a Server closest to the provided geo co-ordinates

var server = await SpeedTestClient.GetServer(37.0902, 95.7129);

Get Download Speed using the server

var speed = await SpeedTestClient.GetDownloadSpeed(server);

Or simply Get Download Speed using your location

var speed = await SpeedTestClient.GetDownloadSpeed();

If you like your results from fast.com use

var speed = await FastClient.GetDownloadSpeed();