API Reference

REST API Reference

Manage proxy zones, view usage stats, and control IP rotation programmatically. Base URL: https://api.Iphtml.io/v2

Authentication

All API requests are authenticated using your API key passed as a Bearer token in the Authorization header.

HTTP Header
Authorization: Bearer YOUR_API_KEY

Find your API key in the Dashboard under the API section.

Rate Limits

The Management API is limited to 60 requests per minute. Exceeding the limit returns HTTP 429.

Endpoint TypeLimitWindow
Standard60 req1 min
Traffic Logs10 req1 min
Balance Check30 req1 min

Error Codes

StatusDescription
200OK — Success
400Bad Request — invalid parameters
401Unauthorized — invalid or missing API key
404Not Found — resource does not exist
429Too Many Requests — rate limit exceeded
500Internal Server Error — contact support

Get Proxy Credentials

GET /v2/proxy/credentials

Returns your proxy username, password, and all available endpoints for your account.

Response Example

200 OK — application/json
{
  "username":  "user_a1b2c3",
  "password":  "s3cr3tpass",
  "endpoints": {
    "residential_http":  "server.iphtml.biz:15000",
    "residential_socks5": "server.iphtml.biz:15001",
    "datacenter_http":   "stc.iphtml.biz:15000",
    "mobile_http":       "stc.iphtml.biz:15001",
    "static_http":       "stc.iphtml.io:15000"
  }
}

List Available Countries

GET /v2/proxy/countries

Returns all countries available for geo-targeting, including ISO codes and available IP counts.

Response Example

200 OK
{
  "countries": [
    { "code": "US", "name": "United States", "ip_count": 15200000 },
    { "code": "GB", "name": "United Kingdom", "ip_count": 3100000  },
    { "code": "DE", "name": "Germany",        "ip_count": 2500000  }
    // ... 220+ total
  ],
  "total": 224
}

Usage Statistics

GET /v2/account/usage

Returns account traffic usage, balance, and request statistics.

Query Parameters

ParameterTypeRequiredDescription
fromstringoptionalStart date YYYY-MM-DD
tostringoptionalEnd date YYYY-MM-DD
proxy_typestringoptionalresidential | datacenter | mobile | static
200 OK
{
  "balance_gb":    42.5,
  "used_gb":       7.5,
  "total_requests": 148320,
  "success_rate":  97.3,
  "period": {
    "from": "2025-01-01",
    "to":   "2025-01-31"
  }
}