Specified return fields in contact get do not get returned
If include 'state_province' in return param it should return you state_province_id, state_province_name and state_province.
For geofield1 you need to use 'geo_code_1'.
If you search for primary address in return field drop down under api explorer you should see the exact name for fields to retrieve for address.
$result = civicrm_api3('Contact', 'get', [
  'sequential' =&gt; 1,
  'return' =&gt; [&quot;address_id&quot;, &quot;city&quot;, &quot;postal_code&quot;, &quot;state_province&quot;, &quot;geo_code_1&quot;, &quot;country&quot;],
  'state_province_name' =&gt; ['IS NOT NULL' =&gt; 1],
]);