Why not? Your API can make HTTP requests to the URL of the transparent gif. And if that doesn't do what you want it to do, it's open source so you can make it do so. Or write to the same database with your API and just use the code for visualization.