Skip to content

Developer API

Generate proxies and read your account over HTTP

Seven endpoints: sign in, generate rotating and unlimited proxies, read your profile and traffic, and list your static and datacenter IPs. Each one is shown with its parameters and a request you can copy.

Before the first call

Base URL and authentication

Base URL
https://www.mushroomproxies.comEvery path on this page is relative to this origin.
Bearer token
Call Login once. Its response carries a token. Send that token in the Authorization header of every other request.Authorization: Bearer YOUR_TOKEN
Application secret
Login takes an appSecret field in its JSON body, and the two generate endpoints take an AppSecret query parameter. Both carry the same value, which identifies this site. The examples here use the placeholder YOUR_APP_SECRET; the developer API page in the console shows the value to use.

The examples use placeholders.

Replace YOUR_APP_SECRET, YOUR_TOKEN, YOUR_PASSWORD, the key placeholders and USER:PASS with your own values. IP addresses such as 203.0.113.10 are documentation addresses, not real proxies.

Reference

Endpoints

Endpoints
EndpointMethodPathAuth
LoginPOST/api/SysLogin/LoginNone
Generate rotating proxiesGET/api/ProxyLogic/GenerateBearer token
Generate unlimited proxiesGET/api/ProxyLogic/UnlimitedGenerateBearer token
Get user infoGET/api/SysLogin/GetUserInfoBearer token
Get traffic usageGET/api/ProxyLogic/BandwidthAnalysisBearer token
List static IPsGET/api/UserIsps/PageListBearer token
List datacenter IPsGET/api/DatacenterIps/PageListBearer token

Authentication

Login

Sign in with your email and receive the access token used by every other endpoint.

POSThttps://www.mushroomproxies.com/api/SysLogin/Login

Auth: None

Parameters

Login: Parameters
NameInTypeRequiredDescription
emailJSON bodystringYesEmail address of the account.you@example.com
appSecretJSON bodystringYesApplication secret that identifies this site. Copy it from the developer API page in the console.YOUR_APP_SECRET
loginTypeJSON bodyenumYespwd for password login, code for email code login.pwd
passWordJSON bodystringNoRequired when loginType is pwd.YOUR_PASSWORD
verifyCodeJSON bodystringNoRequired when loginType is code.123456

Example request

curl -X POST "https://www.mushroomproxies.com/api/SysLogin/Login" \
  -H "Content-Type: application/json" \
  -d '{"email":"you@example.com","appSecret":"YOUR_APP_SECRET","loginType":"pwd","passWord":"YOUR_PASSWORD"}'

Example response

json
{
  "code": 200,
  "message": "Success",
  "body": {
    "id": 1024,
    "name": "developer",
    "token": "YOUR_TOKEN"
  }
}

Shortened. A real response can carry more fields.

Proxy generation

Generate rotating proxies

Return rotating residential or mobile proxy lines for a country, state or city, in the format you choose.

GEThttps://www.mushroomproxies.com/api/ProxyLogic/Generate

Auth: Bearer token (Authorization header)

Parameters

Generate rotating proxies: Parameters
NameInTypeRequiredDescription
AuthorizationHeaderstringYesBearer token from Login.Bearer YOUR_TOKEN
NumQueryintegerYesNumber of proxy lines to return.1
CountryQuerystringNoCountry code. Leave it out for a random country.US
StateQuerystringNoState or province.
CityQuerystringNoCity.
SessionTimeQueryintegerYes0 rotates on every request; -1 switches the IP manually.-1
ServerQuerystringYesGateway node, for example as, us or eu.us
FormatQueryenumYesLayout of the returned line: 0 host:port:user:pass, 1 user:pass@host:port, 2 user:pass:host:port.0
CrcQuerystringYesPassword of your proxy account.YOUR_PROXY_PASSWORD
KeyNameQuerystringYesYour mainKey for residential traffic, or your mobileMainKey for mobile traffic.YOUR_MAIN_KEY
PoolQueryintegerYesProxy pool number.1
mealTypeQuerystringNomobile for mobile traffic. Leave it out for residential.
GenTypeQueryenumNoProtocol of the returned lines: http or socks5.http
AppSecretQuerystringYesApplication secret that identifies this site. Copy it from the developer API page in the console.YOUR_APP_SECRET

