Use a callback
parameter to get a JSONP response.
You can pass an API key either as:
X-Api-Key
headerapikey
parameterCurrently, the API key should just be your email address. I don't verify it or use if for anything, but I may contact you if you are causing problems or I change the API.
You must either pass the API key or call it via JSONP.
Each source has its own endpoint.
Source | Endpoint |
---|---|
BOFH excuses | http://www.fortune.ninja/fortune/excuses.json |
BSD/Linux fortune(6) cookies | http://www.fortune.ninja/fortune/bsd_linux.json |
Crystal ball | http://www.fortune.ninja/fortune/crystalball.json |
Github Zen | http://www.fortune.ninja/fortune/github.json |
Heads or tails | http://www.fortune.ninja/fortune/coinflip.json |
Procrastination slogans | http://www.fortune.ninja/fortune/procrastinate.json |