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 從公開儲存庫中收錄這些內容。

檢舉或申請下架