- Overview
- Getting Started
- Glossary
- Where to start?
- What does agent-client mean?
- Resource monitoring
- Reseller webhooks
- Installation
- Generating VPN accounts
- User Guide
- Best Practices
- Integrations
- APIs for User
- APIs for Reseller
- User Stories and Use Cases
- Video Tutorials and Walkthroughs
- Troubleshooting
- Contact and Support
Get user`s ip address
GET
/user/ip
/user endpoint
Request
Query Params
token
optional
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://test.your-api-server.com/user/ip'
Responses
🟢200Success
application/json
Body
optional
Example:
{"ip":"127.0.0.3","server":{"country":{"name":"Netherlands","code":"NL"},"location":"Amsterdam","latitude":52.3676,"longitude":4.9041}}
Example
{
"ip": "127.0.0.3",
"server": {
"country": {
"name": "Netherlands",
"code": "NL"
},
"location": "Amsterdam",
"latitude": 52.3676,
"longitude": 4.9041
}
}
🟠400400
🟠401401
🟠403403