There appears to be demand for quick stats about merit.
As such, I am releasing an API that will allow you to quickly retrieve information about merit a person has sent, received, received recently, and that has been sent between users.
You can access the API by performing the following steps:
Go to
https://bitcointalk-merit-api.herokuapp.com/Go to the URL of one of the endpoints described on the above page.
I will try to keep this thread updated, however, the above page will contain up to date information about available routes.
The following routes are currently available:
/api/v0.1/number_received/[uid]
/api/v0.1/received_recent/
/api/v0.1/number_sent/[uid]
/api/v0.1/between/[uid_from]/[uid_to]
/api/v0.1/received/[uid]
/api/v0.1/sent/[uid]
[uid] is the UID of the account you are querying. [uid_from] is the UID of the account that sent merit, and [uid_to] is the UID of the account that received merit.
number_received - returns the number of merit the account has received
received_recent - returns the number of merit the account has received in the last 120 days
number_sent - returns the number of merit the account has sent
between - returns the total number of merit sent from [uid_from] to [uid_to], and a list of transactions that contain the time, date, day of week and post id of the merited post
received - returns the total number of merit received and a list of transactions that contain the time, date, day of week and post id of the merited post
sent - returns the total number of merit sent and a list of transactions that contain the time, date, day of week and post id of the merited post
The code is available at
https://github.com/numberedprime7/merit-api The merit data is as of the most recent merit data dump (usually happens on Saturdays).
Suggestions for improvements and bug reports are welcome.
As an example as to how you access the endpoints, below is an example of how to access all the merit I have sent:
https://bitcointalk-merit-api.herokuapp.com/api/v0.1/sent/2561166to do -
write readme on github
create HTML file/render_template code to display endpoints/descriptions better
allow for lists of UIDs to be passed
consider improving dictionary format