No way to get period stats?

AI 生成的摘要

A user, mast3rd3mon, is seeking a way to retrieve period-based statistics (e.g., monthly, quarterly) via the Discourse API for a bot that posts to a Slack channel. They note that while such stats are visible on the webpage (e.g., via /u?period=monthly), the API does not seem to support similar functionality. codinghorror suggests reverse engineering the API, but mast3rd3mon reports that even after attempting to identify the correct API calls, including using directory_items with various parameters and API keys, the responses are empty. They observe that the dev tools show a call to the webpage, not the API, and express frustration that there seems to be no way to access the period stats programmatically, as the webpage does. mast3rd3mon concludes by asking if there is any way to get these stats, as they cannot find any relevant API endpoint.

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 and 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?

See Reverse engineer the Discourse API

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

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

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

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?

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