{ "opencollection": "1.0.0", "info": { "name": "Numbers Date API", "version": "1.0.0" }, "items": [ { "info": { "name": "Date", "type": "folder" }, "items": [ { "info": { "name": "Get a date fact for a specific month and day", "type": "http" }, "http": { "method": "GET", "url": "http://numbersapi.com/:month/:day/date", "params": [ { "name": "month", "value": "2", "type": "path", "description": "Month number (1-12)" }, { "name": "day", "value": "29", "type": "path", "description": "Day of month" }, { "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 the specified date (month/day). The number in the JSON response is the 1-indexed day of the leap year (e.g., 61 would be March 1st).\n" } ] } ], "bundled": true }