Search icon SVGs over HTTP with curl, returning URLs first and then raw SVG content.

CCM score
62 of 100
skills.sh installs
1.7K
GitHub stars
544
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers two steps: querying the icon search endpoint by keyword, then fetching each returned SVG URL with curl
  • Includes a GET request to /api/v1/infographic/icon with text (required) and topK (1 to 20, default 5) parameters
  • Notes that text must be URL-encoded for special characters and that failed requests should be retried with a smaller topK
  • Designed for agents building diagrams, pages, or infographic materials that need inline SVG icons

Install

$ npx -y skills add antvis/chart-visualization-skills --skill icon-retrieval -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

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.

Details

Repository
github.com/antvis/chart-visualization-skills
Categories
Design & UI/UX, Technical Documentation
First seen
May 16, 2026

More from antvis/chart-visualization-skills

All 4

Similar to Icon Retrieval

More Design & UI/UX