Oh, Zapier is a programmer's nightmare.
We also have code/scripting steps -- https://zapier.com/help/code/ or https://zapier.com/help/code-python/.
I just posted it on Show HN https://news.ycombinator.com/item?id=14469734 or the direct link https://webmatr.com