/bubble-integrations

Bubble.io and Pixabay API integration: Step-by-Step Guide 2024

Explore our step-by-step guide on integrating Bubble.io with Pixabay API to enhance your app-building and image sourcing capabilities.

What is Pixabay API?

The Pixabay API is a programming interface that allows software applications to interact with the Pixabay platform. With the API, developers can integrate the functionality of Pixabay into their own applications or websites. They can programmatically access and utilize Pixabay's vast library of over 1.8 million public domain and copyrighted-free photos, vectors, illustrations, and videos in their projects. It supports various functions including searching and retrieving content metadata.

Matt Graham, CEO of Rapid Developers

Book a call with an Expert

Starting a new venture? Need to upgrade your web or mobile app? RapidDev builds Bubble apps with your growth in mind.

Book a free No-Code consultation

How to integrate Bubble.io with Pixabay API?

Step 1: Create Pixabay API Key

To integrate Pixabay API with Bubble.io, you first need the Pixabay API key. This is necessary to connect to Pixabay's service.

  1. Go to the Pixabay API page: Pixabay API
  2. Click on 'Sign Up' if you don't already have an account or 'Login' if you have one.
  3. Once you are logged in, click on 'Get Started' button to get your API Key.

Step 2: Setup Bubble.io Account

Bubble.io is a visual programming platform that's going to use this API. Before we continue, please ensure you have an account with Bubble.

  1. Visit the Bubble website: Bubble.io
  2. Click on 'Sign Up' or 'Log In' if you already have an account.

Step 3: Create New App on Bubble.io

For Pixabay API integration, we need a place to visualize the data. This is where we create an app.

  1. Go to your dashboard on Bubble.
  2. Click on '+New App'.
  3. Give your app a name and choose whether it's a clone or a new one.
  4. Click on 'Create' to finalize.

Step 4: Install API Connector Plugin

Bubble supports API connectivity through a plugin, which we need to install.

  1. Go to the Bubble editor page of your app.
  2. Navigate to the 'Plugins' tab using the left-hand panel.
  3. Click the '+Add plugins' button.
  4. In the search bar, write 'API Connector' and press enter.
  5. Once it shows up, install the API Connector plugin.

Step 5: Configuring the API Connector

Now we have to add and configure the Pixabay API with the connector.

  1. After installing, go back to the 'Plugins' tab.
  2. Click on 'API Connector'.
  3. Hit 'Add another API'.
  4. Name it 'Pixabay API'.
  5. Choose 'GET' as the Data Type.
  6. For 'API Base URL', type "https://pixabay.com/api/"
  7. In 'Query Parameters', type the following:
    1. key = [Your Pixabay API Key]
    2. q = [Your query]

Step 6: Configure the Image Data

As Pixabay is an image resource, we have to make sure we set it up to correctly display the images.

  1. Go to the 'App Data' section in the Bubble editor.
  2. Here, click on 'New Type'.
  3. Give your type a name such as 'Image'.
  4. Now, create a new field called 'URL' with the field type as 'text'.

Step 7: Create a Repeating Group

This is Bubble's method of displaying items from a list which in this case refers to our image results from the Pixabay API.

  1. Go back to the 'Design' tab in Bubble.
  2. From the element palette on the left, drag and drop a 'Repeating Group' element to your app page.
  3. Change the 'Type of content' to match your image data type.
  4. For 'Data source', select 'Get data from an external API'. A new option for 'API Provider' should appear which is where you select 'Pixabay API'.

Step 8: Display Images in the Repeating Group

Now that we're fetching data from the Pixabay API, we need to display it through an image element.

  1. Drag and drop an 'Image' element within one of the cells of the repeating group.
  2. Click to select your image element, then in the 'Image' input (right panel), select 'Current cell’s Image’s URL' to bind the image data to your element.

Once all these steps are done, preview your app to see the display of images from the Pixabay API. Depending on your query, you will see different results corresponding to it.

Please note the Pixabay API has a limit to the number of requests that can be made. Make sure to handle the API calls properly to avoid exhausting your limit.

Bubble.io and Pixabay API integration usecase

Scenario: A travel agency wants to enhance user experience on their website with high quality images depicting various destinations. They use Bubble.io as their platform to design and update their website. To insert spacious selection of high-quality images according to each destination, They want to use Pixabay and its API Integration to automatically update these pictures as per the location being viewed by the travel agency's website visitors.

Solution: Integrating Bubble.io with Pixabay API

Website Design: The travel agency uses Bubble.io to design their website, which includes individual pages for each travel destination.

Setting Up the Integration: The agency installs the Pixabay API plugin in Bubble.io and configures it with their Pixabay API key. They set up workflows in Bubble.io that trigger a call to the Pixabay API whenever a visitor views the page of a specific destination.

Image Fetching Workflow: When a visitor navigates to a destination page, the workflow triggers a call to the Pixabay API using the configured plugin action. The API call is designed to return images relating to the destination being viewed.

Automatic Image Updating: High quality, relevant images from Pixabay are automatically populated on the webpage. The images change dynamically according to the destination being viewed, ensuring that visitors are always greeted with fresh, engaging visual content.

Monitoring and Analytics: The integration also allows for seamless monitoring of image performance. The agency can track how engaging the images are and if they lead to increased destination inquiries or bookings.

Benefits:

  • Efficiency: Automating image population saves time and human resources as the website will no longer require manual photo updating.
  • Enhanced User Experience: By providing rich, high-quality images relevant to each destination, the travel agency can captivate potential customers and motivate them to make bookings.
  • Data Insights: By tracking the performance of images, the agency can understand what types of images resonate most with their audience, helping to tailor and optimize their content strategy accordingly.

By integrating Bubble.io with Pixabay, the travel agency can provide a dynamic, visually engaging website experience, ultimately leading to increased traffic and bookings.

Explore More Valuable No-Code Resources

No-Code Tools Reviews

Delve into comprehensive reviews of top no-code tools to find the perfect platform for your development needs. Explore expert insights, user feedback, and detailed comparisons to make informed decisions and accelerate your no-code project development.

Explore

WeWeb Tutorials

Discover our comprehensive WeWeb tutorial directory tailored for all skill levels. Unlock the potential of no-code development with our detailed guides, walkthroughs, and practical tips designed to elevate your WeWeb projects.

Explore

No-Code Tools Comparison

Discover the best no-code tools for your projects with our detailed comparisons and side-by-side reviews. Evaluate features, usability, and performance across leading platforms to choose the tool that fits your development needs and enhances your productivity.

Explore
Want to Enhance Your Business with Bubble?

Then all you have to do is schedule your free consultation. During our first discussion, we’ll sketch out a high-level plan, provide you with a timeline, and give you an estimate.

Book a free consultation

By clicking “Accept”, you agree to the storing of cookies on your device to enhance site navigation, analyze site usage, and assist in our marketing efforts. View our Privacy Policy for more information.

Cookie preferences