# Rotating residential proxies from $1 per GB | Spider

Rotating residential proxies in 199 countries. A fresh IP on every request, one proxy URL and no subscription. Proxy mode from $1 per GB.

Canonical: https://spider.cloud/rotating-proxies/

## Rotating proxies. A fresh IP on every request.

For scrapers and agents that send many requests and would rather not run a proxy list. Residential IPs in 199+ countries behind one proxy URL. Spider picks one for every request, so you keep no list.

- Request
  ```
  curl -x "http://YOUR_API_KEY:country_code=us@proxy.spider.cloud:8888" \
    https://example.com/
  ```
- Proxy answer
  ```
  HTTP/1.1 200 OK
  x-spider-exit-country: US
  ```

Your API key is the user name, and the country code goes in the password. The answer is the proxy's own, recorded November 20, 2026. [Proxy docs](https://spider.cloud/docs/api/proxy/)

In [our recorded run of November 20, 2026](#recorded-run), 8 requests each asked for a different country, and the proxy reported an exit in that country for all 8.

[Get an API key](https://spider.cloud/register/)

Proxy mode from $1 per GB.

[No subscription](https://spider.cloud/pricing/), and your balance never expires.

## The request you have, and the one you send

No proxy list, no loop that picks the next address. The proxy URL goes in once, and the IP changes on every call.

Before, with no proxy

```
  import requests
  
  resp = requests.get("https://doc.rust-lang.org/book/")
  print(resp.text)
```

After, through Spider

```
  import requests    proxies = {      "http":  "http://YOUR_API_KEY:country_code=us@proxy.spider.cloud:8888",      "https": "https://YOUR_API_KEY:country_code=us@proxy.spider.cloud:8889",  }    resp = requests.get("https://doc.rust-lang.org/book/", proxies=proxies)  print(resp.text)
```

4 lines added and 1 line changed, marked + and \~. The proxy URL stays the same on every call, and Spider picks a new residential IP for each one.

## Eight requests, eight countries, one proxy URL

Add country_code to the proxy password. On November 20, 2026 we asked for eight countries in eight requests, and the proxy reported the country we asked for every time.

[All 199+ countries](https://spider.cloud/proxy-locations/)

| Country                                                                | Sent | Exit header | Status |
| ---------------------------------------------------------------------- | ---- | ----------- | ------ |
| [United States](https://spider.cloud/proxy-locations/united-states/)   | us   | us          | 200    |
| [United Kingdom](https://spider.cloud/proxy-locations/united-kingdom/) | gb   | gb          | 200    |
| [Germany](https://spider.cloud/proxy-locations/germany/)               | de   | de          | 200    |
| [Brazil](https://spider.cloud/proxy-locations/brazil/)                 | br   | br          | 200    |
| [Japan](https://spider.cloud/proxy-locations/japan/)                   | jp   | jp          | 200    |
| [Canada](https://spider.cloud/proxy-locations/canada/)                 | ca   | ca          | 200    |
| [France](https://spider.cloud/proxy-locations/france/)                 | fr   | fr          | 200    |
| [Australia](https://spider.cloud/proxy-locations/australia/)           | au   | au          | 200    |

Sent is the country_code in the proxy password. Recorded November 20, 2026. Each row is one GET for `example.com`, the domain IANA reserves for documentation, through proxy.spider.cloud:8888. The exit column is the x-spider-exit-country header the proxy sent back, which is its own report of where it routed the request. Every row came back 200.

## The proxy URL in curl, Python and Node

Set the proxy URL in curl, requests, undici or anything else that takes one, and send.

```
curl -X POST https://api.spider.cloud/scrape \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "url": "https://doc.rust-lang.org/book/",
    "country_code": "us",
    "return_format": "markdown"
  }'
```

```
import requests

resp = requests.post(
    "https://api.spider.cloud/scrape",
    headers={
        "Authorization": "Bearer YOUR_API_KEY",
        "Content-Type": "application/json",
    },
    json={
        "url": "https://doc.rust-lang.org/book/",
        "country_code": "us",
        "return_format": "markdown",
    },
)
print(resp.json())
```

```
const resp = await fetch("https://api.spider.cloud/scrape", {
  method: "POST",
  headers: {
    "Authorization": "Bearer YOUR_API_KEY",
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    url: "https://doc.rust-lang.org/book/",
    country_code: "us",
    return_format: "markdown",
  }),
});
const data = await resp.json();
console.log(data);
```

```
curl -x "http://YOUR_API_KEY:country_code=us@proxy.spider.cloud:8888" \
  https://doc.rust-lang.org/book/
```

```
import requests

proxies = {
    "http":  "http://YOUR_API_KEY:country_code=us@proxy.spider.cloud:8888",
    "https": "https://YOUR_API_KEY:country_code=us@proxy.spider.cloud:8889",
}

resp = requests.get("https://doc.rust-lang.org/book/", proxies=proxies)
print(resp.text)
```

```
import { ProxyAgent } from "undici";

const dispatcher = new ProxyAgent(
  "http://YOUR_API_KEY:country_code=us@proxy.spider.cloud:8888"
);

const resp = await fetch("https://doc.rust-lang.org/book/", { dispatcher });
console.log(await resp.text());
```

proxy.spider.cloud:8888 country_code: us

## HTTP, HTTPS or SOCKS5

Pick the protocol your client speaks. All three take the same key and the same country code.

proxy.spider.cloud

- ### HTTP port 8888

  Any HTTP client can use it. A request for an HTTPS page stays encrypted to the site inside a tunnel, but your API key reaches the proxy unencrypted.

  `http://YOUR_API_KEY:country_code=us@proxy.spider.cloud:8888`

- ### HTTPS port 8889

  The same proxy with TLS between your client and Spider, so the API key is encrypted on the way.

  `https://YOUR_API_KEY:country_code=us@proxy.spider.cloud:8889`

- ### SOCKS5 port 8887

  For clients that speak SOCKS. Where your client accepts it, write socks5h so Spider looks up the host name and your machine does not.

  `socks5h://YOUR_API_KEY:country_code=us@proxy.spider.cloud:8887`

## Questions before you switch

- [Residential proxies](https://spider.cloud/residential-proxies/) Why sites refuse a datacenter IP more often than a household one.
- [Proxy locations](https://spider.cloud/proxy-locations/) All 199 countries, each with its country code.
- [Proxy docs](https://spider.cloud/docs/api/proxy/) Ports, parameters and client setup.

How often does the IP change?

On every request. Spider picks a residential IP each time, so your client keeps one proxy URL, proxy.spider.cloud, and you rotate nothing yourself.

Are these residential IPs?

Yes. The proxy sends your requests out through residential IPs, with exits in 199 countries.

Can I choose the country?

Yes. Put country_code and a two-letter ISO code in the proxy password, for example country_code=de. The same parameter sets the country on the Scrape API.

Which clients and protocols work?

Any client that takes a proxy URL. HTTP is on port 8888, HTTPS on 8889 and SOCKS5 on 8887, all on proxy.spider.cloud. Use 8889 on any network you do not control, because on 8888 the API key reaches the proxy unencrypted.

What if a page needs JavaScript?

Send it to the Scrape API with the same key. Proxy mode forwards the request your client sends and does not render JavaScript.

What does it cost, and is there a minimum?

Proxy mode from $1 per GB. There is no subscription and no monthly minimum. You top up from $5 and your balance never expires. A blocked or empty page is not free.

## Priced by the gigabyte, with no subscription

Add credit when you need it, paste one proxy URL into the client you already run, and send.

[Pricing ](https://spider.cloud/pricing/)[Get an API key](https://spider.cloud/register/)

- Bandwidth

  - from $1 per GB
  - You pay for what your requests fetch.

- Subscription

  - none
  - No monthly minimum. Top up from $5 when you need more.

- Volume

  - +5% from $500
  - Top-ups of $500 or more add 5% in bonus credits, up to 15% from $5,000.

- Balance

  - never expires
  - Stop for a month and pick up where you left off.
