# How can I get all recent documents from a specific custom template from prismic api

**URL:** <https://community.prismic.io/t/how-can-i-get-all-recent-documents-from-a-specific-custom-template-from-prismic-api/9899>\
**Category:** Developing with Prismic\
**Created:** [April 28, 2022, 6:30am UTC](https://community.prismic.io/t/how-can-i-get-all-recent-documents-from-a-specific-custom-template-from-prismic-api/9899 "2022-04-28T06:30:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![asreearm1729](https://avatars.discourse-cdn.com/v4/letter/a/c0e974/32.png) [@asreearm1729](https://community.prismic.io/u/asreearm1729)\
**Post date:** [April 28, 2022, 6:30am UTC](https://community.prismic.io/t/how-can-i-get-all-recent-documents-from-a-specific-custom-template-from-prismic-api/9899/1 "2022-04-28T06:30:46Z")

</div>

I appreciate if the answer is in python api if not answer in the way you know I can convert it again.  
Thank you

---

<div class="post-metadata">

**Author:** ![Priyanka](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/priyanka/32/3223_2.png) [@Priyanka](https://community.prismic.io/u/Priyanka)\
**Post date:** [April 28, 2022, 11:17am UTC](https://community.prismic.io/t/how-can-i-get-all-recent-documents-from-a-specific-custom-template-from-prismic-api/9899/3 "2022-04-28T11:17:55Z")

</div>

Hello @asreearm1729

Thanks for reaching out to us.

have you tried doing a get-all query to see if the API responds correctly? Something like:

```auto

  Prismic.Predicates.at('document.type', 'test_page')

```

The Python kit is very out of date. I'd recommend you use a different dependency to query the API.

Thanks,  
Priyanka
