Real code that runs. Paste your API key + proxy password, hit go. Every snippet has been tested against the live API.
| Language | Folder | Notable |
|---|---|---|
| Python | python/ |
requests + httpx |
| Node.js | nodejs/ |
fetch + axios |
| Go | go/ |
net/http |
| PHP | php/ |
cURL |
| curl | curl/ |
Shell one-liners — fastest way to sanity-check |
Each folder has 3 examples:
basic_proxy— minimal HTTP/SOCKS5 proxy usage. The simplest possible "make a request through NikaProxy" snippet.scrape_api— the REST scrape API. Send a URL, get JSON back, no proxy plumbing needed. Best for one-shot scraping.sticky_session— bind a session ID so consecutive requests reuse the same residential exit IP. Required for multi-request flows like login → scrape protected page.
- Sign up at nikaproxy.com — 100 MB free credit
- Open the dashboard → API & Credentials page
- Copy two things:
- API key — used as the username on the proxy AND as
Authorization: Beareron the scrape API - Proxy password — used only on the HTTP/SOCKS5 proxy paths
- API key — used as the username on the proxy AND as
Every example reads these from environment variables so you never commit them by accident:
export NIKA_API_KEY="nka_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
export NIKA_PROXY_PASSWORD="px_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"http://<api-key>-country-<CC>-session-<id>:<password>@proxy.nikaproxy.com:8080
└──── username with optional modifiers ────┘ └──── credentials ────┘ └── gateway ──┘
Optional username modifiers (mix and match, separated by -):
| Token | What it does |
|---|---|
country-US |
Force a US exit (any ISO-3166 alpha-2 code; default = auto) |
session-mysession |
Sticky session ID — same value → same exit IP |
session-mysession-min-30 |
Sticky for 30 minutes (5/10/15/20/60 supported) |
profile-chrome_131 |
TLS Pro / Ultra — pin the TLS fingerprint profile |
coord-win11 |
TLS Ultra — coordinate L4 + L7, force a Windows 11 exit |
coord-mobile |
TLS Ultra — force a mobile exit (android / iOS) |
SOCKS5 lives at :1080 on the same hostname with the same auth pattern.
MIT — fork, modify, copy into your own SDK, do whatever's useful.
- Discord: discord.gg/xeeDxZMRh — community + dev questions
- Telegram: @Nikaproxy_support — 1-on-1 support
- Docs: nikaproxy.com/docs
- Issues against this repo: bug reports + sample requests welcome