This example itshould work:
`$${site url}/_api/lists/getbytitle('${Title Name}')/items?$select=File/Length&$expand=File`Length&$expand=File
I can get data from Document library
.
ButNote: I'm using in the latest SharePoint online site, I'm not sure if it would work on the old version.