Does it have an API? Can it be programmed?

Yes!

logFaces API is available and is dedicated for those who want to create their own log viewers or process aggregated log data programmatically. Please check out API User Manual for more details.