Kanjiteller

Kanjiteller · Actions GPT

Kanji Lookup API

API for searching kanji characters on kanji.literally.fun

  • GET /kanji/Retrieve information about a specific kanji character
Schéma original API
{
  "openapi": "3.1.0",
  "info": {
    "title": "Kanji Lookup API",
    "description": "API for searching kanji characters on kanji.literally.fun",
    "version": "v1.0.0"
  },
  "servers": [
    {
      "url": "https://kanji.literally.fun/api"
    }
  ],
  "paths": {
    "/kanji/": {
      "get": {
        "summary": "Retrieve information about a specific kanji character",
        "operationId": "getKanjiInfo",
        "parameters": [
          {
            "name": "character",
            "in": "query",
            "required": true,
            "description": "The kanji character to look up",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/KanjiResponse"
                }
              }
            }
          },
          "404": {
            "description": "Kanji not found"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "KanjiDetails": {
        "type": "object",
        "properties": {
          "kanji": {
            "type": "string",
            "description": "The kanji character"
          },
          "parts": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Parts of the kanji character"
          }
        }
      },
      "KanjiResponse": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/KanjiDetails"
        }
      }
    }
  }
}