Icon Retrieval

by antvisa105fa12a9faNo license506 starsListed Oct 8, 2026Updated Oct 8, 2026Repository updated 2 weeks ago

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

Instructions onlyDesign & Creative
AI-generated overview

Searches an icon HTTP API by keyword and fetches the resulting SVG files with curl.

What it does
This skill documents how to query an icon search HTTP API with a keyword and an optional result count, then download the returned SVG files using curl. It covers the search endpoint, its query parameters, a sample response, and a short workflow for turning a concept keyword into usable SVG content. The output is SVG markup that can be placed into pages, diagrams, or infographic materials.
When to use it
Use it when you need icons for a page, diagram, or infographic and want to find them by keyword rather than drawing them. It fits tasks where SVG assets must be retrieved from a search service and embedded directly.
Requirements
Requires network access to the icon search API and the curl command-line tool. No scripts ship with the skill; it is instructions only.

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.

Source and attribution

Source:antvis/chart-visualization-skillsinskills/icon-retrievalat commita105fa1

License: No license

Content belongs to its original authors. SourceWeft indexes it from a public repository.

Report or request removal