Configuring Proxy Session ID & Lifetime

Configure proxy session duration and custom session IDs to control how long connections remain active.

Control the duration of your proxy sessions by setting a custom session ID and lifetime. This allows you to maintain stable connections for extended periods, which is essential for tasks requiring persistent IP addresses.

Lifetime Parameter

The lifetime parameter is measured in minutes and defines how long the session remains active:

ConstraintValue
Minimum3 minutes
Maximum1440 minutes (24 hours)
Default10 minutes

Examples:

  • lifetime: 5 → 5 minutes
  • lifetime: 30 → 30 minutes
  • lifetime: 60 → 1 hour
  • lifetime: 180 → 3 hours

Session ID Rules

Your custom session ID must follow these rules:

  • Format: 1-25 alphanumeric characters or underscores (_)
  • Regex pattern: ^[A-Za-z0-9_]{1,25}$
  • Valid characters: Letters (A-Z, a-z), digits (0-9), and underscores
  • No spaces or special symbols allowed

Examples of valid session IDs:

  • session123
  • my_session_01
  • ABC123

Request

curl --request GET \
     -x "http://proxy.geonode.io:<port>" \
     --user "<geonode_username>-session-<session_id>-lifetime-<lifetime>:<geonode_password>" \
     --url "http://ip-api.com/json"

Response

200 Success

Proxy session created successfully with the specified lifetime.

Response Fields

FieldTypeDescription
statusstringThe status of the request (e.g., "success")
continentstringThe continent where the IP is located
continentCodestringThe two-letter continent code
countrystringThe full name of the country
countryCodestringThe two-letter country code
regionstringThe region code
regionNamestringThe full name of the region
citystringThe name of the city
districtstringThe district name, if available
zipstringThe postal code associated with the IP
latnumberThe latitude coordinate
lonnumberThe longitude coordinate
timezonestringThe timezone of the IP location
offsetintegerThe time offset in seconds from UTC
currencystringThe currency code of the country
ispstringThe name of the Internet Service Provider
orgstringThe organization that owns the IP address
asstringThe Autonomous System (AS) number
asnamestringThe name associated with the AS number
mobilebooleanIndicates whether the connection is from a mobile network
proxybooleanIndicates whether the IP is a known proxy
hostingbooleanIndicates whether the IP is from a hosting provider
querystringThe queried IP address

Example Response

{
  "status": "success",
  "continent": "Africa",
  "continentCode": "AF",
  "country": "Algeria",
  "countryCode": "DZ",
  "region": "05",
  "regionName": "Batna",
  "city": "Batna City",
  "district": "",
  "zip": "05000",
  "lat": 35.5064,
  "lon": 6.0707,
  "timezone": "Africa/Algiers",
  "offset": 3600,
  "currency": "DZD",
  "isp": "4 djaweb de AS fawri",
  "org": "",
  "as": "AS36947 Telecom Algeria",
  "asname": "ALGTEL-AS",
  "mobile": false,
  "proxy": false,
  "hosting": false,
  "query": "192.168.1.1"
}

On this page