Solved

Can I get the result on the basis of keywords search ( questions API )

  • 14 October 2020
  • 2 replies
  • 35 views

Hello Everyone,

I have one requirement to create custom application from there We can search the question in insided using API(Provided by insided).

As I go through the API docs there is no such api for which I can get the result on the basis of keywords.


There is one api " GET /v2/questions?page=1&pageSize=25 HTTP/1.1
Host: api2-us-west-2.insided.com " which get the list of all question, I think to load the all question in our page and then apply filter is not a good architecture.

 

Could you please help on this.

icon

Best answer by tom.shaddock 14 October 2020, 13:45

Hi @deepkandpal so for this you would have to use the main /search endpoint which is available here (for US customers): https://api2-us-west-2.insided.com/docs/community/#operation/search this is the endpoint that allows for proper keyword search queries. The endpoint also has parameters that help search on tags and certain categories. It also uses the same indexing algorithm as the main community search which means you do not need to build anything on your side for search.

The return output of the API call has an attribute called contentType which you will have to then use to filter out the unwanted content types leaving only the questions remaining.

View original

2 replies

Userlevel 5
Badge +1

Hi @deepkandpal so for this you would have to use the main /search endpoint which is available here (for US customers): https://api2-us-west-2.insided.com/docs/community/#operation/search this is the endpoint that allows for proper keyword search queries. The endpoint also has parameters that help search on tags and certain categories. It also uses the same indexing algorithm as the main community search which means you do not need to build anything on your side for search.

The return output of the API call has an attribute called contentType which you will have to then use to filter out the unwanted content types leaving only the questions remaining.

Thank You @tom.shaddock 

Reply