Is there any api like ElasticSearch nest api for Logstash

Logstash already has a large number of input plugins, including beats, file, http, tcp, and udp that all might fit your purpose. Why do you need an additional API?