Fortune Cookie API

Retrieve a fortune cookie from any category

Retrieves a random fortune cookie and returns it via JSON.

Request:
GET /api/fortune

Response (application/json):
{ "fortune":"If you waste your time cooking, you'll miss the next meal." }

Retrieve a fortune cookie from a specific category

Retrieves a random fortune cookie from within the selected category.

Valid categories are: all, computers, cookie, definitions, miscellaneous, people, platitudes, politics, science, and wisdom.

Request:
GET /api/fortune/[category]
Eg: GET /api/fortune/wisdom

Response:
same as previous method

Terms of use