Affiliate API Best Practice
Affiliate API Best Practice
Initial setup
We need the following information from sales/partner:- Partner name: letters only
- Which DNS url they would like to use. This DNS name should be aliased to: brd.superproxy.io.
- Authorized IPs to add to our allowlist. Other IPs will be blocked from invoking our afiiliate APIs.
- List of products they to resell out of this list:
High level affiliate flow
To offer Bright Data proxy services, affiliate should follow this flow.- Setup affiliate account with Bright Data
- For each end user: open user in Bright Data
- For each product sell: setup zone in Bright data (limit: 50 zones per user)
- Each zone will have its own access information set: proxy username and password.
Glossary
Important terminology needed to understand Bright Data’s /affiliate APIs.Partner prefix
Two letters which Bright Data assigns to each partner. All user/account IDs will carry this prefix. In the examples here we used “tp_”.User/Account ID
A unique identified of entity consuming Bright Data services. Each user of affiliate will get a unique Bright Data account ID starting with letter tp_ followed by random letters and number. Example: tp_fd821b5eZone
Under the account, zone represent a configuration set. A collection of product type, amount and other information impacting proxy behavior. Each zone has its own user and password combination, which are the PROXY user and password which the user needs to provide to access the zone’s proxy services.Superproxy
The listener process on Bright Data side which accepts the initial proxy request, and establishes the tunnel to the peer. The superproxy get the request and relays it to the peer.Peer
The actual node identified by the Proxy IP address, which relays the request to the target.Username
The proxy username represented as long hash for security reasons.Examples
In this examples Partner name will be example and DNS url example.proxy.comStep 1: Create user on brightdata side:[PROXY_URL:PROXY_PORT:PROXY_USERNAME:PROXY_PASSWORD]Step 3: Test the proxy zone
- Allocate IPs
- Change Zone Usage Limit
- Create or Change Usage Webhook Settings
- Disable Customer
- Enable Customer
- Generate Proxy Username
- Generate Socks 5 Proxy Username
- Get All Available ASNs
- Get Allocated IPs for a Zone
- Get Amount of Shared ISP IPs by Countries
- Get Available Carriers
- Get Available Countries
- Get Customers
- Get IPs Amount by Carrier
- Get Usage Webhook Info
- Get Zone Usage Limit
- Get Zone Usage Limit Stats
- Refresh IPs
- Remove Allocated IPs
- Sign up Customer in Dedicated DC Zone
- Sign up Customer in Dedicated ISP Zone
- Sign up Customer in Residential Zone
- Sign up Customer in Shared DC Zone
- Sign up Customer in Smart Residential Zone
- Sign up Customer with Shared ISP IPs