跳到正文
FunCoding

icon-retrieval

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

Star
545
分类
图表
许可证
MIT
最近提交
2026年9月22日

skills/icon-retrieval/SKILL.md

在 GitHub 上查看

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.

相似的 Skill

design

NEnextlevelbuilder/ui-ux-pro-max-skill156k近 7 天新增 2,623 个 star

slides

NEnextlevelbuilder/ui-ux-pro-max-skill156k近 7 天新增 2,623 个 star

diagram

GAgarrytan/gstack143k近 7 天新增 524 个 star

官方

critique

NEnexu-io/open-design110k近 7 天新增 1,079 个 star

官方

dating-web

NEnexu-io/open-design110k近 7 天新增 1,079 个 star

精选

archify

生成可交互的架构图、时序图和数据流图,可导出 PNG、SVG。

TTtt-a1i/archify102k近 7 天新增 2,270 个 star