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

Опубликовано: 17 Март 2026
на канале: Introvert Reflection
820
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}"