# Invoke-RestMethod

say it: **“in-VOHK REST METH-ud”** **/ɪnˈvoʊk rɛst ˈmɛθəd/**

Calls a web API and turns the JSON into objects.

## What is **Invoke-RestMethod**?

`Invoke-RestMethod` calls a web API and turns the JSON response into objects automatically.

```powershell
$recipes = Invoke-RestMethod https://api.example.com/recipes
$recipes | Select-Object title, minutes
```

Level: Journeyman · [More PowerShell terms at this level](https://www.ask-codey.com/glossary?category=powershell&level=3)

Updated: November 17, 2026

Source: https://www.ask-codey.com/glossary/invoke-restmethod
