Madrid proxies: residential IPs in the Spanish capital
The Spanish market is split by region, and Madrid has its own prices, delivery zones and local search results. Here is what Madrid IPs are used for and how to set the city in a proxy line.
How Madrid differs from "Spain in general"
Madrid, Barcelona, Valencia and Seville have different housing prices, different local competitors on Google Maps and different delivery zones. If you open a site from a Spanish IP that the geo database places in, say, Catalonia, you see the Barcelona picture: other businesses nearby, other listings within the radius, other restaurants in the delivery app. Data like that is useless for a report on the capital's market.
Madrid is the national capital and also an autonomous community of its own (Comunidad de Madrid). City postcodes start with 280, the language is Castilian Spanish, the currency is the euro. Clocks run on Central European Time (UTC+1, UTC+2 in summer), while the Canary Islands are an hour behind. Worth remembering when ad schedules or measurements are tied to local time.
There are differences inside the city too. Madrid is divided into 21 districts (distritos), and rents in Salamanca or Chamberí are a world apart from Vallecas or Usera. Property sites offer a district filter, and a local IP lets you see pages and ad inserts the way someone flat-hunting from inside the city does.
Tasks that call for a Madrid IP
| Task | Where people look | What the city changes |
|---|---|---|
| Housing market research | Idealista, Fotocasa | pages and ad slots as a resident of the capital sees them |
| Second-hand goods and classifieds | Wallapop, Milanuncios | listings are tied to the seller's location, so the entry point matters |
| Prices and delivery dates | Amazon.es, El Corte Inglés, PcComponentes, MediaMarkt | stock in city stores and the delivery date |
| Food and groceries | Glovo, Just Eat, Uber Eats, Mercadona, Carrefour | restaurant list and delivery slots for the address |
| Local search | google.es, Google Maps, Páginas Amarillas | the nearby businesses block and the order of listings |
| Ads geo-targeted at Madrid | Google Ads, Meta | whether the ad actually shows inside the city |
Transport and booking services are a case of their own. Ride-hailing apps like Cabify show fares and car classes by city, while ticket and table-booking sites show nearby events and venues. A marketer preparing a launch in the capital collects exactly that picture. Regular price collection has its own page: price monitoring.
The service rules allow working with public data and your own campaigns. Mass sign-ups, inflating ratings on Wallapop or Google Maps, and getting around platform restrictions are forbidden.
The Madrid line: cr.es;city.madrid
The easiest way is the dashboard. In the generator for a residential plan, choose Spain, switch on advanced mode and set the city to Madrid. Then pick the protocol and line format (login:password@host:port, host:port:login:password and others) and download the .txt list.
For scripts, the city is appended to the username after a double underscore:
your_login__cr.es;city.madrid
For example, a sticky IP over SOCKS5 on the first port of the range: socks5://your_login__cr.es;city.madrid:password@gw.prokso.com:10000. To hold several Madrid addresses at once, use the neighbouring ports 10001, 10002 and so on: each one gets its own IP. Sticky ports accept both HTTP and SOCKS5, so for HTTP just change the scheme to http://. If you connect via IP whitelist (up to 5 addresses per plan), there is no username in the line, and the city is set in the generator. Ready examples for Python, Playwright or antidetect browsers are in the guides.
When a Spanish IP without a city is enough
In our checks, all three requests with city.madrid returned addresses in Madrid. Still, we cannot guarantee addresses in a particular city: home devices in the pool keep connecting and disconnecting. Before a big job, open /tools/my-ip through the proxy, and the page will show the country and city of the address.
Plenty of Spanish tasks need no city at all. Checking how the Spanish version of a site looks, collecting the nationwide Amazon.es catalogue or confirming that a country-wide campaign runs at all works fine with a cr.es line and no city. That traffic is billed at the normal rate. What else the country gives you is on the Spain proxies page.
The check takes a minute:
- generate two or three lines with
city.madrid; - open /tools/my-ip through each of them and look at the city field;
- if an address turns out to be in another city, take a different port or repeat the request on a rotating port.
Rotating or sticky IP, and what it costs
When you pull prices from several thousand PcComponentes product pages or check rankings for a long keyword list, use rotating mode (a new IP per request): port 823 for HTTP, 824 for SOCKS5. Requests spread across different Madrid addresses.
When a site remembers you between steps, as Glovo does after you enter an address, you need a sticky session on ports 10000-20000. Session duration runs from 1 to 120 minutes. A residential IP can change earlier if the device goes offline: the port gets a new address in the same country, so check the city again.
Residential proxies cost $1.59 per 1 GB, no subscription, and traffic does not expire. Precise geo (city, region, ZIP, ASN) is billed double, so a gigabyte through city.madrid takes two off the plan balance. A sensible setup is the city where it shapes the answer and the country for everything else. How home addresses work and where the pool gets them is covered on the residential proxies page.
FAQ
Should I pick the city of Madrid or the Comunidad de Madrid region?
The region is wider: it includes towns such as Alcalá de Henares, Getafe and Móstoles. If you need the capital itself, use city.madrid. You can't pick a Spanish region in the generator (regions exist only for the US), so for the suburbs use the country at no extra cost, or the name of a specific town if the pool has addresses there.
Will a Madrid IP work for Barcelona sites?
The site will open, but local blocks, nearby businesses and delivery zones will be Madrid ones. For the Barcelona picture you need an address in Barcelona, and for nationwide data cr.es is enough.
How many Madrid addresses are in the pool?
We do not quote a number: the pool is made of home devices, and their count changes minute by minute. In our checks city.madrid consistently returned Madrid, but test a few addresses through /tools/my-ip before you start.
Do I need a separate plan for Madrid?
No. The city is set in the proxy line, so one residential plan works with Madrid and with other countries alike. Separate plans make sense if you want to split balances or logins between projects.
$1.59 per GB - get started now
Sign up in a minute, get access right after payment.