This repository provides a collection of code examples for programmatically accessing the PacketStream residential proxy network. You'll find sample code and Docker configurations to help you integrate PacketStream proxies into your projects.
To get started, you'll need to sign up for a PacketStream account and obtain an API key. You can sign up for an account at packetstream.io. Once you have an account, you can find your API key in the PacketStream dashboard.
Each example is self-contained and can be run independently. To run an example, you'll need to install the required dependencies or use the provided Docker configuration.
# Clone the repository
git clone git@github.com:packetstream/packetstream-examples.git
# Change to the project directory
cd packetstream-examples
# Change to the example directory for the language you're interested in
cd go
# Run the example with Docker
PACKETSTREAM_PROXY_URLS="socks5h://username:auth_key@proxy.packetstream.io:31113,https://username:auth_key@proxy.packetstream.io:31111" ./run.sh
# Or run the example natively
PACKETSTREAM_PROXY_URLS="socks5h://username:auth_key@proxy.packetstream.io:31113,https://username:auth_key@proxy.packetstream.io:31111" go run main.goPACKETSTREAM_PROXY_URLS: A comma-separated list of URLs of PacketStream proxies you want to use. Replaceusernameandauth_keywith your PacketStream username and auth key respectively.
Contributions to this repository are welcome. If you have an example or improvement you'd like to share, feel free to open a pull request.
Caution
Please be careful not to expose hard-coded PacketStream credentials in your contributions. This is a public repository, and your credentials could be exposed to the public if you include them in your code.
Feel free to include your referral link in your pull request if you would like to be credited for your contribution.
This repository is licensed under the MIT License. Public contributions to this repository are subject to the same license. See the LICENSE file for more information.
If you encounter any issues or have questions about using PacketStream proxies, please contact PacketStream support.
PacketStream is a residential proxy network that enables businesses to access the web through a pool of residential IPs. With PacketStream, you can gather data, scrape websites, and perform other web-related tasks with requests originating from real residential ISPs all over the world.
For more information, visit PacketStream.io.