# Sri Lanka Proxies - Residential IPs | Spider

Residential proxy IPs in Sri Lanka (LK), with automatic rotation and geo-targeting. Built for e-commerce monitoring. Pay as you go.

Canonical: https://spider.cloud/proxy-locations/sri-lanka/

Point your HTTP client at proxy.spider.cloud and each request leaves from a residential IP address in Sri Lanka.

Connection

```
curl -x "http://YOUR_API_KEY:country_code=lk@proxy.spider.cloud:8888" \  https://example.com
```

Your API key is the user name, and the country code goes in the password. [Proxy docs](https://spider.cloud/docs/api/proxy/)

Proxy mode from $1 per GB.

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

Sri Lanka has a developing internet market with growing mobile broadband adoption. Proxies are used for monitoring the local e-commerce market, accessing government services, and tracking economic recovery data following the 2022 crisis.

- country_code

  lk

- IP type

  Residential

## Route through Sri Lanka.

Set `country_code` to `lk` and Spider picks an available IP in Sri Lanka, rotating on every request. Pinning is honor-or-fail, so the request either leaves from Sri Lanka or fails cleanly.

```
curl -X POST https://api.spider.cloud/scrape \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "url": "https://example.com",
    "country_code": "lk",
    "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://example.com",
        "country_code": "lk",
        "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://example.com",
    country_code: "lk",
    return_format: "markdown",
  }),
});
const data = await resp.json();
console.log(data);
```

```
curl -x "http://YOUR_API_KEY:country_code=lk@proxy.spider.cloud:8888" \
  https://example.com
```

```
import requests

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

resp = requests.get("https://example.com", proxies=proxies)
print(resp.text)
```

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

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

const resp = await fetch("https://example.com", { dispatcher });
console.log(await resp.text());
```

api.spider.cloud country_code: lk

[Send this request](https://spider.cloud/playground/?mode=scrape\&url=https%3A%2F%2Fexample.com\&format=markdown\&p.country_code=lk\&src=proxy_country_request_run)

## Residential proxies.

| Type                | Trust   | Speed     | Best For                                             |
| ------------------- | ------- | --------- | ---------------------------------------------------- |
| Residential Proxies | Highest | 150-300ms | Demanding sites, account management, ad verification |

## Sri Lanka proxies.

What proxy type does Spider use in Sri lanka?

Residential proxies. They give the highest trust level in Sri lanka and work for most use cases.

How do I route requests through Sri lanka?

Set "country_code": "lk" in your API request. Every request already goes through a proxy. Spider picks a healthy exit in Sri lanka and handles rotation. If Spider cannot fulfill the request from Sri lanka, it returns an error.

Is there a latency difference for Sri lanka proxies?

Latency depends on your server location relative to Sri lanka and on the site you request. Spider gives each proxy pool 3 seconds to connect before it moves on.

Can I keep the same Sri lanka IP across requests?

Yes, for as long as one proxy connection stays open. Requests sent over that connection leave from the same Sri lanka IP. A new connection gets a new IP.

## Featured proxy markets.

[japan](https://spider.cloud/proxy-locations/japan/)

[Residential proxies](https://spider.cloud/proxy-locations/japan/)

[india](https://spider.cloud/proxy-locations/india/)

[Residential proxies](https://spider.cloud/proxy-locations/india/)

[korea](https://spider.cloud/proxy-locations/korea/)

[Residential proxies](https://spider.cloud/proxy-locations/korea/)

[indonesia](https://spider.cloud/proxy-locations/indonesia/)

[Residential proxies](https://spider.cloud/proxy-locations/indonesia/)

[vietnam](https://spider.cloud/proxy-locations/vietnam/)

[Residential proxies](https://spider.cloud/proxy-locations/vietnam/)

[turkey](https://spider.cloud/proxy-locations/turkey/)

[Residential proxies](https://spider.cloud/proxy-locations/turkey/)

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