> For the complete documentation index, see [llms.txt](https://docs.femida-search.tech/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.femida-search.tech/fingerprint/integraciya-na-fronte.md).

# Интеграция на фронте

### Код для встраивания на страницу клиента.

```
<script type="module">
    import(atob('<Token>')).then(_ => _.load()).then(_ => _.get()).then(_ => console.log(_.visitorId));
</script>
```

Token - запрашивается у нас.

Пример ответа:

```
{
  "requestId": "1702304175600.TNyCr4",
  "confidence": {
    "score": 1
  },
  "meta": {
    "version": "v1.1.1972+9ac85b00"
  },
  "visitorFound": true,
  "visitorId": "2J5vLM4wzgYyFm4R39eh"
}
```

<table><thead><tr><th width="320"></th><th></th></tr></thead><tbody><tr><td>requestId</td><td>ID запроса</td></tr><tr><td>confidence/score</td><td>Точность идентификации</td></tr><tr><td>meta/version</td><td>Метаданные</td></tr><tr><td>visitorFound</td><td>Флаг обнаружения пользователя</td></tr><tr><td>visitorId</td><td>ID пользователя</td></tr></tbody></table>
