Send Your First Request
ProxiesSend your first request through Unlimited Residential Proxies with copy-paste examples.
You need your proxy Username, Password, and Host (IP or DNS) from the Proxy configuration tab. See Configure.
Replace the placeholders before you run any example:
| Placeholder | Where to get it |
|---|---|
YOUR_USERNAME | API credentials → Username |
YOUR_PASSWORD | API credentials → Password |
YOUR_PROXY_HOST | Generated endpoint host (IP or DNS) |
PORT | Port from the endpoint (for example 12000) |
Code examples
curl -x "http://YOUR_USERNAME:YOUR_PASSWORD@YOUR_PROXY_HOST:PORT" \
"http://ip-api.com/json"import pprint
import requests
host = "YOUR_PROXY_HOST"
port = 12000
username = "YOUR_USERNAME"
password = "YOUR_PASSWORD"
proxy_url = f"http://{username}:{password}@{host}:{port}"
proxies = {
"http": proxy_url,
"https": proxy_url,
}
url = "http://ip-api.com/json"
response = requests.get(url, proxies=proxies, timeout=60)
pprint.pprint(response.json())import axios from "axios";
import { HttpsProxyAgent } from "https-proxy-agent";
const host = "YOUR_PROXY_HOST";
const port = 12000;
const username = "YOUR_USERNAME";
const password = "YOUR_PASSWORD";
const proxyUrl = `http://${username}:${password}@${host}:${port}`;
const agent = new HttpsProxyAgent(proxyUrl);
const { data } = await axios.get("http://ip-api.com/json", {
httpAgent: agent,
httpsAgent: agent,
proxy: false,
timeout: 60000,
});
console.log(data);<?php
$host = "YOUR_PROXY_HOST";
$port = 12000;
$username = "YOUR_USERNAME";
$password = "YOUR_PASSWORD";
$proxy = "http://{$username}:{$password}@{$host}:{$port}";
$ch = curl_init("http://ip-api.com/json");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_PROXY, $proxy);
curl_setopt($ch, CURLOPT_TIMEOUT, 60);
$response = curl_exec($ch);
curl_close($ch);
echo $response;package main
import (
"fmt"
"io"
"net/http"
"net/url"
)
func main() {
proxyURL, err := url.Parse("http://YOUR_USERNAME:YOUR_PASSWORD@YOUR_PROXY_HOST:12000")
if err != nil {
panic(err)
}
client := &http.Client{
Transport: &http.Transport{Proxy: http.ProxyURL(proxyURL)},
}
resp, err := client.Get("http://ip-api.com/json")
if err != nil {
panic(err)
}
defer resp.Body.Close()
body, err := io.ReadAll(resp.Body)
if err != nil {
panic(err)
}
fmt.Println(string(body))
}Output
{
"status": "success",
"country": "Brazil",
"countryCode": "BR",
"region": "MG",
"regionName": "Minas Gerais",
"city": "Mateus Leme",
"zip": "35670",
"lat": -20.0165,
"lon": -44.4339,
"timezone": "America/Sao_Paulo",
"isp": "GOX INTERNET",
"org": "GOX S.A",
"as": "AS263623 GOX S.A.",
"query": "177.185.251.184"
}query is the exit IP. Country and city can vary when country targeting is set to Any.
Was this page helpful?