# Premium Geo

Our Premium Geotargeting service extends the [Standard Geo](/control-and-optimization/geotargeting/standard-geo.md) list, by providing access to Residential and Mobile proxies from less commonly available locations.&#x20;

| :flag\_ad: **ad**: Andorra                          | Business Plan and higher |
| --------------------------------------------------- | ------------------------ |
| :flag\_af: **af**: Afghanistan                      | Business Plan and higher |
| :flag\_ag: **ag**: Antigua and Barbuda              | Business Plan and higher |
| :flag\_ai: **ai**: Anguilla                         | Business Plan and higher |
| :flag\_al: **al**: Albania                          | Business Plan and higher |
| :flag\_am: **am**: Armenia                          | Business Plan and higher |
| :flag\_ao: **ao**: Angola                           | Business Plan and higher |
| :flag\_as: **as**: American Samoa                   | Business Plan and higher |
| :flag\_aw: **aw**: Aruba                            | Business Plan and higher |
| :flag\_ax: **ax**: Åland Islands                    | Business Plan and higher |
| :flag\_az: **az**: Azerbaijan                       | Business Plan and higher |
| :flag\_ba: **ba**: Bosnia and Herzegovina           | Business Plan and higher |
| :flag\_bb: **bb**: Barbados                         | Business Plan and higher |
| :flag\_bf: **bf**: Burkina Faso                     | Business Plan and higher |
| :flag\_bh: **bh**: Bahrain                          | Business Plan and higher |
| :flag\_bi: **bi**: Burundi                          | Business Plan and higher |
| :flag\_bj: **bj**: Benin                            | Business Plan and higher |
| :flag\_bl: **bl**: St. Barthélemy                   | Business Plan and higher |
| :flag\_bm: **bm**: Bermuda                          | Business Plan and higher |
| :flag\_bn: **bn**: Brunei                           | Business Plan and higher |
| :flag\_bo: **bo**: Bolivia                          | Business Plan and higher |
| :flag\_bq: **bq**: Bonaire, Sint Eustatius and Saba | Business Plan and higher |
| :flag\_bs: **bs**: Bahamas                          | Business Plan and higher |
| :flag\_bt: **bt**: Bhutan                           | Business Plan and higher |
| :flag\_bw: **bw**: Botswana                         | Business Plan and higher |
| :flag\_by: **by**: Belarus                          | Business Plan and higher |
| :flag\_bz: **bz**: Belize                           | Business Plan and higher |
| :flag\_cd: **cd**: Democratic Republic of the Congo | Business Plan and higher |
| :flag\_cf: **cf**: Central African Republic         | Business Plan and higher |
| :flag\_cg: **cg**: Republic of the Congo            | Business Plan and higher |
| :flag\_ci: **ci**: Côte d'Ivoire (Ivory Coast)      | Business Plan and higher |
| :flag\_ck: **ck**: Cook Islands                     | Business Plan and higher |
| :flag\_cm: **cm**: Cameroon                         | Business Plan and higher |
| :flag\_cr: **cr**: Costa Rica                       | Business Plan and higher |
| :flag\_cu: **cu**: Cuba                             | Business Plan and higher |
| :flag\_cv: **cv**: Cape Verde                       | Business Plan and higher |
| :flag\_cw: **cw**: Curaçao                          | Business Plan and higher |
| :flag\_dj: **dj**: Djibouti                         | Business Plan and higher |
| :flag\_dm: **dm**: Dominica                         | Business Plan and higher |
| :flag\_do: **do**: Dominican Republic               | Business Plan and higher |
| :flag\_dz: **dz**: Algeria                          | Business Plan and higher |
| :flag\_er: **er**: Eritrea                          | Business Plan and higher |
| :flag\_et: **et**: Ethiopia                         | Business Plan and higher |
| :flag\_fj: **fj**: Fiji                             | Business Plan and higher |
| :flag\_fk: **fk**: Falkland Islands                 | Business Plan and higher |
| :flag\_fm: **fm**: Micronesia                       | Business Plan and higher |
| :flag\_fo: **fo**: Faroe Islands                    | Business Plan and higher |
| :flag\_ga: **ga**: Gabon                            | Business Plan and higher |
| :flag\_gd: **gd**: Grenada                          | Business Plan and higher |
| :flag\_ge: **ge**: Georgia                          | Business Plan and higher |
| :flag\_gf: **gf**: French Guiana                    | Business Plan and higher |
| :flag\_gg: **gg**: Guernsey                         | Business Plan and higher |
| :flag\_gh: **gh**: Ghana                            | Business Plan and higher |
| :flag\_gi: **gi**: Gibraltar                        | Business Plan and higher |
| :flag\_gl: **gl**: Greenland                        | Business Plan and higher |
| :flag\_gm: **gm**: The Gambia                       | Business Plan and higher |
| :flag\_gn: **gn**: Guinea                           | Business Plan and higher |
| :flag\_gp: **gp**: Guadeloupe                       | Business Plan and higher |
| :flag\_gq: **gq**: Equatorial Guinea                | Business Plan and higher |
| :flag\_gt: **gt**: Guatemala                        | Business Plan and higher |
| :flag\_gu: **gu**: Guam                             | Business Plan and higher |
| :flag\_gw: **gw**: Guinea-Bissau                    | Business Plan and higher |
| :flag\_gy: **gy**: Guyana                           | Business Plan and higher |
| :flag\_hn: **hn**: Honduras                         | Business Plan and higher |
| :flag\_ht: **ht**: Haiti                            | Business Plan and higher |
| :flag\_im: **im**: Isle of Man                      | Business Plan and higher |
| :flag\_io: **io**: British Indian Ocean Territory   | Business Plan and higher |
| :flag\_je: **je**: Jersey                           | Business Plan and higher |
| :flag\_jm: **jm**: Jamaica                          | Business Plan and higher |
| :flag\_kg: **kg**: Kyrgyzstan                       | Business Plan and higher |
| :flag\_kh: **kh**: Cambodia                         | Business Plan and higher |
| :flag\_km: **km**: Comoros                          | Business Plan and higher |
| :flag\_kn: **kn**: Saint Kitts and Nevis            | Business Plan and higher |
| :flag\_kw: **kw**: Kuwait                           | Business Plan and higher |
| :flag\_ky: **ky**: Cayman Islands                   | Business Plan and higher |
| :flag\_kz: **kz**: Kazakhstan                       | Business Plan and higher |
| :flag\_la: **la**: Laos                             | Business Plan and higher |
| :flag\_lc: **lc**: Saint Lucia                      | Business Plan and higher |
| :flag\_lk: **lk**: Sri Lanka                        | Business Plan and higher |
| :flag\_lr: **lr**: Liberia                          | Business Plan and higher |
| :flag\_ls: **ls**: Lesotho                          | Business Plan and higher |
| :flag\_lu: **lu**: Luxembourg                       | Business Plan and higher |
| :flag\_ly: **ly**: Libya                            | Business Plan and higher |
| :flag\_ma: **ma**: Morocco                          | Business Plan and higher |
| :flag\_mc: **mc**: Monaco                           | Business Plan and higher |
| :flag\_md: **md**: Moldova                          | Business Plan and higher |
| :flag\_me: **me**: Montenegro                       | Business Plan and higher |
| :flag\_mf: **mf**: Saint Martin                     | Business Plan and higher |
| :flag\_mg: **mg**: Madagascar                       | Business Plan and higher |
| :flag\_mh: **mh**: Marshall Islands                 | Business Plan and higher |
| :flag\_mk: **mk**: North Macedonia                  | Business Plan and higher |
| :flag\_ml: **ml**: Mali                             | Business Plan and higher |
| :flag\_mm: **mm**: Myanmar                          | Business Plan and higher |
| :flag\_mn: **mn**: Mongolia                         | Business Plan and higher |
| :flag\_mo: **mo**: Macau                            | Business Plan and higher |
| :flag\_mp: **mp**: Northern Mariana Islands         | Business Plan and higher |
| :flag\_mq: **mq**: Martinique                       | Business Plan and higher |
| :flag\_mr: **mr**: Mauritania                       | Business Plan and higher |
| :flag\_ms: **ms**: Montserrat                       | Business Plan and higher |
| :flag\_mu: **mu**: Mauritius                        | Business Plan and higher |
| :flag\_mv: **mv**: Maldives                         | Business Plan and higher |
| :flag\_mw: **mw**: Malawi                           | Business Plan and higher |
| :flag\_mz: **mz**: Mozambique                       | Business Plan and higher |
| :flag\_na: **na**: Namibia                          | Business Plan and higher |
| :flag\_nc: **nc**: New Caledonia                    | Business Plan and higher |
| :flag\_ne: **ne**: Niger                            | Business Plan and higher |
| :flag\_ni: **ni**: Nicaragua                        | Business Plan and higher |
| :flag\_np: **np**: Nepal                            | Business Plan and higher |
| :flag\_pf: **pf**: French Polynesia                 | Business Plan and higher |
| :flag\_pg: **pg**: Papua New Guinea                 | Business Plan and higher |
| :flag\_pm: **pm**: Saint Pierre and Miquelon        | Business Plan and higher |
| :flag\_pr: **pr**: Puerto Rico                      | Business Plan and higher |
| :flag\_ps: **ps**: Palestine                        | Business Plan and higher |
| :flag\_pw: **pw**: Palau                            | Business Plan and higher |
| :flag\_py: **py**: Paraguay                         | Business Plan and higher |
| :flag\_qa: **qa**: Qatar                            | Business Plan and higher |
| :flag\_re: **re**: Réunion                          | Business Plan and higher |
| :flag\_rw: **rw**: Rwanda                           | Business Plan and higher |
| :flag\_sb: **sb**: Solomon Islands                  | Business Plan and higher |
| :flag\_sc: **sc**: Seychelles                       | Business Plan and higher |
| :flag\_sd: **sd**: Sudan                            | Business Plan and higher |
| :flag\_sh: **sh**: Saint Helena                     | Business Plan and higher |
| :flag\_sj: **sj**: Svalbard and Jan Mayen           | Business Plan and higher |
| :flag\_sl: **sl**: Sierra Leone                     | Business Plan and higher |
| :flag\_sm: **sm**: San Marino                       | Business Plan and higher |
| :flag\_sn: **sn**: Senegal                          | Business Plan and higher |
| :flag\_so: **so**: Somalia                          | Business Plan and higher |
| :flag\_sr: **sr**: Suriname                         | Business Plan and higher |
| :flag\_ss: **ss**: South Sudan                      | Business Plan and higher |
| :flag\_st: **st**: São Tomé and Príncipe            | Business Plan and higher |
| :flag\_sv: **sv**: El Salvador                      | Business Plan and higher |
| :flag\_sx: **sx**: Sint Maarten                     | Business Plan and higher |
| :flag\_sz: **sz**: Eswatini                         | Business Plan and higher |
| :flag\_tc: **tc**: Turks and Caicos Islands         | Business Plan and higher |
| :flag\_td: **td**: Chad                             | Business Plan and higher |
| :flag\_tj: **tj**: Tajikistan                       | Business Plan and higher |
| :flag\_tl: **tl**: Timor-Leste                      | Business Plan and higher |
| :flag\_tm: **tm**: Turkmenistan                     | Business Plan and higher |
| :flag\_tn: **tn**: Tunisia                          | Business Plan and higher |
| :flag\_tv: **tv**: Tuvalu                           | Business Plan and higher |
| :flag\_tz: **tz**: Tanzania                         | Business Plan and higher |
| :flag\_ug: **ug**: Uganda                           | Business Plan and higher |
| :flag\_uy: **uy**: Uruguay                          | Business Plan and higher |
| :flag\_uz: **uz**: Uzbekistan                       | Business Plan and higher |
| :flag\_va: **va**: Vatican City                     | Business Plan and higher |
| :flag\_vc: **vc**: Saint Vincent and the Grenadines | Business Plan and higher |
| :flag\_vg: **vg**: British Virgin Islands           | Business Plan and higher |
| :flag\_vi: **vi**: U.S. Virgin Islands              | Business Plan and higher |
| :flag\_vu: **vu**: Vanuatu                          | Business Plan and higher |
| :flag\_wf: **wf**: Wallis and Futuna                | Business Plan and higher |
| :flag\_ws: **ws**: Samoa                            | Business Plan and higher |
| :flag\_ye: **ye**: Yemen                            | Business Plan and higher |
| :flag\_yt: **yt**: Mayotte                          | Business Plan and higher |
| :flag\_zm: **zm**: Zambia                           | Business Plan and higher |
| :flag\_zw: **zw**: Zimbabwe                         | Business Plan and higher |

