Is there a way to get attachment data?

Don’t forget that attachments are just posts (though they are native posts and those tend to be a special case).

Thus simply get_post() on attachment ID should get you typical post object for it. 🙂 Similarly all API functions that work on posts should work on attachments.