小小API是一个稳定 快速 的 API 接口服务   点击加入QQ群

免费TTF转WOFF2字体转换API

GEThttps://v2.xxapi.cn/api/ttftowoff2

接口描述

提供免费的 TTF 转 WOFF2 API 接口,支持在线字体文件转换和压缩。无需注册即可使用,支持最大15MB文件,完全免费开放调用,是前端开发的得力助手。

请求参数

请求示例

var axios = require('axios')

var config = {
  method: 'get',
  url: 'https://v2.xxapi.cn/api/ttftowoff2?url='
}

axios(config)
  .then(function (response) {
    console.log(JSON.stringify(response.data))
  })
  .catch(function (error) {
    console.log(error)
  })

返回示例

{
    "code": 200,
    "msg": "数据请求成功",
    "data": "https://cdn.xxhzm.cn/v2api/cache/tmp/dd2b88659c2d2ff6f6d5e9a5a9f4f6cebc4a0276.woff2",
    "request_id": "2a72f8b2d8a05a96d318546b"
}