Create a zip
create_zipOne download address for a zip of the optimized copies of several finished images, by their ids, by a page scan's id or by a site crawl's id. A scan's zip keeps each image in the folders of its address on the page and adds manifest.csv, mapping each address it fetched to its file. A crawl's zip has a folder for each page laid out the same way, with its own manifest.csv, once get_crawl says the crawl is done. Otherwise an image sent to compress_images with a folder goes in that folder, and the rest at the top of the zip. Images that have not finished are left out and listed, and responsive sizes are never in it: get_image's responsive.download_url zips an image's sizes. The address works without a token and expires after an hour. For a single image, get_image's optimized.download_url downloads it directly.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | No | Up to 150 image ids, as compress_images, get_image and list_images return them. Send one of ids, scan_id and crawl_id. | |
| scan_id | No | The id scan_page returned, to zip every finished image that scan found. Send one of ids, scan_id and crawl_id. | |
| crawl_id | No | The id crawl_site returned, to zip every page of a finished site crawl. Send one of ids, scan_id and crawl_id. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| images | No | How many images the zip holds. | |
| left_out | No | The ids of the images left out because they had not finished. | |
| expires_at | No | ||
| download_url | No | Works without a token until expires_at. |