SVG Icons Icons API

Icon metadata, SVG payloads, and single-icon PNG export.

GitHub OpenAPI

Operations 3

GET /api/pro/icons/{icon} Get icon metadata #
GET /api/pro/icons/{icon}/svg Get icon metadata and SVG payload #
POST /api/pro/icons/{icon}/png-export Export one icon as PNG or ZIP #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/svgicons-com:svgicons-com-icons-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

svgicons-com-icons-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Svgicons Com Icons API
  version: '2026-07-17'
  description: 'Operations tagged Icons across 2 of this provider''s published API definitions: pro-api.json, svgicons-com-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://svgicons.com
  description: Production
tags:
- name: Icons
  description: Icon metadata, SVG payloads, and single-icon PNG export.
paths:
  /api/pro/icons/{icon}:
    get:
      tags:
      - Icons
      summary: Get icon metadata
      operationId: getProIcon
      security:
      - bearerAuth: []
      x-required-scopes:
      - icons:read
      parameters:
      - $ref: '#/components/parameters/IconId'
      responses:
        '200':
          description: Icon metadata without raw SVG body.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IconResponse'
        '401':
          $ref: '#/components/responses/Unauthenticated'
        '403':
          $ref: '#/components/responses/MissingScope'
        '404':
          $ref: '#/components/responses/NotFound'
    servers:
    - url: https://svgicons.com
      description: Production
  /api/pro/icons/{icon}/svg:
    get:
      tags:
      - Icons
      summary: Get icon metadata and SVG payload
      operationId: getProIconSvg
      security:
      - bearerAuth: []
      x-required-scopes:
      - icons:read
      parameters:
      - $ref: '#/components/parameters/IconId'
      responses:
        '200':
          description: Icon metadata with SVG source body and wrapped SVG document.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IconSvgResponse'
              examples:
                svg:
                  value:
                    data:
                      id: 123
                      name: arrow-left
                      slug: arrow-left
                      label: Arrow Left
                      description: null
                      category: Interface
                      width: 24
                      height: 24
                      viewBox: 0 0 24 24
                      pageUrl: https://svgicons.com/icon/123/arrow-left
                      svgUrl: https://svgicons.com/img/123/arrow-left.svg
                      iconSet: null
                      body: <path d="M4 12h16"/>
                      svg: <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none"><path d="M4 12h16"/></svg>
                      contentType: image/svg+xml
        '401':
          $ref: '#/components/responses/Unauthenticated'
        '403':
          $ref: '#/components/responses/MissingScope'
        '404':
          $ref: '#/components/responses/NotFound'
    servers:
    - url: https://svgicons.com
      description: Production
  /api/pro/icons/{icon}/png-export:
    post:
      tags:
      - Icons
      summary: Export one icon as PNG or ZIP
      operationId: exportProIconPng
      security:
      - bearerAuth: []
      x-required-scopes:
      - icons:read
      - exports:create
      parameters:
      - $ref: '#/components/parameters/IconId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/IconPngExportRequest'
      responses:
        '200':
          description: PNG bytes or ZIP bytes. The response Content-Type is image/png or application/zip.
          content:
            image/png:
              schema:
                type: string
                format: binary
            application/zip:
              schema:
                type: string
                format: binary
        '401':
          $ref: '#/components/responses/Unauthenticated'
        '403':
          $ref: '#/components/responses/MissingScope'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          $ref: '#/components/responses/ValidationError'
    servers:
    - url: https://svgicons.com
      description: Production
