# Get all documents within document\_type not working

**URL:** <https://discuss.elastic.co/t/get-all-documents-within-document-type-not-working/163332>\
**Category:** Elastic Search\
**Tags:** elastic-site-search\
**Created:** [January 8, 2019, 10:04am UTC](https://discuss.elastic.co/t/get-all-documents-within-document-type-not-working/163332 "2019-01-08T10:04:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marvin1](https://avatars.discourse-cdn.com/v4/letter/m/ecb155/32.png) [@Marvin1](https://discuss.elastic.co/u/Marvin1)\
**Post date:** [January 8, 2019, 10:05am UTC](https://discuss.elastic.co/t/get-all-documents-within-document-type-not-working/163332/1 "2019-01-08T10:05:00Z")

</div>

today I tried to use the api-call for listing all documents within a document\_type but I didnt get all documents, I just get about 50 documents but I have atleast more than 65.

Is there a limit for receiving documents?

How I can get all documents within a document\_type?

API-Call: /api/v1/engines/{engine\_id}/document\_types/{document\_type\_id}/documents.json

---

<div class="post-metadata">

**Author:** ![Marvin1](https://avatars.discourse-cdn.com/v4/letter/m/ecb155/32.png) [@Marvin1](https://discuss.elastic.co/u/Marvin1)\
**Post date:** [January 10, 2019, 12:00pm UTC](https://discuss.elastic.co/t/get-all-documents-within-document-type-not-working/163332/2 "2019-01-10T12:00:03Z")

</div>

adding the param: page\_per with limitation was the solution for this problem.

Thread can be closed!!!

---

<div class="post-metadata">

**Author:** ![goodroot](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/goodroot/32/38389_2.png) [@goodroot](https://discuss.elastic.co/u/goodroot)\
**Post date:** [January 10, 2019, 4:55pm UTC](https://discuss.elastic.co/t/get-all-documents-within-document-type-not-working/163332/3 "2019-01-10T16:55:47Z")

</div>

Ah-ha! You beat me to it.

Great to hear you figured out the issue.

I shall close this up, as requested.

Enjoy the day, Marvin.

---

<div class="post-metadata">

**Author:** ![goodroot](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/goodroot/32/38389_2.png) [@goodroot](https://discuss.elastic.co/u/goodroot)\
**Post date:** [January 10, 2019, 4:55pm UTC](https://discuss.elastic.co/t/get-all-documents-within-document-type-not-working/163332/4 "2019-01-10T16:55:55Z")

</div>


