{
  "openapi": "3.1.0",
  "info": {
    "title": "EV Chargers Israel public API",
    "version": "1.0.0",
    "description": "Read-only JSON API for ev-chargers-il.com: Hebrew guides about home EV charging in Israel, charger types, charger fit per car model, installation cities and contact options. Public, no authentication, no writes. Agents cannot send a lead or book an installer through it.",
    "contact": {
      "url": "https://ev-chargers-il.com/contact"
    }
  },
  "servers": [
    {
      "url": "https://ev-chargers-il.com/api/v1"
    }
  ],
  "externalDocs": {
    "url": "https://ev-chargers-il.com/developers",
    "description": "API and agent docs"
  },
  "paths": {
    "/guides": {
      "get": {
        "operationId": "search_guides",
        "summary": "Search the Hebrew guides",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Keywords, Hebrew or English"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 10,
              "default": 5
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Matching guides with title, summary, URL and markdown URL",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/chargers": {
      "get": {
        "operationId": "list_chargers",
        "summary": "List home charger types",
        "responses": {
          "200": {
            "description": "Charger types",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          }
        }
      }
    },
    "/chargers/for-model": {
      "get": {
        "operationId": "find_charger_for_model",
        "summary": "Recommended home charging power and connector for a car model",
        "parameters": [
          {
            "name": "model",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Recommendation",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/service-areas": {
      "get": {
        "operationId": "list_service_areas",
        "summary": "Installation cities grouped by region",
        "parameters": [
          {
            "name": "region",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Cities by region",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          }
        }
      }
    },
    "/contact-options": {
      "get": {
        "operationId": "get_contact_options",
        "summary": "Ways for a person to ask for a quote (nothing is sent)",
        "responses": {
          "200": {
            "description": "Contact channels",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Error": {
        "type": "object",
        "required": [
          "error"
        ],
        "properties": {
          "error": {
            "type": "string"
          },
          "status": {
            "type": "integer"
          },
          "docs": {
            "type": "string"
          }
        }
      }
    },
    "responses": {
      "Error": {
        "description": "JSON error",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      }
    }
  }
}