Set country for datacenter proxies
# apify-platform
l
Is it possible to set a country for datacenter proxies? I currently have 30 Apify datacenter IPs which I think are from the US. I'm specifically looking to use EU proxies, country doesn't matter. Is there a way to specify multiple country codes? Example of how I do it with residential proxies.
Copy code
Javascript
const proxyConfiguration = await Actor.createProxyConfiguration({
    groups: ['RESIDENTIAL'],
    countryCode: 'FR',
});
https://cdn.discordapp.com/attachments/1343609357027381268/1343609357366988870/image.png?ex=67bde539&is=67bc93b9&hm=f7949ce71e5a7113f9b239375bc0934704f367ad43c8f4d5f9860c3a55b6eb82&
h
Someone will reply to you shortly. In the meantime, this might help:
m
Datacenter proxies are selected by default when you are using Apify proxies, so if you omit
groups
, you will be using them, and you will be able to select a country for the proxies. They support this, as stated here: https://docs.apify.com/platform/proxy/datacenter-proxy. Unfortunately, you can select only one country at a time with the
countryCode
parameter. Nevertheless, you could try using the groups array: since the datacenter proxies correspond to the
auto
group, and you can suffix the country you want, you could try doing:
Copy code
const proxyConfiguration = await Actor.createProxyConfiguration({
    groups: ['auto-FR', 'auto-DE', 'auto-IT', ...],
});
l
I always thought that I used my 30 IPs when using data center proxies, but I guess they use a bigger pool? Or I can switch which 30 are being used?