PluginBench
Skill
Review
Audit score 70

icon-retrieval

antvis/chart-visualization-skills

Search and retrieve SVG icons via HTTP API using curl.

What is icon-retrieval?

This skill provides direct access to an icon search API that returns SVG URLs matching keyword queries. Use it when you need to programmatically find and fetch icons for infographics, diagrams, or web content.

  • Search icons by keyword using a public HTTP API
  • Retrieve SVG content directly via curl
  • Fetch multiple icon results with configurable result count (1-20)
  • Handle URL encoding for special characters in search terms
  • Integrate SVG icons into pages, diagrams, and infographic materials

How to install icon-retrieval

npx skills add https://github.com/antvis/chart-visualization-skills --skill icon-retrieval
Claude Code
Cursor
Windsurf
Cline

How to use icon-retrieval

  1. 1.Identify the icon concept keyword you need (e.g., 'security', 'document', 'data')
  2. 2.Call the search endpoint with curl: `curl -sS -L --max-time 20 "https://www.weavefox.cn/api/v1/infographic/icon?text=YOUR_KEYWORD&topK=5"`
  3. 3.Parse the JSON response to extract SVG URLs from the data array
  4. 4.Fetch each SVG using curl: `curl -sS -L --max-time 20 "https://example.com/icon.svg"`
  5. 5.Use the retrieved SVG content directly in your pages, diagrams, or infographic materials

Use cases

Good for
  • Automatically populate infographics with relevant icons based on content keywords
  • Generate diagram assets by searching for icons matching specific concepts
  • Build icon libraries for data visualization projects
  • Retrieve SVG icons programmatically for chart and visualization tools
Who it's for
  • Data visualization engineers
  • Infographic creators
  • Chart and diagram developers
  • Automation engineers building content generation pipelines

icon-retrieval FAQ

What is the maximum number of icons I can retrieve per search?

The topK parameter accepts values 1–20; if omitted, the service returns up to 5 results by default.

How do I handle special characters in search keywords?

Use URL encoding for special characters in the text parameter.

What should I do if the API request times out?

Retry with a smaller topK value or verify that the endpoint is accessible.

Can I use the retrieved SVGs directly in my projects?

Yes, the API returns SVG URLs that you can fetch with curl and use directly in pages, diagrams, or infographic materials.

Full instructions (SKILL.md)

Source of truth, from antvis/chart-visualization-skills.


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.