Answers.Body: <p>According to the API explorer, the Contact Entity does not return the website information. To include that data, you would have to use a GET action on the Website entity. See the example at (your site)/civicrm/api#examples for the fields the Website entity can return.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-10-03T02:33:02.780Z
Answers.Text: Thank you for the reply!  That address is returning 404 on my WordPress Civi install. But I can see the examples at https://github.com/civicrm/civicrm-core/blob/master/api/v3/examples/Website/Get.php  Seems a bizarre separation.  Appreciate the help!
Answers.UserDisplayName: jerrygarciuh
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-10-03T03:38:31.087Z
Answers.Text: What version of Civi do you have? I think as of 4.6 a link to the API explorer is available in the menu under Support > Developer > Explorer. And agreed, it's a weird separation.
Answers.UserDisplayName: Allen Hutchison
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-10-04T12:30:47.310Z
Answers.Text: In WP the link would be http://yourdomain/wp-admin/admin.php?page=CiviCRM&q=civicrm/api/explorer.
Answers.UserDisplayName: Andrew West
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-10-04T19:29:19.030Z
Answers.Text: Thank you guys!  Able to access explorer in the WP install.  That will be very helpful!  Much obliged!
Answers.UserDisplayName: jerrygarciuh
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-10-03T00:22:43.847Z
Answers.LastActivityDate: 2015-10-03T00:32:03.777Z
Answers.LastEditDate: 2015-10-03T00:32:03.777Z
Answers.UserDisplayName: Allen Hutchison
Body: <p>I am fetching individual contacts using the following:</p>
  
  <pre><code>function get_member($id) {
   $member = array();
   require_once $_SERVER['DOCUMENT_ROOT'] . '/wp-content/plugins/civicrm/civicrm.settings.php';
   require_once $_SERVER['DOCUMENT_ROOT'] . '/wp-content/plugins/civicrm/civicrm/CRM/Core/Config.php';
   $config = CRM_Core_Config::singleton( );
   require_once $_SERVER['DOCUMENT_ROOT'] . '/wp-content/plugins/civicrm/civicrm/api/api.php';
   $contact = civicrm_api('Contact','Get',array('contact_id' =&gt; $id, 'version' =&gt;3));
   if ($contact) {
      $member = $contact['values'][$id];
      $member['membership'] = civicrm_membership_contact_get($id);
   }  
   return $member;
  }
  
  function civicrm_membership_contact_get($contact) {
    $params = array('contact_id' =&gt; $contact);
    try{
      $result = civicrm_api3('Membership', 'get', $params);
      $id = $result['id'];
      return $result['values'][$id];
    } catch (CiviCRM_API3_Exception $e) {
      $errorMessage = $e-&gt;getMessage();
      $errorCode = $e-&gt;getErrorCode();
      $errorData = $e-&gt;getExtraParams();
      return array(
        'error' =&gt; $errorMessage,
        'error_code' =&gt; $errorCode,
        'error_data' =&gt; $errorData,
      );
    }
  
  }
  </code></pre>
  
  <p>The values array returned has all of my name fields, address fields, job title, employer, email, region...  but not my website URL.  Screenshot is of the actual contact entry in the Civi admin.</p>
  
  <p>How do I get the Website URL in my data?</p>
  
  <p><a href="https://i.sstatic.net/ZdZLi.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/ZdZLi.png" alt="admin screenshot"></a></p>
  
Tags: <api>
Title: Some contact information not returned by API Get call
ThreadText: # Some contact information not returned by API Get call
  
  (Asked by: username_0 on 2015-10-02)
  
  I am fetching individual contacts using the following:
  function get_member($id) {
   $member = array();
   require_once $_SERVER['DOCUMENT_ROOT'] . '/wp-content/plugins/civicrm/civicrm.settings.php';
   require_once $_SERVER['DOCUMENT_ROOT'] . '/wp-content/plugins/civicrm/civicrm/CRM/Core/Config.php';
   $config = CRM_Core_Config::singleton( );
   require_once $_SERVER['DOCUMENT_ROOT'] . '/wp-content/plugins/civicrm/civicrm/api/api.php';
   $contact = civicrm_api('Contact','Get',array('contact_id' => $id, 'version' =>3));
   if ($contact) {
      $member = $contact['values'][$id];
      $member['membership'] = civicrm_membership_contact_get($id);
   }  
   return $member;
  }
  
  function civicrm_membership_contact_get($contact) {
    $params = array('contact_id' => $contact);
    try{
      $result = civicrm_api3('Membership', 'get', $params);
      $id = $result['id'];
      return $result['values'][$id];
    } catch (CiviCRM_API3_Exception $e) {
      $errorMessage = $e->getMessage();
      $errorCode = $e->getErrorCode();
      $errorData = $e->getExtraParams();
      return array(
        'error' => $errorMessage,
        'error_code' => $errorCode,
        'error_data' => $errorData,
      );
    }
  
  }
  
  The values array returned has all of my name fields, address fields, job title, employer, email, region...  but not my website URL.  Screenshot is of the actual contact entry in the Civi admin.
  How do I get the Website URL in my data?
  
  **Tags:** api
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2015-10-03. Score: 1 | Accepted answer
  
  According to the API explorer, the Contact Entity does not return the website information. To include that data, you would have to use a GET action on the Website entity. See the example at (your site)/civicrm/api#examples for the fields the Website entity can return.
  
  > **Comments:**
  > **username_0**: Thank you for the reply!  That address is returning 404 on my WordPress Civi install. But I can see the examples at https://github.com/civicrm/civicrm-core/blob/master/api/v3/examples/Website/Get.php  Seems a bizarre separation.  Appreciate the help!  
  > **username_1**: What version of Civi do you have? I think as of 4.6 a link to the API explorer is available in the menu under Support > Developer > Explorer. And agreed, it's a weird separation.  
  > **username_2**: In WP the link would be http://yourdomain/wp-admin/admin.php?page=CiviCRM&q=civicrm/api/explorer.  
  > **username_0**: Thank you guys!  Able to access explorer in the WP install.  That will be very helpful!  Much obliged!  
  
  ---
  
  