Code Updates

Code update · January 30, 2019

New for Code by Zapier: Now Supporting Python 3.7

Code by Zapier allows you to run code in response to any trigger that Zapier supports. For example, you can use custom regular expressions to extract extra data like emails or tracking numbers from large text blobs, or you can make an extra API call to a different service more
Code mention · December 1, 2018

How to Use the Google Calendar API

Google Calendar is one of the most popular ways to manage events, meetings, holidays, and anything else you need to schedule. The Google Calendar API lets you add and update events automatically, so your computer manage your calendar for you! Here's everything you need to know about the more
Code mention · November 14, 2018

A Digital Agency Saves 30 Hours a Week Automating with ManyChat and Zapier

"Our profit increased when we started using Zapier."Mary Kathryn Johnson, Founder & CEO, Messenger Funnels Once upon a time, analyzing and reporting on data meant big daily exports, importing said data into a new application, and a lot of manual manipulation. It could take hours every single day more
Code mention · January 8, 2018

How a Consulting Agency Reduced Time Spent Creating Leads by 25%

Navigating a messy API and its documentation is a lot like Indiana Jones' search for the golden idol: One wrong move and you'll be outrunning a boulder. Some APIs have robust, updated documentation. Other APIs were hastily thrown together and have been jerry-rigged since. For account-based marketing firm more
Code mention · October 9, 2017

How an eCommerce Business Saves 40 Hours Every Week with Automation

Thanks to smartphones, navigation systems live in your pocket with your handheld computer, instant messenger, camera, and phone. No more bulky GPS devices wired into your car's lighter and windshield mounts. Between Waze, Google Maps, and Apple Maps, you'll find your way wherever you're headed. But more
Matthew Guay
Written by Matthew GuayLast updated August 28, 2018

With Zapier's Code action you can extend our platform to do just about anything using two of the most popular programming languages available - Javascript or Python! Run code in response to any trigger that Zapier supports.

Some example use cases include:

  • Transform incorrect dates or convert between other data types.
  • Use custom regular expressions to extract extra data like emails or tracking numbers from large text blobs.
  • Make an extra API call to a different service with requests without building a full dev app.
  • Augment data from a trigger with extra data from some other source (either generated or external API).
  • Anything else you can dream up!

Warning - this is advanced stuff! You probably need to be a programmer to use this - though you are welcome to play with it. Technical support for bugs in your code is not provided!

How does it work?

The environments are vanilla Node.js v8.10.0 which runs JavaScript or vanilla Python 2.7.10. Your script is sandboxed and can only run for a limited amount of time and within a limited amount of memory. If you exceed those limits - your script will be killed (you can upgrade to a paid Zapier to increase your limits).

Since the amount of data that might feed into your script might be large or highly dynamic - you'll need to define an input mapping via our GUI. This is a really simple step - the screenshot below shows a very basic example:


Running your zap via the dashboard is the canonical way to confirm the behavior you expect - your Task History will have all relevant details around the ran code's inputData, output and logs. The test step in the editor can be used for a tighter feedback loop.

Try asking for help by tagging questions as Zapier on Stackoverflow!

Have any feedback on this overview, or something we should change? Let us know!

Use our free platform to build a single Zapier integration and instantly connect your app with 1,500+ others.

Become a Zapier Integration Partner

What is Code by Zapier?


Write custom Javascript code in response to any data from any service! Transform, mutate, customize or even do custom HTTP in a native and familiar node.js environment.