{
  "openapi": "3.0.1",
  "info": {
    "title": "Favicon Extractor – Bulk Favicon, Apple Touch & Website Icons",
    "description": "Get every icon a website declares, in bulk: favicon.ico, PNG/SVG favicons, apple-touch icons, manifest icons and mask icons with sizes and types, plus the best icon per site. Optional download as PNG or ICO in standard sizes, or as Base64 data URIs. Robots respected. $0.50 per 1,000 sites.",
    "version": "0.1",
    "x-build-id": "TBzjDTLEIoIs9Zhxv"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/gazidev~favicon-extractor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-gazidev-favicon-extractor",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/gazidev~favicon-extractor/runs": {
      "post": {
        "operationId": "runs-sync-gazidev-favicon-extractor",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/gazidev~favicon-extractor/run-sync": {
      "post": {
        "operationId": "run-sync-gazidev-favicon-extractor",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "domains": {
            "title": "Websites",
            "type": "array",
            "description": "One per line. A bare domain (`stripe.com`), a full URL or an email address all work; the host is used and its homepage is read. Duplicates are skipped. Invalid entries get a free error row.",
            "default": [
              "apify.com",
              "github.com",
              "stripe.com",
              "wikipedia.org"
            ],
            "items": {
              "type": "string"
            }
          },
          "bulkText": {
            "title": "Bulk paste",
            "type": "string",
            "description": "Optional: paste many domains or URLs at once, separated by new lines, spaces, commas or semicolons. Added to the list above."
          },
          "datasetId": {
            "title": "Read sites from a dataset",
            "type": "string",
            "description": "Optional: an Apify dataset (for example another Actor's output) to read websites from."
          },
          "datasetField": {
            "title": "Dataset field with the website",
            "type": "string",
            "description": "Field holding the domain or URL in that dataset. If it is empty for an item, `domain`, `url`, `website`, `websiteUrl` or `homepage` is tried.",
            "default": "domain"
          },
          "downloadIcons": {
            "title": "Download icons",
            "enum": [
              "none",
              "best",
              "all"
            ],
            "type": "string",
            "description": "`none`: URLs only (cheapest). `best`: save the best icon of each site to the run's key-value store. `all`: save every reachable icon (up to 20 per site). Each stored file is charged as `icon-file-saved`. Icons can be trademarks: you are responsible for how you use them.",
            "default": "none"
          },
          "outputFormats": {
            "title": "File formats",
            "type": "array",
            "description": "Used only when icons are downloaded. `original`: the file as served. `png`: square PNGs in the sizes below. `ico`: one multi-size .ico (16, 32, 48… up to the source size). SVG icons are saved as originals only.",
            "items": {
              "type": "string",
              "enum": [
                "original",
                "png",
                "ico"
              ],
              "enumTitles": [
                "Original file",
                "PNG (resized)",
                "ICO (multi-size)"
              ]
            },
            "default": [
              "original"
            ]
          },
          "pngSizes": {
            "title": "PNG sizes (px)",
            "type": "array",
            "description": "Square sizes for PNG output, e.g. 16, 32, 48, 180, 192, 512. Sizes larger than the source icon are skipped (not charged) unless upscaling is on.",
            "default": [
              32,
              180,
              512
            ]
          },
          "allowUpscale": {
            "title": "Allow upscaling",
            "type": "boolean",
            "description": "Make PNG sizes larger than the source icon anyway (they will look blurry).",
            "default": false
          },
          "dataUri": {
            "title": "Add Base64 data URIs",
            "type": "boolean",
            "description": "Add a `data:image/...;base64,` string to each saved file of 64 KB or less, ready to paste into HTML, CSS or a spreadsheet.",
            "default": false
          },
          "verifyIcons": {
            "title": "Check each icon",
            "type": "boolean",
            "description": "Fetch the first 16 KB of each icon to confirm it answers, read its real type, pixel size and file size. Turn off for declared URLs only (faster; `ok` is then null).",
            "default": true
          },
          "includeManifest": {
            "title": "Read the web app manifest",
            "type": "boolean",
            "description": "Also read the icons, name and theme color from the site's `manifest.json` / `site.webmanifest` when the homepage declares one.",
            "default": true
          },
          "maxConcurrency": {
            "title": "Parallel sites",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "How many sites are processed at the same time. Requests to one host are always spaced out.",
            "default": 20
          },
          "requestTimeoutSecs": {
            "title": "Request timeout (seconds)",
            "minimum": 5,
            "maximum": 60,
            "type": "integer",
            "description": "Timeout for each HTTP request. Dead sites are free, but slow ones hold a worker this long.",
            "default": 15
          },
          "maxSites": {
            "title": "Max sites",
            "minimum": 1,
            "type": "integer",
            "description": "Process at most this many sites. Leave empty for no limit."
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}