API Overview
The WeProxies API allows you to programmatically manage your proxy subscriptions, monitor usage, and access account information.
Base URL
https://api.weproxies.com
Authentication
All API requests require authentication using a Bearer token.
Getting Your API Token
- Log in to WeProxies Dashboard
- Go to Settings → API Keys
- Generate a new API key
Using the Token
Include the token in the Authorization header:
curl -H "Authorization: Bearer YOUR_API_TOKEN" \
https://api.weproxies.com/api/v1/me
Response Format
All responses are JSON formatted:
{
"data": { ... },
"success": true
}
Error Responses
{
"detail": "Error message here",
"success": false
}
HTTP Status Codes
| Code | Description |
|---|---|
200 | Success |
201 | Created |
400 | Bad Request - Invalid parameters |
401 | Unauthorized - Invalid or missing token |
403 | Forbidden - Insufficient permissions |
404 | Not Found |
422 | Validation Error |
429 | Rate Limited |
500 | Internal Server Error |
Rate Limiting
API requests are rate limited to:
- 100 requests per minute for standard endpoints
- 10 requests per minute for resource-intensive operations
Rate limit headers are included in responses:
X-RateLimit-Limit: 100
X-RateLimit-Remaining: 95
X-RateLimit-Reset: 1699900000
Pagination
List endpoints support pagination:
GET /api/v1/subscriptions?page=1&per_page=20
Response includes pagination metadata:
{
"data": [...],
"pagination": {
"page": 1,
"per_page": 20,
"total": 45,
"total_pages": 3
}
}
Common Parameters
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number (default: 1) |
per_page | integer | Items per page (default: 20, max: 100) |
sort | string | Sort field |
order | string | Sort order: asc or desc |
API Endpoints
Account
| Method | Endpoint | Description |
|---|---|---|
| GET | /api/v1/me | Get current user profile |
| GET | /api/v1/me/balance | Get account balance |