Example request

curl -X GET "https://www.mushroomproxies.com/api/ProxyLogic/Generate?Num=1&Country=US&SessionTime=-1&Server=us&Format=0&Crc=YOUR_PROXY_PASSWORD&Pool=1&KeyName=YOUR_MAIN_KEY&GenType=http&AppSecret=YOUR_APP_SECRET" \
  -H "Authorization: Bearer YOUR_TOKEN"

Example response

text
203.0.113.10:10000:USER:PASS

Shortened. A real response can carry more fields.

Generate unlimited proxies

Return proxy lines for an active unlimited key.

GEThttps://www.mushroomproxies.com/api/ProxyLogic/UnlimitedGenerate

Auth: Bearer token (Authorization header)

Parameters

Generate unlimited proxies: Parameters
NameInTypeRequiredDescription
AuthorizationHeaderstringYesBearer token from Login.Bearer YOUR_TOKEN
NumQueryintegerYesNumber of proxy lines to return.1
CountryQuerystringNoCountry code. Leave it out for a random country.US
StateQuerystringNoState or province.
CityQuerystringNoCity.
SessionTimeQueryintegerYes0 rotates on every request; -1 switches the IP manually.-1
ServerQuerystringYesGateway node, for example as, us or eu.us
FormatQueryenumYesLayout of the returned line: 0 host:port:user:pass, 1 user:pass@host:port, 2 user:pass:host:port.0
CrcQuerystringYesPassword of your proxy account.YOUR_PROXY_PASSWORD
KeyNameQuerystringYesAn active unlimited key.YOUR_UNLIMITED_KEY
AppSecretQuerystringYesApplication secret that identifies this site. Copy it from the developer API page in the console.YOUR_APP_SECRET

Example request

curl -X GET "https://www.mushroomproxies.com/api/ProxyLogic/UnlimitedGenerate?Num=1&Country=US&SessionTime=-1&Server=us&Format=0&Crc=YOUR_PROXY_PASSWORD&KeyName=YOUR_UNLIMITED_KEY&AppSecret=YOUR_APP_SECRET" \
  -H "Authorization: Bearer YOUR_TOKEN"

Example response

text
203.0.113.20:10000:USER:PASS

Shortened. A real response can carry more fields.

Account and usage

Get user info

Return the profile of the signed-in account, including its keys and balances.

GEThttps://www.mushroomproxies.com/api/SysLogin/GetUserInfo

Auth: Bearer token (Authorization header)

Parameters

Get user info: Parameters
NameInTypeRequiredDescription
AuthorizationHeaderstringYesBearer token from Login.Bearer YOUR_TOKEN

Example request

curl -X GET "https://www.mushroomproxies.com/api/SysLogin/GetUserInfo" \
  -H "Authorization: Bearer YOUR_TOKEN"

Example response

json
{
  "code": 200,
  "message": "Success",
  "body": {
    "userId": 1024,
    "userName": "developer",
    "userInfo": {
      "name": "developer",
      "email": "you@example.com",
      "usdtBalance": 25.5,
      "status": 1,
      "mainKey": "YOUR_MAIN_KEY",
      "mobileMainKey": "YOUR_MOBILE_MAIN_KEY",
      "shortNums": 240
    }
  }
}

Shortened. A real response can carry more fields.

Get traffic usage

Return total and used traffic for rotating residential and rotating mobile.

GEThttps://www.mushroomproxies.com/api/ProxyLogic/BandwidthAnalysis

Auth: Bearer token (Authorization header)

Parameters

Get traffic usage: Parameters
NameInTypeRequiredDescription
AuthorizationHeaderstringYesBearer token from Login.Bearer YOUR_TOKEN

