Answers.Body: <p>I assume you mean a drop-down field? You then need to do another lookup on the OptionValue to get the label, e.g. from the api explorer:</p>
  
  <pre><code>    $result = civicrm_api3('OptionValue', 'get', [
        'return' =&gt; ["label"],
        'option_group_id' =&gt; "custom_marital_status",
        'value' =&gt; "S",
      ]);
  </code></pre>
  
  <p>gives you</p>
  
  <pre><code>"is_error": 0,
      "version": 3,
      "count": 1,
      "id": 866,
      "values": [
          {
              "id": "866",
              "label": "Single"
          }
      ]
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-08-24T16:33:25.687Z
Answers.LastActivityDate: 2019-08-27T08:40:43.223Z
Answers.LastEditDate: 2019-08-27T08:40:43.223Z
Answers.UserDisplayName: Demerit
Body: <p>I would like to retrieve both the value as well as the label from a custom field using the api, but it only seems possible to retrieve the value. 
  I wonder if this is possible, would surely help me a lot!</p>
  
Tags: <api>
Title: Get a field label instead of value using the api
ThreadText: # Get a field label instead of value using the api
  
  (Asked by: username_0 on 2019-08-24)
  
  I would like to retrieve both the value as well as the label from a custom field using the api, but it only seems possible to retrieve the value.
  I wonder if this is possible, would surely help me a lot!
  
  **Tags:** api
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2019-08-24. Score: 2
  
  I assume you mean a drop-down field? You then need to do another lookup on the OptionValue to get the label, e.g. from the api explorer:
  
  ```
      $result = civicrm_api3('OptionValue', 'get', [
        'return' => ["label"],
        'option_group_id' => "custom_marital_status",
        'value' => "S",
      ]);
  
  ```
  
  gives you
  
  ```
  "is_error": 0,
      "version": 3,
      "count": 1,
      "id": 866,
      "values": [
          {
              "id": "866",
              "label": "Single"
          }
      ]
  
  ```
  
  
  ---
  
  