Help Needed to Retrieve Page Content Modified with BE Builder via REST API for Python Automation

edited May 2024 in BeBuilder

Hello everyone,

I'm encountering a problem trying to retrieve the content of a page edited with BE Builder using the WordPress REST API as part of an automation project I'm working on with Python. Here are the details of my issue:

I have a page on my WordPress site (Page ID: 2029) that has been edited using BE Builder. I'm attempting to use the WordPress REST API to retrieve the content of this page, but the content field returned is empty.

I have tried retrieving the page data via the wp-json/wp/v2/pages/{id}?_embed endpoint. The API response includes the following metadata but does not contain the BE Builder content:

{'id': 2029, 'date': '2024-05-25T16:42:54', ... , 'meta': {'_themeisle_gutenberg_block_has_review': False, 'footnotes': ''}, ...}

I have also checked the metadata and custom fields, but I cannot find where the BE Builder content is stored.

The script works perfectly when creating a page with the WordPress editor. This issue only occurs with pages edited using BE Builder.

My goal is to clone a page edited with BE Builder to change two variable fields that need to communicate with my management system on a LAN server.

Could someone please help me understand how I can retrieve the content of a page edited with BE Builder via the REST API for my Python automation project? Is there a specific custom field I should be looking for, or is there a particular method to access this data?

Additional Information:

  • Theme: BeTheme (last version updated)
  • Builder: BE Builder
  • WordPress Version: (Last version updated)
  • API Endpoint used: wp-json/wp/v2/pages/{id}?_embed

Thank you very much for your help!

Comments

Sign In or Register to comment.
This website uses cookies

We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information that you’ve provided to them or that they’ve collected from your use of their services.

Cookies are small text files that can be used by websites to make a user's experience more efficient.

The law states that we can store cookies on your device if they are strictly necessary for the operation of this site. For all other types of cookies we need your permission. This means that cookies which are categorized as necessary, are processed based on GDPR Art. 6 (1) (f). All other cookies, meaning those from the categories preferences and marketing, are processed based on GDPR Art. 6 (1) (a) GDPR.

This site uses different types of cookies. Some cookies are placed by third party services that appear on our pages.

You can at any time change or withdraw your consent from the Cookie Declaration on our website.

Learn more about who we are, how you can contact us and how we process personal data in our Privacy Policy.

Please state your consent ID and date when you contact us regarding your consent.