# Search API only giving 5 posts while testing in Postman

**URL:** https://meta.discourse.org/t/search-api-only-giving-5-posts-while-testing-in-postman/99402
**Category:** Development
**Tags:** rest-api
**Created:** [October 12, 2018, 8:52pm UTC](https://meta.discourse.org/t/search-api-only-giving-5-posts-while-testing-in-postman/99402 "2018-10-12T20:52:53Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Prakanshu\_Ray](https://avatars.discourse-cdn.com/v4/letter/p/13edae/32.png) [@Prakanshu\_Ray](https://meta.discourse.org/u/Prakanshu_Ray)
#### Post date: [October 12, 2018, 8:52pm UTC](https://meta.discourse.org/t/search-api-only-giving-5-posts-while-testing-in-postman/99402/1 "2018-10-12T20:52:53Z")

</div>

Hi ,

I am using search API to get no. of posts for a keyword, while in discourse UI I am getting more results , in postman while testing the same API it is giving only 5 posts.

My search query

`https://discourse.example.com/search/query.json?term=keyword&include_blurb=true`

---

<div class="post-metadata">

### Author: ![blake](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/blake/32/157322_2.png) [@blake](https://meta.discourse.org/u/blake)
#### Post date: [October 12, 2018, 11:42pm UTC](https://meta.discourse.org/t/search-api-only-giving-5-posts-while-testing-in-postman/99402/2 "2018-10-12T23:42:29Z")

</div>

I don’t know the history of the `/search/query.json` endpoint, but if you use

```
https://meta.discourse.org/search.json?q=patreon

```

it is the same us the UI and will return 50 posts. Looks like that endpoint should be added to the api docs.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [July 4, 2021, 2:05pm UTC](https://meta.discourse.org/t/search-api-only-giving-5-posts-while-testing-in-postman/99402/3 "2021-07-04T14:05:38Z")

</div>


