# No way to get period stats?

**URL:** <https://meta.discourse.org/t/no-way-to-get-period-stats/76312>\
**Category:** Development\
**Tags:** rest-api\
**Created:** [2017年十二月18日 12:05 UTC](https://meta.discourse.org/t/no-way-to-get-period-stats/76312 "2017-12-18T12:05:01Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![mast3rd3mon](https://avatars.discourse-cdn.com/v4/letter/m/d6d6ee/32.png) [@mast3rd3mon](https://meta.discourse.org/u/mast3rd3mon)\
**Post date:** [2017年十二月18日 12:05 UTC](https://meta.discourse.org/t/no-way-to-get-period-stats/76312/1 "2017-12-18T12:05:01Z")

</div>

So I’ve developed a bot for a slack channel and I connected it to our discourse api mainly for posting posts. In our discourse we do a leaderboard type thing based on likes received per x amount of time.

Using [https://discourse.nativescript.org/u?period=monthly](https://discourse.nativescript.org/u?period=monthly) and [https://discourse.nativescript.org/u?period=quarterly](https://discourse.nativescript.org/u?period=quarterly) we can see the stats on the webpage, isnt there any api which can do this? I cant seem to see anything or have i just glanced over it every time?

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [2017年十二月18日 12:19 UTC](https://meta.discourse.org/t/no-way-to-get-period-stats/76312/2 "2017-12-18T12:19:11Z")

</div>

See [Reverse engineer the Discourse API](https://meta.discourse.org/t/how-to-reverse-engineer-the-discourse-api/20576)

---

<div class="post-metadata">

**Author:** ![mast3rd3mon](https://avatars.discourse-cdn.com/v4/letter/m/d6d6ee/32.png) [@mast3rd3mon](https://meta.discourse.org/u/mast3rd3mon)\
**Post date:** [2017年十二月18日 12:32 UTC](https://meta.discourse.org/t/no-way-to-get-period-stats/76312/3 "2017-12-18T12:32:13Z")

</div>

I tried that but could never see the call, i think i have found it now though, thanks

---

<div class="post-metadata">

**Author:** ![mast3rd3mon](https://avatars.discourse-cdn.com/v4/letter/m/d6d6ee/32.png) [@mast3rd3mon](https://meta.discourse.org/u/mast3rd3mon)\
**Post date:** [2017年十二月18日 12:45 UTC](https://meta.discourse.org/t/no-way-to-get-period-stats/76312/4 "2017-12-18T12:45:34Z")

</div>

however, reverse engineering the api yields no results, what i get back is empty

---

<div class="post-metadata">

**Author:** ![mast3rd3mon](https://avatars.discourse-cdn.com/v4/letter/m/d6d6ee/32.png) [@mast3rd3mon](https://meta.discourse.org/u/mast3rd3mon)\
**Post date:** [2017年十二月18日 12:57 UTC](https://meta.discourse.org/t/no-way-to-get-period-stats/76312/5 "2017-12-18T12:57:23Z")

</div>

I have tried ` https://discourse.nativescript.org/directory_items?period=weekly&amp;order=likes_received` as well as `https://discourse.nativescript.org/directory_items?period=weekly&order=likes_received&api_key=<apiKey>&api_username=mast3rd3mon` and `https://discourse.nativescript.org/directory_items?period=weekly&order=likes_received&api_key=<apiKey>` but all return no data

---

<div class="post-metadata">

**Author:** ![mast3rd3mon](https://avatars.discourse-cdn.com/v4/letter/m/d6d6ee/32.png) [@mast3rd3mon](https://meta.discourse.org/u/mast3rd3mon)\
**Post date:** [2017年十二月18日 13:50 UTC](https://meta.discourse.org/t/no-way-to-get-period-stats/76312/6 "2017-12-18T13:50:27Z")

</div>

I can see the call in dev tools but the url it says is called is just the webpage, not the api for the data, can anyone please advise?

---

<div class="post-metadata">

**Author:** ![mast3rd3mon](https://avatars.discourse-cdn.com/v4/letter/m/d6d6ee/32.png) [@mast3rd3mon](https://meta.discourse.org/u/mast3rd3mon)\
**Post date:** [2017年十二月19日 11:19 UTC](https://meta.discourse.org/t/no-way-to-get-period-stats/76312/7 "2017-12-19T11:19:11Z")

</div>

is there no way to get the period stats like the webpage can get? i cant seem to find anything that populates the data
