> 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-native-c/functions/setapihost.md).

# SetAPIHost

Set the API host endpoint.

```c
void SetAPIHost(char* host)
```

***

## Parameters

* **host**: API host URL.

## Return Value

Set the API host endpoint

## Example

```c
// example

SetAPIHost("https://api.example.com");

```
