Skip to main content
Answered

How do I access the next page of search returns from an API call?


How do I access the next pages from of a search result. After the initial query to /conversations/search, with result spanning through multiple pages, how do I make the subsequent requests for the next pages?

Best answer by Roy

Hello @augustine​ 👋, I hope you are doing well.

 

You should include the next key in the pages hash, More information can be found here:

https://developers.intercom.com/intercom-api-reference/reference#pagination-search/p>

 

==============================

{

"pages": {

"type": "pages",

"next": {

"page": 4,

"starting_after": "1HaSB+xrOyyMXAkS/c1RteCL7BzOzTvYjmjakgTergIH31eoe2v4/sbLsJWP\nIncfQLD3ouPkZlCwJ86F\n"

},

"page": 3,

"per_page": 5,

"total_pages": 10

}

}

==============================

I hope this will be helpful,

Let me know if you have any further questions about this topic.

View original
Did this topic help you find an answer to your question?

3 replies

Forum|alt.badge.img+5
  • Expert User
  • 1152 replies
  • Answer
  • March 2, 2021

Hello @augustine​ 👋, I hope you are doing well.

 

You should include the next key in the pages hash, More information can be found here:

https://developers.intercom.com/intercom-api-reference/reference#pagination-search/p>

 

==============================

{

"pages": {

"type": "pages",

"next": {

"page": 4,

"starting_after": "1HaSB+xrOyyMXAkS/c1RteCL7BzOzTvYjmjakgTergIH31eoe2v4/sbLsJWP\nIncfQLD3ouPkZlCwJ86F\n"

},

"page": 3,

"per_page": 5,

"total_pages": 10

}

}

==============================

I hope this will be helpful,

Let me know if you have any further questions about this topic.


  • Author
  • New Participant
  • 1 reply
  • March 3, 2021

Thanks Roy. This was very helpful. The answer to my question was staring me at the face all along but for some reason, I kept missing it.


Forum|alt.badge.img+5
  • Expert User
  • 1152 replies
  • March 4, 2021

@augustine​ , Let me know if there will be any other questions, Always happy to help.

Have a great day.


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