# Getting request examples via Postman API. Possible?

**URL:** <https://community.postman.com/t/getting-request-examples-via-postman-api-possible/5163>\
**Category:** Help Hub\
**Tags:** collections\
**Created:** [April 26, 2019, 8:14am UTC](https://community.postman.com/t/getting-request-examples-via-postman-api-possible/5163 "2019-04-26T08:14:12Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![kirzilla](https://avatars.discourse-cdn.com/v4/letter/k/b9e5f3/32.png) [@kirzilla](https://community.postman.com/u/kirzilla)\
**Post date:** [April 26, 2019, 8:14am UTC](https://community.postman.com/t/getting-request-examples-via-postman-api-possible/5163/1 "2019-04-26T08:14:12Z")

</div>

Hello everyone,

I’m trying to figure out how to get list of examples for collection via Postman API. Is it possible?

Thank you

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [April 26, 2019, 8:25am UTC](https://community.postman.com/t/getting-request-examples-via-postman-api-possible/5163/2 "2019-04-26T08:25:56Z")

</div>

Hey @kirzilla,

Welcome to the community! 👋

If you’re after a list of example collections, that you can import into Postman - You could check out the `Templates` feature.

This can be found by pressing the orange `+New` button, in the top left of the app. Under the `Templates` section, you will find lots of awesome collections with example requests.

 ![07](https://us1.discourse-cdn.com/getpostman/original/3X/7/3/73a9dad848b42ee70851c38634cb44bf2b948107.png)

The _Intro to writing tests - with examples_ is a great collection to start with, it has different example requests but also different examples of writing tests for your endpoints. 🏆

---

<div class="post-metadata">

**Author:** ![kirzilla](https://avatars.discourse-cdn.com/v4/letter/k/b9e5f3/32.png) [@kirzilla](https://community.postman.com/u/kirzilla)\
**Post date:** [April 26, 2019, 8:34am UTC](https://community.postman.com/t/getting-request-examples-via-postman-api-possible/5163/3 "2019-04-26T08:34:31Z")

</div>

Hey there! Thank you for quick answer!  
Sorry, but I meant Postman API (Sorry for my enlish!).

Will this method [https://docs.api.getpostman.com/#647806d5-492a-eded-1df6-6529b5dc685c](https://docs.api.getpostman.com/#647806d5-492a-eded-1df6-6529b5dc685c) return list of examples added to collection’s requests? It is unclear from examples provided in docs.

GET [https://api.getpostman.com/collections/{{collection\_uid}](https://api.getpostman.com/collections/%7B%7Bcollection_uid%7D)}

Thank you!

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [April 26, 2019, 8:47am UTC](https://community.postman.com/t/getting-request-examples-via-postman-api-possible/5163/4 "2019-04-26T08:47:55Z")

</div>

That’s cool - my bad. 🙂

I’m not sure what you mean by _list of examples added to collection’s requests_?

The following requests will give you a different response - This would show you _all_ the collections that you have:

`GET https://api.getpostman.com/collections?apikey={{apikey}}`

This will give you the details of a single collection when the `collection_uid` is added to the URL:

`GET https://api.getpostman.com/collections/{{collection_uid}?apikey={{apikey}}`

Is that what you were looking for?

---

<div class="post-metadata">

**Author:** ![kirzilla](https://avatars.discourse-cdn.com/v4/letter/k/b9e5f3/32.png) [@kirzilla](https://community.postman.com/u/kirzilla)\
**Post date:** [April 26, 2019, 8:54am UTC](https://community.postman.com/t/getting-request-examples-via-postman-api-possible/5163/5 "2019-04-26T08:54:28Z")

</div>

Collection have requests, requests have examples with responses (see screenshot). Examples are used for documentation and mocking.

Is it possible to get list of examples added to request via Postman API?

 ![39](https://us1.discourse-cdn.com/getpostman/original/3X/1/3/139266483fe4cdd9979e6dde108eab8ffbc5369b.png)

---

<div class="post-metadata">

**Author:** ![kirzilla](https://avatars.discourse-cdn.com/v4/letter/k/b9e5f3/32.png) [@kirzilla](https://community.postman.com/u/kirzilla)\
**Post date:** [April 26, 2019, 9:18am UTC](https://community.postman.com/t/getting-request-examples-via-postman-api-possible/5163/6 "2019-04-26T09:18:37Z")

</div>

Ok, I’ve tried requesting Postman REST API and yes, GET [https://api.getpostman.com/collections/{{collection\_uid}}](https://api.getpostman.com/collections/%7B%7Bcollection_uid%7D) will return information about request examples.

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [April 26, 2019, 9:45am UTC](https://community.postman.com/t/getting-request-examples-via-postman-api-possible/5163/7 "2019-04-26T09:45:34Z")

</div>

The Postman API doesn’t currently support getting the user define `examples` that are used with the mocks etc.
