廣州上宏網站建設汽車行業(yè)網站建設
1、使用瀏覽器
1.1、獲取當前IP(限制 1200次 /小時)
用瀏覽器訪問?http://ip.hahado.cn/current-ip?輸入用戶名和密碼
[{"ip": "180.102.181.64","ttl": 262.87515091896057}
]
- "ip": 字段是當前的外網IP ("ip":"null" 正在切換中,暫時沒有IP)
- "ttl": 字段是ip可以使用的剩余時間(秒)
1.2、手動切換IP(限制 180次 /小時,間隔>20秒)
用瀏覽器訪問?http://ip.hahado.cn/switch-ip?輸入用戶名和密碼
[{"last_ip": "180.102.181.64","result": true}
]
- "last_ip": 切換前的IP
- "result": 結果 true (成功) false (失敗)
1.3、獲取統(tǒng)計(限制 100次 /小時)
http://ip.hahado.cn/ip-status?輸入用戶名和密碼
[{"all_ip": [["121.237.160.177","2017-03-23 14:03:39"],["49.65.179.204","2017-03-23 13:48:19"],["121.237.163.65","2017-03-23 12:56:20"]],"all_ip_exprie_tm": 7200,"changeip_time": 300,"ip": "121.237.160.177","last_ip": "117.62.144.170"}
]
- "all_ip": 曾經使用過的IP和時間
- "last_ip": 切換前的IP
- "ip": 當前的IP
- "changeip_time": 自動切換IP間隔(秒)如果為0 => 關閉
- "all_ip_exprie_tm": IP不允許在xxx(秒)以內重復
2、使用curl
2.1、 獲取當前IP(限制 1200次 /小時)
curl -u username:password http://ip.hahado.cn/current-ip[{"ip": "180.102.181.64","ttl": 262.87515091896057}
]
- username : 用戶名
- password : 密碼
- "ip": 字段是當前的外網IP ("ip":"null" 正在切換中,暫時沒有IP)
- "ttl": 字段是ip可以使用的剩余時間(秒), -1 表示永遠不過期(需要手動切換)
2.2、手動切換IP(限制 180次 /小時,間隔>20秒)
curl -u username:password http://ip.hahado.cn/switch-ip[{"last_ip": "180.102.181.64","result": true}
]
- username : 用戶名
- password : 密碼
- "last_ip": 切換前的IP
- "result": 結果 true (成功) false (失敗)
2.3、獲取統(tǒng)計(限制 100次 /小時)
curl -u username:password http://ip.hahado.cn/ip-status[{"all_ip": [["121.237.160.177","2017-03-23 14:03:39"],["49.65.179.204","2017-03-23 13:48:19"],["121.237.163.65","2017-03-23 12:56:20"]],"all_ip_exprie_tm": 7200,"changeip_time": 300,"ip": "121.237.160.177","last_ip": "117.62.144.170"}
]
- username : 用戶名
- password : 密碼
- "all_ip": 曾經使用過的IP和時間
- "last_ip": 切換前的IP
- "ip": 當前的IP
- "changeip_time": 自動切換IP間隔(秒)如果為0 => 關閉
- "all_ip_exprie_tm": IP不允許在xxx(秒)以內重復