Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API change #1

Open
Gautzka opened this issue Jun 17, 2024 · 2 comments
Open

API change #1

Gautzka opened this issue Jun 17, 2024 · 2 comments

Comments

@Gautzka
Copy link

Gautzka commented Jun 17, 2024

Hi Coatezy,

As per NordSecurity/nordvpn-linux#294 the API has changed.

I made the script work by changing:

Thanks !

@mariusSincovici
Copy link

Hi,

Not sure what is the question, but you can pass more params to the API and then the returned servers would have the needed technology only or the needed field.
For example to get ikev2 servers: https://api.nordvpn.com/v1/servers/recommendations?limit=5&&filters[servers_technologies]=1&filters[servers_technologies][pivot][status]=online&filters[servers.status]=online

  • limit the number of servers returned with limit=
  • ensure that the servers are online filters[servers.status]=online
  • ensure that the tech is online filters[servers_technologies][pivot][status]=online
  • the needed technology: filters[servers_technologies]=<tech_id>
  • adding your coordinates would give the results from that area: coordinates[longitude]=%f&coordinates[latitude]=%f
  • and if you want only the hostname adding &fields[servers.hostname] will return hostname only

Let me know if it helps,
Marius

@coatezy
Copy link
Owner

coatezy commented Sep 4, 2024

Sorry for not picking this up sooner @Gautzka. Thanks for the heads up, I’ll take a look at this over the next week or two.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants