11 | PowerShell how to fetch data using Api(s). Restapi, web service,export to Json, Export to excel

Опубликовано: 21 Сентябрь 2026
на канале: Introvert Reflection
824
like

#Powershell
Powershell how to fetch data using Api(s). Restapi, web service,export to Json, Export to excel
#Powershell
***************************************************************************************************
Code:-
Invoke-WebRequest -Method Get -Uri "{api url}" |Export-Clixml "FullPath with file name"

Invoke-RestMethod -Method Get -Uri "{apiurl}"|Select-Object -ExpandProperty articles |Out-File "{Full path with file name}"