After adding the registered API in your App, you need to use a special function called as BINDAPI() to bind the response data from the API to any control. To do so, let's bind couple of data from our example of the registered API - Google Custom Search.

In the API, we would try to fetch two information from the API response data, called as, searchTime & totalResults in searchInformation array (a piece of API response data is shown below)

{
"kind": "customsearch#search",
"url": {
"type": "application/json",
"template": "https://www.googleapis.com/customsearch/v1?q={searchTerms}&num={count?}&start={startIndex?}&lr={language?}&safe={safe?}&cx={cx?}&sort={sort?}&filter={filter?}&gl={gl?}&cr={cr?}&googlehost={googleHost?}&c2coff={disableCnTwTranslation?}&hq={hq?}&hl={hl?}&siteSearch={siteSearch?}&siteSearchFilter={siteSearchFilter?}&exactTerms={exactTerms?}&excludeTerms={excludeTerms?}&linkSite={linkSite?}&orTerms={orTerms?}&relatedSite={relatedSite?}&dateRestrict={dateRestrict?}&lowRange={lowRange?}&highRange={highRange?}&searchType={searchType}&fileType={fileType?}&rights={rights?}&imgSize={imgSize?}&imgType={imgType?}&imgColorType={imgColorType?}&imgDominantColor={imgDominantColor?}&alt=json"
},
"queries": {
"request": [
{
"title": "Google Custom Search - test",
"totalResults": "3520000000",
"searchTerms": "test",
"count": 10,
"startIndex": 1,
"inputEncoding": "utf8",
"outputEncoding": "utf8",
"safe": "off",
"cx": "006295970865292496509:o_zxi62wuhs"
}
],
"nextPage": [
{
"title": "Google Custom Search - test",
"totalResults": "3520000000",
"searchTerms": "test",
"count": 10,
"startIndex": 11,
"inputEncoding": "utf8",
"outputEncoding": "utf8",
"safe": "off",
"cx": "006295970865292496509:o_zxi62wuhs"
}
]
},
"context": {
"title": "*.dronahq"
},
"searchInformation": {
"searchTime": 0.227842,
"formattedSearchTime": "0.23",
"totalResults": "3520000000",
"formattedTotalResults": "3,520,000,000"
},
}


To search the mentioned information, we need to use the BINDAPI(), the way we use LOOKUP(). 

In the BINDAPI(), type the API name, followed by a dot ( . ) and the corresponding node name. So in our example, if we want to lookup values of say searchTime in searchInformation, then the formula will look like this -

BINDAPI([GoogleCustomSearch.searchInformation.searchTime])

where GoogleCustomSearch is the API name, searchInformation is the node name and searchTime is the key to be looked for.

Type in this formula in the formula text box of a control say - Search Time (as shown in the below image).

Save and Validate the formula and preview the app to see the result (as shown in the below image).

This is how you can bind the data from API response to any control using BINDAPI() function.

Did this answer your question?