Home / Developers API

Developers API

Auth

Http headers:

token: {Token You get after subscribe}
user-id: {Email You used for subscription}

Pass this headers with requests which require auth

GET

Returns all available topics with id and name

url: api.wpquoteoftheday.com/category

returns json body

[
{"id":1,"topic":"age"},
{"id":2,"topic":"alone"}
....
]

GET

Auth required

Returns random quote with necessary topic

url: api.wpquoteoftheday.com/quote/{topic_id}

returns json body

{
"quote":"In a secular age, an auth....",
"topic":1,
"id":720,
"author":"Angela Carter",
"category":1 //same as topic, for compatibility with old versions
}

Buy now