Just for info, PasteBin does indeed have a documented API that could be used.
I’d +1 PasteBin integration .