---
metadata:
  - name: generator
    content: Diplodoc Platform v5.54.5
alternate:
  - https://divkit.tech/docs/en/concepts/divs/2/url_variable.md
  - https://divkit.tech/docs/ru/concepts/divs/2/url_variable.md
  - href: ru/concepts/divs/2/url_variable.md
    type: text/markdown
    title: Markdown version
  - href: ../../../llms.txt
    type: text/markdown
    title: llms.txt
---
> **Documentation Index:** Fetch the complete configuration index at https://divkit.tech/docs/ru/llms.txt

# url_variable
Переменная — URL в виде строки.

## Параметры
| Параметры | Описание |
| --- | --- |
| `name` | <p>**string**</p><p>Обязательный параметр.</p><p>Название переменной.</p> |
| `type` | <p>**string**</p><p>Обязательный параметр.</p><p>Значение всегда должно равняться `url`.</p> |
| `value` | <p>**string**</p><p>Обязательный параметр.</p><p>Значение. Поддерживает выражения для инициализации переменных.</p><p>Значение должно быть валидным URL.</p> |

<details>
<summary>JSON</summary>

```json
{
  type*: "url",
  name*: "string",
  value*: "string"
}
```
</details>
