---
title: "Google Apps Script: google.script.run vs. doGet/doPost Endpoints"
author: "Martin Hawksey"
date: 2024-04-17T21:48:34+00:00
canonical_url: https://pulse.appsscript.info/p/2024/04/google-apps-script-google-script-run-vs-doget-dopost-endpoints/
markdown_url: https://pulse.appsscript.info/p/2024/04/google-apps-script-google-script-run-vs-doget-dopost-endpoints.md
categories:
  - "Solutions"
tags:
  - "justin.poehnelt.com"
featured_image: https://pulse.appsscript.info/files/2024/04/apps-script-google-script-run-vs-get-post.png
description: "Google Apps Script web apps are a popular way to publish user interfaces for automation processes. I'd never really considered the decision between google.script.run and GET/POST endpoints (doGet and doPost) when making server side calls, but as outlined in this post from Justin Poehnelt there are scenarios where both of these approaches might be most appropriate. Justin also provides some useful code snippets to help you get started with both methods. Follow the source link to read more... "
---

# Google Apps Script: google.script.run vs. doGet/doPost Endpoints

![Google Apps Script: google.script.run vs. doGet/doPost Endpoints](https://pulse.appsscript.info/files/2024/04/apps-script-google-script-run-vs-get-post.png)

[![](https://pulse.appsscript.info/files/2024/04/apps-script-google-script-run-vs-get-post.png)](https://justin.poehnelt.com/posts/apps-script-google-script-run-vs-get-post/)

> Learn about the different options for making API calls in Google Apps Script web apps: `google.script.run` and GET/POST endpoints (`doGet` and `doPost`). Understand their strengths and weaknesses to choose the best approach for your project.

Google Apps Script web apps are a popular way to publish user interfaces for automation processes. I’d never really considered the decision between `google.script.run` and GET/POST endpoints (`doGet` and `doPost`) when making server side calls, but as outlined in this post from Justin Poehnelt there are scenarios where both of these approaches might be most appropriate. Justin also provides some useful code snippets to help you get started with both methods. Follow the source link to read more…

Source: *[Google Apps Script: google.script.run vs. doGet/doPost Endpoints | Justin Poehnelt*](https://justin.poehnelt.com/posts/apps-script-google-script-run-vs-get-post/)

---

*Published by [Martin Hawksey](https://pulse.appsscript.info/p/author/admin/) on [Pulse](https://pulse.appsscript.info/). Original article: [https://pulse.appsscript.info/p/2024/04/google-apps-script-google-script-run-vs-doget-dopost-endpoints/](https://pulse.appsscript.info/p/2024/04/google-apps-script-google-script-run-vs-doget-dopost-endpoints/)*
