IPRoyal
This page will guide you on how to generate sticky and rotating proxies, Supported countries, other optional features, White labeling and FAQs regarding IP Royal APIs.
How to generate sticky proxies:
const string = (length) => {
let result = '';
const characters = 'abcdefghijklmnopqrstuvwxyz1234567890';
const charactersLength = characters.length;
for (let i = 0; i < length; i++) {
result += characters.charAt(Math.floor(Math.random() * charactersLength));
}
return result;
};
function proxyGenerationSticky(amount, country, username, password) {
proxy = [];
for (var i = 0; i < parseInt(amount); i++) {
proxy.push(
`iproyal.x.proxiess.com:12321:${username}:${password}-country-${country.toLowerCase()}_session-${string(8,
)}_lifetime-1h\n`,
);
}
return proxy.join('');
}How to generate IPRoyal EU sticky proxies:
How to generate IPRoyal Asia sticky proxies:
How to generate rotating proxies:
How to generate IPRoyal EU rotating proxies:
How to generate IPRoyal Asia rotating proxies:
Supported countries:
Other Optional Features:
White labeling:

FAQ
Headers
Last updated