Getting the file size of attachments added to posts through the API

Clever solution!

If you can’t install the data explorer plugin, I’m afraid you’ve got the best available solution.