# Get Latest topic for Current user

**URL:** https://meta.discourse.org/t/get-latest-topic-for-current-user/138806
**Category:** Development
**Tags:** rest-api
**Created:** [January 16, 2020, 11:55am UTC](https://meta.discourse.org/t/get-latest-topic-for-current-user/138806 "2020-01-16T11:55:04Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![neerajsingh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neerajsingh/32/165330_2.png) [@neerajsingh](https://meta.discourse.org/u/neerajsingh)
#### Post date: [January 16, 2020, 11:55am UTC](https://meta.discourse.org/t/get-latest-topic-for-current-user/138806/1 "2020-01-16T11:55:04Z")

</div>

I want to get the latest topic for the current user. currently, I am using this API ( **topics/created-by/username.json** ). but

**I want the latest topics**

**I have a username and want to get a user topic.**

.

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [January 17, 2020, 11:35am UTC](https://meta.discourse.org/t/get-latest-topic-for-current-user/138806/2 "2020-01-17T11:35:25Z")

</div>

You might find this helpful:

> [@Run Data Explorer queries with the Discourse API](https://meta.discourse.org/t/how-to-run-data-explorer-queries-with-the-discourse-api/120063):
>
> bookmark This guide explains how to use the Discourse API to create, run, and manage queries with the [Data Explorer](https://meta.discourse.org/t/32566?silent=true) plugin. person_raising_hand Required user level: Administrator Virtually any action that can be performed through the Discourse user interface can also be triggered with the Discourse API. This document provides a comprehensive overview for utilizing the API specifically in conjunction with the [Data Explorer](https://meta.discourse.org/t/32566?silent=true) plugin. For a general overview of how to find the correct API …

---

<div class="post-metadata">

### Author: ![neerajsingh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neerajsingh/32/165330_2.png) [@neerajsingh](https://meta.discourse.org/u/neerajsingh)
#### Post date: [February 13, 2020, 7:18am UTC](https://meta.discourse.org/t/get-latest-topic-for-current-user/138806/3 "2020-02-13T07:18:15Z")

</div>

hi everyone please replay if you face this type of problem. I want to get all user topic order by the latest. currently, I am using this API( **topics/created-by/username.json** ). this API does not give latest topic. so if you using this or facing this type of problem please help me.

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [February 13, 2020, 8:52am UTC](https://meta.discourse.org/t/get-latest-topic-for-current-user/138806/4 "2020-02-13T08:52:09Z")

</div>

Try:

`/u/--username--/activity/topics.json`
