Пример запроса
GET /rest/1/site/iblock.Element.get?iblockElementId=1&iblockId=1&lang=ru&fields=IBLOCK_ELEMENT_PROPERTIES&filter[PROPERTY_CODE]=тип
пример кода
function getIblockElementsByProperty($iblockId, $propertyCode, $propertyValue)
{
$result = [];
$iblockElements = CIBlockElement::GetList(
['ID' => 'ASC'],
['IBLOCK_ID' => $iblockId],
false,
['ID', 'IBLOCK_ELEMENT_PROPERTIES']
);
while ($iblockElement = $iblockElements->GetNext()) {
foreach ($iblockElement['PROPERTIES'] as $property) {
if ($property['CODE'] === $propertyCode && $property['VALUE'] === $propertyValue) {
$result[] = $iblockElement;
break;
}
}
}
return $result;
}