# External Search
Swarmica system can be connected to an external knowledge base from any source via API. The contents of the connected base will be available for search in the Swarmica knowledge base and/or on the ticket page.

To connect an external knowledge base, go to **Settings - External Search** and click !["Create"](https://support.swarmica.com/attachments/Q/X/QXsGBAsZhXNdOJkH_a/image.png) in the top right. Then enter the name of the external base.

![](https://support.swarmica.com/attachments/Q/s/Qs_GnpzJakbmqTPF_a/image.png)

On the opened page, enter the parameters of the API request and the parser parameters.

![](https://support.swarmica.com/attachments/R/k/RkWiZU8H6Hg-Xx5h_a/image.png)

### Examples of requests

Request parameters:

```js
{
  "search_url": "https://www.ispmanager.ru/docs/api/search",
  "http_method": "GET",
  "http_headers": {
    "Content-Type": "application/json; utf-8"
  },
  "search_param": "s"
}
```

Parser parameters:

```js
{
  "url_prefix": "https://www.ispmanager.ru",
  "response_mapping": {
    "url": "domain.tld",// Instead of domain.tld, enter your Swarmica domain
    "body": "text",
    "rank": "rel",
    "title": "name"
  },
  "target_data_field": "*"
}
```

Instead of domain.tld, enter your Swarmica domain

:::tip
You can find the exact request parameters for your external source in its API documentation.
:::

Next, at the bottom of the page, activate the desired switches as you see fit.

![](https://support.swarmica.com/attachments/Q/Q/QQeMHR69uGkyT5JT_a/image.png)

*   Knowledge base - enable to allow search to be available to all users of your knowledge base, including unauthorized ones.
*   KCS widget - enable to make search available to your employees on the ticket page.
*   Enabled - activate to allow search from the connected source.