Answers.Body: <p>Unfortunately, there isn't a way to get the price set used for the contribution or event page. The link is stored in civicrm_price_set_entity, with entity_table set as civicrm_contribution_page or civicrm_event and entity_id as contribution page or event id.</p>
  <p>Or you can apply the patch to support for <a href="https://github.com/civicrm/civicrm-core/pull/23695" rel="nofollow noreferrer">api3</a> and <a href="https://github.com/civicrm/civicrm-core/pull/23694" rel="nofollow noreferrer">api4</a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-06-05T19:04:29.447Z
Answers.LastActivityDate: 2022-06-05T19:04:29.447Z
Answers.UserDisplayName: Pradeep Nayak
Body: <p>I am trying to use the API 4 to get all the related Price Sets for a given Contribution Page. I am having a hard time with this, being new to the API and the join function. Any help? In API 3, Price Sets were returned with a list of related entities, and I was able to go through all of them to identify those related to the Contribution Page.</p>
  
Tags: <contribution-page><price-sets><apiv4>
Title: How to get Price Sets related to a Contribution Page using API 4
ThreadText: # How to get Price Sets related to a Contribution Page using API 4
  
  (Asked by: username_0 on 2022-06-05)
  
  I am trying to use the API 4 to get all the related Price Sets for a given Contribution Page. I am having a hard time with this, being new to the API and the join function. Any help? In API 3, Price Sets were returned with a list of related entities, and I was able to go through all of them to identify those related to the Contribution Page.
  
  **Tags:** contribution-page, price-sets, apiv4
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2022-06-05. Score: 1
  
  Unfortunately, there isn't a way to get the price set used for the contribution or event page. The link is stored in civicrm\_price\_set\_entity, with entity\_table set as civicrm\_contribution\_page or civicrm\_event and entity\_id as contribution page or event id.
  
  Or you can apply the patch to support for [api3](https://github.com/civicrm/civicrm-core/pull/23695) and [api4](https://github.com/civicrm/civicrm-core/pull/23694)
  
  
  ---
  
  