Copy-paste examples for using Thordata proxy infrastructure and web data APIs.
Examples cover:
- Residential proxies
- Mobile proxies
- Static ISP proxies
- Datacenter proxies
- SERP API
- Web Unlocker
- Web Scraper API
- Geo-targeting
- Sticky sessions
- Concurrent requests
- Error handling
- Start with Thordata
- Open Dashboard
- Documentation
- Python SDK
- Proxy Products
- Static ISP Proxies
- SERP API
- Web Scraper API
- Webpage
- Scraping Browser
Clone the repository:
git clone https://github.com/Thordata/thordata-proxy-examples.git
cd thordata-proxy-examplesInstall the Python SDK:
pip install thordata-sdkFor Python examples:
cp .env.example .envSet your credentials in .env:
THORDATA_SCRAPER_TOKEN=your_scraper_token
THORDATA_RESIDENTIAL_USERNAME=your_username
THORDATA_RESIDENTIAL_PASSWORD=your_residential_passwordNever commit .env or real credentials.
| Language | Location |
|---|---|
| Python | examples/python/ |
| Node.js | examples/nodejs/ |
| Go | examples/go/ |
| Java | examples/java/ |
| curl | examples/curl/ |
| Use case | Examples |
|---|---|
| Basic proxy request | examples/python/01_simple_ip_check.py |
| Geo-targeting | examples/python/02_geo_targeting.py |
| Sticky session | examples/python/03_sticky_session.py |
| Concurrent requests | examples/python/04_concurrent_requests.py |
| Product comparison | examples/python/05_different_products.py |
| Async geo-targeting | examples/python/06_async_geo_targeting.py |
| Error handling | examples/python/07_error_handling.py |
| curl proxy usage | examples/curl/ |
| Go proxy usage | examples/go/ |
| Node.js proxy usage | examples/nodejs/ |
| Java proxy usage | examples/java/ |
| Product | Typical use |
|---|---|
| Residential Proxies | Localized access and sensitive web scraping |
| Mobile Proxies | Mobile-network and carrier-specific workflows |
| Static ISP Proxies | Stable identity and long sessions |
| Datacenter Proxies | High-speed and high-volume requests |
Review the product documentation for current availability, pricing, limits, and supported targeting options.
Use the examples and official documentation for:
The examples use environment variables for credentials.
Common variables include:
THORDATA_SCRAPER_TOKEN=your_scraper_token
THORDATA_PUBLIC_TOKEN=your_public_token
THORDATA_PUBLIC_KEY=your_public_key
THORDATA_RESIDENTIAL_USERNAME=your_residential_username
THORDATA_RESIDENTIAL_PASSWORD=your_residential_passwordOnly set the variables required by the example you are running. Do not place real credentials directly in source files.
Python:
cd examples/python
python 01_simple_ip_check.pycurl:
bash examples/curl/01_basic_proxy.shGo:
cd examples/go
go run ./simple_ip_checkNode.js:
cd examples/nodejs
node 01_simple_ip_check.jsJava:
cd examples/java
javac SimpleIpCheck.java
java SimpleIpCheckSome examples require product-specific credentials or account permissions. Check the example comments and the official documentation before running them.
Use these examples only for lawful and authorized web data workflows.
- Respect website terms and access restrictions.
- Do not commit API tokens, usernames, or passwords.
- Do not use the examples to bypass access controls.
- Follow applicable privacy and data protection requirements.
- Respect rate limits and your account plan.
- Review the applicable product terms before collecting or redistributing data.
- Thordata Python SDK
- Thordata MCP
- Thordata LangChain Tools
- Thordata n8n Integration
- Thordata Cookbook
- Thordata Organization
For technical questions, open an issue in this repository.
For account, product, licensing, or commercial questions, contact the Thordata team.
MIT License. See LICENSE.