shahin
Active Member
Is there any way I can fetch response from this api https://api.nasdaq.com/api/company/CTXS/earnings-surprise using xmlhttp requests? I've tried like the following but the script keeps buffering when it is made to run.
Code:
Sub GetResponse()
Const URL$ = "https://api.nasdaq.com/api/company/CTXS/earnings-surprise"
Dim Http As Object
Set Http = CreateObject("MSXML2.XMLHTTP")
With Http
.Open "GET", URL, False
.setRequestHeader "User-Agent", "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.128 Safari/537.36"
.send
MsgBox .responseText
End With
End Sub