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 docsLibraries you can put in production
Retries that are safe
Rate limits are retried using Retry-After. 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 in bulk, create isolated customers and hand out proxies, all through the same API and the Go SDK. Available on Business plans and above.
- 1
Fund a pool
Buy GB per product by card or crypto, priced like a normal top-up.
- 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 health of the proxy network, payments and the website.
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.
