Fungenerators Random Facts
Fungenerators Random Facts is an API that returns random factual snippets for use in apps or content.
- Base URL:
https://api.fungenerators.com - Auth:
header:X-Fungenerators-Api-Secret(pass your key via theapiKeyinput)
Operations
get_fact— GET /fact — Get a Fact belonging to the id.get_fact_categories— GET /fact/categories — Get a random Fact.get_fact_fod— GET /fact/fod — Get fact of the day for the given category.get_fact_fod_categories— GET /fact/fod/categories — Get the list of supported fact of the day categories.get_fact_numbers— GET /fact/numbers — Get a random fact about a numberget_fact_onthisday_born— GET /fact/onthisday/born — Returns a random ( famous/ relatively famous ) person born on a given day and mo
Inputs
apiKey— your fungenerators-random-facts API keyoperation— one of the operations above- path parameters when an operation's path contains
{...} query— optional JSON object of query paramsbody— JSON object for create/update ops
Example
operation: get_fact
apiKey: <your key>
Publishes
The keys a later task may reference as {{taskName.key}}. Referencing anything not listed here resolves to nothing at run time.
erroroperationresultstatus
Input Properties
Every property this tool accepts, from its own tool.iml.
| Property | Type | Required | Default | Description |
|---|---|---|---|---|
apiKey |
string | yes | — | DEPRECATED — bind an API Key credential to the task with credentialName instead. A key pasted here is stored in the workflow definition in clear and appears in every export of it. Still honoured for workflows built before the change. |
operation |
string | yes | — | One of: get_fact, get_fact_categories, get_fact_fod, get_fact_fod_categories, get_fact_numbers, get_fact_onthisday_born |
query |
string | no | — | Optional query params as a JSON object string, e.g. {"limit": 10}. |