APIAPI и интеграцииAPI ShardXModels

Models

ActiveProxyItemobjectShow propertiesHide properties
ipstringrequired
usernamestringrequired
passwordstringrequired
http_portintegerrequired
socks_portintegerrequired
untilstringrequired

Строка даты ISO 8601

statusstringrequired
signaturestring· nullableoptional

подпись p0f, назначенная IP-адресу, ноль, если не установлена

ApiErrorobjectShow propertiesHide properties
successbooleanrequired
messagestringrequired
rejectedbooleanoptional

Операции с саб-пользователями: true, если провайдер отклонил операцию и ничего не изменилось

idempotency_statestring · enumoptional

Только в 409 от проверки Idempotency-Key

Possible values:in_progressunknown
order_idintegeroptional

Только в 502 от покупки и add-bandwidth: оплаченный заказ

refundedbooleanoptional

Только в 502 от покупки и add-bandwidth: true, если оплата вернулась на кошелёк, false, если возврат ещё не прошёл (обратитесь в поддержку)

AddonLineobject

Одна строка дополнения, сохраненная в заказе

Show propertiesHide properties
addon_keystringoptional
catalog_idintegeroptional
qtyintegeroptional

Активные единицы за текущий период

price_per_unitintegeroptional

Цена за единицу в центах на момент покупки

pendingobject· nullableoptional

Изменение запланировано на следующее продление или null

Show propertiesHide properties
actionstring · enumoptional
Possible values:canceldowngrade
next_qtyintegeroptional

Целевое количество после понижения

PurchaseRequestDcIspobject

Покупка для Datacenter/ISP; поле location обязательно.

Show propertiesHide properties
productstring · enumrequired
Possible values:Datacenter ProxyISP Proxy
locationstringrequired
cyclestringrequired
quantityinteger· min: 1· max: 100000· default: 1optional
promo_codestring· nullableoptional
auto_renewalboolean· default: falseoptional
addonsobject · CreateOrderAddonRequest[]· nullableoptional

Дополнения, прикрепляемые во время покупки, например p0f_slots для DC или ISP.

Show propertiesHide properties
addon_keystringrequired
qtyinteger· min: 1required
PurchaseRequestResidentialStandardobject

Покупка для Standart Residential Proxy; location не требуется; цикл фиксирован (lifetime).

Show propertiesHide properties
productstring · enumrequired
Possible values:Standart Residential Proxy
quantityinteger· min: 1· max: 100000· default: 1optional
promo_codestring· nullableoptional
addonsobject · CreateOrderAddonRequest[]· nullableoptional

Дополнения, прикрепляемые во время покупки, например p0f_slots для DC или ISP.

Show propertiesHide properties
addon_keystringrequired
qtyinteger· min: 1required
PurchaseRequestResidentialPremiumobject

Покупка для Premium Residential Proxy; location не требуется; цикл фиксирован (lifetime).

Show propertiesHide properties
productstring · enumrequired
Possible values:Premium Residential Proxy
quantityinteger· min: 1· max: 100000· default: 1optional
promo_codestring· nullableoptional
addonsobject · CreateOrderAddonRequest[]· nullableoptional

Дополнения, прикрепляемые во время покупки, например p0f_slots для DC или ISP.

Show propertiesHide properties
addon_keystringrequired
qtyinteger· min: 1required
PurchaseRequestResidentialUnmeteredobject

Покупка для Unmetered Residential proxy; поддерживает авто-продление.

Show propertiesHide properties
productstring · enumrequired
Possible values:Unmetered Residential proxy
cyclestringrequired
promo_codestring· nullableoptional
auto_renewalboolean· default: falseoptional
addonsobject · CreateOrderAddonRequest[]· nullableoptional

Дополнения, прикрепляемые во время покупки, например p0f_slots для DC или ISP.

Show propertiesHide properties
addon_keystringrequired
qtyinteger· min: 1required
PurchaseRequestobjectShow propertiesHide properties
productstringrequired
locationstring· nullableoptional
cyclestringrequired
quantityinteger· min: 1· max: 100000· default: 1optional
promo_codestring· nullableoptional
auto_renewalboolean· default: falseoptional
addonsobject · CreateOrderAddonRequest[]· nullableoptional

Дополнения, прикрепляемые во время покупки, например p0f_slots для DC или ISP.

Show propertiesHide properties
addon_keystringrequired
qtyinteger· min: 1required
PurchaseResponseobjectShow propertiesHide properties
successbooleanrequired
messagestringrequired
order_idintegerrequired
ProductWithCyclesobjectShow propertiesHide properties
namestringrequired
descriptionstring· nullableoptional
locationstring· nullableoptional
cyclesstring[]required
AvailableCountResponseobjectShow propertiesHide properties
countrystringrequired
productstringrequired
amountintegerrequired
ApiMeResponseobjectShow propertiesHide properties
emailstringrequired
active_ordersintegerrequired
wallet_balanceintegerrequired

в центах

ApiSuccessobjectShow propertiesHide properties
successbooleanrequired
AvailableCountRequestobjectShow propertiesHide properties
countrystringrequired
productstringrequired
AddBandwidthRequestobjectShow propertiesHide properties
amountintegerrequired

Объём в ГБ (1 ГБ = 1 073 741 824 байт), не больше 100 000

promo_codestring· nullableoptional
GetSubUsersRequestobjectShow propertiesHide properties
offsetintegeroptional

Смещение (по умолчанию 0)

limitintegeroptional

Размер страницы (по умолчанию 20)

EditSubUserPayloadobjectShow propertiesHide properties
namestringrequired
CreateSubUserPayloadobject

