Skip to content

OpenData API ​

一个用于辅助调用 FontsAPI 的 API,提供完整的 ZSFT 字体数据和字体提供方式的映射。

Base URL ​

https://fontsapi.zeoseven.com/opendata

/all ​

<Array> GET

用于获取所有字体的索引数据,woff2 字段用于区分字体提供方式。

json
[
    {
        "id": [Font ID]<String>,
        "name": [Font Name]<String>,
        "nick": [Font Nick]<Array>,
        "p": [Font Designer]<Array>,
        "woff2": [Use WOFF2]<Boolean>
    },
    ...
]

/format-map ​

<Object> GET

用于获取所有字体的字体提供方式。

json
{
    [Font ID]<String>: [Use Method]<"css" | "woff2">,
    ...
}