Set traffic limits
curl --request PUT \
--url https://app.proxy.doubledata.com/api/v1/proxies/{username}/limits \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"monthly_limit_mb": 50000
}
'const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({monthly_limit_mb: 50000})
};
fetch('https://app.proxy.doubledata.com/api/v1/proxies/{username}/limits', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.proxy.doubledata.com/api/v1/proxies/{username}/limits"
payload := strings.NewReader("{\n \"monthly_limit_mb\": 50000\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}import requests
url = "https://app.proxy.doubledata.com/api/v1/proxies/{username}/limits"
payload = { "monthly_limit_mb": 50000 }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text){
"username": "resi_3f9a1c2b7d4e8f60",
"funding_source": "workspace_balance",
"traffic_limit_mb": 0,
"traffic_limit_used_mb": 0,
"traffic_used_mb": 1834.5,
"daily_limit_mb": 0,
"weekly_limit_mb": 0,
"monthly_limit_mb": 50000,
"traffic_limits_timezone": "UTC",
"daily_used_mb": 120.2,
"weekly_used_mb": 640.8,
"monthly_used_mb": 1834.5,
"daily_resets_at": "2026-11-10T00:00:00Z",
"weekly_resets_at": "2026-11-16T00:00:00Z",
"monthly_resets_at": "2026-12-01T00:00:00Z"
}{
"error": {
"code": "unknown_proxy_ip",
"message": "One or more IPs are not active in this subscription.",
"details": {
"ips": [
"198.51.100.10"
]
},
"request_id": "ad2f824c-46bc-47c6-b276-2bb51a3083b1"
}
}{
"error": {
"code": "unauthorized",
"message": "A valid API key is required.",
"request_id": "ad2f824c-46bc-47c6-b276-2bb51a3083b1"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"details": {
"ips": [
"127.0.0.1"
]
}
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"details": {
"ips": [
"127.0.0.1"
]
}
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"details": {
"ips": [
"127.0.0.1"
]
}
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"details": {
"ips": [
"127.0.0.1"
]
}
}
}Credentials
Set traffic limits
Change one or more limits. Omitted limits keep their value; 0 removes a limit.
PUT
https://app.proxy.doubledata.com/api/v1
/
proxies
/
{username}
/
limits
Set traffic limits
curl --request PUT \
--url https://app.proxy.doubledata.com/api/v1/proxies/{username}/limits \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"monthly_limit_mb": 50000
}
'const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({monthly_limit_mb: 50000})
};
fetch('https://app.proxy.doubledata.com/api/v1/proxies/{username}/limits', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.proxy.doubledata.com/api/v1/proxies/{username}/limits"
payload := strings.NewReader("{\n \"monthly_limit_mb\": 50000\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}import requests
url = "https://app.proxy.doubledata.com/api/v1/proxies/{username}/limits"
payload = { "monthly_limit_mb": 50000 }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text){
"username": "resi_3f9a1c2b7d4e8f60",
"funding_source": "workspace_balance",
"traffic_limit_mb": 0,
"traffic_limit_used_mb": 0,
"traffic_used_mb": 1834.5,
"daily_limit_mb": 0,
"weekly_limit_mb": 0,
"monthly_limit_mb": 50000,
"traffic_limits_timezone": "UTC",
"daily_used_mb": 120.2,
"weekly_used_mb": 640.8,
"monthly_used_mb": 1834.5,
"daily_resets_at": "2026-11-10T00:00:00Z",
"weekly_resets_at": "2026-11-16T00:00:00Z",
"monthly_resets_at": "2026-12-01T00:00:00Z"
}{
"error": {
"code": "unknown_proxy_ip",
"message": "One or more IPs are not active in this subscription.",
"details": {
"ips": [
"198.51.100.10"
]
},
"request_id": "ad2f824c-46bc-47c6-b276-2bb51a3083b1"
}
}{
"error": {
"code": "unauthorized",
"message": "A valid API key is required.",
"request_id": "ad2f824c-46bc-47c6-b276-2bb51a3083b1"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"details": {
"ips": [
"127.0.0.1"
]
}
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"details": {
"ips": [
"127.0.0.1"
]
}
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"details": {
"ips": [
"127.0.0.1"
]
}
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"details": {
"ips": [
"127.0.0.1"
]
}
}
}Authorizations
Your organization's active API key.
Path Parameters
Base proxy username, without targeting or session suffixes.
Pattern:
^[a-zA-Z0-9_-]{1,128}$Body
application/json
MB. Use 0 to remove the limit.
Required range:
x >= 0MB. Use 0 to remove the limit.
Required range:
x >= 0MB. Use 0 to remove the limit.
Required range:
x >= 0MB. Use 0 to remove the limit.
Required range:
x >= 0Response
Updated traffic limits
Available options:
package_bytes, workspace_balance Required range:
x >= 0Required range:
x >= 0Required range:
x >= 0Required range:
x >= 0Required range:
x >= 0Required range:
x >= 0Required range:
x >= 0Required range:
x >= 0Required range:
x >= 0Allowed value:
"UTC"