Referral Info (Public)

Referral Info

Get Referral Code Info

Retrieve the information of a referral code. Contains publicly available information such as referral code promotion codes.

AttributesTypeDescription
referral_codestring

The referral code to use.

promo_typestring

The type of promotion. May be first_time_value_off, first_time_percent_off, always_value_off or always_percent_off. May be set to null.

promo_valueinteger

The value of the promotion. May be 10 or 20. May be set to null if promo_type is null.

Request & Response

ParameterTypeDescription
referral_codeinteger

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",
}