Sends multiple HTTP requests in parallel.
class UrlFetchApp method .fetchAll()
UrlFetchApp is the Apps Script service.
.fetchAll() is the method name you will see after a dot in your code.
What it does
Why it's used
- Hit many URLs at once instead of waiting on each one.
- Speed up syncing several endpoints in one run.
Common errors
- Forgetting parentheses on fetchAll. Write UrlFetchApp.fetchAll(), not UrlFetchApp.fetchAll or fetchAll by itself.
- Skipping dots between chained calls. Each step needs a dot, like UrlFetchApp.fetchAll().
- Adding spaces where they do not belong. Write UrlFetchApp.fetchAll(), not UrlFetchApp .fetchAll(), UrlFetchApp.fetchAll (), or UrlFetchApp . fetchAll().
- Wrong capitalization. Use UrlFetchApp and fetchAll, not urlfetchapp or fetchall.
Explore
Related methods
-
.fetch()
Sends an HTTP request to a URL and returns the response.
-
.getHeaders()
Returns the HTTP headers from a response.
-
.getContentText()
Reads the response body as text.
-
.getResponseCode()
Returns the HTTP status code from a response.
More Apps Script
Better Sheets tutorials
No tagged tutorials yet. Fetch Apps Script from the harvest table and this page fills automatically.
Related blog posts
Written guides about UrlFetchApp.fetchAll().