Is there a public Wattpad API for retrieving Read and Voted stories?

I've looked at the Wattpad API documentation at http://developer.wattpad.com/docs/api , but there doesn't seem to be a public API to fetch the Reads and Voices history.

I am currently using a simple bash script with curl and awk to fetch the counters, but that seems like a waste of resources because the typical page size is 60K and the JSON response will be much smaller.

+3


source to share


1 answer


There is currently no direct API to accomplish what you are looking for, however you can get the data you are looking for indirectly using the history search API.

For example, if you click on the following API (with the auth key of course): https://api.wattpad.com:443/v4/stories?query=your%20story%20title&limit=1



you will get the JSON payload. The documentation is a bit out of date as to what fields you get, but you should see the voteCount and readCount properties as part of the answer.

We are working on updating the documentation, and possibly providing more API capabilities. Please don't switch. Also, let us know what you end up doing with the API, we are very curious about what people want to do with it.

+1


source







All Articles