{"openapi":"3.1.0","info":{"title":"UnicodeKit API","version":"18.0.0","license":{"name":"MIT","identifier":"MIT"},"description":"Look up, search, and list every assigned Unicode 18.0.0 character. Free, no key, CORS enabled. Responses are cached; lists page with an opaque `cursor` (pass `page.nextCursor` back unchanged). Characters are also available as Markdown at https://unicodekit.com/char/<hex>.md, and as tools over MCP at https://unicodekit.com/mcp."},"servers":[{"url":"https://unicodekit.com"}],"security":[],"paths":{"/search":{"get":{"operationId":"searchCharacters","summary":"Search characters by name, alias, keyword, codepoint, the character itself, or meaning","description":"Exact names and codepoints come first, then prefixes, words, typo-tolerant matches, and matches by meaning (\"tick\" finds ✓, \"return key\" finds ⏎). Each result says how it matched in `matchReason`.","parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string"},"example":"right arrow"},{"$ref":"#/components/parameters/block"},{"$ref":"#/components/parameters/script"},{"$ref":"#/components/parameters/category"},{"$ref":"#/components/parameters/emoji"},{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/cursor"}],"responses":{"200":{"description":"Matching characters, best first","content":{"application/json":{"schema":{"type":"object","required":["data","page","meta"],"properties":{"data":{"type":"array","items":{"allOf":[{"$ref":"#/components/schemas/CharacterSummary"},{"type":"object","properties":{"matchReason":{"type":"string","enum":["codepoint","exact","prefix","words","hex","fuzzy","semantic"]}}}]}},"page":{"$ref":"#/components/schemas/Page"},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"404":{"$ref":"#/components/responses/NotFound"}}}},"/characters":{"get":{"operationId":"listCharacters","summary":"List characters in codepoint order, optionally filtered","parameters":[{"$ref":"#/components/parameters/block"},{"$ref":"#/components/parameters/script"},{"$ref":"#/components/parameters/category"},{"$ref":"#/components/parameters/emoji"},{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/cursor"}],"responses":{"200":{"description":"Characters in codepoint order","content":{"application/json":{"schema":{"type":"object","required":["data","page","meta"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/CharacterSummary"}},"page":{"$ref":"#/components/schemas/Page"},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"404":{"$ref":"#/components/responses/NotFound"}}}},"/characters/{codepoint}":{"get":{"operationId":"getCharacter","summary":"Everything about one character","parameters":[{"$ref":"#/components/parameters/codepoint"}],"responses":{"200":{"description":"The character's full record","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Character"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"404":{"$ref":"#/components/responses/NotFound"}}}},"/related/{codepoint}":{"get":{"operationId":"relatedCharacters","summary":"Characters related to one: its emoji subgroup, or its neighbours in its block","parameters":[{"$ref":"#/components/parameters/codepoint"}],"responses":{"200":{"description":"Related characters","content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"array","items":{"allOf":[{"$ref":"#/components/schemas/CharacterSummary"},{"type":"object","properties":{"reasons":{"type":"array","items":{"type":"string","enum":["emojiSubgroup","block"]}}}}]}},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"404":{"$ref":"#/components/responses/NotFound"}}}},"/random":{"get":{"operationId":"randomCharacter","summary":"A random assigned character, optionally filtered","parameters":[{"$ref":"#/components/parameters/block"},{"$ref":"#/components/parameters/script"},{"$ref":"#/components/parameters/category"},{"$ref":"#/components/parameters/emoji"}],"responses":{"200":{"description":"A random character","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CharacterSummary"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"404":{"$ref":"#/components/responses/NotFound"}}}},"/emoji":{"get":{"operationId":"listEmoji","summary":"Emoji (single characters and sequences) in the official emoji order","parameters":[{"name":"q","in":"query","schema":{"type":"string"},"description":"Matches CLDR names and keywords","example":"party"},{"name":"group","in":"query","schema":{"type":"string"},"example":"Smileys & Emotion"},{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/cursor"}],"responses":{"200":{"description":"Emoji","content":{"application/json":{"schema":{"type":"object","required":["data","page","meta"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Emoji"}},"page":{"$ref":"#/components/schemas/Page"},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"404":{"$ref":"#/components/responses/NotFound"}}}},"/blocks":{"get":{"operationId":"listBlocks","summary":"Every Unicode block with characters, in codepoint order","responses":{"200":{"description":"Blocks","content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Facet"}},"meta":{"$ref":"#/components/schemas/Meta"}}}}}}}}},"/scripts":{"get":{"operationId":"listScripts","summary":"Every script with characters, by name","responses":{"200":{"description":"Scripts","content":{"application/json":{"schema":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"array","items":{"allOf":[{"$ref":"#/components/schemas/Facet"},{"type":"object","properties":{"code":{"type":"string","description":"ISO 15924 code","example":"Latn"}}}]}},"meta":{"$ref":"#/components/schemas/Meta"}}}}}}}}},"/collections/{slug}":{"get":{"operationId":"getCollection","summary":"A hand-picked collection of characters, in its own order","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"},"example":"selected"}],"responses":{"200":{"description":"The collection's characters, all in one page","content":{"application/json":{"schema":{"type":"object","required":["data","page","meta"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/CharacterSummary"}},"page":{"$ref":"#/components/schemas/Page"},"meta":{"$ref":"#/components/schemas/Meta"}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"404":{"$ref":"#/components/responses/NotFound"}}}}},"components":{"parameters":{"codepoint":{"name":"codepoint","in":"path","required":true,"schema":{"type":"string"},"description":"U+2192, 2192, or the character itself (URL-encoded)","example":"2192"},"limit":{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":200,"default":50}},"cursor":{"name":"cursor","in":"query","schema":{"type":"string"},"description":"`page.nextCursor` from the previous response, with the same other parameters"},"block":{"name":"block","in":"query","schema":{"type":"string"},"description":"Block name, as listed by /blocks","example":"Arrows"},"script":{"name":"script","in":"query","schema":{"type":"string"},"description":"Script name, label, or ISO 15924 code; matches Script_Extensions too","example":"Greek"},"category":{"name":"category","in":"query","schema":{"type":"string","pattern":"^[A-Z][a-z]?$"},"description":"General_Category: one letter for a major class (S), two for one category (Sm)","example":"Sm"},"emoji":{"name":"emoji","in":"query","schema":{"type":"boolean"},"description":"Only emoji (true) or only non-emoji (false)"}},"responses":{"BadRequest":{"description":"Invalid parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"NotFound":{"description":"Nothing matches","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"schemas":{"CharacterSummary":{"type":"object","properties":{"codepoint":{"type":"string","example":"U+2192"},"character":{"type":"string","example":"→"},"name":{"type":"string","example":"RIGHTWARDS ARROW"},"officialName":{"type":"string"},"block":{"type":"string","example":"Arrows"},"script":{"type":"string","example":"Common"},"scriptCode":{"type":"string","example":"Zyyy"},"category":{"type":"string","example":"Sm"},"age":{"type":"string","description":"Unicode version that added it","example":"1.1"},"isEmoji":{"type":"boolean"},"plane":{"type":"string","example":"BMP"},"htmlDecimal":{"type":"string","example":"&#8594;"},"htmlHex":{"type":"string","example":"&#x2192;"},"css":{"type":"string","example":"\\2192"},"utf8":{"type":"array","items":{"type":"string"},"example":["E2","86","92"]},"utf16":{"type":"array","items":{"type":"string"},"example":["2192"]},"utf32":{"type":"string","example":"00002192"},"normalization":{"type":"object","description":"NFC, NFD, NFKC, NFKD forms when they differ (codepoint labels), else null"},"unicodeVersion":{"type":"string","example":"18.0.0"}}},"Character":{"allOf":[{"$ref":"#/components/schemas/CharacterSummary"},{"type":"object","properties":{"categoryName":{"type":"string","example":"Math Symbol"},"scriptExtensions":{"type":"array","items":{"type":"string"}},"nameAliases":{"type":"array","items":{"type":"object","properties":{"alias":{"type":"string"},"type":{"type":"string"}}}},"notes":{"type":"array","items":{"type":"string"},"description":"Usage notes from NamesList.txt"},"decomposition":{"type":["object","null"]},"simpleCaseMappings":{"type":"object"},"emoji":{"type":["object","null"],"description":"CLDR name, group, subgroup, and keywords"},"unihan":{"type":["object","null"],"description":"Han characters: definition, readings, strokes"},"properties":{"type":"object"}}}]},"Emoji":{"type":"object","properties":{"character":{"type":"string","example":"😀"},"codepoints":{"type":"array","items":{"type":"string"},"example":["U+1F600"]},"name":{"type":"string","example":"grinning face"},"group":{"type":"string"},"subgroup":{"type":"string"},"keywords":{"type":"array","items":{"type":"string"}},"emojiVersion":{"type":"string"}}},"Facet":{"type":"object","properties":{"value":{"type":"string"},"label":{"type":"string"},"characterCount":{"type":"integer"}}},"Page":{"type":"object","properties":{"nextCursor":{"type":["string","null"]},"hasMore":{"type":"boolean"}}},"Meta":{"type":"object","properties":{"unicodeVersion":{"type":"string","example":"18.0.0"}}},"Error":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}