gjedeer / nordvpn

NordVPN server list parser
8 stars 4 forks source link

NordVPN Api #1

Open lbr88 opened 7 years ago

lbr88 commented 7 years ago

Not really and issue/bug but just wanted to let you know that you could fetch the servers from the API here in JSON format: https://nordvpn.com/api/server

gjedeer commented 7 years ago

Wooooah dude. How did you find that?

lbr88 commented 7 years ago

Trial and error basically. I was making a shell script and systemd service file to easily download and update ovpn configs. Unfortunately i discovered it after i made my script. I just found this also: https://bitbucket.org/nordial/nordapi/src/dd4e918e84b66a7842cbbf2262ad4019ead2e877/nordtoy.py?at=master&fileviewer=file-view-default don't know how much of it works or not. Edit: Doesn't look like any of those works.

gjedeer commented 7 years ago

Good research. I haven't found any of these and I did all I could to avoid parsing HTML.

bguidolim commented 7 years ago

Maybe it's better for you case: https://nordvpn.com/api/server/stats

gjedeer commented 7 years ago

Yeah, maybe. I'm not maintaining this so you're welcome to fork and use the correct API.

mrzool commented 6 years ago

How on earth do people find these undocumented API endpoints?

Now that's seemingly the only way to get access to that vital information, since those asshats at NordVPN decided to replace the HTML server list with useless marketing copy.

lbr88 commented 6 years ago

Trial and error, or maybe sniffing the nordvpn windows client which uses the api heavily.

mrzool commented 6 years ago

@lbr88 well, you and @bguidolim solved a pretty pressing problem of mine by finding it and taking the time share it, so thanks a lot for that.

dym-ok commented 6 years ago

An easier way is looking into the iOS/Android app with the help of https://mitmproxy.org/

mrzool commented 6 years ago

Just wanted to mention briefly that thanks to those endpoints @lbr88 and @bguidolim posted I was able to write a little script which works beautifully for finding the fastest NordVPN servers: https://github.com/mrzool/nordvpn-server-find

gjedeer commented 6 years ago

@mrzool https://github.com/gjedeer/nordvpn/commit/d40679a2b49b0e3ec4b08cf5af28b7225684b05f

RevertIT commented 5 years ago

Hmm seems like the list of IPs is not updated from https://nordvpn.com/api/server