Download an optimized file
Downloads the optimized file as an attachment, a PNG for an image or an MP4 for a video. Needs no key, so the link can be passed on until expires_at.
GET
https://realpng.com/api/v1/optimize/{id}/filePath Parameters
id*string
Format
uuidResponse Body
application/json
application/json
curl -L -o optimized.png "https://realpng.com/api/v1/optimize/4e7a1c9d-8b2f-4d6e-a3c5-7f0b9e2d6a81/file""string"Get an optimization GET
Returns an optimization job's status, and once it succeeds, the download link and the optimization score of the optimized file.
Download an optimized image GET
Downloads the optimized file as an attachment, the same as GET /optimize/{id}/file. Needs no key, so the link can be passed on until expires_at.