INNER CODE UNIT · JavaScript

fetchData

buildship-ai/buildship · webflow/basic-api.js:3

    function fetchData() {
      const apiUrl = 'https://0dc3ke.buildship.run/webflowapi'; // Replace with your API URL

      fetch(apiUrl)
        .then(response => response.json())
        .then(data => {
          displayData(data);
        })
        .catch(error => {
          console.error('Error fetching data from the API:', error);
        });
    }

	function displayData(data) {
      const dataContainer = document.getElementById('card-grid');
    
      // Loop through the data and create a card for each item
      data.forEach(item => {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…