You can install OpenGraph from the PowerShell gallery
Install-Module OpenGraph -Scope CurrentUser -Force
Once installed, you can import the module with:
Import-Module OpenGraph -PassThru
You can also clone the repo and import the module locally:
git clone https://github.com/PoshWeb/OpenGraph cd ./OpenGraph Import-Module ./ -PassThru
OpenGraph has 1 function
Gets Open Graph metadata for a given URL.
Open Graph is a protocol that enables any web page to become a rich object in a social graph.
It is used many social networks to display rich content when links are shared.
This function retrieves the Open Graph metadata from a given URL and returns it as a custom object.
| Name | Type | Description |
|---|---|---|
| ArgumentList | PSObject[] | A list of any arguments. This allows the command to take natural input. |
| Url | String | The URL that may contain Open Graph metadata |
| Html | String | Any HTML that may contain open graph metadata. |
| Data | IDictionary | A dictionary of additional Open Graph metadata to include in the result |
| Force | SwitchParameter | If set, forces the function to retrieve the Open Graph metadata even if it is already cached. |
| InputObject | PSObject[] | Any number of input objects |
Get-OpenGraph -Url https://abc.com/
'https://thebulwark.com/' | Get-OpenGraph
OpenGraph https://posh.pckt.blog/static-sites-are-simple-6u51kgj
| Name | MemberType |
|---|---|
| ToString | ScriptMethod |
| get_HTML | ScriptProperty |
(c) 2025-2026 Start-Automating