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

二维码生成

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

接口描述

免费API提供快速将URL或文字生成二维码的服务,支持多种格式和定制选项。接口简单易用,适用于网站、应用和在线生成二维码的多种场景。

请求参数

请求示例

var axios = require('axios')

var config = {
  method: 'get',
  url: 'https://v2.xxapi.cn/api/qrcode?text=https://www.xxhzm.cn'
}

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

返回示例

{
	"code": "200",
	"data": "https://v2.api-m.com/cache/qrcode/a22826d68161f780d28d45a7c4929afe.png",
	"msg": "数据请求成功"
}