Create a rotating proxy subuser
curl --request POST \
--url https://api.floppydata.net/v2/proxy/rotating/subusers \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '
{
"name": "crawler-prod"
}
'import requests
url = "https://api.floppydata.net/v2/proxy/rotating/subusers"
payload = { "name": "crawler-prod" }
headers = {
"X-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Api-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: 'crawler-prod'})
};
fetch('https://api.floppydata.net/v2/proxy/rotating/subusers', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"subuser": {
"id": 124,
"name": "crawler-prod",
"username": "USERNAME",
"password": "PASSWORD"
}
}{
"error": {
"code": "invalid_request",
"message": "Invalid request parameters.",
"details": {
"issues": [
{
"path": "country",
"code": "invalid_format",
"message": "Expected a 2-letter country code."
}
]
}
}
}{
"error": {
"code": "unauthorized",
"message": "Unauthorized",
"details": {}
}
}{
"error": {
"code": "insufficient_balance",
"message": "Insufficient proxy traffic balance.",
"details": {}
}
}{
"error": {
"code": "forbidden",
"message": "Forbidden",
"details": {}
}
}{
"error": {
"code": "not_found",
"message": "Rotating proxy credential was not found.",
"details": {}
}
}{
"error": {
"code": "account_not_configured",
"message": "Account is not configured for proxy products.",
"details": {}
}
}{
"error": {
"code": "internal_error",
"message": "Internal Server Error",
"details": {}
}
}{
"error": {
"code": "upstream_error",
"message": "Failed to fetch data from an upstream service.",
"details": {
"upstreamStatus": 503
}
}
}Rotating
Create a Subuser
Creates a named rotating proxy subuser for the authenticated account and returns its proxy username and password. Use this when you need separate proxy identities for workloads, teams, or environments.
POST
https://api.floppydata.net
/
v2
/
proxy
/
rotating
/
subusers
Create a rotating proxy subuser
curl --request POST \
--url https://api.floppydata.net/v2/proxy/rotating/subusers \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '
{
"name": "crawler-prod"
}
'import requests
url = "https://api.floppydata.net/v2/proxy/rotating/subusers"
payload = { "name": "crawler-prod" }
headers = {
"X-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Api-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: 'crawler-prod'})
};
fetch('https://api.floppydata.net/v2/proxy/rotating/subusers', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"subuser": {
"id": 124,
"name": "crawler-prod",
"username": "USERNAME",
"password": "PASSWORD"
}
}{
"error": {
"code": "invalid_request",
"message": "Invalid request parameters.",
"details": {
"issues": [
{
"path": "country",
"code": "invalid_format",
"message": "Expected a 2-letter country code."
}
]
}
}
}{
"error": {
"code": "unauthorized",
"message": "Unauthorized",
"details": {}
}
}{
"error": {
"code": "insufficient_balance",
"message": "Insufficient proxy traffic balance.",
"details": {}
}
}{
"error": {
"code": "forbidden",
"message": "Forbidden",
"details": {}
}
}{
"error": {
"code": "not_found",
"message": "Rotating proxy credential was not found.",
"details": {}
}
}{
"error": {
"code": "account_not_configured",
"message": "Account is not configured for proxy products.",
"details": {}
}
}{
"error": {
"code": "internal_error",
"message": "Internal Server Error",
"details": {}
}
}{
"error": {
"code": "upstream_error",
"message": "Failed to fetch data from an upstream service.",
"details": {
"upstreamStatus": 503
}
}
}Create a subuser only when you need a separate proxy group or replacement credentials. Pass the returned
subuser.id as the optional subuserId when building a rotating proxy connection.Authorizations
Client API key for the authenticated account.
Body
application/json
Human-readable label for the new proxy subuser.
Required string length:
1 - 80Example:
"crawler-prod"
Response
Proxy subuser created.
Show child attributes
Show child attributes
Was this page helpful?