Developers

Build on BuyProxy

The official Go SDK, a documented REST API and an OpenAPI spec: everything you need to put residential, mobile, ISP and datacenter proxies inside your own product.

MIT-licensed · typed

client := buyproxy.New() // reads BUYPROXY_API_KEY
plans, _ := client.Plans.List(ctx)

res, _ := client.Plans.Generate(ctx, plans[0].ID, &buyproxy.GenerateParams{Country: "US", Count: 5})
resp, _ := res.Proxies[0].HTTPClient().Get("https://api.ipify.org")
Official SDK

Go, fully typed

Generate proxies, check balances, buy bandwidth from your wallet and manage reseller customers in a few lines. Retries, typed errors and net/http helpers are included.

The Go SDK's wallet methods (Wallet.Topup, Wallet.Purchase and Reseller.Pool.Purchase) are in v1.1.0 and later; go get installs the latest release. From any other language, buy with the REST wallet endpoints (POST /v1/wallet/topup, then POST /v1/wallet/purchase). See the full flow in the API reference.

Go

Go

Standard library only · context-aware

$ go get github.com/DishantSinghDev2/buyproxy-go
Dependable by design

Libraries you can put in production

Retries that are safe

Rate-limited calls are retried with back-off, waiting for Retry-After when the API sends one. Writes are never retried blindly — attach an idempotency key and a retry can't double-charge or double-allocate.

Typed errors

Invalid key, out of bandwidth, suspended customer, rate limit — each is its own error type with the status and the API's message.

Built for your stack

Helpers for Go's net/http client, proxy environment variables and curl.

Reseller API

Build your own proxy business

Buy bandwidth into a pool from your wallet, create isolated customers and hand out proxies, all through the same API. The Go SDK covers customers, allocation, usage and line generation. Available on Business plans and above.

  1. 1

    Fund a pool

    Buy GB per product from your wallet, priced like any bandwidth purchase.

  2. 2

    Create customers

    Isolated sub-accounts with their own plans and credentials.

  3. 3

    Allocate bandwidth

    Idempotent, whole-GB allocation from your pool to each customer.

  4. 4

    Generate & monitor

    Produce proxies on their behalf and read per-plan usage to bill them.

  5. 5

    Suspend & reactivate

    Pause a customer instantly if they stop paying — and bring them back.

Scale your data access effortlessly

Residential, ISP, mobile and datacenter proxies in one account: pay per GB or rent dedicated IPs. Premium Residential adds state, city and ASN targeting and a sticky session length you set.

Global IP coverage
HTTP / HTTPS / SOCKS5
Pay-as-you-go credit never expires
BuyProxy on PeerPushBuyProxy - Global residential proxy network for data teams | Product Hunt