To target Premium Geo countries, use `premium=true` together with the `country_code` parameter.

* **API REQUEST**

{% tabs %}
{% tab title="cURL" %}

```bash
curl --request GET \
  --url 'https://api.scraperapi.com?api_key=API_KEY&country_code=lk&premium=true&url=https://example.com/'
```

{% endtab %}

{% tab title="Python" %}

```python
import requests

target_url = 'https://example.com/'
# Replace the value for api_key with your actual API Key.
api_key = 'API_KEY'

request_url = (
    f'https://api.scraperapi.com?'
    f'api_key={api_key}'
    f'&country_code=lk'
    f'&premium=true'
    f'&url={target_url}'
)

response = requests.get(request_url)
print(response.text)
```

{% endtab %}

{% tab title="NodeJS" %}

```javascript
import request from 'node-fetch';

// Replace the value for api_key with your actual API Key.
const url = 'http://api.scraperapi.com/?api_key=API_KEY&country_code=lk&premium=true&url=https://example.com/';

request(url)
  .then(response => {
    console.log(response);
  })
  .catch(error => {
    console.error(error);
  });
```

{% endtab %}

{% tab title="PHP" %}

```php
<?php

// Replace the value for api_key with your actual API Key.
$url = "https://api.scraperapi.com?api_key=API_KEY&country_code=lk&premium=true&url=https://example.com";

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HEADER, false);

$response = curl_exec($ch);

if (curl_errno($ch)) {
    echo 'Curl error: ' . curl_error($ch);
} else {
    print_r($response);
}

curl_close($ch);
```

