リストを作成する
Updated:
エンドポイント:
POSThttps://proxy-seller.com/personal/api/v2/{YourApiKey}/resident/list/add
パスパラメータ
名前 | 価値 | 説明 |
|---|---|---|
承認 |
| ご自身のAPIキー |
リクエスト本文
名前 | 種類 | 説明 |
|---|---|---|
タイトル | 文字列 | 作成するリストの名前 |
ホワイトリスト | 文字列 | 認証用のIPアドレス。ログイン認証情報で認証する場合は、空欄のままにしてください。 |
geo | object | リストにGEOデータ(国、地域、都市、ISP)を追加してください。 |
国 | 文字列 | GEOデータベースから選択された国(大文字・小文字の区別が重要です) |
地域 | 文字列 | GEOデータベースから選択された地域(大文字・小文字の区別が重要です) |
都市 | 文字列 | GEOデータベースから選択された都市(大文字・小文字の区別が重要です) |
isp | 文字列 | GEOデータベースから選択されたISP(大文字・小文字の区別が重要です) |
エクスポート | object | ここでは、リスト内のIPアドレスの数と、エクスポート形式(ポート番号およびファイル形式)を指定します。 |
移植版 | 番号 | IPの数(最大1000) |
ext | 文字列 | エクスポートの種類 |
ローテーション | 番号 | 「回転:' -1' は回転なし(固定)、'0' はリクエストごとの回転、'1' から '3600' は秒単位の時間に基づく回転」 |
例
https://proxy-seller.com/personal/api/v2/fj4948ffhg58gh843gh/resident/list/add
{
"title": "myList",
"whitelist": "",
"geo": {
"country": "AD",
"region": "Andorra la Vella",
"city": "Andorra la Vella",
"isp": "Andorra Telecom, S.a.u."
},
"export": {
"ports": 1,
"ext": "csv"
},
"rotation": -1
}回答
{
"status": "success",
"data": {
"id": 21829782,
"title": "myList",
"login": "123123",
"password": "123123",
"whitelist": "",
"rotation": -1,
"geo": [
{
"country": "AD",
"region": "Andorra la Vella",
"city": "Andorra la Vella",
"isp": "Andorra Telecom, S.a.u."
}
],
"export": {
"ports": "1",
"ext": "csv"
}
},
"errors": []
}{
"status": "error",
"data": null,
"errors": [
{
"message": "Error api key",
"code": 503,
"customData": null
},
{
"message": "IP not allowed",
"code": 503,
"customData": null
},
{
"message": "Request limit reached",
"code": 503,
"customData": null
}
]
}{
"status": "error",
"data": null,
"errors": [
{
"message": "IP not allowed",
"code": 503,
"customData": null
}
]
}{
"status": "error",
"data": null,
"errors": [
{
"message": "Tarif not found",
"code": 0,
"customData": null
}
]
}本文にエラーを含むリクエストへの応答
{
"status": "error",
"data": null,
"errors": [
{
"message": "Incorrect IP address 0.0.0.0 entered",
"code": 409,
"customData": null
}
]
}{
"status": "error",
"data": null,
"errors": [
{
"message": "IP 127.0.0.1 already linked",
"code": 0,
"customData": null
}
]
}Same error may be in case with wrong "region", "city", "isp"!
{
"status": "error",
"data": null,
"errors": [
{
"message": "Invalid country (region, city, isp) ISO code",
"code": 400,
"customData": null
},
{
"message": "Invalid country ISO code (400)",
"code": 0,
"customData": null
}
]
}