# Start API

Follow these steps to enable and use the 9Proxy API on your Linux server.

## 1. Start 9Proxy

To start 9Proxy, run the following command:

```
systemctl start 9proxyd.service
```

### Enable API Function

Activate the API feature by entering:

```
9proxy api
```

<figure><img src="https://1693667300-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNuuHdu9z8IgffZvLnM2A%2Fuploads%2FC7HxSH74bM5l16DoRRDY%2FEnable%20API%20Function.png?alt=media&#x26;token=5d61be1e-0619-475c-8b3e-ff610bf0251d" alt=""><figcaption></figcaption></figure>

## 2. Set API port

Specify the port you want the API to listen on:

```
9proxy api -p [port]
```

* \[port] : your preferred port number

## 3. Check API Status (Optional)

To check the API status at any time, use:

```
9proxy api -d
```

## 4. Start the API

Run the API with:

```
9proxy api -s
```

## 5. Get API URL

Once the API is running, copy the API url shown in the terminal. You can now use this URL to integrate with your system.

## 6. Stop the API

To stop the API when needed, use:

```
9proxy api -c
```
