Answers.Body: <p>Yes, I just used the new API explorer in 4.6 and got a sample PHP call:</p>
  
  <pre><code>$result = civicrm_api3('Contribution', 'get', array( 
    'sequential' =&gt; 1,
    'contact_id' =&gt; array('IN' =&gt; array(58, 25)),
  ));
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-04-07T20:47:14.047Z
Answers.LastActivityDate: 2015-04-07T20:47:14.047Z
Answers.UserDisplayName: DaveD
Body: <p>For example, can I use a single api call to get all the contributions from contact a and contact b. My actual need is to get contributions from the contact and any related contacts, but I assume I need to do that as a previous step, which is done.</p>
  
Tags: <api>
Title: Can I use multiple values in an api Get call?
ThreadText: # Can I use multiple values in an api Get call?
  
  (Asked by: username_0 on 2015-04-07)
  
  For example, can I use a single api call to get all the contributions from contact a and contact b. My actual need is to get contributions from the contact and any related contacts, but I assume I need to do that as a previous step, which is done.
  
  **Tags:** api
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2015-04-07. Score: 6 | Accepted answer
  
  Yes, I just used the new API explorer in 4.6 and got a sample PHP call:
  
  ```
  $result = civicrm_api3('Contribution', 'get', array( 
    'sequential' => 1,
    'contact_id' => array('IN' => array(58, 25)),
  ));
  
  ```
  
  
  ---
  
  