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

# startHttpApi(port)

Starts the local HTTP API server at the given port.

```javascript
startHttpApi(port)
```

***

## Parameters

* **port** (<mark style="color:green;">number</mark>) – Port to serve the HTTP API.

## Return Value

number (0 = success) : Starts the local HTTP API server

## Example

```javascript
// example

sdk.startHttpApi(9090);

```
