[Google Apps Script] Fetch a public image as a blob

Created on November 30, 2026

Use UrlFetchApp.fetch to make a GET request to the image URL. Call getBlob() on the resulting HTTPResponse to obtain the image as a Blob.

var response = UrlFetchApp.fetch('https://example.com/some/image.png');
var imageBlob = response.getBlob();
Google Apps Script