可嵌入的 SVG 徽章,显示印章的实时状态(公开)
curl --request GET \
--url https://api.qbank.cl/platform/verify/qscore/seal/{code}/badge.svgimport requests
url = "https://api.qbank.cl/platform/verify/qscore/seal/{code}/badge.svg"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.qbank.cl/platform/verify/qscore/seal/{code}/badge.svg', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.qbank.cl/platform/verify/qscore/seal/{code}/badge.svg",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.qbank.cl/platform/verify/qscore/seal/{code}/badge.svg"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.qbank.cl/platform/verify/qscore/seal/{code}/badge.svg")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.qbank.cl/platform/verify/qscore/seal/{code}/badge.svg")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body"<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"180\" height=\"64\">...</svg>"可嵌入的 SVG 徽章,显示印章的实时状态(公开)
公开端点(无需凭证),将可嵌入的 Qscore 印章渲染为 SVG 图像(180x64, 深色背景)。当印章处于激活状态且主体仍符合条件时,徽章以绿色显示当前等级字母 (A 或 B)和 “VERIFICADO” 标签;否则,同一 URL 渲染灰色的 “NO VIGENTE” 徽章—— 绝不显示过期的等级,也绝不破坏宿主页面。Cache-Control: public, max-age=300 (访问者可缓存图像最多 5 分钟)。仅对无效或被篡改的代码返回 404(空响应体)。
GET
/
verify
/
qscore
/
seal
/
{code}
/
badge.svg
可嵌入的 SVG 徽章,显示印章的实时状态(公开)
curl --request GET \
--url https://api.qbank.cl/platform/verify/qscore/seal/{code}/badge.svgimport requests
url = "https://api.qbank.cl/platform/verify/qscore/seal/{code}/badge.svg"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.qbank.cl/platform/verify/qscore/seal/{code}/badge.svg', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.qbank.cl/platform/verify/qscore/seal/{code}/badge.svg",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.qbank.cl/platform/verify/qscore/seal/{code}/badge.svg"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.qbank.cl/platform/verify/qscore/seal/{code}/badge.svg")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.qbank.cl/platform/verify/qscore/seal/{code}/badge.svg")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body"<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"180\" height=\"64\">...</svg>"路径参数
印章的公开验证码(印章资源的 verify_code 字段)。
响应
带有印章实时状态的 SVG 徽章。
The response is of type string.
最后修改于 2026年8月22日
⌘I