Search API only giving 5 posts while testing in Postman

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

2 Likes

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.

8 Likes