Chrysolites Tech Academy

Video by Joel Loh | AI Automations · streamed from YouTube. All rights remain with the creator.

Lesson 16: Search with API Calls to Supabase

About this lesson

In this part of the series, Joel Loh shows how to implement API calls in FlutterFlow, using them to call the Supabase database directly and recreate the simple search functionality built in the previous part. Making API calls is an essential skill, because the same approach lets an app communicate with almost any external service, and the video uses search as a practical first example. It begins by creating an API call in FlutterFlow, setting it up to send a request to the Supabase database with the information needed to search for posts, so that the database itself does the searching and returns only the matching results. The video then introduces custom data types, which describe the structure of the data that comes back from the API call, so that the app can understand the response and use each piece of information, such as the image and caption of a post, in its widgets. Next comes implementing the API call on the search page, connecting it to the search input and displaying the results that are returned in the grid, replacing the earlier simple search with a version that works directly against the database. A test checks that the new search returns the right posts for different search terms. By the end of the video, the app's search runs through an API call to Supabase, a more scalable approach that does not depend on downloading posts first, and the next part creates the post detail page. Afterwards, read Chapter 16 of the course book, which works through the search request and URL encoding by hand.

Install Chrysolites Tech Academy

Android / Chrome / Edge: open the browser menu and choose Install app or Add to Home screen.

iPhone / iPad (Safari): tap the Share button, then Add to Home Screen.