Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

still on api rest and get 1

Status
Not open for further replies.

sal21

Programmer
Apr 26, 2004
425
IT
Based this link, how to get info based the zip code 80128 country IT

Code:
Sub TEST_JSON_PARSE()

    Dim xmlhttp As New MSXML2.XMLHTTP60, myurl As String
    
    myurl = "[URL unfurl="true"]https://api.zipcodestack.com/v1/search?codes=80128&country=it"[/URL]    '//replace with your URL
   
    With xmlhttp
        
        .Open "GET", myurl, False
        .setRequestHeader , "apikey: XXXXXXXXXXXXXXXXXXXXXXX"
        .send
        Debug.Print .responseText        
        
    End With
    
End Sub

naturally have as usual error!!!

note:

refer to ;
Example request:
curl --request GET --get " --header "apikey: {YOUR_API_KEY}
 
.setRequestHeader "apikey", "XXXXXXXXXXXXXXXXXXXXXXXXXX
 
work great!
Tks

Note:
please hide the key.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top