# Location Settings

If you want your proxies to be from a specific location, you will have to either add the a **country** or **region** flag so that we can process the request. \
The value of the country/region paratemere is case insensitive but it follows the 2 letter country code using the [**ISO 3166 Alpha 2**](https://www.iban.com/country-codes) format.

Full Region List: <https://speedproxies.net/docs/regions.json>

Full Country List: <https://speedproxies.net/docs/countries.json>

Here are a few examples of using a country or region parameters:

`country-US`

`region-EU`

***

**Code Example**

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

```bash
curl -x budget.speedproxies.net:11000 -U "USERNAME:PASSWORD_country-us" https://whatsmyip.speedshare.workers.dev/
```

{% endtab %}

{% tab title="Go" %}

<pre class="language-go"><code class="lang-go">package main

import (
	"fmt"
	"io/ioutil"
	"net/http"
	"net/url"
)

<strong>func main() {
</strong>	proxyURL, _ := url.Parse("http://USERNAME:PASSWORD_country-us@budget.speedproxies.net:11000")
	proxyClient := &#x26;http.Client{
		Transport: &#x26;http.Transport{
			DialContext: (&#x26;net.Dialer{
				KeepAlive: time.Duration(-1),
			}).DialContext,
			DisableKeepAlives: true,
			Proxy:             http.ProxyURL(proxyURL),
		},
	}

	resp, err := proxyClient.Get("https://whatsmyip.speedshare.workers.dev/")
	if err != nil {
		fmt.Println("Error:", err)
		return
	}
	
	defer resp.Body.Close()

	if body, err := io.ReadAll(resp.Body); err == nil {
		fmt.Println(string(body))
	} else {
		fmt.Println("Error:", err)
	}
}
</code></pre>

{% endtab %}

{% tab title="Python" %}

```python
import urllib.request
import random
username = 'USERNAME'
password = 'PASSWORD_country-us'
entry = ('http://customer-%s:%s@budget.speedproxies.net:11000' %
    (username, password))
query = urllib.request.ProxyHandler({
    'http': entry,
    'https': entry,
})
execute = urllib.request.build_opener(query)
print(execute.open('https://whatsmyip.speedshare.workers.dev/').read())
```

{% 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.speedproxies.net/proxies/residential-proxies/location-settings.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.
