`topicTrackingState.forEachTracked(topic,isNew,isUnread)` can be used to iterate through tracking state efficiently. This is handy for extension looking at subsets of tags and categories.
Discourse.getURL
type
method
Discourse.SiteSettings