360 Secure SkillHub
360 安全技能中心

icon-retrieval

该 Skill 说明如何使用 curl 调用 WeaveFox 图标搜索 HTTP API,以关键词和 topK 参数获取图标 URL,再抓取对应 SVG 内容,供页面、图表或信息图使用。材料未提供鉴权、结果筛选、许可证或离线回退说明。

分类:搜索
antvis
热度 0.00
最近更新 2026-10-20 23:35:40

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add antvis/chart-visualization-skills/icon-retrieval
兼容性
通用兼容
联网要求
需要联网
数据出网
必须出网
Metadata
name
icon-retrieval
description
Search icons through HTTP API and retrieve SVG strings with curl.

Icon Search

Use the icon HTTP API directly with curl.

API

Search Endpoint

  • Method: GET
  • URL: https://www.weavefox.cn/api/v1/infographic/icon
  • Query params:
    • text (required): search keyword, e.g. "data analysis"
    • topK (optional): number of icons to fetch (1-20), default 5

Example:

curl -sS -L --max-time 20 "https://www.weavefox.cn/api/v1/infographic/icon?text=document&topK=5"

Typical response:

{
  "success": true,
  "data": [
    "https://example.com/icon1.svg",
    "https://example.com/icon2.svg"
  ]
}

Retrieve SVG Content

curl -sS -L --max-time 20 "https://example.com/icon1.svg"

Workflow

  1. Determine the icon concept keyword (for example: security, document, data).
  2. Search icon URLs using the API endpoint.
  3. Use curl to fetch the SVG content of selected URLs.
  4. Use SVG directly in pages, diagrams, or infographic materials.

Notes

  • Use URL encoding for special characters in text.
  • topK range is 1–20; if omitted, the service returns up to 5 results.
  • For network issues, retry with a smaller topK or verify endpoint accessibility.