components:
  responses:
    NotFound:
      description: Resource was not found or is not owned by the token user.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            notFound:
              value:
                message: Not Found
    ValidationError:
      description: Request validation failed.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ValidationError'
    Unauthenticated:
      description: Missing or invalid bearer token.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            unauthenticated:
              value:
                message: Unauthenticated.
    MissingScope:
      description: Pro entitlement or token scope denied.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ScopeError'
          examples:
            missingScope:
              value:
                message: This token is missing the search:read scope.
                requiredScopes:
                - search:read
                missingScope: search:read
            proRequired:
              value:
                message: This endpoint requires the Pro Plan.
                requiredScopes:
                - collections:read
                pricingUrl: https://svgicons.com/pricing
  schemas:
    IconPngExportRequest:
      type: object
      required:
      - iconName
      properties:
        iconName:
          type: string
          maxLength: 120
          pattern: ^[A-Za-z0-9][A-Za-z0-9._-]*$
        sizes:
          type: array
          minItems: 1
          maxItems: 9
          items:
            type: integer
            enum:
            - 16
            - 24
            - 32
            - 48
            - 96
            - 128
            - 256
            - 512
            - 1024
        densities:
          type: array
          minItems: 1
          maxItems: 4
          items:
            type: integer
            enum:
            - 1
            - 2
            - 3
            - 4
        backgroundType:
          type: string
          enum:
          - transparent
          - solid
        backgroundColor:
          type: string
          pattern: ^#[0-9a-fA-F]{6}$
        iconColorMode:
          type: string
          enum:
          - preserve
          - black
          - white
          - custom
        iconColor:
          type: string
          pattern: ^#[0-9a-fA-F]{6}$
        padding:
          type: integer
          minimum: 0
          maximum: 256
        fit:
          type: string
          enum:
          - contain
        filename:
          type: string
          maxLength: 120
          pattern: ^[A-Za-z0-9][A-Za-z0-9._-]*$
        zip:
          type: boolean
    Icon:
      type: object
      required:
      - id
      - name
      - slug
      - width
      - height
      - viewBox
      - pageUrl
      - svgUrl
      - iconSet
      properties:
        id:
          type: integer
        name:
          type: string
        slug:
          type: string
        label:
          type: string
        description:
          type:
          - string
          - 'null'
        category:
          type:
          - string
          - 'null'
        width:
          type: integer
        height:
          type: integer
        viewBox:
          type: string
        pageUrl:
          type: string
          format: uri
        svgUrl:
          type: string
          format: uri
        iconSet:
          $ref: '#/components/schemas/IconSet'
    IconWithSvg:
      allOf:
      - $ref: '#/components/schemas/Icon'
      - type: object
        required:
        - body
        - svg
        - contentType
        properties:
          body:
            type: string
          svg:
            type: string
          contentType:
            type: string
            const: image/svg+xml
    ScopeValue:
      type: string
      enum:
      - search:read
      - icons:read
      - collections:read
      - collections:write
      - exports:create
      - mcp:use
    Error:
      type: object
      required:
      - message
      properties:
        message:
          type: string
      additionalProperties: true
    ScopeError:
      type: object
      required:
      - message
      - requiredScopes
      properties:
        message:
          type: string
        requiredScopes:
          type: array
          items:
            $ref: '#/components/schemas/ScopeValue'
        missingScope:
          $ref: '#/components/schemas/ScopeValue'
        pricingUrl:
          type: string
          format: uri
      additionalProperties: true
    IconSet:
      type:
      - object
      - 'null'
      properties:
        id:
          type: integer
        name:
          type: string
        prefix:
          type: string
        description:
          type:
          - string
          - 'null'
        total:
          type: integer
        author:
          type:
          - string
          - 'null'
        authorUrl:
          type:
          - string
          - 'null'
          format: uri
        license:
          type:
          - string
          - 'null'
        licenseUrl:
          type:
          - string
          - 'null'
          format: uri
        spdx:
          type:
          - string
          - 'null'
        category:
          type:
          - string
          - 'null'
        statusBadge:
          type:
          - string
          - 'null'
        pageUrl:
          type: string
          format: uri
    IconSvgResponse:
      type: object
      required:
      - data
      properties:
        data:
          $ref: '#/components/schemas/IconWithSvg'
    IconResponse:
      type: object
      required:
      - data
      properties:
        data:
          $ref: '#/components/schemas/Icon'
    ValidationError:
      type: object
      required:
      - message
      - errors
      properties:
        message:
          type: string
        errors:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
  parameters:
    IconId:
      name: icon
      in: path
      required: true
      description: Numeric svgicons.com icon ID.
      schema:
        type: integer
        minimum: 1
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: Sanctum personal access token
      description: 'Use a Pro API token from the account page in the Authorization header: Bearer TOKEN.'
x-refined-from:
- pro-api.json
- svgicons-com-openapi.yml
x-pro-api-scopes:
- search:read
- icons:read
- collections:read
- collections:write
- exports:create
- mcp:use