{"info":{"description":"Tiny JSON utilities over HTTPS. One subdomain per utility, no keys, CORS enabled. Pick the endpoint with the `endpoint` server variable, then call `/` (or `/{input}` / POST for the input endpoints).","title":"JSON.uk","version":"2.0.0","x-landing-page":"https://json.uk/"},"openapi":"3.0.3","paths":{"/":{"get":{"operationId":"get","responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"JSON response"},"500":{"content":{"application/json":{"schema":{"properties":{"detail":{"type":"string"},"error":{"type":"string"}},"type":"object"}}},"description":"Error"}},"summary":"Call a no-input endpoint (or get usage for an input endpoint)","tags":["urls","ifconfig","reversedns","isp","iplocation","asn","useragent","headers","timestamp","worldclock","crypto","currency","day","christmas","newyear","holidays","movies","tv","moon","iss","planets","onthisday","fact","dadjoke","echo","random","randomemoji","sensor"]},"post":{"operationId":"post","requestBody":{"content":{"application/json":{"example":{"input":"hello"},"schema":{"oneOf":[{"properties":{"input":{}},"required":["input"],"type":"object"},{"type":"string"},{"type":"object"}]}},"application/x-www-form-urlencoded":{"schema":{"properties":{"input":{"type":"string"}},"type":"object"}},"text/plain":{"schema":{"type":"string"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"JSON response"},"400":{"content":{"application/json":{"schema":{"properties":{"detail":{"type":"string"},"error":{"type":"string"}},"type":"object"}}},"description":"Error"},"500":{"content":{"application/json":{"schema":{"properties":{"detail":{"type":"string"},"error":{"type":"string"}},"type":"object"}}},"description":"Error"}},"summary":"Call an input endpoint with the input in the body","tags":["base64encode","base64decode","rot13","hexencode","hexdecode","hextoint","inttohex","wordfinder","textinfo","jsontotoon","toontojson","jsondiff","uuidgen","hash","unixtime","words","sun","colorconvert","htmlcolor"]}},"/{input}":{"get":{"operationId":"getWithInput","parameters":[{"example":"hello","in":"path","name":"input","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"JSON response"},"404":{"content":{"application/json":{"schema":{"properties":{"detail":{"type":"string"},"error":{"type":"string"}},"type":"object"}}},"description":"Error"},"500":{"content":{"application/json":{"schema":{"properties":{"detail":{"type":"string"},"error":{"type":"string"}},"type":"object"}}},"description":"Error"}},"summary":"Call an input endpoint with the input in the path","tags":["base64encode","base64decode","rot13","hexencode","hexdecode","hextoint","inttohex","wordfinder","textinfo","jsontotoon","toontojson","jsondiff","uuidgen","hash","unixtime","words","sun","colorconvert","htmlcolor"]}}},"servers":[{"url":"https://{endpoint}.json.uk","variables":{"endpoint":{"default":"ifconfig","description":"Which utility to call","enum":["urls","ifconfig","reversedns","isp","iplocation","asn","useragent","headers","timestamp","worldclock","crypto","currency","day","christmas","newyear","holidays","movies","tv","moon","iss","planets","onthisday","fact","dadjoke","echo","random","randomemoji","sensor","base64encode","base64decode","rot13","hexencode","hexdecode","hextoint","inttohex","wordfinder","textinfo","jsontotoon","toontojson","jsondiff","uuidgen","hash","unixtime","words","sun","colorconvert","htmlcolor"]}}}],"tags":[{"description":"Every endpoint, with descriptions","name":"urls"},{"description":"Your public IP address","name":"ifconfig"},{"description":"Reverse DNS (PTR) name for your IP","name":"reversedns"},{"description":"Your ISP, from RDAP","name":"isp"},{"description":"Country your IP is registered in","name":"iplocation"},{"description":"Autonomous system number announcing your IP","name":"asn"},{"description":"Your browser's User-Agent string","name":"useragent"},{"description":"The request headers you sent","name":"headers"},{"description":"Current Unix timestamp","name":"timestamp"},{"description":"Local time, sunrise and sunset in five cities","name":"worldclock"},{"description":"BTC, ETH and LTC prices in GBP, EUR, USD, CAD","name":"crypto"},{"description":"GBP, EUR, USD, CAD exchange-rate matrix","name":"currency"},{"description":"Day of the week","name":"day"},{"description":"Countdown to Christmas Day","name":"christmas"},{"description":"Countdown to New Year's Day","name":"newyear"},{"description":"UK bank holidays","name":"holidays"},{"description":"New movies to rent","name":"movies"},{"description":"Most popular TV shows","name":"tv"},{"description":"Moon phase, illumination and next phases","name":"moon"},{"description":"Where the International Space Station is right now","name":"iss"},{"description":"Distance, magnitude and visibility of every planet","name":"planets"},{"description":"Historical events for today's date","name":"onthisday"},{"description":"Fact of the day","name":"fact"},{"description":"A random dad joke","name":"dadjoke"},{"description":"Echoes the whole request back: method, path, query, headers, body","name":"echo"},{"description":"A random number","name":"random"},{"description":"A random emoji","name":"randomemoji"},{"description":"Latest reading from the home sensor","name":"sensor"},{"description":"Base64-encode text","name":"base64encode"},{"description":"Decode Base64 to text","name":"base64decode"},{"description":"ROT13 text","name":"rot13"},{"description":"Hex-encode text","name":"hexencode"},{"description":"Decode hex to text","name":"hexdecode"},{"description":"Hex number to integer","name":"hextoint"},{"description":"Integer to hex","name":"inttohex"},{"description":"Words you can make from a set of letters","name":"wordfinder"},{"description":"Word, character and sentence statistics plus sentiment","name":"textinfo"},{"description":"Convert JSON to TOON","name":"jsontotoon"},{"description":"Convert TOON to JSON","name":"toontojson"},{"description":"Diff two JSON objects (A|COMPARE|B)","name":"jsondiff"},{"description":"Generate a UUID (v1, v4...)","name":"uuidgen"},{"description":"MD5, SHA-1, SHA-256, SHA-512, SHA3-256 and BLAKE2b of text","name":"hash"},{"description":"Convert Unix timestamps and dates either way","name":"unixtime"},{"description":"Random passphrase of N words with its entropy","name":"words"},{"description":"Sunrise, sunset, twilights, golden hour and day length for a lat,lon","name":"sun"},{"description":"Convert a colour between HEX, RGB and HSL","name":"colorconvert"},{"description":"Nearest named HTML colour for a hex value","name":"htmlcolor"}],"x-endpoints":{"asn":{"description":"Autonomous system number announcing your IP","example":"https://asn.json.uk/","input":false,"page":"https://json.uk/asn","url":"https://asn.json.uk/"},"base64decode":{"description":"Decode Base64 to text","example":"https://base64decode.json.uk/anNvbi51aw==","input":true,"page":"https://json.uk/base64decode","url":"https://base64decode.json.uk/"},"base64encode":{"description":"Base64-encode text","example":"https://base64encode.json.uk/json.uk","input":true,"page":"https://json.uk/base64encode","url":"https://base64encode.json.uk/"},"christmas":{"description":"Countdown to Christmas Day","example":"https://christmas.json.uk/","input":false,"page":"https://json.uk/christmas","url":"https://christmas.json.uk/"},"colorconvert":{"description":"Convert a colour between HEX, RGB and HSL","example":"https://colorconvert.json.uk/#1E90FF","input":true,"page":"https://json.uk/colorconvert","url":"https://colorconvert.json.uk/"},"crypto":{"description":"BTC, ETH and LTC prices in GBP, EUR, USD, CAD","example":"https://crypto.json.uk/","input":false,"page":"https://json.uk/crypto","url":"https://crypto.json.uk/"},"currency":{"description":"GBP, EUR, USD, CAD exchange-rate matrix","example":"https://currency.json.uk/","input":false,"page":"https://json.uk/currency","url":"https://currency.json.uk/"},"dadjoke":{"description":"A random dad joke","example":"https://dadjoke.json.uk/","input":false,"page":"https://json.uk/dadjoke","url":"https://dadjoke.json.uk/"},"day":{"description":"Day of the week","example":"https://day.json.uk/","input":false,"page":"https://json.uk/day","url":"https://day.json.uk/"},"echo":{"description":"Echoes the whole request back: method, path, query, headers, body","example":"https://echo.json.uk/","input":false,"page":"https://json.uk/echo","url":"https://echo.json.uk/"},"fact":{"description":"Fact of the day","example":"https://fact.json.uk/","input":false,"page":"https://json.uk/fact","url":"https://fact.json.uk/"},"hash":{"description":"MD5, SHA-1, SHA-256, SHA-512, SHA3-256 and BLAKE2b of text","example":"https://hash.json.uk/json.uk","input":true,"page":"https://json.uk/hash","url":"https://hash.json.uk/"},"headers":{"description":"The request headers you sent","example":"https://headers.json.uk/","input":false,"page":"https://json.uk/headers","url":"https://headers.json.uk/"},"hexdecode":{"description":"Decode hex to text","example":"https://hexdecode.json.uk/6a736f6e2e756b","input":true,"page":"https://json.uk/hexdecode","url":"https://hexdecode.json.uk/"},"hexencode":{"description":"Hex-encode text","example":"https://hexencode.json.uk/json.uk","input":true,"page":"https://json.uk/hexencode","url":"https://hexencode.json.uk/"},"hextoint":{"description":"Hex number to integer","example":"https://hextoint.json.uk/0xdeadbeef","input":true,"page":"https://json.uk/hextoint","url":"https://hextoint.json.uk/"},"holidays":{"description":"UK bank holidays","example":"https://holidays.json.uk/","input":false,"page":"https://json.uk/holidays","url":"https://holidays.json.uk/"},"htmlcolor":{"description":"Nearest named HTML colour for a hex value","example":"https://htmlcolor.json.uk/#FF7F50","input":true,"page":"https://json.uk/htmlcolor","url":"https://htmlcolor.json.uk/"},"ifconfig":{"description":"Your public IP address","example":"https://ifconfig.json.uk/","input":false,"page":"https://json.uk/ifconfig","url":"https://ifconfig.json.uk/"},"inttohex":{"description":"Integer to hex","example":"https://inttohex.json.uk/3735928559","input":true,"page":"https://json.uk/inttohex","url":"https://inttohex.json.uk/"},"iplocation":{"description":"Country your IP is registered in","example":"https://iplocation.json.uk/","input":false,"page":"https://json.uk/iplocation","url":"https://iplocation.json.uk/"},"isp":{"description":"Your ISP, from RDAP","example":"https://isp.json.uk/","input":false,"page":"https://json.uk/isp","url":"https://isp.json.uk/"},"iss":{"description":"Where the International Space Station is right now","example":"https://iss.json.uk/","input":false,"page":"https://json.uk/iss","url":"https://iss.json.uk/"},"jsondiff":{"description":"Diff two JSON objects (A|COMPARE|B)","example":"https://jsondiff.json.uk/{\"name\":\"Alice\",\"age\":30}|COMPARE|{\"name\":\"Alice\",\"age\":31,\"city\":\"NYC\"}","input":true,"page":"https://json.uk/jsondiff","url":"https://jsondiff.json.uk/"},"jsontotoon":{"description":"Convert JSON to TOON","example":"https://jsontotoon.json.uk/{\"users\":[{\"id\":1,\"name\":\"Alice\"}]}","input":true,"page":"https://json.uk/jsontotoon","url":"https://jsontotoon.json.uk/"},"moon":{"description":"Moon phase, illumination and next phases","example":"https://moon.json.uk/","input":false,"page":"https://json.uk/moon","url":"https://moon.json.uk/"},"movies":{"description":"New movies to rent","example":"https://movies.json.uk/","input":false,"page":"https://json.uk/movies","url":"https://movies.json.uk/"},"newyear":{"description":"Countdown to New Year's Day","example":"https://newyear.json.uk/","input":false,"page":"https://json.uk/newyear","url":"https://newyear.json.uk/"},"onthisday":{"description":"Historical events for today's date","example":"https://onthisday.json.uk/","input":false,"page":"https://json.uk/onthisday","url":"https://onthisday.json.uk/"},"planets":{"description":"Distance, magnitude and visibility of every planet","example":"https://planets.json.uk/","input":false,"page":"https://json.uk/planets","url":"https://planets.json.uk/"},"random":{"description":"A random number","example":"https://random.json.uk/","input":false,"page":"https://json.uk/random","url":"https://random.json.uk/"},"randomemoji":{"description":"A random emoji","example":"https://randomemoji.json.uk/","input":false,"page":"https://json.uk/randomemoji","url":"https://randomemoji.json.uk/"},"reversedns":{"description":"Reverse DNS (PTR) name for your IP","example":"https://reversedns.json.uk/","input":false,"page":"https://json.uk/reversedns","url":"https://reversedns.json.uk/"},"rot13":{"description":"ROT13 text","example":"https://rot13.json.uk/json.uk","input":true,"page":"https://json.uk/rot13","url":"https://rot13.json.uk/"},"sensor":{"description":"Latest reading from the home sensor","example":"https://sensor.json.uk/","input":false,"page":"https://json.uk/sensor","url":"https://sensor.json.uk/"},"sun":{"description":"Sunrise, sunset, twilights, golden hour and day length for a lat,lon","example":"https://sun.json.uk/51.5074,-0.1278","input":true,"page":"https://json.uk/sun","url":"https://sun.json.uk/"},"textinfo":{"description":"Word, character and sentence statistics plus sentiment","example":"https://textinfo.json.uk/json.uk is awesome","input":true,"page":"https://json.uk/textinfo","url":"https://textinfo.json.uk/"},"timestamp":{"description":"Current Unix timestamp","example":"https://timestamp.json.uk/","input":false,"page":"https://json.uk/timestamp","url":"https://timestamp.json.uk/"},"toontojson":{"description":"Convert TOON to JSON","example":"https://toontojson.json.uk/name: Alice","input":true,"page":"https://json.uk/toontojson","url":"https://toontojson.json.uk/"},"tv":{"description":"Most popular TV shows","example":"https://tv.json.uk/","input":false,"page":"https://json.uk/tv","url":"https://tv.json.uk/"},"unixtime":{"description":"Convert Unix timestamps and dates either way","example":"https://unixtime.json.uk/1699104000","input":true,"page":"https://json.uk/unixtime","url":"https://unixtime.json.uk/"},"urls":{"description":"Every endpoint, with descriptions","example":"https://urls.json.uk/","input":false,"page":"https://json.uk/urls","url":"https://urls.json.uk/"},"useragent":{"description":"Your browser's User-Agent string","example":"https://useragent.json.uk/","input":false,"page":"https://json.uk/useragent","url":"https://useragent.json.uk/"},"uuidgen":{"description":"Generate a UUID (v1, v4...)","example":"https://uuidgen.json.uk/v4","input":true,"page":"https://json.uk/uuidgen","url":"https://uuidgen.json.uk/"},"wordfinder":{"description":"Words you can make from a set of letters","example":"https://wordfinder.json.uk/json","input":true,"page":"https://json.uk/wordfinder","url":"https://wordfinder.json.uk/"},"words":{"description":"Random passphrase of N words with its entropy","example":"https://words.json.uk/4","input":true,"page":"https://json.uk/words","url":"https://words.json.uk/"},"worldclock":{"description":"Local time, sunrise and sunset in five cities","example":"https://worldclock.json.uk/","input":false,"page":"https://json.uk/worldclock","url":"https://worldclock.json.uk/"}}}
