{ "opencollection": "1.0.0", "info": { "name": "Numbers Date Random API", "version": "1.0.0" }, "items": [ { "info": { "name": "Random", "type": "folder" }, "items": [ { "info": { "name": "Get a random trivia fact", "type": "http" }, "http": { "method": "GET", "url": "http://numbersapi.com/random/trivia", "params": [ { "name": "json", "value": "", "type": "query", "description": "Return the fact and associated metadata as a JSON object instead of plain text. Can also be triggered by setting the Accept or Content-Type header to application/json.\n" }, { "name": "fragment", "value": "", "type": "query", "description": "Return the fact as a sentence fragment that can be easily included as part of a larger sentence. The first word is lowercase and ending punctuation is omitted.\n" }, { "name": "notfound", "value": "", "type": "query", "description": "What to do if the number is not found. Options: `default` (return a pre-written missing message), `floor` (round down to the largest number with a fact), `ceil` (round up to the smallest number with a fact).\n" }, { "name": "default", "value": "", "type": "query", "description": "A custom message to return if no fact is found for the requested number. Used in conjunction with `notfound=default`.\n" }, { "name": "min", "value": "", "type": "query", "description": "Minimum value for random number generation. Used with `random` number to constrain the range.\n" }, { "name": "max", "value": "", "type": "query", "description": "Maximum value for random number generation. Used with `random` number to constrain the range.\n" }, { "name": "callback", "value": "", "type": "query", "description": "(Deprecated) JSONP callback function name. The response will be wrapped in a call to this function.\n" } ] }, "docs": "Returns an interesting trivia fact about a randomly selected number." }, { "info": { "name": "Get a random mathematical fact", "type": "http" }, "http": { "method": "GET", "url": "http://numbersapi.com/random/math", "params": [ { "name": "json", "value": "", "type": "query", "description": "Return the fact and associated metadata as a JSON object instead of plain text. Can also be triggered by setting the Accept or Content-Type header to application/json.\n" }, { "name": "fragment", "value": "", "type": "query", "description": "Return the fact as a sentence fragment that can be easily included as part of a larger sentence. The first word is lowercase and ending punctuation is omitted.\n" }, { "name": "notfound", "value": "", "type": "query", "description": "What to do if the number is not found. Options: `default` (return a pre-written missing message), `floor` (round down to the largest number with a fact), `ceil` (round up to the smallest number with a fact).\n" }, { "name": "default", "value": "", "type": "query", "description": "A custom message to return if no fact is found for the requested number. Used in conjunction with `notfound=default`.\n" }, { "name": "min", "value": "", "type": "query", "description": "Minimum value for random number generation. Used with `random` number to constrain the range.\n" }, { "name": "max", "value": "", "type": "query", "description": "Maximum value for random number generation. Used with `random` number to constrain the range.\n" }, { "name": "callback", "value": "", "type": "query", "description": "(Deprecated) JSONP callback function name. The response will be wrapped in a call to this function.\n" } ] }, "docs": "Returns an interesting mathematical fact about a randomly selected number." }, { "info": { "name": "Get a random year fact", "type": "http" }, "http": { "method": "GET", "url": "http://numbersapi.com/random/year", "params": [ { "name": "json", "value": "", "type": "query", "description": "Return the fact and associated metadata as a JSON object instead of plain text. Can also be triggered by setting the Accept or Content-Type header to application/json.\n" }, { "name": "fragment", "value": "", "type": "query", "description": "Return the fact as a sentence fragment that can be easily included as part of a larger sentence. The first word is lowercase and ending punctuation is omitted.\n" }, { "name": "notfound", "value": "", "type": "query", "description": "What to do if the number is not found. Options: `default` (return a pre-written missing message), `floor` (round down to the largest number with a fact), `ceil` (round up to the smallest number with a fact).\n" }, { "name": "default", "value": "", "type": "query", "description": "A custom message to return if no fact is found for the requested number. Used in conjunction with `notfound=default`.\n" }, { "name": "min", "value": "", "type": "query", "description": "Minimum value for random number generation. Used with `random` number to constrain the range.\n" }, { "name": "max", "value": "", "type": "query", "description": "Maximum value for random number generation. Used with `random` number to constrain the range.\n" }, { "name": "callback", "value": "", "type": "query", "description": "(Deprecated) JSONP callback function name. The response will be wrapped in a call to this function.\n" } ] }, "docs": "Returns an interesting fact about a randomly selected year." }, { "info": { "name": "Get a random date fact", "type": "http" }, "http": { "method": "GET", "url": "http://numbersapi.com/random/date", "params": [ { "name": "json", "value": "", "type": "query", "description": "Return the fact and associated metadata as a JSON object instead of plain text. Can also be triggered by setting the Accept or Content-Type header to application/json.\n" }, { "name": "fragment", "value": "", "type": "query", "description": "Return the fact as a sentence fragment that can be easily included as part of a larger sentence. The first word is lowercase and ending punctuation is omitted.\n" }, { "name": "notfound", "value": "", "type": "query", "description": "What to do if the number is not found. Options: `default` (return a pre-written missing message), `floor` (round down to the largest number with a fact), `ceil` (round up to the smallest number with a fact).\n" }, { "name": "default", "value": "", "type": "query", "description": "A custom message to return if no fact is found for the requested number. Used in conjunction with `notfound=default`.\n" }, { "name": "callback", "value": "", "type": "query", "description": "(Deprecated) JSONP callback function name. The response will be wrapped in a call to this function.\n" } ] }, "docs": "Returns an interesting historical fact about a randomly selected date." } ] } ], "bundled": true }