How i fetch multiple data collections with API?

for example, i have Article, Member and Location collections. the code above only works on single collection. But now i need it works on more than one collection data.