title: Chinese Characters API
description: API for querying Chinese characters, their stroke orders, and generating stroke order images.
- url: https://jinghuaiapi.fun
description: Main API server
operationId: queryChineseCharacters
summary: Query Chinese characters
description: Retrieve information about Chinese characters based on criteria like pinyin, strokes, radical, or combined radical and strokes.
description: Pinyin of the character, optionally with tone number.
description: Number of strokes excluding the radical.
description: The radical of the character.
description: Combined radical and strokes, formatted as 'radical,strokes'. For example, '60,4' where '60' is the radical and '4' is the stroke count.
description: Successful response with character data
description: List of characters or character details
description: Bad request due to invalid query parameters
description: Internal server error
operationId: getStrokeOrder
summary: Get stroke order of a Chinese character
description: Retrieve the stroke order details for a specific Chinese character.
description: The Chinese character for which to retrieve stroke order information.
description: Successful response with stroke order data
description: The shape of the stroke.
description: The type of stroke.
description: The number of folds in the stroke.
description: The name of the stroke.
description: The letter associated with the stroke.
description: List of stroke order details for the character
description: Internal server error
operationId: generatePngImages
summary: Generate stroke order PNG images for a Chinese character
description: Generate and return PNG images showing the stroke order for a given Chinese character.
description: The Chinese character for which to generate stroke order images.
description: Successful response with URLs of generated PNG images
description: URL of the generated PNG image.
description: Bad request due to missing or invalid 'text' parameter
description: Internal server error