Models
airvpn.api.userinfo.models
Connection
Connection class for the userinfo endpoint.
Attributes:
| Name | Type | Description |
|---|---|---|
device_name |
Name of the connected device. |
|
device_description |
Description of the connected device. |
|
vpn_ip |
VPN-assigned IP address. |
|
vpn_ipv4 |
VPN-assigned IPv4 address. |
|
vpn_ipv6 |
VPN-assigned IPv6 address. |
|
exit_ip |
Exit node IP address. |
|
exit_ipv4 |
Exit node IPv4 address. |
|
exit_ipv6 |
Exit node IPv6 address. |
|
server_name |
Name of the connected server. |
|
server_country |
Country where the server is located. |
|
server_country_code |
ISO country code of the server's location. |
|
server_continent |
Continent where the server is located. |
|
server_location |
Specific location/city of the server. |
|
server_bw |
Server bandwidth. |
|
bytes_read |
Total bytes received during this connection. |
|
bytes_write |
Total bytes sent during this connection. |
|
connected_since_date |
Human-readable timestamp of when the connection started. |
|
connected_since_unix |
Unix timestamp of when the connection started. |
|
speed_read |
Current/average download speed. |
|
speed_write |
Current/average upload speed. |
User
User class for the userinfo endpoint.
Attributes:
| Name | Type | Description |
|---|---|---|
login |
The account's username. |
|
premium |
Whether the account has an active premium subscription. |
|
expiration_days |
Days remaining until premium expires. |
|
pool |
Unknown. |
|
posts |
Total number of posts made by the account. |
|
last_post |
Unknown. |
|
register_unix |
Unix timestamp of account registration. |
|
register_date |
Human-readable registration date. |
|
expiration_unix |
Unix timestamp of when premium expires. |
|
expiration_date |
Human-readable premium expiration date. |
|
last_visit_unix |
Unix timestamp of the account's last site visit. |
|
last_visit_date |
Human-readable date of the last site visit. |
|
last_activity_unix |
Unix timestamp of the account's last recorded activity. |
|
last_activity_date |
Human-readable date of the last recorded activity. |
|
credits |
Current credit balance. |
|
last_attempt_unix |
Unix timestamp of the last login attempt. |
|
last_attempt_date |
Human-readable date of the last login attempt. |
|
credit |
Unknown. |
|
connected |
Whether the account is currently connected/online. |