Li Type
Design support 中文
← Back to catalogue

Li Type · API v1

AI / Agent

Find a font, check its licence, get the original.

Entry points

Public reads and downloads require no login. Resolve links against the current origin, including its local port; live API responses are authoritative.

Search to download

  1. Search names, aliases or uses; script=cjk selects the Chinese catalogue and script=latin selects the Latin catalogue.
    GET https://font.shiliai.com/api/fonts?q=monospace&script=latin
  2. Read the stable id, localizedNames, version and links from items. Follow links.self for the current record. Legacy names and variant arrays remain in [Chinese, English] order.
  3. Check commercialUse=free, redistribution=permitted and licenseId=OFL-1.1, then read links.license for the full copyright notice and conditions. sourceReview identifies the pinned official version or commit.
  4. Request links.download and verify the ZIP against packageSha256. sha256 belongs to the original font; licenseSha256 belongs to the licence. Keep the original font, OFL.txt and SOURCE.txt together.

An empty search returns HTTP 200, total=0 and items=[]; there is no pagination. HTTP 404 means the font or file is unavailable; refresh the catalogue.

Stable UI markers

These IDs and data attributes are shared across both languages and screen sizes. Locate controls by their semantic labels and these markers.

#search-form input[name="q"] · #search-submit
Enter and submit a search.
[data-action="filter-script"][data-filter]
Filter values are cjk, latin or an empty string.
#results · #result-summary
Wait until aria-busy is not true, then read data-result-count, data-query and data-script.
[data-action="open-font"][data-font-id]
Typeface card; data-api-url points to its JSON record.
#font-detail · #font-name
Detail and name; the root provides data-font-id and data-api-url.
#trial · #size · #specimen[data-state]
Multiline preview text (up to 1000 characters), size and state: sample, loading, ready or error.
#download-font · #packaged-license · #license-full
Font ZIP, licence text and expandable full licence.
#font-provenance · #font-checksums
Official source, pinned version and checksums identified by data-field.
[data-action="change-language"]
Switch language; appearance follows the system automatically with no selection needed.

Licence conditions

Free commercial use and redistribution remain subject to each included OFL: keep copyright notices and the full licence; do not sell fonts by themselves or relicense them; respect Reserved Font Names for modified fonts and do not imply author endorsement. Designs and documents made with the fonts do not have to use OFL.