You are viewing a single comment's thread from:
RE: @utopian-io - Contribution 'Approved/Rejected' Analysis - October 2017
there might be an easier way to get this information from the utopian API:
https://api.utopian.io/api/posts
, there is pending
/reviewed
/flagged
available, see github. Use ?limit=0
to get all utopian contributions at once (several MB of JSON!) or via pagination (?skip=#&limit=#
). The section=
, sortBy=
, filterBy=
and status=
parameters should be able to give the expected result. Check the API requests of the Utopian frontend for examples.
Looks like some learning is required here for me!
Thanks for the heads up 👍🏾😁
I was not aware of this either. Awesome. Is this API documented on github?
AFAIK there is no documentation beside the code and its comments, but this in combination with a look into the API calls from the frontend is comparably easy to understand.
These are the basic API URLs:
https://api.utopian.io/api/posts
https://api.utopian.io/api/users
https://api.utopian.io/api/stats
https://api.utopian.io/api/moderators
https://api.utopian.io/api/sponsors
for the options of each call, see the according file in src/server/models.
thank you for this valuable information