Fortune Cookie
Deliver fortune cookie messages with Divine API. Easily integrate personalized, inspirational, and motivational insights into your platform with a simple API.
Introducing our Fortune Cookie API, a delightful way to infuse your website and applications with unexpected wisdom and fun. Easily integrate this API to provide users with random, inspirational, or humorous fortune cookie messages, adding a touch of surprise to their experience.
POST https://astroapi-5.divineapi.com/api/v2/fortune-cookie
Returns Fortune Cookie in response
Headers
Name
Type
Description
Authorization*
String
your API Access Token
eg: Bearer {token}
Request Body
Name
Type
Description
api_key*
String
Your API Key (can be found on your Divineapi dashboard)
{
"success": 1,
"data": {
"prediction": {
"result": "Your next journey will take you to a place of peace and joy."
}
}
}
Take a look at how you might call this method via cURL, NodeJS, JavaScript jQuery AJAX or Python:
curl --location 'https://astroapi-5.divineapi.com/api/v2/fortune-cookie' \
--header 'Authorization: Bearer {Your Auth Token}' \
--form 'api_key="{Your API Key}"' \
--form 'lan="en"'
Last updated