{
  "openapi": "3.0.1",
  "info": {
    "title": "Image SEO Checker – Alt Text, Size, Format, CLS & Broken Images",
    "description": "Audits all images of a page list or small site crawl without a browser: missing alt text, missing width/height (CLS), file size, WebP/AVIF vs. JPEG/PNG, real pixel size vs. displayed size, lazy loading, broken images and og:image. Summary and issue list per page.",
    "version": "0.1",
    "x-build-id": "vwYFRTXOHJXzVuHkK"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/adamplaenitz~image-seo-checker/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-adamplaenitz-image-seo-checker",
        "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/adamplaenitz~image-seo-checker/runs": {
      "post": {
        "operationId": "runs-sync-adamplaenitz-image-seo-checker",
        "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/adamplaenitz~image-seo-checker/run-sync": {
      "post": {
        "operationId": "run-sync-adamplaenitz-image-seo-checker",
        "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": {
          "urls": {
            "title": "URLs",
            "type": "array",
            "description": "Pages whose images should be checked, one per line (e.g. https://example.com/blog/post). Bare domains are checked as https://domain/. With \"Crawl the website\" switched on, these are the start pages of the crawl. Empty input: three example pages are checked.",
            "items": {
              "type": "string"
            }
          },
          "crawl": {
            "title": "Crawl the website",
            "type": "boolean",
            "description": "Also check the internal pages linked from the start URLs (same website only), up to \"Maximum pages\". Off: only the listed URLs are checked.",
            "default": false
          },
          "maxPages": {
            "title": "Maximum pages (crawl)",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Crawl mode only: stop after this many pages in total (start URLs included). You pay per checked page, so this also caps the cost.",
            "default": 20
          },
          "maxDepth": {
            "title": "Maximum link depth (crawl)",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Crawl mode only: how many clicks away from a start URL internal links are followed.",
            "default": 2
          },
          "crawlScope": {
            "title": "Which pages count as internal",
            "enum": [
              "same-domain",
              "same-hostname"
            ],
            "type": "string",
            "description": "Same domain: the start host and its subdomains. Same hostname: only the start host (\"www.\" is ignored).",
            "default": "same-domain"
          },
          "includePatterns": {
            "title": "Crawl only pages matching",
            "type": "array",
            "description": "Optional, crawl mode. Glob patterns (`*` = any characters) matched against the full URL or – if they start with `/` – against path + query, e.g. `/blog/*`. Regular expressions go between slashes. Start URLs are always checked.",
            "items": {
              "type": "string"
            }
          },
          "excludePatterns": {
            "title": "Do not crawl pages matching",
            "type": "array",
            "description": "Optional, crawl mode. Same syntax, e.g. `/tag/*`.",
            "items": {
              "type": "string"
            }
          },
          "respectRobotsTxt": {
            "title": "Respect robots.txt when crawling",
            "type": "boolean",
            "description": "Do not crawl discovered pages that robots.txt disallows. Start URLs are always checked.",
            "default": true
          },
          "outputImageRows": {
            "title": "Add one row per image",
            "type": "boolean",
            "description": "Besides the page summary, output one extra row per image element and og/twitter image (rowType = \"image\") with URL, alt, attributes, format, bytes, pixel size and issue codes. Image rows are included in the page price.",
            "default": false
          },
          "outputFilter": {
            "title": "Output",
            "enum": [
              "all",
              "issues"
            ],
            "type": "string",
            "description": "All checked pages, or only pages with at least one error or warning. Hidden pages are not charged.",
            "default": "all"
          },
          "maxImagesPerPage": {
            "title": "Maximum images per page",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "At most this many different image URLs are downloaded per page (the rest is reported as not checked). Alt, width/height and lazy-loading rules are still applied to all image elements.",
            "default": 100
          },
          "checkAllSrcsetCandidates": {
            "title": "Check every srcset candidate",
            "type": "boolean",
            "description": "Off: per image the src plus the largest candidate of each srcset / <source> is downloaded. On: every candidate (finds more broken variants, but needs more requests).",
            "default": false
          },
          "largeFileKb": {
            "title": "Large file threshold (KB)",
            "minimum": 10,
            "maximum": 100000,
            "type": "integer",
            "description": "Images larger than this get an \"image-file-too-large\" warning.",
            "default": 200
          },
          "oversizeFactor": {
            "title": "Oversize factor",
            "type": "string",
            "description": "An image without responsive srcset is flagged \"oversized-image\" when its real width is more than this factor times its width attribute (2 allows for high-DPI screens).",
            "default": "2"
          },
          "lazyAfterImages": {
            "title": "Expect lazy loading from image no.",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Images at this position or later (HTML order, first image = 0) without loading=\"lazy\" get a \"lazy-loading-missing\" notice.",
            "default": 5
          },
          "userAgent": {
            "title": "User-Agent",
            "type": "string",
            "description": "Leave empty to identify as 'Mozilla/5.0 (compatible; image-seo-checker/0.1; Apify Actor; +https://apify.com)'."
          },
          "maxConcurrency": {
            "title": "Parallel pages",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many pages are processed at the same time (1–10). Images are downloaded with up to 16 parallel requests (6 per host).",
            "default": 3
          },
          "timeoutSecs": {
            "title": "Timeout per request (seconds)",
            "minimum": 5,
            "maximum": 120,
            "type": "integer",
            "description": "Inactivity timeout for page downloads (image requests use at most 15 s and are retried once).",
            "default": 30
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}