tic
tic

Reputation: 4189

max length of httpResponse in Google App Script

I'm using UrlFetchApp.fetch to retrieve the content of a web page. I wonder if there is a limit about the length of the returned object text content (by .getContent() or .getContentText() methods).

Upvotes: 0

Views: 710

Answers (1)

Brian
Brian

Reputation: 4344

URL Fetch quotas are set by data sizes (100MB max per day) rather than character limits. Quotas are given on the Apps Script Dashboard.

This SO post from 2012 reports 30K+ characters in a single call. There is no documentation, from what I can tell, about max string sizes. If you're trying to log the string, that's probably why you're seeing a number, n, lower than expected.

Upvotes: 1

Related Questions