Нужно указать data или data_bytes; при обоих используется data_bytes.

Show propertiesHide properties
proxy_typestringrequired
namestringrequired
dataintegeroptional

Объём в ГБ (1 ГБ = 1 073 741 824 байт), не больше 100 000

data_bytesinteger · int64optional

Объём в байтах (точно; приоритетнее data), не больше 100 000 ГБ

ChangeSubUserPasswordPayloadobjectShow propertiesHide properties
proxy_typestringrequired
ModifyTrafficPayloadobject

Нужно указать data или data_bytes; при обоих используется data_bytes.

Show propertiesHide properties
proxy_typestringrequired
dataintegeroptional

Объём в ГБ (1 ГБ = 1 073 741 824 байт), не больше 100 000

data_bytesinteger · int64optional

Объём в байтах (точно; приоритетнее data), не больше 100 000 ГБ

AnalyticsSeriesobject

Ответ провайдера без изменений. Его вид зависит от kind: `overall`: `results` содержат интервалы времени `{timestamp, data, requests}`, пустые интервалы приходят с нулями; на коротком окне интервалы почасовые, на длинном посуточные; domains: results содержат хосты {hostname, data, requests} по убыванию data; count нет; * connections: results содержат открытые сейчас соединения {user_id, package_id, server_ip, connections}; периода (timezone, start, end) нет.

Show propertiesHide properties
countintegeroptional

Всего результатов (overall)

nextstring· nullableoptional

Ссылка на следующую страницу

previousstring· nullableoptional

Ссылка на предыдущую страницу

timezonestringoptional
startstring · date-timeoptional
endstring · date-timeoptional
resultsobject[]optional
Show propertiesHide properties
timestampstring · date-timeoptional

Начало интервала (overall)

hostnamestringoptional

Хост назначения (domains)

datainteger · int64optional

Байты (overall, domains)

requestsintegeroptional

Запросы (overall, domains)

user_idstringoptional

ID аккаунта или саб-пользователя (connections)

package_idstringoptional

ID пакета (connections)

server_ipstringoptional

IP шлюза, на котором открыты соединения (connections)

connectionsintegeroptional

Открытых соединений (connections)

SubUserOrderStateobject· nullable

Состояние квоты саб-пользователя ПОСЛЕ операции (null, если провайдер не вернул заказ)

Show propertiesHide properties
proxy_passwordstringoptional
datainteger · int64optional

Выделенная квота в байтах

data_spentinteger · int64optional

Израсходовано байт

data_remaininteger · int64optional

Осталось байт (при перерасходе может быть отрицательным)

CountryobjectShow propertiesHide properties
codestring· max length: 10required

Код страны ISO

namestring· max length: 255required

Название страны

RegionobjectShow propertiesHide properties
codestring· max length: 10required

Код региона или штата

namestring· max length: 255required

Название региона или штата

countryobject · Countryrequired
Show propertiesHide properties
codestring· max length: 10required

Код страны ISO

namestring· max length: 255required

Название страны

CityobjectShow propertiesHide properties
codestring· max length: 50required

Код города, обычно в формате slug

namestring· max length: 255required

Название города

countryobject · Countryrequired
Show propertiesHide properties
codestring· max length: 10required

Код страны ISO

namestring· max length: 255required

Название страны

regionobject· nullableoptional
Show propertiesHide properties
codestring· max length: 10required

Код региона

namestring· max length: 255required

Название региона

PagedCountriesResponseobjectShow propertiesHide properties
countintegerrequired
resultsobject · Country[]required
Show propertiesHide properties
codestring· max length: 10required

Код страны ISO

namestring· max length: 255required

Название страны

PagedRegionsResponseobjectShow propertiesHide properties
countintegerrequired
resultsobject · Region[]required
Show propertiesHide properties
codestring· max length: 10required

Код региона или штата

namestring· max length: 255required

Название региона или штата

countryobject · Countryrequired
Show propertiesHide properties
codestring· max length: 10required

Код страны ISO

namestring· max length: 255required

Название страны

PagedCitiesResponseobjectShow propertiesHide properties
countintegerrequired
resultsobject · City[]required
Show propertiesHide properties
codestring· max length: 50required

Код города, обычно в формате slug

namestring· max length: 255required

Название города

countryobject · Countryrequired
Show propertiesHide properties
codestring· max length: 10required

Код страны ISO

namestring· max length: 255required

Название страны

regionobject· nullableoptional
Show propertiesHide properties
codestring· max length: 10required

Код региона

namestring· max length: 255required

Название региона

IspobjectShow propertiesHide properties
codestringrequired

Код интернет-провайдера, обычно в формате slug

namestringrequired

Имя интернет-провайдера

countryobject · Countryrequired
Show propertiesHide properties
codestring· max length: 10required

Код страны ISO

namestring· max length: 255required

Название страны

regionobject· nullableoptional
Show propertiesHide properties
codestringrequired

Код региона

namestringrequired

Название региона

PagedIspsResponseobjectShow propertiesHide properties
countintegerrequired
resultsobject · Isp[]required
Show propertiesHide properties
codestringrequired

Код интернет-провайдера, обычно в формате slug

namestringrequired

Имя интернет-провайдера

countryobject · Countryrequired
Show propertiesHide properties
codestring· max length: 10required

Код страны ISO

namestring· max length: 255required

Название страны

regionobject· nullableoptional
Show propertiesHide properties
codestringrequired

Код региона

namestringrequired

Название региона

CreateOrderAddonRequestobjectShow propertiesHide properties
addon_keystringrequired
qtyinteger· min: 1required

Обновлено

На этой странице