Extract page information and images from archived branch

Hi,

I have tried to create exporter script to get pages and generate images thru REST API. But archived branches seem not to be accessible thru the API. Archived branch page keys always gives a 404 error. Archived branch link in browser works but seems to redirect to /main_key/branch/branch_key.

Thanks