# landing.landing.getadditionalfields

URL: https://chugunov.pro/api-bitrix24/landing/page/methods/landing-landing-get-additional-fields/
Проверено на Битрикс24 REST API, обновлено 11.09.2026 (ревизия источника fb39d6c).
Источник: официальная документация Битрикс24 (bitrix-tools/b24-rest-docs, лицензия MIT, © Bitrix). Справочник независимый, официальной документацией не является.

Получить дополнительные поля страницы
Scope: `landing`
Кто может выполнять метод: пользователь с правом «просмотр» сайта

## Описание

Метод `landing.landing.getadditionalfields` получает [дополнительные поля](https://chugunov.pro/api-bitrix24/landing/page/additional-fields/) страницы.

## Параметры

- `scope` `string` — необязательный. Внутренний скоуп лендингов. Он не связан с REST-скоупом `landing` в названии метода.
  Значение `scope` должно соответствовать типу сайта [(подробное описание)](https://apidocs.bitrix24.ru/api-reference/landing/types.html)
- `lid` `integer` — обязательный. Идентификатор страницы.
  Идентификатор страницы можно получить методом [landing.landing.getList](https://chugunov.pro/api-bitrix24/landing/page/methods/landing-landing-get-list/), а также из результата методов [landing.landing.add](https://chugunov.pro/api-bitrix24/landing/page/methods/landing-landing-add/), [landing.landing.addByTemplate](https://chugunov.pro/api-bitrix24/landing/page/methods/landing-landing-add-by-template/) и [landing.landing.copy](https://chugunov.pro/api-bitrix24/landing/page/methods/landing-landing-copy/)

## Ответ

HTTP-статус: 200

```json
{
    "result": {
        "FONTS_CODE": "<noscript><link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/...\" data-font=\"g-font-russo-one\"></noscript>",
        "GACOUNTER_USE": "N",
        "METAMAIN_USE": "Y",
        "METAMAIN_TITLE": "Фестиваль в Москве. 20-26 апреля 2022 г. Купить билеты онлайн",
        "METAOG_TITLE": "Фестиваль в Москве. 20-26 апреля 2022 г. Купить билеты онлайн",
        "METAOG_IMAGE": "https://cdn-ru.bitrix24.ru/.../cover_1x.webp",
        "SETTINGS_PRICE_CODE": [
            "BASE"
        ],
        "SETTINGS_SHOW_PRICE_COUNT": 1,
        "THEMEFONTS_LINE_HEIGHT": "1.6",
        "VIEW_TYPE": "no",
        "YACOUNTER_USE": "N"
    },
    "time": {
        "start": 1773722096,
        "finish": 1773722096.682451,
        "duration": 0.6824510097503662,
        "processing": 0,
        "date_start": "2026-03-17T12:34:56+03:00",
        "date_finish": "2026-03-17T12:34:56+03:00",
        "operating_reset_at": 1773722696,
        "operating": 0.11843705177307129
    }
}
```

### Возвращаемые данные

- `result` `object`. Набор дополнительных полей страницы в формате `{"<КОД_ПОЛЯ>": "<ЗНАЧЕНИЕ>"}`.
  Если у страницы нет доступных непустых дополнительных полей, метод возвращает пустой массив `[]` [(подробное описание)](#result)
- `time` `time`. Информация о времени выполнения запроса

## Ошибки

HTTP-статус: 400

```json
{
    "error": "LANDING_NOT_EXIST",
    "error_description": "Лендинг не найден"
}
```

- `MISSING_PARAMS` — Не передан обязательный параметр `lid`
- `LANDING_NOT_EXIST` — Страница не найдена: в `lid` передан идентификатор несуществующей или недоступной страницы
- `ACCESS_DENIED` — Недостаточно прав для вызова метода

## Примеры запроса

### cURL (Webhook)

```bash
curl -X POST \
  -H "Content-Type: application/json" \
  -d '{
    "lid": 349
  }' \
  "https://**put.your-domain-here**/rest/**user_id**/**webhook_code**/landing.landing.getadditionalfields.json"
```

### cURL (OAuth)

```bash
curl -X POST \
  -H "Content-Type: application/json" \
  -d '{
    "lid": 349,
    "auth": "**put_access_token_here**"
  }' \
  "https://**put.your-domain-here**/rest/landing.landing.getadditionalfields.json"
```

### JS (TS)

```ts
// This snippet is an ES module: top-level await requires type="module" or a bundler.
// $b24 is an already-initialized SDK instance (see the SDK "Get started" guide).
import { Text } from '@bitrix24/b24jssdk'
import type { B24Frame } from '@bitrix24/b24jssdk'

declare const $b24: B24Frame

// Shape of the payload returned in result (match the "response handling" section of the page)
type AdditionalFieldsResult = Record<string, string | number | boolean | string[]>

try {
  const response = await $b24.actions.v2.call.make<AdditionalFieldsResult>({
    method: 'landing.landing.getadditionalfields',
    params: {
      lid: 349,
    },
    requestId: Text.getUuidRfc4122()
  })

  // The payload is available only on a successful response
  if (!response.isSuccess) {
    console.error(response.getErrorMessages().join('; '))
  } else {
    const result = response.getData()!.result
    console.info('Additional fields:', Object.keys(result).length, result)
  }
} catch (error) {
  // Thrown on transport or SDK failures (AjaxError, SdkError, etc.)
  console.error(error)
}
```

### JS (UMD)

```html
<!-- Load the SDK (UMD build); it is exposed as the global B24Js -->
<script src="https://unpkg.com/@bitrix24/b24jssdk@1/dist/umd/index.min.js"></script>
<script>
  async function getAdditionalFields() {
    try {
      // Initialize the SDK inside a Bitrix24 frame
      const $b24 = await B24Js.initializeB24Frame()

      const response = await $b24.actions.v2.call.make({
        method: 'landing.landing.getadditionalfields',
        params: {
          lid: 349,
        },
        requestId: B24Js.Text.getUuidRfc4122()
      })

      // The payload is available only on a successful response
      if (!response.isSuccess) {
        console.error(response.getErrorMessages().join('; '))
        return
      }

      const result = response.getData().result
      console.info('Additional fields:', Object.keys(result).length, result)
    } catch (error) {
      // Thrown on transport or SDK failures (AjaxError, SdkError, etc.)
      console.error(error)
    }
  }

  document.addEventListener('DOMContentLoaded', getAdditionalFields)
</script>
```

### Python

```python
from b24pysdk.errors import BitrixAPIError, BitrixSDKException

try:
    bitrix_response = client.landing.landing.getadditionalfields(
        lid=349,
    ).response
    result = bitrix_response.result
    print(result)
except BitrixAPIError as error:
    print(
        "Ошибка Bitrix API",
        f"error: {error.error}",
        f"error_description: {error.error_description}",
        sep="\n",
    )
except BitrixSDKException as error:
    print(f"Ошибка Bitrix SDK: {error.message}")
except Exception as error:
    print(f"Непредвиденная ошибка: {error}")
```

### PHP

```php
try {
    $response = $b24Service
        ->core
        ->call(
            'landing.landing.getadditionalfields',
            [
                'lid' => 349,
            ]
        );

    $result = $response
        ->getResponseData()
        ->getResult();

    echo 'Success: ' . print_r($result, true);
} catch (Throwable $e) {
    error_log($e->getMessage());
    echo 'Error getting additional fields: ' . $e->getMessage();
}
```

### BX24.js

```js
BX24.callMethod(
    'landing.landing.getadditionalfields',
    {
        lid: 349
    },
    function(result)
    {
        if (result.error())
        {
            console.error(result.error());
        }
        else
        {
            console.info(result.data());
        }
    }
);
```

### PHP CRest

```php
require_once('crest.php');

$result = CRest::call(
    'landing.landing.getadditionalfields',
    [
        'lid' => 349,
    ]
);

if (isset($result['error']))
{
    echo 'Ошибка: ' . $result['error_description'];
}
else
{
    echo '<pre>';
    print_r($result['result']);
    echo '</pre>';
}
```

### Go

```go
// client и ctx уже созданы — см. раздел «SDK для Go»
res, err := client.Core().Call(ctx, "landing.landing.getadditionalfields", b24.Params{
	"lid": 349,
})
if err != nil {
	return fmt.Errorf("landing.landing.getadditionalfields: %w", err)
}

var item struct {
	FontsCode     string `json:"FONTS_CODE"`
	GacounterUse  string `json:"GACOUNTER_USE"`
	MetamainUse   string `json:"METAMAIN_USE"`
	MetamainTitle string `json:"METAMAIN_TITLE"`
	MetaogTitle   string `json:"METAOG_TITLE"`
	MetaogImage   string `json:"METAOG_IMAGE"`
}
if err := json.Unmarshal(res.Result, &item); err != nil {
	return fmt.Errorf("разбор ответа: %w", err)
}
fmt.Println(item.FontsCode, item.GacounterUse)
```

Оригинал в официальной документации: https://apidocs.bitrix24.ru/api-reference/landing/page/methods/landing-landing-get-additional-fields.html
