Não responde exatamente à sua pergunta, mas isso ajuda?
Run Data Explorer queries with the Discourse API