Fortune Cookie

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.

Use translator for other language:

Update translator: https://divineapi.com/translator

en For English

hi For Hindi

pt For Portuguese

fr For French

es For Spanish

ru For Russian

de For German

nl For Dutch

it For Italian

pl For Polish

ar For Arabic

ja For Japanese

zh For Chinese

POST https://astroapi-5.divineapi.com/api/v2/fortune-cookie

Returns Fortune Cookie in response

Request Body

NameTypeDescription

api_key*

String

Your API Key (can be found on your Divineapi dashboard)

lan

String

Language en/hi, default en

{
    "success": 1,
    "data": {
        "prediction": {
            "result": "You know what you want, you just have to believe in yourself."
        }
    }
}

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