Skip to main content

8.2 HTTP API Communication

Learn how to use the HTTP Generator to connect with HTTP API services

BRICKS TOOLS avatar
Written by BRICKS TOOLS
Updated over a week ago

Welcome to BRICKS.
This tutorial covers the second step of external data communication: HTTP API communication. By completing this chapter, you will easily master the fundamental use of external data communication in the BRICKS Cloud Intelligent Display.


🕐 Estimated time to complete this tutorial: 2–3 minutes

  • Step 1: Create an HTTP Generator

    First, create a Generator of type HTTP to enable integration with external HTTP data sources.

    Create new HTTP Generator

  • Step 2: Connect the HTTP Generator to a JSON API URL

    For demonstration purposes, we will use an API service that provides world clock data.

    Visit http://worldclockapi.com/ and select your preferred time format API. Copy the URL and paste it into the HTTP Generator. In this example, we will use Eastern Standard Time:
    http://worldclockapi.com/api/json/est/now


  • Step 3: Configure the HTTP Generator Request Method

    Using the JSON-based API URL obtained in Step 2, return to the HTTP Generator created in Step 1.
    In the properties panel on the right:

    • Paste the API URL into the URL field.

    • Set Method to GET.

    • Set Res Type (response type) to [ json ].

Setup HTTP Generator URL and Method properties

  • Step 4: Quickly Create a Corresponding Variable

    In the HTTP Generator’s Outlets, the first option is Response, which represents the data returned from the HTTP API request. From the dropdown menu, select [ Create New ] to quickly generate a new variable to store the JSON response.

    In the next section, we will explain how to process JSON data and convert it into a format that can be displayed.

  • Congratulations! You have now learned the basic concept of HTTP API communication.


The next lesson will introduce data processing methods.

For any assistance, please click the chat icon in the bottom-right corner. Our team will respond to your questions as quickly as possible.

Did this answer your question?