Retrieve value from previously called API that is not displayed

Hello,

I am new to Bubble - having moved from another software. Here is a breakdown of my scenario:

I have two API’s set-up - both are working within the plugin.
API1 = Address List finder
API2 = Address Detail

The concept is to type in a postcode and click search. This triggers API1 which provides a JSON file with a list of addresses and each address has an ID number. I present the addresses as part of a repeating group. I would then like to click on which address in the list is of interest - determine the ID number from the first call and then use that as a dynamic input to trigger API2 once clicked. This will the show the address details in some fields.

In my previous software I could store the results of the initial call as a “Page Variable” - no data base storage required. How can I set-up a similar sequence in bubble.

Here are snippets of the two JSON files:

API 1 Results:
{
“body”: {
“ContainerCount”: 100,
“Items”: [
{
“Id”: “GB|RM|B|14183510”,
“Text”: “25 Alpine Terrace, Stockwood Crescent Luton, LU1 3SS”,
“Highlight”: “”,
“Cursor”: 0,
“Description”: “”,
“Next”: “Retrieve”
},
{
“Id”: “GB|RM|B|14183489”,
“Text”: “14 Alpine Terrace, Stockwood Crescent Luton, LU1 3SS”,
“Highlight”: “”,
“Cursor”: 0,
“Description”: “”,
“Next”: “Retrieve”
},
{
“Id”: “GB|RM|B|14183491”,
“Text”: “15 Alpine Terrace, Stockwood Crescent Luton, LU1 3SS”,
“Highlight”: “”,
“Cursor”: 0,
“Description”: “”,
“Next”: “Retrieve”
}

API2 Results - ID field used as an input:

{
“body”: {
“Items”: [
{
“Id”: “GB|RM|B|14183510”,
“DomesticId”: “14183510”,
“Language”: “ENG”,
“LanguageAlternatives”: “ENG”,
“Department”: “”,
“Company”: “”,
“SubBuilding”: “”,
“BuildingNumber”: “”,
“BuildingName”: “25 Alpine Terrace”,
“SecondaryStreet”: “”,
“Street”: “Stockwood Crescent”,
“Block”: “”,
“Neighbourhood”: “”,
“District”: “”,
“City”: “Luton”,
“Line1”: “25 Alpine Terrace”,
“Line2”: “Stockwood Crescent”,
“Line3”: “”,
“Line4”: “”,
“Line5”: “”,
“AdminAreaName”: “Luton”,
“AdminAreaCode”: “”,
“Province”: “Bedfordshire”,
“ProvinceName”: “Bedfordshire”,
“ProvinceCode”: “”,
“PostalCode”: “LU1 3SS”,
“CountryName”: “United Kingdom”,
“CountryIso2”: “GB”,
“CountryIso3”: “GBR”,
“CountryIsoNumber”: 826,
“SortingNumber1”: “60111”,
“SortingNumber2”: “”,
“Barcode”: “(LU13SS5LC)”,
“POBoxNumber”: “”,
“Label”: “25 Alpine Terrace\nStockwood Crescent\nLUTON\nLU1 3SS\nUNITED KINGDOM”,
“Type”: “Residential”,
“DataLevel”: “Premise”,
“Field1”: “”,
“Field2”: “”,
“Field3”: “”,
“Field4”: “”,
“Field5”: “”,
“Field6”: “”,
“Field7”: “”,
“Field8”: “”,
“Field9”: “”,
“Field10”: “”,
“Field11”: “”,
“Field12”: “”,
“Field13”: “”,
“Field14”: “”,
“Field15”: “”,
“Field16”: “”,
“Field17”: “”,
“Field18”: “”,
“Field19”: “”,
“Field20”: “”
}
]
}

I have no issue with setting up the workflows but I cannot figure out what I need to do to navigate back to the JSON file from API1, use the index of the “clicked” row and then get the “id” so that I can use it as an input to API2.

Any help would really be appreciated.

Josh