Skip to main content
Solved

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

  • October 14, 2020
  • 4 replies
  • 114 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.

Best answer by tom.shaddock

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.

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
Did you find this topic helpful?

4 replies

tom.shaddock
  • Gainsight Employee ⭐️⭐️
  • 117 replies
  • Answer
  • October 14, 2020

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.

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.


  • Author
  • Contributor ⭐️⭐️
  • 4 replies
  • October 14, 2020

Thank You @tom.shaddock 


victorlacombe
  • Contributor ⭐️⭐️⭐️⭐️
  • 35 replies
  • April 28, 2021

Hi @tom.shaddock , I’m wondering : does the /search endpoint also recover results from Zendesk in case we implemented the Insided <> Zendesk integration?

We did not migrate our Help Center to Insided yet and I’m wondering if there could be an intermediate solution to push content to our customers from both platforms via the Insided API only? (instead of integrating both or having to proceed to the migration beforehand)

Thanks


Gainsight CC Team

Hi @victorlacombe  apologies for the delay as i’ve been on annual leave. So to answer your question, the /search API endpoint will not return synced Zendesk results upon query. Its limited to just the data created on the community only.   


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings