{
  "openapi": "3.0.3",
  "info": {
    "title": "Image SEO Checker API: Alt Text Checker & Page Audit",
    "version": "1.0.1",
    "summary": "Image SEO checker and alt text checker for one web page, with a 0-100 score.",
    "description": "Audit one public web page for image SEO: missing, empty, filename-like, generic and duplicate alt text, with deterministic alt suggestions in English, French and Arabic that reuse only words already on the page. Also checks image size and format (HEAD requests), width/height, lazy loading, meta description, canonical, Open Graph tags, max-image-preview, JSON-LD and html lang. Honors robots.txt, never crawls beyond the page, never stores the page. No AI. Built by Lycorax Technologies.",
    "contact": {
      "name": "Lycorax Technologies",
      "email": "freejosephe@gmail.com"
    },
    "license": {
      "name": "Proprietary"
    }
  },
  "servers": [
    {
      "url": "https://lycorax-image-seo-api.j0l30.workers.dev"
    }
  ],
  "security": [
    {
      "RapidAPIProxySecret": []
    },
    {
      "GatewayKey": []
    }
  ],
  "paths": {
    "/v1/image-seo/audit": {
      "get": {
        "tags": [
          "Image SEO"
        ],
        "operationId": "auditPage",
        "summary": "Image SEO + alt text audit of one page",
        "parameters": [
          {
            "name": "url",
            "in": "query",
            "required": true,
            "description": "Public http(s) URL of the page (ports 80/443 only)",
            "schema": {
              "type": "string",
              "format": "uri",
              "maxLength": 2048
            },
            "example": "https://example.com/"
          },
          {
            "name": "lang",
            "in": "query",
            "required": false,
            "description": "Language of suggested_alt: auto (from <html lang> / text), en, fr, ar. Applies to every generated suggestion: connector words are written in that language and, for fr/ar, the page H1 is preferred over an English file name. Words reused from the page (H1, caption, title) stay as written; nothing is machine-translated.",
            "schema": {
              "enum": [
                "auto",
                "en",
                "fr",
                "ar"
              ],
              "default": "auto"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Audit",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "403": {
            "description": "Blocked by the site's robots.txt",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "413": {
            "description": "Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "422": {
            "description": "Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "502": {
            "description": "Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "503": {
            "description": "Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "504": {
            "description": "Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/health": {
      "get": {
        "tags": [
          "Meta"
        ],
        "operationId": "health",
        "summary": "Health check (no auth)",
        "security": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/openapi.json": {
      "get": {
        "tags": [
          "Meta"
        ],
        "operationId": "openapi",
        "summary": "This OpenAPI document (no auth)",
        "security": [],
        "responses": {
          "200": {
            "description": "OpenAPI 3.1",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "RapidAPIProxySecret": {
        "type": "apiKey",
        "in": "header",
        "name": "X-RapidAPI-Proxy-Secret",
        "description": "Set by RapidAPI on every proxied call."
      },
      "GatewayKey": {
        "type": "apiKey",
        "in": "header",
        "name": "X-Lycorax-Gateway-Key",
        "description": "Shared secret configured in the other marketplaces' gateways."
      }
    }
  }
}