Referral Info
Get Referral Code Info
Retrieve the information of a referral code. Contains publicly available information such as referral code promotion codes.
Attributes | Type | Description |
---|---|---|
referral_code | string | The referral code to use. |
promo_type | string | The type of promotion. May be |
promo_value | integer | The value of the promotion. May be |
Request & Response
Parameter | Type | Description |
---|---|---|
referral_code | integer | The referral code to use. |
GET https://proxy.webshare.io/api/v2/referral/code/?referral_code={referral_code}
example.py
import requests
response = requests.get("https://proxy.webshare.io/api/v2/referral/code/?referral_code={referral_code}")
response.json()
The commands above return JSON structured like this:
response.json
{
"promo_type": "first_time_value_off",
"promo_value": 10,
"referral_code": "a8b192klkwncvk",
}