{% endtab %}

{% tab title="Ruby" %}

```ruby
require 'net/http'

# Replace the value for api_key with your actual API Key.
params = {
  api_key: "API_KEY",
  country_code: "lk",
  premium: "true",
  url: "https://example.com/"
}

uri = URI('https://api.scraperapi.com/')
uri.query = URI.encode_www_form(params)

website_content = Net::HTTP.get(uri)
puts website_content
```

{% endtab %}

{% tab title="Java" %}

```java
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;

public class Main {
    public static void main(String[] args) throws Exception {
        // Replace the value for api_key with your actual API Key.
        String apiKey = "API_KEY";
        String targetUrl = "https://example.com/";

        String scraperApiUrl =
                "https://api.scraperapi.com?api_key=" + apiKey
                + "&country_code=lk"
                + "&premium=true"
                + "&url=" + targetUrl;

        HttpClient client = HttpClient.newHttpClient();
        HttpRequest request = HttpRequest.newBuilder()
                .uri(URI.create(scraperApiUrl))
                .GET()
                .build();

        HttpResponse<String> response =
                client.send(request, HttpResponse.BodyHandlers.ofString());

        System.out.println(response.body());
    }
}
```

{% endtab %}
{% endtabs %}

* **ASYNC REQUEST**

{% tabs %}
{% tab title="cURL" %}

