For the complete documentation index, see llms.txt. This page is also available as Markdown.

Access

Residential access data — countries, regions, country sets, proxy list generation

Generate residential proxy connection strings

post

Generates a list of residential proxy connection strings for a subuser, rendered in the requested format with the chosen gateway, port, rotation mode, and location targeting.

Authorizations
AuthorizationstringRequired

API token generated in the MarsProxies dashboard under /settings. Send it as a Bearer token in the Authorization header.

Body

Parameters for generating a list of residential proxy connection strings. Provide either subuser_hash or both username and password to target a specific subuser.

formatstring · enumOptional

Template used to render each proxy connection string.

Example: {hostname}:{port}:{username}:{password}Possible values:
hostnamestringOptional

Proxy gateway hostname or its resolved IP. Must match one of the configured gateways.

Example: ultra.marsproxies.com
portstringOptional

Named proxy port — http or socks5. See the Protocols page for details on each protocol.

Example: http
rotationstring · enumOptional

Session rotation mode. sticky keeps the same IP for the lifetime window; random rotates each request. See the Rotation page for more on session rotation behaviour.

Example: stickyPossible values:
lifetimestring · nullableOptional

Sticky session lifetime. Required when rotation=sticky. Format: {N}s (1-59), {N}m (1-59), or {N}h (1-168). Defaults to 24h. See the Rotation page for more on session rotation behaviour.

Example: 30m
subuser_hashstring · nullableOptional

Subuser hash to target. Required unless username and password are provided.

Example: A1B2C3D4E5F6G7H8I9J0K1L2M3
usernamestring · nullableOptional

Subuser username. Required unless subuser_hash is provided.

Example: mr12345ab1c
passwordstring · nullableOptional

Subuser password. Required unless subuser_hash is provided.

Example: Maf83Kz7k2
locationstring · nullableOptional

Location targeting string built from prefixed segments joined with underscores — e.g. _country-us_city-dallas or _region-europe. Leave empty for global targeting. See the Location page for the full list of supported segments and examples.

Example: _country-us_city-dallas
proxy_countinteger · nullableOptional

Number of proxy connection strings to generate. Default to 10.

Example: 10
Responses
200

Generated proxy connection strings

application/json
string[]Optional

Array of rendered proxy connection strings

Example: ultra.marsproxies.com:44443:mr42a1b2:Mxa8Kz7k2
post/v1/residential/access/generate-proxy-list

List residential access countries

get

Returns the catalog of countries available for residential proxy location targeting, with their nested cities and states.

Authorizations
AuthorizationstringRequired

API token generated in the MarsProxies dashboard under /settings. Send it as a Bearer token in the Authorization header.

Responses
200

Available countries

application/json

List of countries available for residential proxy location targeting.

prefixstringRequired

Prefix to prepend to each country code when building a location string.

Example: _country-
get/v1/residential/access/countries

List residential access country sets

get

Returns the catalog of country sets (pre-grouped country bundles) available for residential proxy location targeting.

Authorizations
AuthorizationstringRequired

API token generated in the MarsProxies dashboard under /settings. Send it as a Bearer token in the Authorization header.

Responses
200

Available country sets

application/json

List of country sets (pre-grouped country bundles) available for residential proxy targeting.

prefixstringRequired

Prefix to prepend to each country set code when building a location string.

Example: _set-
get/v1/residential/access/country-sets

List residential access regions

get

Returns the catalog of regions available for residential proxy location targeting.

Authorizations
AuthorizationstringRequired

API token generated in the MarsProxies dashboard under /settings. Send it as a Bearer token in the Authorization header.

Responses
200

Available regions

application/json

List of regions available for residential proxy location targeting.

prefixstringRequired

Prefix to prepend to each region code when building a location string.

Example: _region-
get/v1/residential/access/regions

Last updated

Was this helpful?