An API for w3counter