Skip to content
PowerShell Function To Display Blog Post Data From The API
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

PowerShell Function - retrieve blog data using API

A quick PowerShell Function to retrieve blog post data from my blog site - added to Github as may be useful for others!

Run this function easily by:

Get-Blogs -BlogSiteName ""

Output: alt text

If you require further Output data from the used api, you can run

$WPBlogRetrieve = Invoke-RestMethod -uri "$BlogSiteName/posts/?number=100"

Further info on API

You can’t perform that action at this time.