הנה קוד לדוגמא:
Public Function אימות_סניף()
Dim Request As MSXML2.ServerXMLHTTP60
Dim Json As Object
Dim item As Variant
Set Request = New ServerXMLHTTP60
With Request
.Open "GET", "https://data.gov.il/api/action/datastore_search?resource_id=1c5bc716-8210-4ec7-85be-92e6271955c2&filters={""Bank_Code"":""52"",""Branch_Code"":""172""}", False
.send
Set Json = JsonConverter.ParseJson(.responseText)
End With
If Json("success") <> "true" Then
MsgBox "התרחשה שגיאה, פרטי השגיאה: סוג - " & Json("error")("__type") & ", הודעה - " & Json("error")("message")
ElseIf Json("result")("total") = 0 Then
MsgBox "הבקשה לא החזירה תוצאות"
Else
For Each item In Json("result")("records")
MsgBox item("Bank_Name") & " - " & item("Branch_Name") & " - " & item("Branch_Code")
Next item
End If
End Function
הערה. אני משתמש בקוד JsonConverter בשביל לקרוא טוב את התשובה.