# Retrieve all data from database through API workflow

**URL:** <https://forum.bubble.io/t/retrieve-all-data-from-database-through-api-workflow/38456>\
**Category:** APIs\
**Created:** [September 21, 2018, 5:38pm UTC](https://forum.bubble.io/t/retrieve-all-data-from-database-through-api-workflow/38456 "2018-09-21T17:38:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gbannister](https://avatars.discourse-cdn.com/v4/letter/g/aeb1de/32.png) [@gbannister](https://forum.bubble.io/u/gbannister)\
**Post date:** [September 21, 2018, 5:38pm UTC](https://forum.bubble.io/t/retrieve-all-data-from-database-through-api-workflow/38456/1 "2018-09-21T17:38:51Z")

</div>

I want to retrieve all data from a database table through an API workflow.

Ex:

call: POST to endpoint  
response: A list of all data in the database table

I am using the “Return Data from API” step and returning a “Search for Users:converted to list”.  
 ![image](https://us1.discourse-cdn.com/bubble/original/3X/e/f/efb57c4b3d540887a2cb0bd1fffc31c3e72b9efd.png)

I only get the first 50, but I want to get all 500+.

The following is the response I get (I removed the data content):

{u’status’: u’success’, u’response’: {u’token’: u’‘, u’expires’: 31536000, u’user\_id’: u’‘, u’User’: [\<50 Users\>]}}

Is there any way for me to retrieve all data?

---

<div class="post-metadata">

**Author:** ![romanmg](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/romanmg/32/237672_2.png) [@romanmg](https://forum.bubble.io/u/romanmg)\
**Post date:** [September 21, 2018, 5:54pm UTC](https://forum.bubble.io/t/retrieve-all-data-from-database-through-api-workflow/38456/2 "2018-09-21T17:54:07Z")

</div>

Hi @gbannister, according to the Bubble reference, 50 items is indeed the limit here:

> These are the keys and data types of the parameters that are returned. When the name and type of data are set, define the data you want to return. In the case of the Workflow API, we limit the size of lists to 50 entries. For a full list of data, please use the Data API that handles [pagination](https://bubble.io/reference#API.get_api.search_call.pagination).

You can read more on all your API options here: [Introduction - Bubble Docs](https://bubble.io/reference#API.workflow_api.APIReturnData)

* * *

Gaby at [Coaching No Code Apps](https://coachingnocodeapps.com) (formerly Coaching Bubble)

Courses & Products, Tutorials, Private Coaching, and High-level Development

[Start Learning Today](https://coachingnocodeapps.com) 🎓
