Utilities/Get-ItemDataJSON.ps1

#This gets all the prime item info JSON.
#This contains the ducat value and vault status
#Right now this JSON is processed into a hash table and serialized to XML for reuse without extra API calls.
# Base URL for the API
$baseURL = "https://warframe.fandom.com/api.php"

# API Parameters
$params = @{
    action   = "scribunto-console"
    format   = "json"
    title    = "Module:Void/data"
    content  = ""
    question = @"
local VoidData = require('Module:Void/data').PrimeData
local json = require('Module:JSON')
print(json.stringify(VoidData))
"@

    clear    = 1
}

$response = Invoke-RestMethod -Uri $baseURL -Method POST -Body $params -ContentType "application/x-www-form-urlencoded"

return $response.print