```bash
curl -X POST \
  -H "Content-Type: application/json" \
  -d '{
        "apiKey": "API_KEY",
        "url": "https://example.com/",
        "apiParams": {
          "country_code": "lk",
          "premium": "true"
        }
      }' \
  "https://async.scraperapi.com/jobs"
```

{% endtab %}

{% tab title="Python" %}

```python
import requests

r = requests.post(
    url='https://async.scraperapi.com/jobs',
    json={
        # Replace the value for api_key with your actual API Key.
        'apiKey': 'API_KEY',
        'country_code': 'lk',
        'premium': 'true',
        'url': 'https://example.com/'
    }
)

print(r.text)
```

{% endtab %}

{% tab title="NodeJS" %}

```javascript
import axios from 'axios';

(async () => {
  try {
    const { data } = await axios({
      method: 'POST',
      url: 'https://async.scraperapi.com/jobs',
      headers: { 'Content-Type': 'application/json' },
      data: {
        // Replace the value for api_key with your actual API Key.
        apiKey: 'API_KEY',
        url: 'https://example.com',
        apiParams: {
          country_code: 'lk',
          premium: 'true'
        }
      }
    });

    console.log(data);
  } catch (error) {
    console.error(error);
  }
})();
```

{% endtab %}

{% tab title="PHP" %}

