Skip to main content
Answered

Can we get list of all articles in a collection using the REST API?


Can we get list of all articles in a collection using the REST API?

Best answer by Roy

Hello @shraddha a​ ,

 

You can get list of all articles via API call - https://api.intercom.io/articlesand then filter results by collection ID:

-----------------------------------------------------------------------------

 "id": "5016408",

    "type": "article",

    "workspace_id": " ",

    "title": "Test Article",

    "description": "",

    "body": "<p class=\"no-margin\">Text Article</p>",

    "author_id": 3998818,

    "state": "published",

    "created_at": 1615293528,

    "updated_at": 1620116598,

    "url": " ",

    "parent_id": 2628861, (Collection ID).

    "parent_type": "collection"

-----------------------------------------------------------------------------

 

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

6 replies

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

Hello @shraddha a​ ,

 

You can get list of all articles via API call - https://api.intercom.io/articlesand then filter results by collection ID:

-----------------------------------------------------------------------------

 "id": "5016408",

    "type": "article",

    "workspace_id": " ",

    "title": "Test Article",

    "description": "",

    "body": "<p class=\"no-margin\">Text Article</p>",

    "author_id": 3998818,

    "state": "published",

    "created_at": 1615293528,

    "updated_at": 1620116598,

    "url": " ",

    "parent_id": 2628861, (Collection ID).

    "parent_type": "collection"

-----------------------------------------------------------------------------

 


  • Author
  • New Participant
  • 4 replies
  • May 13, 2021

@roy s11​ Suppose we only have 1 collection with 2 sections with 2 articles each. If we call list all articles API will the API return the articles as type "sections" or type "collection" or both? what takes preference?

Thanks in advance!


  • New Participant
  • 1 reply
  • August 1, 2023

This is horrible, why there is no filter whatsoever on the get calls?


  • New Participant
  • 1 reply
  • September 9, 2024

Is there any update on this? Fetching all articles and manually filtering them does not seem like a feasible solution when there’s hundreds of articles. Why doesn’t the collections endpoint include article ids OR why can’t we pass a collection id filter to the articles endpoint


I agree with what is being said above. It doesn’t look like a scalable enough solution for a great headless integration. Is there a plan to introduce filtering on top of the pagination feature?


Shaq Payne
Intercom Team
Forum|alt.badge.img+2
  • Intercom Team
  • 27 replies
  • January 12, 2025

Hey everyone this is a good shout for a feature request over at our @Product Wishlist​ 🙇🏾


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