> 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/starthttpapi.md).

# StartHttpApi

Start the HTTP API service on a given port.

```c
int StartHttpApi(int port)
```

***

## Parameters

* **port**: Port number for the HTTP API.

## Return Value

* int: 0 if success.

## Example

```c
// example

StartHttpApi(9090);

```
