Icon Retrieval

antvis/chart-visualization-skills/skills/icon-retrieval

作者 antvisa105fa12a9fa无许可证506 个星标收录于 2026年10月8日更新于 2026年10月8日仓库2周前更新

Search icons through HTTP API and retrieve SVG strings with curl.

仅含说明Design & Creative
AI 生成的概览

通过关键词查询图标 HTTP API,并用 curl 获取返回的 SVG 文件。

功能
该技能说明如何用关键词和可选的结果数量查询图标搜索 HTTP API,再用 curl 下载返回的 SVG 文件。内容涵盖搜索端点、查询参数、示例响应,以及把概念关键词转化为可用 SVG 内容的简要流程。产出是可放入页面、图表或信息图素材中的 SVG 标记。
适用场景
当需要为页面、图表或信息图寻找图标,并希望按关键词检索而不是自行绘制时使用。适合需要从搜索服务获取 SVG 素材并直接嵌入的任务。
运行要求
需要能访问图标搜索 API 的网络环境,以及 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:

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

Typical response:

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

Retrieve SVG Content

bash
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.

来源与署名

来源:antvis/chart-visualization-skills位于skills/icon-retrieval提交a105fa1

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架