> For the complete documentation index, see [llms.txt](https://docs.9proxy.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.9proxy.com/developers/sdk/sdk-nodejs/functions/setusercountrycode-code.md).

# setUserCountryCode(code)

Sets the user’s country code for proxy session context.

```javascript
setUserCountryCode(code)
```

***

## Parameters

* **code** (<mark style="color:green;">string</mark>) – Country code (e.g., "HK").

## Return Value

void or number&#x20;

## Example

```javascript
// example

sdk.setUserCountryCode("HK");

```
