Daily rate lookup
A time-driven trigger fetches a JSON rate from a public API and writes the value to a Rates tab for formulas to reference.
UrlFetchApp lets Apps Script send HTTP requests to external URLs and read the response. You use it to pull data from APIs, post webhooks, or sync sheet rows with tools like Slack, Stripe, or your own server. It is the bridge between your spreadsheet and the rest of the web.
Use UrlFetchApp when sheet data must talk to an outside system: fetch exchange rates, push new leads to a CRM, call a REST API on a schedule, or verify a license key.
Skip UrlFetchApp when a built-in function like IMPORTXML or GOOGLEFINANCE is enough, or when a no-code connector handles the integration with less code to maintain.
Build a URL and optional options object with method, headers, payload, or muteHttpExceptions.
Call UrlFetchApp.fetch(url, options) and read the response with getContentText() or getBlob().
Parse JSON with JSON.parse when the API returns JSON.
Run once manually to authorize external request permissions.
Wrap calls in try/catch and log status codes when muteHttpExceptions is true.
Respect daily UrlFetch quotas and avoid tight loops that hammer the same endpoint.
A time-driven trigger fetches a JSON rate from a public API and writes the value to a Rates tab for formulas to reference.
onFormSubmit posts e.values as JSON to your server webhook URL so a database updates when a form arrives.
When a status cell changes to Urgent, UrlFetchApp posts a short message payload to a Slack incoming webhook URL.
Build this without starting from a blank cell
Use a Better Sheets tool for UrlFetchApp, then watch a walkthrough when you want the full pattern.
Watch how UrlFetchApp works
Guides that explain UrlFetchApp in more depth.
Extract url from hyperlink google sheets.Skip the Command K. This Google Sheet tutorial will make it easier for you to extract URLS from Google Sheets.
Read post →If you know how to code, you'll learn in this step-by-step tutorial how to code in Google Sheets.
Read post →Does Google Sheets have an AI Formula? No but you can add one. Simple use Apps Script to add an AI formula to your sheets. You can use your own AI from Open AI and this comes out to be much cheaper than even $20 a month for ChatGPT at times. Depends on your use of AI. I just updated Better Sheets' AI apps script to use Open AI Omni. Get the full script here. Can I use ChatGPT in Google Sheets? No but you can create ChatGPT in Google Sheets. Let me show you! But I need help with Google...
Read post →The Google Sheets API lets other programs read and update spreadsheets over HTTP using JSON. It is how dashboards, backends, and mobile apps sync data without opening the Google Sheets UI. Apps Script inside a file is simpler for sheet owners; the API fits systems built in Python, Node, or other stacks.
Read guide →Triggers tell Apps Script when to run a function: on edit, on open, on a schedule, or when a form is submitted. Simple triggers use reserved names like onEdit. Installable triggers are created in the Apps Script Triggers page and can do more, including running as a specific user or on a timer.
Read guide →Automation means work happens without repeating the same clicks every day: imports update, emails send, rows move, and dashboards refresh. In Sheets, automation usually stacks built-in features, Apps Script, and sometimes the Sheets API or add-ons. Start with the lightest tool that still solves the job.
Read guide →A web app turns your script into a URL that runs doGet or doPost when someone visits or posts data. The page can read and write your spreadsheet behind the scenes, which is useful for simple forms, internal tools, and lightweight APIs without standing up a separate server.
Read guide →Done reading about UrlFetchApp?
Membership unlocks 636+ tutorials, unlimited generators, and every template. Practical lessons. Zero fluff.
Need this once
Jump to a free tool or a single tutorial for this topic.
Learning Sheets for real
Unlock the full library, generators, and templates with membership.