Fortune Cookie
Access fun and insightful digital fortune cookie messages using Divine API. Deliver daily surprises and uplifting fortunes with a simple API call.
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://divineapi.com/api/1.0/get_fortune_cookie.phpReturns Fortune Cookie in response
Request Body
Name
Type
Description
api_key*
String
Your API Key (can be found on your Divineapi dashboard)
{
"success":1,
"message":"Fortune Cookie result.",
"data":{
"prediction":{
"result":"Do not stress. Good times are coming
soon."
}
}
}curl --location 'https://divineapi.com/api/1.0/get_fortune_cookie.php' \
--form 'api_key="Your Api Key"'
var request = require('request');
var options = {
'method': 'POST',
'url': 'https://divineapi.com/api/1.0/get_fortune_cookie.php',
'headers': {
},
formData: {
'api_key': 'Your Api Key'
}
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});
var form = new FormData();
form.append("api_key", "Your Api Key");
var settings = {
"url": "https://divineapi.com/api/1.0/get_fortune_cookie.php",
"method": "POST",
"timeout": 0,
"processData": false,
"mimeType": "multipart/form-data",
"contentType": false,
"data": form
};
$.ajax(settings).done(function (response) {
console.log(response);
});import requests
url = "https://divineapi.com/api/1.0/get_fortune_cookie.php"
payload = {'api_key': 'Your Api Key'}
response = requests.request("POST", url, data=payload)
print(response.text)
Last updated