{
  "openapi": "3.1.0",
  "info": {
    "title": "Favicon Generator API",
    "version": "1.0.0",
    "description": "Free, read-only favicon API from favicongenerator.io. No key, no sign-up, CORS enabled. Credit https://favicongenerator.io/ where you show results. The same tools are available over MCP at /mcp.",
    "contact": {
      "name": "Favicon Generator",
      "email": "hello@favicongenerator.io",
      "url": "https://favicongenerator.io/developers"
    }
  },
  "servers": [
    {
      "url": "https://favicongenerator.io"
    }
  ],
  "externalDocs": {
    "description": "Developer docs",
    "url": "https://favicongenerator.io/developers"
  },
  "paths": {
    "/api/text-favicon": {
      "get": {
        "operationId": "generate_text_favicon",
        "summary": "Generate a text or emoji favicon (JSON with SVG, HTML snippet and manifest)",
        "description": "Build a favicon from one or two characters or an emoji on a colored rounded-square or circle background, with optional dark-mode colors. Returns favicon.svg, the HTML <head> snippet, site.webmanifest, the list of files a site needs, and commands that turn the SVG into favicon.ico and the PNG sizes.",
        "parameters": [
          {
            "name": "text",
            "in": "query",
            "required": true,
            "description": "One or two characters or one emoji, e.g. \"A\", \"JS\", \"🚀\". Default \"F\".",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 32
            }
          },
          {
            "name": "font_family",
            "in": "query",
            "required": false,
            "description": "CSS font list, e.g. \"'Inter', sans-serif\". Emoji default to a color-emoji font list.",
            "schema": {
              "type": "string",
              "maxLength": 120
            }
          },
          {
            "name": "font_weight",
            "in": "query",
            "required": false,
            "description": "Font weight in steps of 100. Default 700.",
            "schema": {
              "type": "integer",
              "minimum": 100,
              "maximum": 900
            }
          },
          {
            "name": "font_size",
            "in": "query",
            "required": false,
            "description": "Glyph size on a 512-unit canvas. Default 280.",
            "schema": {
              "type": "number",
              "minimum": 60,
              "maximum": 400
            }
          },
          {
            "name": "shape",
            "in": "query",
            "required": false,
            "description": "Background shape. Default rounded.",
            "schema": {
              "type": "string",
              "enum": [
                "rounded",
                "circle"
              ]
            }
          },
          {
            "name": "radius",
            "in": "query",
            "required": false,
            "description": "Corner radius of the rounded shape on a 512-unit canvas; 0 is a square. Default 104.",
            "schema": {
              "type": "number",
              "minimum": 0,
              "maximum": 160
            }
          },
          {
            "name": "text_color",
            "in": "query",
            "required": false,
            "description": "Glyph color in light mode. Default #ffffff.",
            "schema": {
              "type": "string",
              "pattern": "^(?:#[0-9a-fA-F]{3}|#[0-9a-fA-F]{6}|transparent)$"
            }
          },
          {
            "name": "background_start",
            "in": "query",
            "required": false,
            "description": "Background gradient start in light mode, or \"transparent\". Default #6366f1.",
            "schema": {
              "type": "string",
              "pattern": "^(?:#[0-9a-fA-F]{3}|#[0-9a-fA-F]{6}|transparent)$"
            }
          },
          {
            "name": "background_end",
            "in": "query",
            "required": false,
            "description": "Background gradient end in light mode. Defaults to background_start when that is set, otherwise #ec4899.",
            "schema": {
              "type": "string",
              "pattern": "^(?:#[0-9a-fA-F]{3}|#[0-9a-fA-F]{6}|transparent)$"
            }
          },
          {
            "name": "text_color_dark",
            "in": "query",
            "required": false,
            "description": "Glyph color in dark mode (prefers-color-scheme: dark). Defaults to the light-mode value once any light-mode color is set.",
            "schema": {
              "type": "string",
              "pattern": "^(?:#[0-9a-fA-F]{3}|#[0-9a-fA-F]{6}|transparent)$"
            }
          },
          {
            "name": "background_start_dark",
            "in": "query",
            "required": false,
            "description": "Background gradient start in dark mode. Defaults to the light-mode value once any light-mode color is set.",
            "schema": {
              "type": "string",
              "pattern": "^(?:#[0-9a-fA-F]{3}|#[0-9a-fA-F]{6}|transparent)$"
            }
          },
          {
            "name": "background_end_dark",
            "in": "query",
            "required": false,
            "description": "Background gradient end in dark mode. Defaults to the light-mode value once any light-mode color is set.",
            "schema": {
              "type": "string",
              "pattern": "^(?:#[0-9a-fA-F]{3}|#[0-9a-fA-F]{6}|transparent)$"
            }
          },
          {
            "name": "theme_color_light",
            "in": "query",
            "required": false,
            "description": "Browser UI color (<meta name=\"theme-color\">) in light mode. Default #ffffff.",
            "schema": {
              "type": "string",
              "pattern": "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6})$"
            }
          },
          {
            "name": "theme_color_dark",
            "in": "query",
            "required": false,
            "description": "Browser UI color in dark mode. Default #0f172a.",
            "schema": {
              "type": "string",
              "pattern": "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6})$"
            }
          },
          {
            "name": "name",
            "in": "query",
            "required": false,
            "description": "App name for site.webmanifest.",
            "schema": {
              "type": "string",
              "maxLength": 100
            }
          },
          {
            "name": "short_name",
            "in": "query",
            "required": false,
            "description": "Short app name for site.webmanifest (home screen label).",
            "schema": {
              "type": "string",
              "maxLength": 30
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Tool result. Same fields as the MCP tool of the same name.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Invalid or unknown argument.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string",
                      "description": "What was wrong with the request."
                    },
                    "docs": {
                      "type": "string",
                      "format": "uri"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/api/text-favicon.svg": {
      "get": {
        "operationId": "generate_text_favicon_svg",
        "summary": "Generate a text or emoji favicon (the favicon.svg file itself)",
        "description": "Build a favicon from one or two characters or an emoji on a colored rounded-square or circle background, with optional dark-mode colors. Returns favicon.svg, the HTML <head> snippet, site.webmanifest, the list of files a site needs, and commands that turn the SVG into favicon.ico and the PNG sizes.",
        "parameters": [
          {
            "name": "text",
            "in": "query",
            "required": true,
            "description": "One or two characters or one emoji, e.g. \"A\", \"JS\", \"🚀\". Default \"F\".",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 32
            }
          },
          {
            "name": "font_family",
            "in": "query",
            "required": false,
            "description": "CSS font list, e.g. \"'Inter', sans-serif\". Emoji default to a color-emoji font list.",
            "schema": {
              "type": "string",
              "maxLength": 120
            }
          },
          {
            "name": "font_weight",
            "in": "query",
            "required": false,
            "description": "Font weight in steps of 100. Default 700.",
            "schema": {
              "type": "integer",
              "minimum": 100,
              "maximum": 900
            }
          },
          {
            "name": "font_size",
            "in": "query",
            "required": false,
            "description": "Glyph size on a 512-unit canvas. Default 280.",
            "schema": {
              "type": "number",
              "minimum": 60,
              "maximum": 400
            }
          },
          {
            "name": "shape",
            "in": "query",
            "required": false,
            "description": "Background shape. Default rounded.",
            "schema": {
              "type": "string",
              "enum": [
                "rounded",
                "circle"
              ]
            }
          },
          {
            "name": "radius",
            "in": "query",
            "required": false,
            "description": "Corner radius of the rounded shape on a 512-unit canvas; 0 is a square. Default 104.",
            "schema": {
              "type": "number",
              "minimum": 0,
              "maximum": 160
            }
          },
          {
            "name": "text_color",
            "in": "query",
            "required": false,
            "description": "Glyph color in light mode. Default #ffffff.",
            "schema": {
              "type": "string",
              "pattern": "^(?:#[0-9a-fA-F]{3}|#[0-9a-fA-F]{6}|transparent)$"
            }
          },
          {
            "name": "background_start",
            "in": "query",
            "required": false,
            "description": "Background gradient start in light mode, or \"transparent\". Default #6366f1.",
            "schema": {
              "type": "string",
              "pattern": "^(?:#[0-9a-fA-F]{3}|#[0-9a-fA-F]{6}|transparent)$"
            }
          },
          {
            "name": "background_end",
            "in": "query",
            "required": false,
            "description": "Background gradient end in light mode. Defaults to background_start when that is set, otherwise #ec4899.",
            "schema": {
              "type": "string",
              "pattern": "^(?:#[0-9a-fA-F]{3}|#[0-9a-fA-F]{6}|transparent)$"
            }
          },
          {
            "name": "text_color_dark",
            "in": "query",
            "required": false,
            "description": "Glyph color in dark mode (prefers-color-scheme: dark). Defaults to the light-mode value once any light-mode color is set.",
            "schema": {
              "type": "string",
              "pattern": "^(?:#[0-9a-fA-F]{3}|#[0-9a-fA-F]{6}|transparent)$"
            }
          },
          {
            "name": "background_start_dark",
            "in": "query",
            "required": false,
            "description": "Background gradient start in dark mode. Defaults to the light-mode value once any light-mode color is set.",
            "schema": {
              "type": "string",
              "pattern": "^(?:#[0-9a-fA-F]{3}|#[0-9a-fA-F]{6}|transparent)$"
            }
          },
          {
            "name": "background_end_dark",
            "in": "query",
            "required": false,
            "description": "Background gradient end in dark mode. Defaults to the light-mode value once any light-mode color is set.",
            "schema": {
              "type": "string",
              "pattern": "^(?:#[0-9a-fA-F]{3}|#[0-9a-fA-F]{6}|transparent)$"
            }
          },
          {
            "name": "theme_color_light",
            "in": "query",
            "required": false,
            "description": "Browser UI color (<meta name=\"theme-color\">) in light mode. Default #ffffff.",
            "schema": {
              "type": "string",
              "pattern": "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6})$"
            }
          },
          {
            "name": "theme_color_dark",
            "in": "query",
            "required": false,
            "description": "Browser UI color in dark mode. Default #0f172a.",
            "schema": {
              "type": "string",
              "pattern": "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6})$"
            }
          },
          {
            "name": "name",
            "in": "query",
            "required": false,
            "description": "App name for site.webmanifest.",
            "schema": {
              "type": "string",
              "maxLength": 100
            }
          },
          {
            "name": "short_name",
            "in": "query",
            "required": false,
            "description": "Short app name for site.webmanifest (home screen label).",
            "schema": {
              "type": "string",
              "maxLength": 30
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The favicon SVG.",
            "content": {
              "image/svg+xml": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Invalid or unknown argument.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string",
                      "description": "What was wrong with the request."
                    },
                    "docs": {
                      "type": "string",
                      "format": "uri"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/api/icons": {
      "get": {
        "operationId": "search_icons",
        "summary": "Search the open-source icon library",
        "description": "Search the open-source icon library (Feather, Lucide, Tabler, Heroicons, custom icons and Unicode symbols) by keyword. Returns icon ids for get_icon_svg, with source and license.",
        "parameters": [
          {
            "name": "query",
            "in": "query",
            "required": false,
            "description": "Keywords such as \"rocket\", \"shopping cart\" or \"arrow\". Empty lists the first icons.",
            "schema": {
              "type": "string",
              "maxLength": 100
            }
          },
          {
            "name": "source",
            "in": "query",
            "required": false,
            "description": "Only icons from this source, e.g. \"Feather\" or \"Lucide\".",
            "schema": {
              "type": "string",
              "maxLength": 50
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum number of icons to return. Default 10.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 50
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Tool result. Same fields as the MCP tool of the same name.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Invalid or unknown argument.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string",
                      "description": "What was wrong with the request."
                    },
                    "docs": {
                      "type": "string",
                      "format": "uri"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/api/icons/{id}": {
      "get": {
        "operationId": "get_icon_svg",
        "summary": "Get one library icon as a favicon SVG (JSON)",
        "description": "Return one library icon as a favicon-ready SVG with a fixed color (favicons cannot inherit currentColor) and an optional dark-mode color. Get ids from search_icons.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Icon id from search_icons, e.g. \"rocket\".",
            "schema": {
              "type": "string",
              "maxLength": 100
            }
          },
          {
            "name": "color",
            "in": "query",
            "required": false,
            "description": "Icon color. Default #0f172a.",
            "schema": {
              "type": "string",
              "pattern": "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6})$"
            }
          },
          {
            "name": "dark_color",
            "in": "query",
            "required": false,
            "description": "Icon color in dark mode (prefers-color-scheme: dark). Default: same as color.",
            "schema": {
              "type": "string",
              "pattern": "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6})$"
            }
          },
          {
            "name": "stroke_width",
            "in": "query",
            "required": false,
            "description": "Stroke width for outline icons on a 24-unit grid. Default 2.2.",
            "schema": {
              "type": "number",
              "minimum": 0.5,
              "maximum": 4
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Tool result. Same fields as the MCP tool of the same name.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Invalid or unknown argument.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string",
                      "description": "What was wrong with the request."
                    },
                    "docs": {
                      "type": "string",
                      "format": "uri"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/api/icons/{id}.svg": {
      "get": {
        "operationId": "get_icon_svg_svg",
        "summary": "Get one library icon as a favicon SVG (the SVG file itself)",
        "description": "Return one library icon as a favicon-ready SVG with a fixed color (favicons cannot inherit currentColor) and an optional dark-mode color. Get ids from search_icons.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Icon id from search_icons, e.g. \"rocket\".",
            "schema": {
              "type": "string",
              "maxLength": 100
            }
          },
          {
            "name": "color",
            "in": "query",
            "required": false,
            "description": "Icon color. Default #0f172a.",
            "schema": {
              "type": "string",
              "pattern": "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6})$"
            }
          },
          {
            "name": "dark_color",
            "in": "query",
            "required": false,
            "description": "Icon color in dark mode (prefers-color-scheme: dark). Default: same as color.",
            "schema": {
              "type": "string",
              "pattern": "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6})$"
            }
          },
          {
            "name": "stroke_width",
            "in": "query",
            "required": false,
            "description": "Stroke width for outline icons on a 24-unit grid. Default 2.2.",
            "schema": {
              "type": "number",
              "minimum": 0.5,
              "maximum": 4
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The favicon SVG.",
            "content": {
              "image/svg+xml": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Invalid or unknown argument.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string",
                      "description": "What was wrong with the request."
                    },
                    "docs": {
                      "type": "string",
                      "format": "uri"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/api/install-code": {
      "get": {
        "operationId": "get_install_code",
        "summary": "Get the HTML <head> snippet, site.webmanifest and the favicon file list",
        "description": "Return the HTML <head> snippet, a site.webmanifest and the list of favicon files a modern site needs (SVG, ICO, 96x96 PNG, Apple Touch, PWA 192/512).",
        "parameters": [
          {
            "name": "theme_color_light",
            "in": "query",
            "required": false,
            "description": "Browser UI color (<meta name=\"theme-color\">) in light mode. Default #ffffff.",
            "schema": {
              "type": "string",
              "pattern": "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6})$"
            }
          },
          {
            "name": "theme_color_dark",
            "in": "query",
            "required": false,
            "description": "Browser UI color in dark mode. Default #0f172a.",
            "schema": {
              "type": "string",
              "pattern": "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6})$"
            }
          },
          {
            "name": "name",
            "in": "query",
            "required": false,
            "description": "App name for site.webmanifest.",
            "schema": {
              "type": "string",
              "maxLength": 100
            }
          },
          {
            "name": "short_name",
            "in": "query",
            "required": false,
            "description": "Short app name for site.webmanifest (home screen label).",
            "schema": {
              "type": "string",
              "maxLength": 30
            }
          },
          {
            "name": "description",
            "in": "query",
            "required": false,
            "description": "App description for site.webmanifest.",
            "schema": {
              "type": "string",
              "maxLength": 300
            }
          },
          {
            "name": "background_color",
            "in": "query",
            "required": false,
            "description": "site.webmanifest background_color. Default #ffffff.",
            "schema": {
              "type": "string",
              "pattern": "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6})$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Tool result. Same fields as the MCP tool of the same name.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Invalid or unknown argument.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string",
                      "description": "What was wrong with the request."
                    },
                    "docs": {
                      "type": "string",
                      "format": "uri"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/api/platforms/{platform}": {
      "get": {
        "operationId": "get_platform_guide",
        "summary": "Get favicon install steps for one website platform",
        "description": "Return where to upload which favicon files on a website platform: wordpress, webflow, wix, shopify, squarespace, nextjs, static-html, pwa.",
        "parameters": [
          {
            "name": "platform",
            "in": "path",
            "required": true,
            "description": "Website platform or framework.",
            "schema": {
              "type": "string",
              "enum": [
                "wordpress",
                "webflow",
                "wix",
                "shopify",
                "squarespace",
                "nextjs",
                "static-html",
                "pwa"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Tool result. Same fields as the MCP tool of the same name.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Invalid or unknown argument.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string",
                      "description": "What was wrong with the request."
                    },
                    "docs": {
                      "type": "string",
                      "format": "uri"
                    }
                  },
                  "required": [
                    "error"
                  ]
                }
              }
            }
          }
        }
      }
    }
  }
}
