Returning data via API?

you can find the answer here — How to use API "Return data from API" - #7 by edwardbutcher