Our Proxy API is very a simple service to use.
To get started, you will firstly need to sign up with our service in order to acquire an API Access Token.
This token can be easily found on your Dashboard Home Page.
Your API token is used to authenticate you with our API, and can be provided as a token URL parameter.
#Utilize authentication token in URL parameter
$ curl https://api.proxykingdom.com/proxy?token=TOKEN
Our Proxy API is fully RESTful responding in JSON format, and it will return a different proxy on each request.
The simplest way to get a working proxy is to call our Proxy API by only including the required Access Token in the URL parameter.
#Get a random proxy without any filtering
$ curl https://api.proxykingdom.com/proxy?token=TOKEN
{
"address": "86.125.112.230",
"port": 30897,
"protocol": "Socks4",
"accessType": "Elite",
"isSsl": true,
"uptime": 0.88,
"lastTested": 2024-10-21T23:04:39Z,
"timings": {
"connectTime": 0.506,
"firstByteTime": 0.607,
"responseTime": 1.092
},
"isp": {
"id": 10232,
"name": "Comcast"
},
"location": {
"cityName": "Timișoara",
"postalCode": "300011",
"latitude": 45.7537,
"longitude": 21.7537,
"accuracyRadius": 1,
"timezone": "Europe/Bucharest",
"country": {
"code": "RO",
"name": "Romania"
},
"continent": {
"code": "EU",
"name": "Europe"
},
"subdivisions":
[{
"code": "TM",
"name": "Timis"
}]
}
}
Our Proxy API offers a wide range of powerful filters, allowing consumers to limit the result to a specific set of proxies.
Query Parameter | Description | Type | Example |
---|---|---|---|
address | Proxy address | string | /proxy?address=86.125.112.230 |
port | Proxy port | integer | /proxy?port=30897 |
protocol | Proxy protocol | http, socks4, or socks5 | /proxy?protocol=socks4 |
accessType | How much of your info is hidden | transparent, anonymous or elite | /proxy?accessType=elite |
responseTime | Proxy response time in seconds | decimal | /proxy?responseTime=1.235 |
isSsl | If the proxy uses SSL | bool | /proxy?isSsl=true |
uptime | What percentage uptime the proxy has | decimal | /proxy?uptime=0.88 |
country | Proxy country | string / ISO 3166-1 | /proxy?country=RO |
continent | Proxy continent | string | /proxy?continent=EU |
timezone | Proxy timezone | string / TZ Database | /proxy?timezone=Europe/Bucharest |
lastTested | The proxy last tested timestamp | string / ISO 8601 (UTC) | /proxy?lastTested=2024-10-21T23:04:39Z |
You can even go further and use multiple concatenated filters in a single request.
#Get a proxy with port 8080 and protocol socks4
$ curl https://api.proxykingdom.com/proxy?token=TOKEN&port=8080&protocol=socks4
#Get a proxy with port 8080, protocol as socks4, country as United States, and response time <= 1.3s
$ curl https://api.proxykingdom.com/proxy?token=TOKEN&port=8080&protocol=socks4&country=US&responseTime=1.300
Property | Description | Type |
---|---|---|
Proxy Data Type | ||
address | The proxy address | string |
port | The proxy port | integer |
protocol | The proxy protocol | Http, Socks4 or Socks5 |
accessType | How much of your info is hidden | Transparent, Anonymous or Elite |
isSsl | If the proxy uses SSL | boolean |
uptime | The proxy uptime from 0 to 1 ratio | decimal |
lastTested | The proxy last tested timestamp | string / ISO 8601 (UTC) |
Timings Data Type | ||
connectTime | The proxy connect time | decimal |
firstByteTime | Time to first byte | decimal |
responseTime | The proxy response time | decimal |
Isp Data Type | ||
id | The Autonomous System Identifier | integer |
name | The Autonomous System Name | string |
Location Data Type | ||
cityName | The proxy city name | string |
postalCode | The proxy postal code | string |
latitude | The location latitude co-ordinate | decimal |
longitude | The location longitude co-ordinate | decimal |
accuracyRadius | The radius in km around the specified location | integer |
timezone | The proxy timezone | string / TZ Database |
Country Data Type | ||
code | The proxy country ISO 3166 code | string / ISO 3166-1 |
name | The proxy country name | string |
Continent Data Type | ||
code | The proxy continent code | string |
name | The proxy continent name | string |
Subdivision Data Type | ||
code | The proxy subdivision code | string |
name | The proxy subdivision name | string |
The Proxy data type is the full response you will get when you request a proxy from our Proxy API.
This will contain all the below data types in itself, including geolocation data, ASN data and proxy statistics.
{
"address": "86.125.112.230",
"port": 30897,
"protocol": "Socks4",
"accessType": "Elite",
"isSsl": true,
"uptime": 0.88,
"lastTested": 2024-10-21T23:04:39Z,
"timings": {
"connectTime": 0.506,
"firstByteTime": 0.607,
"responseTime": 1.092
},
"isp": {
"id": 10232,
"name": "Comcast"
},
"location": {
"cityName": "Timișoara",
"postalCode": "300011",
"latitude": 45.7537,
"longitude": 21.7537,
"accuracyRadius": 1,
"timezone": "Europe/Bucharest",
"country": {
"code": "RO",
"name": "Romania"
},
"continent": {
"code": "EU",
"name": "Europe"
},
"subdivisions":
[{
"code": "TM",
"name": "Timis"
}]
}
}
This data type is all about the proxy request times.
The connectTime denotes the time taken to establish the TCP connection between the client and the proxy server using the TCP Handshake. The firstByteTime is the time taken for the client to receive the first byte from the proxy server. Lastly, the responseTime is the full time taken to receive the whole response from the proxy server to the client.
{
...
"timings": {
"connectTime": 0.506,
"firstByteTime": 0.607,
"responseTime": 1.092
}
...
}
This data type provides data on the proxy Internet Service Provider, specifically the Autonomous System Number and the Autonomous System Name.
{
...
"isp": {
"id": 10232,
"name": "Comcast"
}
...
}
This data type contains all of the proxy geolocation details all in one place.
The geolocation data ranges from the proxy country details, the continent details, city details, and extends down to a list of subdivision details.
{
...
"location": {
"cityName": "Timișoara",
"postalCode": "300011",
"latitude": 45.7537,
"longitude": 21.7537,
"accuracyRadius": 1,
"timezone": "Europe/Bucharest",
"country": {
"code": "RO",
"name": "Romania"
},
"continent": {
"code": "EU",
"name": "Europe"
},
"subdivisions":
[{
"code": "TM",
"name": "Timis"
}]
}
...
}
The Country data type will hold the country details of the chosen proxy.
The details entail the Country Name and its respective ISO Country Code.
{
...
"country": {
"code": "RO",
"name": "Romania"
}
...
}
The Continent data type will hold the continent details of the chosen proxy.
The details entail the Continent Name and its respective Continent Code.
{
...
"continent": {
"code": "EU",
"name": "Europe"
}
...
}
This data type consists of a list of proxy subdivisions.
The subdivision details consist of the Subdisivion Code and the Subdisivion Name.
{
...
"subdivisions":
[{
"code": "TM",
"name": "Timis"
}]
...
}
Status Code | Description |
---|---|
Successful Requests | |
200 OK | Proxy retrieved successfully |
Failed Requests | |
400 BadRequest | Proxy request provided was invalid |
404 NotFound | No proxies found for the parameters provided |
429 TooManyRequests | Subscription limit reached |
500 InternalServerError | Server is experiencing technical difficulties |