IP 목록 만들기
Updated:
엔드포인트:
POSThttps://proxy-seller.com/personal/api/v2/{YourApiKey}/residentsubuser/list/add
경로 매개변수:
이름 | 가치 | 설명 |
|---|---|---|
권한 부여 |
| 개인 API 키 |
요청 본문:
이름 | 유형 | 설명 |
|---|---|---|
title | 문자열 | 생성 중인 목록의 이름 |
화이트리스트 | 문자열 | 인증용 IP. 로그인 자격 증명을 사용하여 인증하려면 비워 두세요. |
geo | 객체 | 목록에 GEO 데이터 추가(국가, 지역, 도시, ISP) |
국가 | 문자열 | GEO 데이터베이스에서 선택한 국가 |
지역 | 문자열 | GEO 데이터베이스에서 선택한 지역 |
도시 | 문자열 | GEO 데이터베이스에서 선택한 도시 |
iSP | 문자열 | GEO 데이터베이스에서 선택한 ISP |
내보내기 | 객체 | 여기에서 목록에 있는 IP 수와 내보내기 유형(포트 번호 및 파일 형식)을 지정합니다 |
포트 | 번호 | IP 수(최대 1000개) |
내선 | 문자열 | 내보내기 유형 |
회전 | 번호 | "'-1'은 회전 없음(고정), '0'은 요청당 회전, '1'~'3600'은 시간 기반 회전(초)입니다 |
패키지_키 | 문자열 | IP 목록을 추가할 하위 사용자 패키지의 키입니다 |
예시:
https://proxy-seller.com/personal/api/v2/fj4948ffhg58gh843gh/residentsubuser/list/add응답:
{
"status": "success",
"data": {
"id": 20483779,
"title": "Andorra Telecom, S.a.u.",
"login": "b5bb75973e04a569",
"password": "nMqaohvXmSk1CF2t",
"whitelist": "",
"rotation": "-1 = rotation, 0 = rotation per request, 1..60 time in seconds",
"geo": [
{
"country": "AD",
"region": "Andorra La Vella",
"city": "Andorra La Vella",
"isp": "Andorra Telecom, S.a.u."
}
],
"export": {
"ports": 1000,
"ext": "txt"
}
},
"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
},
{
"message": "Incorrect IP address 0.0.0.0 entered",
"code": 0,
"customData": null
}
]
}{
"status": "error",
"data": null,
"errors": [
{
"message": "IP 127.0.0.1 already linked",
"code": 0,
"customData": null
},
{
"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
}
]
}{
"status": "error",
"data": null,
"errors": [
{
"message": "410 GONE \"Invalid ISP name\"",
"code": 0,
"customData": null
}
]
}