---
name: "xpay-icons8-get-icon-png-url"
description: "
Get a PNG URL for an icon by its ID - use when SVG is not available.
NOTE: SVG format is preferred for Icons8 icons when possible (use get_icon_svg).

Args:
    icon_id: The unique identifier of the icon
    ctx: MCP context for API access
    size: The preview image size in pixels (default: 24)

Returns:
    Dictionary containing the PNG preview URL
"
version: "1.0.0"
price: "$0.01/call"
provider: "Icons8"
---

# Get Icon Png Url


Get a PNG URL for an icon by its ID - use when SVG is not available.
NOTE: SVG format is preferred for Icons8 icons when possible (use get_icon_svg).

Args:
    icon_id: The unique identifier of the icon
    ctx: MCP context for API access
    size: The preview image size in pixels (default: 24)

Returns:
    Dictionary containing the PNG preview URL


**Provider:** Icons8
**Price:** $0.01/call
**Pricing model:** Flat rate per call

## When to Use

Use this tool when you need to 
get a png url for an icon by its id - use when svg is not available.
note: svg format is preferred for icons8 icons when possible (use get_icon_svg).

args:
    icon_id: the unique identifier of the icon
    ctx: mcp context for api access
    size: the preview image size in pixels (default: 24)

returns:
    dictionary containing the png preview url
. This is part of the Icons8 provider on xpay✦.

## MCP Connection

Connect to xpay✦ to access this tool (and 3+ others):

```json
{
  "mcpServers": {
    "xpay": {
      "url": "https://mcp.xpay.sh/mcp?key=YOUR_API_KEY"
    }
  }
}
```

For Claude Code:
```bash
claude mcp add --transport http xpay "https://mcp.xpay.sh/mcp?key=YOUR_API_KEY"
```

## How to Execute

Use the xpay✦ meta-tools to run this tool:

1. **`xpay_details`** — Get full input schema: `xpay_details("icons8/get_icon_png_url")`
2. **`xpay_run`** — Execute: `xpay_run("icons8/get_icon_png_url", { ...inputs })`

## Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `icon_id` | string | Yes |  |
| `size` | integer | No |  |

## Pricing

- **Cost:** $0.01/call
- **Balance check:** Use `xpay_balance` to check remaining credits
- Get your API key at [xpay.tools](https://xpay.tools/account/settings/api-keys/) — $5 free credits included

## Related Skills

- [Icons8 (all tools)](https://xpay.tools/skills/icons8/SKILL.md) — 4 tools
- [Search Icons](https://xpay.tools/skills/icons8/search-icons/SKILL.md) — $0.01/call
- [List Categories](https://xpay.tools/skills/icons8/list-categories/SKILL.md) — $0.01/call
- [List Platforms](https://xpay.tools/skills/icons8/list-platforms/SKILL.md) — $0.01/call

## Links

- Tool page: https://xpay.tools/icons8/get-icon-png-url/
- Provider: https://xpay.tools/icons8/
- All tools: https://xpay.tools/explore
