Custom Data Processer

How does one setup a custom processor? I’d like to copy all the data from my devices to my own database. Right now I’m planning to use API calls, but I’d like to learn more about this option. Thanks!