Example request

curl -X GET "https://www.mushroomproxies.com/api/ProxyLogic/BandwidthAnalysis" \
  -H "Authorization: Bearer YOUR_TOKEN"

Example response

json
{
  "code": 200,
  "message": "Success",
  "body": {
    "totalBandWidth": 100,
    "usedBandwidth": 24.75,
    "mobileTotalBandWidth": 20,
    "mobileUsedBandwidth": 3.2
  }
}

Shortened. A real response can carry more fields.

Static and datacenter IPs

List static IPs

Page through the static IPs of the account, with their connection lines and expiry times.

GEThttps://www.mushroomproxies.com/api/UserIsps/PageList

Auth: Bearer token (Authorization header)

Parameters

List static IPs: Parameters
NameInTypeRequiredDescription
AuthorizationHeaderstringYesBearer token from Login.Bearer YOUR_TOKEN
PageNoQueryintegerYesPage number, starting from 1.1
PageSizeQueryintegerYesRecords per page.20
IspTypeQueryintegerNo-1 for all, 0 for dedicated, 1 for shared.-1
VidQueryenumNoStatus filter: valid, expiringsoon or exp.valid
IspLocationQuerystringNoRegion filter.Asia-Korea-Seoul
KeyWordQuerystringNoSearch by IP or identifier.

Example request

curl -X GET "https://www.mushroomproxies.com/api/UserIsps/PageList?PageNo=1&PageSize=20&IspType=-1&Vid=valid&IspLocation=Asia-Korea-Seoul" \
  -H "Authorization: Bearer YOUR_TOKEN"

Example response

json
{
  "code": 200,
  "message": "Success",
  "body": {
    "pageNo": 1,
    "pageSize": 20,
    "totalPage": 1,
    "totalRows": 1,
    "records": [
      {
        "id": 12001,
        "ipNo": "IP_NO",
        "ispType": 0,
        "ip": "proxy.example:10000:USER:PASS",
        "directIp": "203.0.113.10:10000:USER:PASS",
        "ispLocation": "Asia-Korea-Seoul",
        "expireTime": "2027-01-31 23:59:59"
      }
    ]
  }
}

Shortened. A real response can carry more fields.

List datacenter IPs

Page through the datacenter IPs of the account.

GEThttps://www.mushroomproxies.com/api/DatacenterIps/PageList

Auth: Bearer token (Authorization header)

Parameters

List datacenter IPs: Parameters
NameInTypeRequiredDescription
AuthorizationHeaderstringYesBearer token from Login.Bearer YOUR_TOKEN
PageNoQueryintegerYesPage number, starting from 1.1
PageSizeQueryintegerYesRecords per page.20
IspTypeQueryintegerNo-1 for all, 0 for dedicated, 1 for shared.-1
VidQueryenumNoStatus filter: valid, expiringsoon or exp.valid
IspLocationQuerystringNoRegion filter.Asia-Korea-Seoul
KeyWordQuerystringNoSearch by IP or identifier.

Example request

curl -X GET "https://www.mushroomproxies.com/api/DatacenterIps/PageList?PageNo=1&PageSize=20&IspType=-1&Vid=valid&IspLocation=Asia-Korea-Seoul" \
  -H "Authorization: Bearer YOUR_TOKEN"

Example response

json
{
  "code": 200,
  "message": "Success",
  "body": {
    "pageNo": 1,
    "pageSize": 20,
    "totalPage": 1,
    "totalRows": 1,
    "records": [
      {
        "id": 46506,
        "ipNo": "IP_NO",
        "ip": "203.0.113.30:12000:USER:PASS",
        "ispLocation": "Asia-Korea-Seoul",
        "planKey": "PLAN_KEY",
        "expireTime": "2027-01-31 23:59:59"
      }
    ]
  }
}

Shortened. A real response can carry more fields.

An interactive version is in the console.

After signing in you can fill in parameters and send these requests from the developer API page of the console.

Try requests in the console