Is there a way to develop my owner filebeat to collect data via calling Restful API

I want to develop my own filebeat which receives data by regularly calling Restful API provided by other services. Similar to the way AWS module pulls data from S3 or VPC flows.
It'd be deeply appreciated if anyone can point me to a development guide. Or let me know how Elastic otherwise carries out this type of job differently.

Thanks