Skip to content

Instantly share code, notes, and snippets.

@che-wf
Created August 28, 2023 19:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save che-wf/3ba4e63de74bf6c46f9c5633622649bd to your computer and use it in GitHub Desktop.
Save che-wf/3ba4e63de74bf6c46f9c5633622649bd to your computer and use it in GitHub Desktop.
Gets the top three NordVPN servers with the lowest load
curl --silent "https://api.nordvpn.com/v1/servers/recommendations" | jq --raw-output 'limit(3;.[]) | " Server: \(.name)\nHostname: \(.hostname)\nLocation: \(.locations[0].country.name) - \(.locations[0].country.city.name)\n Load: \(.load)\n"'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment