# Latest topics URL querystring syntax

**URL:** <https://meta.discourse.org/t/latest-topics-url-querystring-syntax/83406>\
**Category:** Feature\
**Created:** [March 20, 2018, 3:47pm UTC](https://meta.discourse.org/t/latest-topics-url-querystring-syntax/83406 "2018-03-20T15:47:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Raphael\_Haase\_NL](https://avatars.discourse-cdn.com/v4/letter/r/41988e/32.png) [@Raphael\_Haase\_NL](https://meta.discourse.org/u/Raphael_Haase_NL)\
**Post date:** [March 20, 2018, 3:47pm UTC](https://meta.discourse.org/t/latest-topics-url-querystring-syntax/83406/1 "2018-03-20T15:47:14Z")

</div>

I have been playing around with the latest topics URL and found out that you can do something like

`/latest?ascending=false&order=activity&solved=no&status=open&before=3`

The semantics of before=N puzzles me though. With different N I get different results, but N does not seem to mean days and also not a date in any format I can think of.

I tried things like

`/latest?ascending=false&order=activity&solved=no&status=open&before=2018-03-15`

and

`/latest?ascending=false&order=activity&solved=no&status=open&before=100`

but I don’t get the logic.

Can somebody explain how this works?

---

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [March 21, 2018, 1:32am UTC](https://meta.discourse.org/t/latest-topics-url-querystring-syntax/83406/2 "2018-03-21T01:32:08Z")

</div>

`before` means `topics.created_at < ?` which is PARAM.to\_i.days.ago

You also have `bumped_before` which looks at bumped\_at date.

---

<div class="post-metadata">

**Author:** ![Raphael\_Haase\_NL](https://avatars.discourse-cdn.com/v4/letter/r/41988e/32.png) [@Raphael\_Haase\_NL](https://meta.discourse.org/u/Raphael_Haase_NL)\
**Post date:** [March 21, 2018, 1:26pm UTC](https://meta.discourse.org/t/latest-topics-url-querystring-syntax/83406/3 "2018-03-21T13:26:15Z")

</div>

Great, thanks! Is there generally an overview/documentation of such parameters?

---

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [March 21, 2018, 10:43pm UTC](https://meta.discourse.org/t/latest-topics-url-querystring-syntax/83406/4 "2018-03-21T22:43:16Z")

</div>

Mostly in the source code, this is very very ninja, our recommendation is just to rely on search here.
