# Best way to manage API data

**URL:** <https://community.thunkable.com/t/best-way-to-manage-api-data/479060>\
**Category:** Questions about Thunkable X\
**Tags:** webapi, local-variables\
**Created:** [February 22, 2020, 8:18pm UTC](https://community.thunkable.com/t/best-way-to-manage-api-data/479060 "2020-02-22T20:18:28Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![hdawc](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/hdawc/32/119068_2.png) [@hdawc](https://community.thunkable.com/u/hdawc)\
**Post date:** [February 22, 2020, 8:44pm UTC](https://community.thunkable.com/t/best-way-to-manage-api-data/479060/2 "2020-02-22T20:44:30Z")

</div>

I’ve actually found my own answer, which is always nice 🙂

 ![filter-data-answer](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/7/5/759b19a3d223e3d2e9d79ceb89ee264cbf1e5100.png)

I started by using a TEST inside the list (after insert last as), but this would leave me with empty list items because they would still be created.

By using a IF _before_ the list, I can still filter the JSON, but then only add list items IF they meet the aforementioned condition, which in this case is a specific stage. But could be used to match any property.

I can then store that data in a var and populate the single list view when needed, without having to do lots of API calls 😃 👍

---

_[View the full topic](https://community.thunkable.com/t/best-way-to-manage-api-data/479060)._
