A user seeks a way to obtain a list of topics from the “Stock Opportunities” category on the Valuepickr forum, including metadata like replies, views, and activity, preferably in CSV/TSV format. The user is not an admin and finds the Discourse API complex. Another user suggests using the API, pointing to the URL https://forum.valuepickr.com/c/stock-opportunities.json as a starting point. The original poster notes that the JSON returned is incomplete and doesn’t include all topics. A third user explains that pagination is likely the issue and provides guidance on using the API with proper parameters, including the page parameter, to retrieve all topics. maiki suggests the API can access public category data, while Monkey shares a method to reverse-engineer the API using browser developer tools to find the correct incremental JSON URL for paginated results.
I would like a way to get a list of the topics in this category, preferably with some meta-information attached, like Replies, Views and Activity. Preferably as a CSV/TSV file or similar. Right now I don’t even see an obvious way to find out the number of topics.
I’m just a user of the Valuepickr forum. I am not a site maintainer, nor do I have any admin privileges.
I though initially that using the Discourse API might be a way to do so. However, I found understanding the API quite complex and confusing, I also don’t know whether this particular site supports API usage, and in any case, I’m not sure if the API even supports this use case.
Suggestions, thoughts, tips welcome. Thanks in advance.
You can use the API to get that information from public categories (a lot of it anyhow, I’m not sure if “activity” is timestamped in or not… but there is a lot of info).
This gives me something that appears superficially similar to the URL you posted (I think 11 is the id corresponding to that category, though I could be wrong about that.). Please excuse if I have got this wrong, because I have no experience with this kind of thing, and the documentation isn’t exactly chatty.
Obviously, I don’t know where you got the URL you posted from. If you could explain that, it would helpful.
However, in neither case is the JSON generated (54 K in each case) sufficient to contain the hundreds of listed topics in this category, though it clearly contains some of them. So, what am I missing?