Answers.Body: <p>what is that you have in the param?</p>
  
  <p>I would suggest you to use the api explorer, it should guide you and the generated code can be copy/pasted in your plugin</p>
  
  <p>Just to be clear: the min_amount and max_amount are the amounts a user CAN enter, it doesn't show how much has been given already. for that, you should look at the contribution api.getcount (and filter it by contribution_page) </p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-01-18T17:09:35.150Z
Answers.LastActivityDate: 2016-01-18T17:09:35.150Z
Answers.UserDisplayName: Xavier
Body: <p>Issue: Coding wordpress plugin for civicontribute widget, I need to get some variables in order to build the progress bar.</p>
  
  <p>When I use <code>civicrm_api3('contribution_page', 'getfields');</code> it returns a lot of information which does not seem to be accessible when using <code>civicrm_api3('contribution_page', 'get', $params);</code>.</p>
  
  <p>May some of you put a bot of light on how to get this data?</p>
  
  <p>PS. May it be easier to code an alternative template for the widget?</p>
  
  <p>Thanks!</p>
  
Tags: <civicontribute><api>
Title: How to get max_amount, min_amount from Contribution Page
ThreadText: # How to get max_amount, min_amount from Contribution Page
  
  (Asked by: username_0 on 2016-01-18)
  
  Issue: Coding wordpress plugin for civicontribute widget, I need to get some variables in order to build the progress bar.
  
  When I use `civicrm_api3('contribution_page', 'getfields');` it returns a lot of information which does not seem to be accessible when using `civicrm_api3('contribution_page', 'get', $params);`.
  
  May some of you put a bot of light on how to get this data?
  
  PS. May it be easier to code an alternative template for the widget?
  
  Thanks!
  
  **Tags:** civicontribute, api
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2016-01-18. Score: 1
  
  what is that you have in the param?
  
  I would suggest you to use the api explorer, it should guide you and the generated code can be copy/pasted in your plugin
  
  Just to be clear: the min\_amount and max\_amount are the amounts a user CAN enter, it doesn't show how much has been given already. for that, you should look at the contribution api.getcount (and filter it by contribution\_page)
  
  
  ---
  
  