---
title: "Comment by Hal Atkins on \"Integrate anything: Unlocking Softr's power with REST APIs\" | Hashnode"
description: "Wondering if you could help me understand how to write a transform for a REST API for a Softr app. I tried to follow the instructions you provided for writing a"
url: "https://hashnode.com/posts/integrate-anything-unlocking-softrs-power-with-rest-apis/673c5aa434f5eb58ef4a8bed/comment/689f3ff3e67bbf8a37717303"
---

[Discussion](https://hashnode.com/posts/integrate-anything-unlocking-softrs-power-with-rest-apis/673c5aa434f5eb58ef4a8bed)

Comment [Integrate anything: Unlocking Softr's power with REST APIs](https://hashnode.com/posts/integrate-anything-unlocking-softrs-power-with-rest-apis/673c5aa434f5eb58ef4a8bed)

[Hal Atkins](https://hashnode.com/@halatkins)

[Aug 15, 2025](https://hashnode.com/posts/integrate-anything-unlocking-softrs-power-with-rest-apis/673c5aa434f5eb58ef4a8bed/comment/689f3ff3e67bbf8a37717303)

Wondering if you could help me understand how to write a transform for a REST API for a Softr app. I tried to follow the instructions you provided for writing a transform script, but I can't get it correct.

There are three sections - could you help with an example transform script so I can get at the data provided there?

[Sambhavi Dhanabalan](https://hashnode.com/@sambhavi)

[Aug 17, 2025](https://hashnode.com/posts/integrate-anything-unlocking-softrs-power-with-rest-apis/673c5aa434f5eb58ef4a8bed/comment/689f3ff3e67bbf8a37717303#reply-68a1d592415aa36aa8c328d0)

Sure, let me spend sometime tomorrow and provide an example.

[Sambhavi Dhanabalan](https://hashnode.com/@sambhavi)

[Aug 28, 2025](https://hashnode.com/posts/integrate-anything-unlocking-softrs-power-with-rest-apis/673c5aa434f5eb58ef4a8bed/comment/689f3ff3e67bbf8a37717303#reply-68b0800bfbab01667831ce77)

Sorry for the delayed response. I'd like to know whether search recipe API works for you.

In general, the structure is :

1.  return response.results.map(recipe=> {
2.  return {
3.  id: recipe.id,
4.  title: recipe.title,
5.  image: recipe.image || "N/A"
6.  };
7.  })

Keep lines 1 and 7 when you are returning a list of items. recipe is the variable name that I return and hence I use that reference in lines 2-5. Similar approach for the Get recipes API. I have ingredients in a separate line because that's a list, whereas the rest are single values.

An easy option is to use ChatGPT or Claude and give it some context and it will help you write it. A bit of error handling and tinkering should make it work.
