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")Create an API key
Sign up, then open Dashboard → API keys. Personal keys manage your own bandwidth; reseller keys manage your customers.
Get a key2Install the Go SDK
go get github.com/DishantSinghDev2/buyproxy-go. It reads BUYPROXY_API_KEY from the environment.
Go SDK docs3Generate a proxy
One call returns ready-to-use proxy lines: rotating or sticky, targeted by country, state and city (state and city on Premium Residential).
Read the API docsGo, 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.
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.
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
Fund a pool
Buy GB per product from your wallet, priced like any bandwidth purchase.
- 2
Create customers
Isolated sub-accounts with their own plans and credentials.
- 3
Allocate bandwidth
Idempotent, whole-GB allocation from your pool to each customer.
- 4
Generate & monitor
Produce proxies on their behalf and read per-plan usage to bill them.
- 5
Suspend & reactivate
Pause a customer instantly if they stop paying — and bring them back.
Everything in one place
Go SDK guide
Auth, targeting, payments, reseller flows, errors and testing in Go.
REST API reference
Every endpoint, parameter and response — personal and reseller APIs.
OpenAPI spec
Generate your own client or import into Postman and Insomnia.
Open source on GitHub
The Go SDK is MIT licensed. Issues and PRs welcome.
Changelog
What shipped and when: API, SDK and dashboard.
Status
Live checks of the website, proxy line generation and payments.
Help Center
Guides for accounts, billing and everyday proxy questions.
Talk to us
Integration questions, enterprise needs or feedback — a human reads every message.
Blog
Scraping guides, proxy best practices and release notes.
