Hi folks,
It's been a while I created an
lansweeper Restful API and I wanted to introduce this to you in the hope it's useful to somebody, especially because its completely open source.
Short DisclamerI did this API for myself. So it's quite rudimentary and nothing "Enterprise Business Ultra Solution". What it does is go login into your SQL Instance. Query the SQL Data and give you some Results as JSON. There are 2 Queries included and you can adjust that logic if you need. And I hope some coders will expand the project.
With those JSON Data, you get a lot of information from your assets like installed OS, installed Software, Hardware and many more. To get those JSON Data you can simple use 3 lines of Powershell Code or any other language you perfer (Python, Java, C# or even assembly

)
$response = Invoke-WebRequest -Uri "http://localhost:85/api/Values" # Use your API-Lansweeper URI here
$data = ConvertFrom-Json $([String]::new($response.Content))
$data | Out-GridView
Check out the GitHub Repository for more information:
https://github.com/MarcoGriep88/API-Lansweeper
Have a nice day