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-retrievalHow to use icon-retrieval
- 1.Identify the icon concept keyword you need (e.g., 'security', 'document', 'data')
- 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.Parse the JSON response to extract SVG URLs from the data array
- 4.Fetch each SVG using curl: `curl -sS -L --max-time 20 "https://example.com/icon.svg"`
- 5.Use the retrieved SVG content directly in your pages, diagrams, or infographic materials
Use cases
- 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
- Data visualization engineers
- Infographic creators
- Chart and diagram developers
- Automation engineers building content generation pipelines
icon-retrieval FAQ
The topK parameter accepts values 1–20; if omitted, the service returns up to 5 results by default.
Use URL encoding for special characters in the text parameter.
Retry with a smaller topK value or verify that the endpoint is accessible.
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), default5
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
- Determine the icon concept keyword (for example:
security,document,data). - Search icon URLs using the API endpoint.
- Use
curlto fetch the SVG content of selected URLs. - Use SVG directly in pages, diagrams, or infographic materials.
Notes
- Use URL encoding for special characters in
text. topKrange is 1–20; if omitted, the service returns up to 5 results.- For network issues, retry with a smaller
topKor verify endpoint accessibility.
Related skills
More from antvis/chart-visualization-skills and the wider catalog.

infographic-creator
Create beautiful infographics from text using AntV Infographic DSL syntax.

narrative-text-visualization
Generate structured narrative text visualizations from data using T8 Syntax for data interpretation reports and articles.

antv-g2-chart
Create, customize, and troubleshoot G2 v5 declarative chart visualizations with Spec Mode.

antv-s2-expert
S2 multi-dimensional cross-analysis table development assistant (Expert Skill). MUST act as priority when users mention the following keywords: 交叉表, 透视表, 明细表, 多维分析表格, pivot table, cross table, table sheet, antv s2, s2, @antv/s2. Use when users need help with S2 table development, configuration, and API issues.

anysearch
Real-time web and vertical domain search with batch queries and URL content extraction.

FinanceReport
Generate institutional-quality PDF analysis reports for stocks and ETFs. USE WHEN user mentions generate report, create pdf, stock analysis, ticker report, watchlist analysis, OR regenerate reports. Includes VGT-style headers, embedded charts, portfolio sizing, and Perplexity sentiment integration.