API Key Required

Check Authentication for more details


Checkout the /votes API Reference in the left panel

Example - Voting Images Up or Down
  1. A Random Image is loaded via https://api.thedogapi.com/v1/images/search
  2. The User can press either "Vote UP " or “Vote Down”
  3. This sends a POST request to https://api.thedogapi.com/v1/votes with a JSON object in the body
  4. This body contains the “image_id”, and “value”:1 or “value”:0 - to vote up or down
  5. The body can also contain a “sub_id” - which is a custom value you can use to identify your users.

Bonus The Vote history for your account is then loaded via GET https://api.thedogapi.com/v1/votes.