Forum Discussion

wds_ua_dendy's avatar
12 years ago

Querying recent topics by tag via REST API

I'm trying to implement forum topics search by tags by using REST API.

I know there is an API for single tag:

 

/tagging/for/tags/text/tagName/messages

 

but it doesn't work for multiple tags.

 

So looks like best API for this is to use:

search/messages with query like this: q=tags:(Apple OR Google)

The problem is that response contains messages rather then topics, so I additionally have to query each message to retrieve topic information (title, kudos, replies count by topic).

 

Is there a possibility to retrive multiple topics (or messages) by specifying there ids (or thread ids), something like this:

q=id:(1111 OR 2222) or q=thread_id:(1111 OR 2222) ?

Or maybe is there another API that can fit my requirements?

 

4 Replies