```php
<?php
$payload = json_encode([
    # Replace the value for api_key with your actual API Key.
    "apiKey" => "API_KEY",
    "url"    => "https://example.com",
    "apiParams" => [
        "country_code"  => "lk",
        "premium"  => "true"
    ]
]);

$ch = curl_init("https://async.scraperapi.com/jobs");

curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $payload);
curl_setopt($ch, CURLOPT_HTTPHEADER, ["Content-Type: application/json"]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

$response = curl_exec($ch);
curl_close($ch);

print_r($response);
?>
```

{% endtab %}

{% tab title="Ruby" %}

```ruby
require 'net/http'
require 'json'

uri = URI('https://async.scraperapi.com/jobs')
payload = {
  # Replace the value for api_key with your actual API Key.
  "apiKey" => "API_KEY",
  "url" => "https://example.com",
  "apiParams" => {
    "country_code" => "lk",
    "premium" => "true"
  }
}

response = Net::HTTP.post(uri, payload.to_json, "Content-Type" => "application/json")
puts response.body
```

{% endtab %}

{% tab title="Java" %}

```java
import java.io.*;
import java.net.*;
import java.nio.charset.StandardCharsets;

public class Main {
    public static void main(String[] args) {
        try {
            URL url = new URL("https://async.scraperapi.com/jobs");
            HttpURLConnection conn = (HttpURLConnection) url.openConnection();
            conn.setRequestMethod("POST");
            conn.setRequestProperty("Content-Type", "application/json");
            conn.setDoOutput(true);

            String payload = "{"
                    // Replace the value for api_key with your actual API Key.
                    + "\"apiKey\": \"API_KEY\","
                    + "\"url\": \"https://example.com\","
                    + "\"apiParams\": {"
                    + "\"country_code\": \"lk\","
                    + "\"premium\": \"true\""
                    + "}"
                    + "}";

            try (OutputStream os = conn.getOutputStream()) {
                os.write(payload.getBytes(StandardCharsets.UTF_8));
            }

            try (BufferedReader in = new BufferedReader(new InputStreamReader(
                    conn.getResponseCode() == 200 ? conn.getInputStream() : conn.getErrorStream()
            ))) {
                StringBuilder response = new StringBuilder();
                String line;
                while ((line = in.readLine()) != null) response.append(line);
                System.out.println(response);
            }
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
```

{% endtab %}
{% endtabs %}

* **PROXY MODE**

{% tabs %}
{% tab title="cURL" %}

```bash
curl --proxy 'http://scraperapi.country_code=lk.premium=true:API_KEY@proxy-server.scraperapi.com:8001' \
  -k \
  'https://example.com/'
```

