How to filter and get only published articles using GET call of article API | Community
Skip to main content

How to filter and get only published articles using GET call of article API

  • May 5, 2022
  • 1 reply
  • 0 views

How to apply filters in a GET call to article API to get the list of all published articles , draft field false implies article is published?

1 reply

Tipene
  • May 5, 2022
Hey, Bruce!
 
There isn't a specific filter for article publication status similar to the filters you'd see here, but one way you could go about this is looping over the results from your GET request and extracting the articles with a property draft="false" and save the articles to a new array.
 
I hope this helps! Feel free to reach out with any questions.
 
Tipene