Search custom field by name
You can use api 4 if you want to use as the name
$contacts = civicrm_api4('Contact', 'get', [
  'select' =&gt; [
    'constituent_information.Most_Important_Issue',
  ],
  'where' =&gt; [
    ['id', '=', 123],
  ],
]);