Skip to content

About

Official Proxy302 SDKs for Node.js and Python: add residential proxies to your own product

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Proxy302 SDK

Official SDKs for Proxy302. Use them to add residential proxies to your own product: account and balance, prices, dynamic proxies, static IPs, renewals and usage. Both wrap the Proxy302 Open API v3.

Language Folder Package Install
Node.js 18+ (backend, Electron main process) js/ proxy302-sdk npm install proxy302-sdk
Python 3.9+ python/ proxy302 pip install proxy302

Status: 0.1.0. Both SDKs were tested against the live API on 2026-12-02. They are not on npm or PyPI yet. Until then, install from this repository:

# Node.js
git clone https://github.com/proxy302/proxy302-sdk && cd proxy302-sdk/js && npm install && npm pack
npm install /path/to/proxy302-sdk/js/proxy302-sdk-0.1.0.tgz

# Python
pip install "git+https://github.com/proxy302/proxy302-sdk#subdirectory=python"

The API key is your wallet. Keep it on your server. Never ship it in a client app, a web page or an Electron renderer.

Quick start

import { Proxy302 } from 'proxy302-sdk';

const sdk = new Proxy302({ apiKey: process.env.PROXY302_API_KEY, lang: 'en' });
console.log(await sdk.getBalance());
const proxy = await sdk.getDynamicProxy({ country: 'US' });
console.log(proxy.connection.url); // http://user:pass@host:port
import os
from proxy302 import Proxy302

sdk = Proxy302(os.environ["PROXY302_API_KEY"], lang="en")
print(sdk.get_balance())
print(sdk.get_dynamic_proxy("US").connection.url)

Create an API key on the API keys page of the Proxy302 console.

Guides

  • White-label integration: English · 中文. It covers two setups: you resell with your own key, or your users register through your referral link and use their own keys.
  • Examples: examples/ (Node.js, Python, Electron, and a mock server for trying the SDK without spending).
  • Method lists: js/README.md, python/README.md.

Tests

cd js && npm install && npm test
cd python && PYTHONPATH=src python3 -m unittest discover -s tests

License

MIT

About

Official Proxy302 SDKs for Node.js and Python: add residential proxies to your own product

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages