response = requests.request("GET", url, headers=headers, data=payload, verify=False)
My response variable contains a response from an HTTP request and I need to extract the ID value under the Items array.
{'links': {'self': 'https://10.163.1.43/api/fmc_config/v1/domain/e276abec-e0f2-11e3-8169-6d9ed49b625f/devices/devicerecords?offset=0&limit=25&filter=name:Test-FTD&expanded=true'}, **'items': [{'deploymentStatus': 'DEPLOYMENT_PENDING', 'id': 'adab761e-9668-11ee-abae-e49d35beb127'**, 'type': 'Device', 'links': {'self': 'https://10.163.1.43/api/fmc_config/v1/domain/e276abec-e0f2-11e3-8169-6d9ed49b625f/devices/devicerecords/adab761e-9668-11eember': '78', 'modelType': 'Sensor', 'healthStatus': 'red', 'healthMessage': 'Cisco Cloud Configuration - SSE enrollment failure. ', 'sw_version':
'7.2.5', 'healthPolicy': {'id': 'dbe98880-32e2-11ed-917a-e6821804acf4', 'type': 'HealthPolicy', 'name': 'Initial_Health_Policy 2022-09-12 21:35:45'}, 'accessPolicy': {'name': 'Test-Policy', 'id': '0050568a-7152-0ed3-0000-012884920695', 'type': 'AccessPolicy'}, 'advanced': {'enableOGS': False}, 'hostName': '10.160.5.6', 'license_caps': ['BASE', 'THREAT'], 'keepLocalEvents': False, 'prohibitPacketTransfer': True, 'isConnected': True, 'ftdMode': 'ROUTED', 'analyticsOnly': False, 'deviceGroup': {'id': '95c4f0e4-a1b7-11ed-b5ed-82df665b6681', 'type': 'DeviceGroup', 'name': 'US'}, 'metadata': {'readOnly': {'state': False}, 'inventoryData': {'cpuCores': '1 CPU (4 cores)', 'cpuType': 'CPU Atom C3000 series 2200 MHz', 'memoryInMB': '2824 MB RAM'}, 'deviceSerialNumber': 'JAD2749031Y', 'domain': {'name': 'Global', 'id': 'e276abec-e0f2-11e3-8169-6d9ed49b625f', 'type': 'Domain'}, 'isMultiInstance': False, 'snortVersion': '3.1.21.500-21', 'vdbVersion': 'Build 353 - 2022-03-07 22:13:19.0', 'lspVersion': 'lsp-rel-20240117-1601', 'clusterBootstrapSupported': False}, 'snortEngine': 'SNORT3'}], 'paging': {'offset': 0, 'limit': 25, 'count': 1, 'pages': 1}}
I am sorta new to coding so any help is much appreciated.