How To Integrate Search Engine Results Into A Cross-Platform App

If you are building a search engine data analyzer service, SerpStack API can be handy to integrate full search engine coverage functionalities.

SerpStack API – Lighting-fast JSON REST API for fetching search engine results quickly. With SerpStack API you can target web, image, video, shopping, and news results.

Moreover, SerpStack API provides a powerful proxy network for worry-free searching. You can configure location, language, and more. 

In this demonstration, I am going to show you how to create a low-code native and cross-platform application with Delphi FireMonkey, and also it integrates SerpStack API.

This is what we create in this demonstration. As you can see you can specify a search query and it fetches data from RESTful web service (SerpStack API) and shows all the data summary in specific cards.

If you would like to learn more about SerpStack API features and why you need to choose SerpStack API for your business – check out the informative article here.

https://blog.apilayer.com/serpstack-vs-scale-serp-best-search-engine-results-api/

How to use SerpStack API?

To get started right away, you just need to get your API access key and start using the HTTP GET endpoint with different parameters. Head over and sign up with a free subscription plan on SerpStack API.

Here is a sample API request:

And its response:

How to build a cross-platform application with Delphi FireMonkey?

With RAD Studio, you can build high-performance cross-platform applications several times faster for Windows, iOS, Android, macOS, and Linux with the same codebase.

Furthermore, the FireMonkey App Low Code Wizard provides effortless low code development options to kick start your new native and cross-platform application.

FireMonkey App Low Code Wizard – is a low code development wizard that can create a highly functional Delphi FireMonkey cross-platform application with multiple screens and data layer options in seconds.

Head over to the Embarcadero website and download the latest community edition of Delphi and download the FireMonkey App Low Code Wizard from the GetIt portal using GetIt Package Manager.

How to connect to RESTful web service in Delphi?

RAD Studio comes with a set of independent tools, one of them is REST Debugger. 

REST Debugger is a helpful tool to test out different API endpoints. You can configure different parameters, requests, authentication, and connection options.

Well, the best part is after connecting to any RESTful web service you can click the Copy Components button on the REST Debugger which populates needed REST client components for your Delphi FireMonkey project. Then you can place the REST client components to your project and just bind it with grid or listview to represent fetched data.

But, in our demonstration, I will show you how to do customization to our Delphi FMX application. So there will be some coding involvement.

How to start low-code cross-platform development?

Open your RAD Studio and install the FireMonkey Low Code Wizard tool from GetIt Package Manager

Then create a new project here.

In our demonstration, we do not require a database layer so we can leave it unchecked and you are good to go.

Now you can paste those REST client components that you copied from REST Debugger.

Here is our project structure. The window is already configured for us and the grid panel makes the UI consistent and responsive to different sizes.

When there is a click on the button, it starts a synchronized thread which fetches data from google.com and shows all results in the cards.

I am sure that the source code is straightforward to read. Check out the whole project over on this GitHub repository.

As you can see creating a native and cross-platform application with Delphi FireMonkey is so swift. Besides integration of APIs is in seconds because of REST client components.

Be sure to head over and get a free subscription plan on SerpStack.com right now!