{% endtab %}

{% tab title="Python" %}

```python
import requests

# Replace the value for api_key with your actual API Key.
proxies = {
    "http": "http://scraperapi.country_code=lk.premium=true:API_KEY@proxy-server.scraperapi.com:8001"
}

r = requests.get('http://example.com/', proxies=proxies, verify=False)
print(r.text)
```

{% endtab %}

{% tab title="NodeJS" %}

```javascript
import axios from 'axios';

axios.get('http://example.com/', {
  method: 'GET',
  proxy: {
    host: 'proxy-server.scraperapi.com',
    port: 8001,
    auth: {
      username: 'scraperapi.country_code=lk.premium=true',
      // Replace the value for password with your actual API Key.
      password: 'API_KEY'
    },
    protocol: 'http'
  }
})
  .then(response => {
    console.log(response.data);
  })
  .catch(error => {
    console.log(error);
  });
```

{% endtab %}

{% tab title="PHP" %}

```php
<?php

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://example.com/");
curl_setopt($ch, CURLOPT_PROXY, 
    // Replace the value for api_key with your actual API Key.
    "http://scraperapi.country_code=lk.premium=true:API_KEY@proxy-server.scraperapi.com:8001"
);

curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HEADER, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);

$response = curl_exec($ch);
curl_close($ch);
var_dump($response);
```

{% endtab %}

{% tab title="Ruby" %}

```ruby
require 'httparty'

HTTParty::Basement.default_options.update(verify: false)

response = HTTParty.get('http://example.com/', {
  http_proxyaddr: "proxy-server.scraperapi.com",
  http_proxyport: 8001,
  http_proxyuser: "scraperapi.country_code=lk.premium=true",
  # Replace the value for http_proxypass with your actual API Key.
  http_proxypass: "API_KEY"
})

results = response.body
puts results
```

{% endtab %}

{% tab title="Java" %}

```java
import java.io.*;
import java.net.*;
import javax.net.ssl.*;
import java.security.cert.X509Certificate;

public class Main {
    public static void main(String[] args) {
        try {
            SSLContext sc = SSLContext.getInstance("TLS");
            sc.init(null, new TrustManager[]{
                new X509TrustManager() {
                    public X509Certificate[] getAcceptedIssuers() { return null; }
                    public void checkClientTrusted(X509Certificate[] certs, String authType) {}
                    public void checkServerTrusted(X509Certificate[] certs, String authType) {}
                }
            }, new java.security.SecureRandom());
            HttpsURLConnection.setDefaultSSLSocketFactory(sc.getSocketFactory());
            HttpsURLConnection.setDefaultHostnameVerifier((hostname, session) -> true);

            String apiKey = "API_KEY"; // Replace with your actual API Key.
            Authenticator.setDefault(new Authenticator() {
                protected PasswordAuthentication getPasswordAuthentication() {
                    return new PasswordAuthentication(
                        "scraperapi.country_code=lk.premium=true", apiKey.toCharArray()
                    );
                }
            });

            System.setProperty("jdk.http.auth.tunneling.disabledSchemes", "");
            System.setProperty("https.proxyHost", "proxy-server.scraperapi.com");
            System.setProperty("https.proxyPort", "8001");

            HttpsURLConnection conn = (HttpsURLConnection) new URL("https://example.com/").openConnection();
            conn.setRequestMethod("GET");

            BufferedReader in;
            if (conn.getResponseCode() >= 400) {
                in = new BufferedReader(new InputStreamReader(conn.getErrorStream()));
            } else {
                in = new BufferedReader(new InputStreamReader(conn.getInputStream()));
            }

            StringBuilder resp = new StringBuilder();
            String line;
            while ((line = in.readLine()) != null) {
                resp.append(line).append("\n");
            }
            in.close();

            System.out.println(resp);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.scraperapi.com/control-and-optimization/geotargeting/premium-geo.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
