Araya bir api yazabilirsiniz ya da direkt komutu çalıştırıp geriye json döndüren bir script yazabilirsiniz.