That looks an awful lot like some code I once wrote, which was intended to be used with the JavaScript library, which is also why that doesn't work. There's no 'magic Particle parameter'. That 'onclick' simply calls a Javascript function which in turn makes the request.
This guide discusses how to call the API directly, and has an example of what you're looking for: