Skip to content

Latest commit

 

History

History

thedogapi

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

Description

Pictures of dogs from Tumblr

Example Request

  • Curl
curl --request GET \
    --url https://api.thedogapi.com/v1/votes \
    --header 'x-api-key: DEMO-API-KEY'
  • Raw
GET /v1/votes HTTP/1.1
Host: api.thedogapi.com
x-api-key: DEMO-API-KEY

Response

  • Success
[{
    "id": 31098,
    "image_id": "43u",
    "sub_id": null,
    "created_at": "2018-10-24T08:36:13.000Z",
    "value": 1,
    "country_code": null
}]
  • Error
{
    "message": "AUTHENTICATION_ERROR - no valid x-api-key in header",
    "status": 401,
    "level": "info"
}

Regex

[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[0-9a-f]{12}

Example API key

da3ec69e-bdc3-8f07-b5e3-6521c026d4be