Connecting your API data to builder
Connecting your own API data is one of Builder's most powerful features! Learn how with the video tutorial below:
In this example, we will demonstrate how to connect your API data to Builder. Navigate to the content page and create a new entry. Drag and drop a box into the content area. Next, drag and drop a new box into the existing box, then drag and drop an image into the inner box.
Next, select the box that only wraps the image, and give it a width of 200px. Drag and drop a text box below the image. We want the smaller box (the one including the image) to repeat for every item coming in from an API. Go to the "Data" tab and click “+ data source” in the remote data section. We are going to call it "users" and paste the URL into the input box. Once you have hit enter, you will notice under “element data bindings” it says “repeat for each”. Click on the drop down menu, and select “Results”. Now, we have one grid item per result in our array.
Lastly, click on an image. Select “New binding” under the “element data bindings” section. Click on the “get” drop down menu and select image. Then, select the “from” dropdown menu and select the large picture option. Once you have your API data displayed in the editor, you can change the layout.