🔗Proxy API
Beehox Proxy Integration
Endpoint
Host:
core.beehox.comPort:
878Protocols:
http/https,socks5Test URL:
https://ipv4.icanhazip.com
Use core.beehox.com:878 as the default endpoint for code integration.
Connection formats
You can connect in two formats:
API key format
Login/password format
Format 1: API key
api key: YOUR_API_KEY
host: core.beehox.com
port: 878Format 2: Login / Password
login: YOUR_LOGIN
password: YOUR_PASSWORD
host: core.beehox.com
port: 878API key connection
Where to get API key
For a new account, API key must be created first.
Open
Settingstab ->API Keys.Create and manage keys there (create/revoke/regenerate).
In
Residentialtab, the last created API key is auto-loaded for convenience.
For new accounts, API requests will not work until you create at least one API key in Settings -> API Keys.
API key snippets (HTTP and SOCKS5)
API URL format:
HTTP: http://api:YOUR_API_KEY@core.beehox.com:878
SOCKS5: socks5://api:YOUR_API_KEY@core.beehox.com:878
# HTTP
curl -x "http://api:YOUR_API_KEY@core.beehox.com:878" https://ipv4.icanhazip.com
# SOCKS5
curl -x "socks5://api:YOUR_API_KEY@core.beehox.com:878" https://ipv4.icanhazip.com# HTTP
proxy = "http://api:YOUR_API_KEY@core.beehox.com:878"
r = requests.get("https://ipv4.icanhazip.com", proxies={"http": proxy, "https": proxy}, timeout=30)
print(r.text)
# SOCKS5 (pip install requests[socks])
proxy = "socks5://api:YOUR_API_KEY@core.beehox.com:878"
r = requests.get("https://ipv4.icanhazip.com", proxies={"http": proxy, "https": proxy}, timeout=30)
print(r.text)npm i node-fetch https-proxy-agent socks-proxy-agent
```
import fetch from "node-fetch";
import { HttpsProxyAgent } from "https-proxy-agent";
import { SocksProxyAgent } from "socks-proxy-agent";
const url = "https://ipv4.icanhazip.com";
const httpRes = await fetch(url, { agent: new HttpsProxyAgent("http://api:YOUR_API_KEY@core.beehox.com:878") });
console.log(await httpRes.text());
const socksRes = await fetch(url, { agent: new SocksProxyAgent("socks5://api:YOUR_API_KEY@core.beehox.com:878") });
console.log(await socksRes.text());php
<?php
$url = 'https://ipv4.icanhazip.com';
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_PROXY, 'http://api:YOUR_API_KEY@core.beehox.com:878');
curl_setopt($ch, CURLOPT_PROXYTYPE, CURLPROXY_HTTP);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
echo curl_exec($ch) . PHP_EOL;
curl_close($ch);
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_PROXY, 'socks5://api:YOUR_API_KEY@core.beehox.com:878');
curl_setopt($ch, CURLOPT_PROXYTYPE, CURLPROXY_SOCKS5);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
echo curl_exec($ch) . PHP_EOL;
curl_close($ch);go
package main
import (
"io"
"net/http"
"net/url"
"os"
"golang.org/x/net/proxy"
)
func main() {
target := "https://ipv4.icanhazip.com"
// HTTP
p, _ := url.Parse("http://api:YOUR_API_KEY@core.beehox.com:878")
httpClient := &http.Client{Transport: &http.Transport{Proxy: http.ProxyURL(p)}}
resp, _ := httpClient.Get(target)
defer resp.Body.Close()
io.Copy(os.Stdout, resp.Body)
// SOCKS5
d, _ := proxy.SOCKS5("tcp", "core.beehox.com:878", &proxy.Auth{User: "api", Password: "YOUR_API_KEY"}, proxy.Direct)
tr := &http.Transport{}
tr.Dial = d.Dial
socksClient := &http.Client{Transport: tr}
resp2, _ := socksClient.Get(target)
defer resp2.Body.Close()
io.Copy(os.Stdout, resp2.Body)
}csharp
using System;
using System.Net;
using System.Net.Http;
using MihaZupan;
var target = "https://ipv4.icanhazip.com";
// HTTP
var h1 = new HttpClientHandler { Proxy = new WebProxy("http://api:YOUR_API_KEY@core.beehox.com:878"), UseProxy = true };
var c1 = new HttpClient(h1);
Console.WriteLine(await c1.GetStringAsync(target));
// SOCKS5 (Install-Package MihaZupan.HttpToSocks5Proxy)
var h2 = new HttpClientHandler { Proxy = new HttpToSocks5Proxy("core.beehox.com", 878, "api", "YOUR_API_KEY"), UseProxy = true };
var c2 = new HttpClient(h2);
Console.WriteLine(await c2.GetStringAsync(target));Your app authenticates with api:YOUR_API_KEY.
Proxy verifies key and routes traffic.
Host and port are always
core.beehox.com:878.Copying the latest snippet from
Residentialkeeps settings aligned.
If your integration returns an IP from https://ipv4.icanhazip.com, the proxy connection is configured correctly.
Login / Password connection
Where to get login/password
In dashboard:
Open
Residentialtab.In
Proxy Datablock copy:LoginPasswordHostPort
Login/password snippets (HTTP and SOCKS5)
Login/password URL format:
HTTP: http://YOUR_LOGIN:YOUR_PASSWORD@core.beehox.com:878
SOCKS5: socks5://YOUR_LOGIN:YOUR_PASSWORD@core.beehox.com:878
# HTTP
curl -x "http://YOUR_LOGIN:YOUR_PASSWORD@core.beehox.com:878" https://ipv4.icanhazip.com
# SOCKS5
curl -x "socks5://YOUR_LOGIN:YOUR_PASSWORD@core.beehox.com:878" https://ipv4.icanhazip.comimport requests
# HTTP
proxy = "http://YOUR_LOGIN:YOUR_PASSWORD@core.beehox.com:878"
r = requests.get("https://ipv4.icanhazip.com", proxies={"http": proxy, "https": proxy}, timeout=30)
print(r.text)
# SOCKS5 (pip install requests[socks])
proxy = "socks5://YOUR_LOGIN:YOUR_PASSWORD@core.beehox.com:878"
r = requests.get("https://ipv4.icanhazip.com", proxies={"http": proxy, "https": proxy}, timeout=30)
print(r.text)
For Node.js, PHP, Go, C# use the same snippets from the API section and replace:
api:YOUR_API_KEY -> YOUR_LOGIN:YOUR_PASSWORD
How login/password connection works
Your app authenticates with residential proxy credentials (
Login/Password).Proxy uses these credentials for access and routing.
Host and port are provided in
Residential -> Proxy Data.
Use login/password mode when you want static residential credentials from the Proxy Data block.
Proxy targeting settings (geo/state/city/provider/rotation/session)
Where to configure:
Open
Residentialtab.In
Proxy Settingsblock, set:Country(geo)StateCityProvider(ISP)RotationSession limit
How it works:
These settings are applied automatically to generated proxy credentials.
The code snippet in
Residentialis auto-updated with your latest selected settings.You do not need to manually append geo/session parameters in code if you copy the current snippet from dashboard.
Best practice:
First set targeting/rotation/session in
Residential.Then copy fresh snippet and use it in your app.
If you change settings later, copy snippet again to keep parameters in sync.
After changing geo/rotation/session settings, always copy a fresh snippet. Old copied strings can use outdated targeting.
How to add settings into code
Best practice: store credentials in environment variables.
Example .env:
PROXY_HOST=core.beehox.com
PROXY_PORT=878
PROXY_API_KEY=YOUR_API_KEY
PROXY_LOGIN=YOUR_LOGIN
PROXY_PASSWORD=YOUR_PASSWORD
Build proxy URL in code:
http://${LOGIN}:${PASSWORD}@${HOST}:${PORT}
Quick check before integration:
curl -x "http://api:YOUR_API_KEY@core.beehox.com:878" https://ipv4.icanhazip.com
Expected result: request succeeds and returns a public IP.
Troubleshooting
407-> check login/password or API key formattimeout -> check outbound access to
core.beehox.com:878
407 Proxy Authentication Required means credentials are invalid or passed in the wrong format.
Timeout errors usually mean network/firewall restrictions or temporary upstream issues. Add retries with backoff.
Common mistakes
Wrong API format: use
api:YOUR_API_KEY(notYOUR_API_KEY:x).Mixing methods: for API mode use only
api+ API key, not dashboard login/password.Wrong host/port: use
core.beehox.com:878.Credentials not URL-safe: if password has special chars, URL-encode it.
Hardcoded secrets in repository: keep keys in
.env, never commit real credentials.
Never commit real API keys or proxy passwords to Git repositories.
Was this helpful?
Still need help? Share an idea