代理管理器 API

Proxy Manager API

  • 获取代理管理器版本

    API endpoint: GET /api/version Sample Response: {"version":"1.280.385","argv":""}   Shell curl"http://127.0.0.1:22999/api/version" Node.js #!/usr/bin/env noderequire('request-promise')({ url: 'http://127.0.0.1:22999/api/version' }...

  • 获取最新的代理管理器版本

    API endpoint: GET /api/last_version Sample Response: {"version": "1.280.385","newer": false,"versions": [{"ver": "1.280.385","type": "stable","changes": [{"type": "star","text": "Add render option for unblocker and serp zones"}]}]}...

  • 获取目前运行的NodeJS版本

    API endpoint: GET /api/node_version Sample Response: {"current":{"options":{"loose":false,"includePrerelease":false},"loose":false,"raw":"v12.16.1\n","major":12,"minor":16,"patch":1,"prerelease":[],"build":[],"version":"12.16.1"},"...

  • 为基于令牌的身份验证生成令牌

    API endpoint: GET /api/gen_token Sample Response: {"token":"RZD9vaQQaL6En7"}   Shell curl"http://127.0.0.1:22999/api/gen_token" Node.js #!/usr/bin/env noderequire('request-promise')({ url: 'http://127.0.0.1:22999/api/gen_token' })...

  • 白名单IP

    API endpoint: POST /api/add_wip Authorization: TOKEN - Token should be generated using Generate token API POST body ip="1.2.1.2"   Shell curl "http://127.0.0.1:22999/api/add_wip" -H "Authorization: TOKEN" -H "Content-Type: app...

  • 将IP白名单化以访问UI

    API endpoint: POST /api/add_whitelist_ip POST body ip="1.2.1.2"   Shell curl "http://127.0.0.1:22999/api/add_whitelist_ip"-H "Content-Type: application/json" -d "{\"ip\":\"1.2.1.2\"}" Node.js #!/usr/bin/env noderequire('reques...