I am trying to get topics created within a week. I found the api to get latest topics
However, the topics contained in the response don’t contain any tag information. Is there a way to link tag info with the topics using the api?
Usman_Shahid is trying to retrieve topics created within a week via the Discourse API but noticed that tag information is missing from the response. pfaffman suggests checking if the user is logged in with appropriate permissions, as tags should appear in the /latest endpoint. pfaffman also recommends using the Data Explorer plugin to extract custom data, which can be accessed via the API. Usman_Shahid confirms that /latest now returns tags and asks how to use Data Explorer from the API. pfaffman advises setting up the desired query in Data Explorer and then reverse engineering the API call to access it. The discussion highlights that tag data is available in topic lists under the right conditions and that Data Explorer can be leveraged for custom API-driven queries.
I am trying to get topics created within a week. I found the api to get latest topics
However, the topics contained in the response don’t contain any tag information. Is there a way to link tag info with the topics using the api?
The best documentation for the API is How to reverse engineer the Discourse API.
Topic lists do contain tag info, I think, as you can see tags in /latest. Maybe you’re not logged in as a user that can see the tags?
Maybe say more about your problem. The data explorer plugin can be a way to get custom data from the database and can be used from the API.
/latest would work well for me. I don’t know why it wasn’t returning information about tags but testing now I am getting tags.
How can I use data explorer from the API?
Set up the query that you want and the reverse engineer the call to access it.