API文档中心

通过我们强大的API将企业级代理解决方案集成到您的系统中

API概览

企业级代理API

我们的RESTful API提供对整个代理基础设施的编程访问,允许与您现有的系统和工作流程无缝集成。

高性能

为企业级操作构建,具有高吞吐量和低延迟响应。

安全访问

企业级安全性,具有API密钥认证和可选的IP白名单。

全面的SDK

提供Python、Node.js、Java、Go等官方客户端库。

认证

所有API请求都需要使用您的API密钥进行认证。您可以在企业仪表板中找到您的API密钥。

curl -X GET "https://api.ProxyNew.com/v1/proxies" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json"
确保您的API密钥安全,切勿在客户端代码中共享。对所有API请求使用服务器到服务器的通信。
API参考

核心API端点

探索我们全面的API端点,用于管理您的代理基础设施

GET

/v1/proxies

Returns a list of all proxies available in your account.

Parameters
Parameter Type Required Description
type string No Filter by proxy type: residential, datacenter, or mobile
country string No Filter by country code (ISO 3166-1 alpha-2)
limit integer No Maximum number of results to return (default: 100, max: 1000)
Example Request
curl -X GET "https://api.ProxyNew.com/v1/proxies?type=residential&country=us&limit=10" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json"
Example Response
{
  "success": true,
  "data": {
    "proxies": [
      {
        "id": "px_123456789",
        "ip": "203.0.113.1",
        "port": 8080,
        "type": "residential",
        "country": "US",
        "city": "New York",
        "state": "NY",
        "asn": 12345,
        "provider": "Example ISP",
        "last_active": "2023-04-01T12:00:00Z",
        "status": "active"
      },
      // Additional proxies...
    ],
    "total": 10,
    "limit": 10,
    "offset": 0
  }
}
POST

/v1/sessions

Creates a new sticky session with specific parameters.

Request Body
Parameter Type Required Description
proxy_type string Yes Type of proxy: residential, datacenter, or mobile
country string Yes Target country code (ISO 3166-1 alpha-2)
session_duration integer No Duration in seconds (default: 600, max: 86400)
Example Request
curl -X POST "https://api.ProxyNew.com/v1/sessions" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "proxy_type": "residential",
    "country": "de",
    "session_duration": 3600
  }'
Example Response
{
  "success": true,
  "data": {
    "session_id": "sess_987654321",
    "proxy": {
      "host": "session.ProxyNew.com",
      "port": 9090,
      "username": "enterprise_user",
      "password": "sess_987654321",
      "type": "residential",
      "country": "DE"
    },
    "created_at": "2023-04-01T14:30:00Z",
    "expires_at": "2023-04-01T15:30:00Z",
    "status": "active"
  }
}
GET

/v1/statistics

Retrieves usage statistics for your account.

Parameters
Parameter Type Required Description
start_date string Yes Start date in ISO 8601 format (YYYY-MM-DD)
end_date string Yes End date in ISO 8601 format (YYYY-MM-DD)
granularity string No Data granularity: hourly, daily, or monthly (default: daily)
Example Request
curl -X GET "https://api.ProxyNew.com/v1/statistics?start_date=2023-03-01&end_date=2023-03-31&granularity=daily" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json"
GET

/v1/account

Retrieves information about your enterprise account.

Example Request
curl -X GET "https://api.ProxyNew.com/v1/account" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json"
Example Response
{
  "success": true,
  "data": {
    "account_id": "acc_123456",
    "company_name": "Enterprise Solutions Inc.",
    "plan": "enterprise",
    "billing_cycle": "monthly",
    "next_billing_date": "2023-05-01",
    "usage": {
      "bandwidth": {
        "used": 1250.5,
        "unit": "GB",
        "limit": "unlimited"
      },
      "requests": {
        "used": 15000000,
        "limit": "unlimited"
      },
      "concurrent_connections": {
        "limit": 1000
      }
    },
    "support_tier": "premium",
    "account_manager": {
      "name": "Jane Smith",
      "email": "[email protected]",
      "phone": "+1 (888) 123-4567"
    }
  }
}
Developer Resources

SDK & Client Libraries

Accelerate your integration with our official client libraries and SDKs

Python SDK

Latest: v2.1.0

Our Python SDK provides a simple and intuitive way to interact with the ProxyNew API in your Python applications.

pip install ProxyNew-python
from ProxyNew import ProxyNew

client = ProxyNew(api_key="YOUR_API_KEY")
proxies = client.proxies.list(country="us", limit=10)

for proxy in proxies:
    print(f"{proxy.ip}:{proxy.port}")

Node.js SDK

Latest: v3.0.2

Our Node.js SDK enables seamless integration with the ProxyNew API in your JavaScript applications.

npm install ProxyNew-node --save
const ProxyNew = require('ProxyNew-node');
const client = new ProxyNew('YOUR_API_KEY');

async function getProxies() {
  const proxies = await client.proxies.list({
    country: 'us',
    limit: 10
  });
  
  proxies.forEach(proxy => {
    console.log(`${proxy.ip}:${proxy.port}`);
  });
}

Java SDK

Latest: v1.8.3

Our Java SDK provides enterprise-grade integration with the ProxyNew API for your Java applications.

// Maven

  com.ProxyNew
  ProxyNew-java
  1.8.3
import com.ProxyNew.ProxyNew;
import com.ProxyNew.model.Proxy;

public class Example {
  public static void main(String[] args) {
    ProxyNew client = new ProxyNew("YOUR_API_KEY");
    
    List proxies = client.proxies().list()
      .country("us")
      .limit(10)
      .execute();
      
    for (Proxy proxy : proxies) {
      System.out.println(proxy.getIp() + ":" + proxy.getPort());
    }
  }
}

PHP SDK

Integrate our proxy services with your PHP applications.

Go SDK

High-performance integration for your Go applications.

.NET SDK

Seamless integration with your .NET and C# applications.

Rust SDK

High-performance, memory-safe integration for Rust applications.

Enterprise Solutions

Enterprise Integration

Custom integration solutions for enterprise clients with advanced requirements

Enterprise Integration Features

Dedicated Infrastructure

Enterprise clients receive dedicated proxy infrastructure with guaranteed resources and performance.

Enhanced Security

Advanced security features including IP whitelisting, multi-factor authentication, and audit logging.

Advanced Analytics

Comprehensive analytics and reporting capabilities for monitoring proxy usage and performance.

Dedicated Support

24/7 dedicated technical support with guaranteed response times and a dedicated account manager.

Request Enterprise Integration

Contact our enterprise team to discuss your custom integration requirements and receive a personalized solution.

Ready to Integrate Our Enterprise Proxy API?

Contact our enterprise solutions team to get your API key and start building