RandomTesting/Untitled5.ps1
# Define the base URL and the item name $baseUrl = "https://api.warframe.market/v1/items" $itemName = "rhino_prime_set" # Replace with the URL-friendly name of the item $statisticsEndpoint = "statistics" # Construct the full URL for the statistics endpoint $url = "$baseUrl/$itemName/$statisticsEndpoint" # Make the GET request $response = Invoke-WebRequest -Uri $url -Method GET -Headers @{ "Accept-Language" = "en" # Optional: Specify the language for the response } # Convert the JSON response to a PowerShell object $statsData = $response.Content | ConvertFrom-Json # Output the daily average price $dailyStats = $statsData.payload.statistics_live.'48hours' $dailystats | FT |