{
  "openapi": "3.1.1",
  "info": {
    "title": "APIKodu API",
    "description": "Public REST APIs of APIKodu. Send your API key in the x-api-key header on every request. Each successful call costs the credits shown in x-credit-cost; failed calls are free. Credit and rate limit usage is returned in x-api-credits-* and x-rate-limit-* response headers. Success body: { data: { ... } }; error body: { code, message }.",
    "contact": {
      "name": "Ersenet Yazılım",
      "email": "info@ersenet.com"
    },
    "version": "v1"
  },
  "servers": [
    {
      "url": "https://api.apikodu.com"
    }
  ],
  "paths": {
    "/api/v1/agriculture/gdd": {
      "post": {
        "tags": [
          "Agriculture"
        ],
        "summary": "Growing Degree Days (GDD)",
        "description": "Growing degree days. Weather from DB or dailyTemps. First lat/lon call creates a cell; if empty, code -256.\n\nCost: 1 credit per successful request; failed requests are free.\n\n- Success body is { data: { ... } }. Error body is { code, message }. code is an ApiResponseCode enum value (negative integer).",
        "operationId": "AgricultureGddPost",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AgricultureGddRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/AgricultureGddRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/AgricultureGddRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. Body: { data: { ... } }.\n\nFields of data:\n- `gddCumulative` (number): Accumulated GDD over the window. max(0, (tmin+tmax)/2 − baseTemp), capped by upperTemp.\n- `gddAveragePerDay` (number): gddCumulative / daysWithData. 0 when no data.\n- `baseTemp` (number): Base temperature °C used (request or crop table).\n- `upperTemp` (number): Upper cap °C. Null if unused.\n- `crop` (string): Normalized crop code (wheat, maize ...). Null if omitted.\n- `fromDate` (string): Window start YYYY-MM-DD.\n- `toDate` (string): Window end YYYY-MM-DD.\n- `daysTotal` (integer): Calendar days in the window (fromDate..toDate).\n- `daysWithData` (integer): Days that have temperature data.\n- `missingCount` (integer): Days without data. missingDates.Length.\n- `missingDates` (array): YYYY-MM-DD list of missing days.\n- `gridLatitude` (number): 0.1° cell latitude. Null when dailyTemps was used.\n- `gridLongitude` (number): 0.1° cell longitude. Null when dailyTemps was used.\n- `stages` (array): Crop phenology thresholds. Empty array without crop.\n- `stages[].code` (string): Threshold code. Example: emergence, flowering.\n- `stages[].threshold` (number): Cumulative GDD required for this stage.\n- `stages[].reached` (boolean): true when gddCumulative >= threshold.\n- `daily` (array): Daily rows when includeDaily=true. Empty array when false.\n- `daily[].date` (string): Day YYYY-MM-DD.\n- `daily[].tmin` (number): Daily minimum °C.\n- `daily[].tmax` (number): Daily maximum °C.\n- `daily[].gdd` (number): GDD for that day.\n- `daily[].gddCumulative` (number): Running cumulative GDD through that day.\n- `method` (string): Calculation method. gdd-average-capped for this API.\n- `source` (string): user: dailyTemps or et0Mm. db: tarim_hava cell.\n- `disclaimer` (string): Decision-support disclaimer. Not agronomic advice or a prescription.",
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "gddCumulative": 18.5,
                    "gddAveragePerDay": 9.25,
                    "baseTemp": 4.0,
                    "upperTemp": 30.0,
                    "crop": "wheat",
                    "fromDate": "2026-03-01",
                    "toDate": "2026-03-02",
                    "daysTotal": 2,
                    "daysWithData": 2,
                    "missingCount": 0,
                    "missingDates": [ ],
                    "stages": [
                      {
                        "code": "emergence",
                        "threshold": 120.0,
                        "reached": false
                      }
                    ],
                    "method": "gdd-average-capped",
                    "source": "user",
                    "disclaimer": "Decision support only. Not agronomic advice."
                  }
                }
              }
            }
          },
          "400": {
            "description": "Error. Body: { code, message }.\n\n- code -249: Body missing; both crop and baseTemp missing; dailyTemps > 366, or tmin/tmax missing/invalid.\n- code -254: fromDate/toDate missing, not YYYY-MM-DD, or the window exceeds 366 days.\n- code -255: latitude/longitude are required without dailyTemps. Latitude -90..90, longitude -180..180.\n- code -251: No weather for this location/date (and no dailyTemps).\n- code -397: A parameter or the request body could not be read (e.g. text in a numeric field, malformed JSON). message names the invalid fields. No credits are charged."
          },
          "401": {
            "description": "Error. Body: { code, message }.\n\n- code -100: x-api-key is missing, empty, malformed, inactive, banned, expired, IP-restricted, or not allowed for this API."
          },
          "410": {
            "description": "Error. Body: { code, message }.\n\n- code -380: The API has been disabled or retired."
          },
          "413": {
            "description": "Error. Body: { code, message }.\n\n- code -390: The request body exceeds this endpoint's size limit. No credits are charged. For bodies far above the limit the connection may close before the upload finishes; the client may then see 502 instead of 413 (still no credits charged)."
          },
          "429": {
            "description": "Error. Body: { code, message }.\n\n- code -316: Daily new location (cell) limit (50) reached. Previously requested locations keep working; new locations next day (UTC). Retry-After header gives seconds until end of day.\n- code -221: Per-minute request limit exceeded. Response headers: x-rate-limit-limit, x-rate-limit-remaining, x-rate-limit-reset.\n- code -395: Package credit quota cannot cover this request. Besides code / message the body also has limit, currentUsage and requestCost.\n- code -394: Too many invalid keys were tried from this IP in a short time. Wait for the Retry-After header duration."
          },
          "500": {
            "description": "Error. Body: { code, message }.\n\n- code -1: Unexpected server error. message is a generic error text without technical details."
          },
          "503": {
            "description": "Error. Body: { code, message }.\n\n- code -256: Cell created; Worker is filling the last 730 days. Retry in a few minutes."
          }
        },
        "x-credit-cost": 1,
        "x-api-id": 48
      }
    },
    "/api/v1/agriculture/frostrisk": {
      "get": {
        "tags": [
          "Agriculture"
        ],
        "summary": "Frost Risk",
        "description": "Frost nights below a threshold. Weather data © Copernicus ERA5 / ERA5-Land (contains modified Copernicus Climate Change Service information) / Open-Meteo / OpenWeather / MET Norway.\n\nCost: 1 credit per successful request; failed requests are free.\n\n- Success body is { data: { ... } }. Error body is { code, message }. code is an ApiResponseCode enum value (negative integer).",
        "operationId": "AgricultureFrostRisk",
        "parameters": [
          {
            "name": "fromDate",
            "in": "query",
            "description": "YYYY-MM-DD. Empty uses today plus horizonDays.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "toDate",
            "in": "query",
            "description": "YYYY-MM-DD",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "threshold",
            "in": "query",
            "description": "Frost threshold °C. Default 0. -20..5.",
            "schema": {
              "type": "number",
              "format": "double",
              "default": 0
            }
          },
          {
            "name": "latitude",
            "in": "query",
            "description": "Required without dailyTemps.",
            "schema": {
              "type": "number",
              "format": "double"
            }
          },
          {
            "name": "longitude",
            "in": "query",
            "description": "Longitude.",
            "schema": {
              "type": "number",
              "format": "double"
            }
          },
          {
            "name": "includeBreakdown",
            "in": "query",
            "description": "Night breakdown. Values: true, false.",
            "schema": {
              "type": "boolean",
              "default": true
            }
          },
          {
            "name": "horizonDays",
            "in": "query",
            "description": "Forecast horizon in days when fromDate/toDate are omitted. Default 10. Range 1–10.",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 10
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. Body: { data: { ... } }.\n\nFields of data:\n- `frostNights` (integer): Number of nights with tmin <= threshold.\n- `threshold` (number): Frost threshold °C used.\n- `minTemperature` (number): Lowest tmin °C in the window. Null when no data.\n- `firstFrostDate` (string): First frost night YYYY-MM-DD. Null if none.\n- `lastFrostDate` (string): Last frost night YYYY-MM-DD. Null if none.\n- `hoursBelow` (integer): Hours with temperature at or below the threshold. Null when hourly data is missing.\n- `horizonDays` (integer): Forecast horizon used. Null when dates were supplied.\n- `fromDate` (string): Window start YYYY-MM-DD.\n- `toDate` (string): Window end YYYY-MM-DD.\n- `daysTotal` (integer): Calendar days in the window (fromDate..toDate).\n- `daysWithData` (integer): Days that have temperature data.\n- `missingCount` (integer): Days without data. missingDates.Length.\n- `missingDates` (array): YYYY-MM-DD list of missing days.\n- `gridLatitude` (number): 0.1° cell latitude. Null when dailyTemps was used.\n- `gridLongitude` (number): 0.1° cell longitude. Null when dailyTemps was used.\n- `nights` (array): Frost nights when includeBreakdown=true. Empty array when false.\n- `nights[].date` (string): Frost night YYYY-MM-DD.\n- `nights[].tmin` (number): Minimum temperature °C that night.\n- `method` (string): Calculation method. daily-tmin-threshold for this API.\n- `source` (string): user: dailyTemps or et0Mm. db: tarim_hava cell.\n- `disclaimer` (string): Decision-support disclaimer. Not agronomic advice. When source is database: Weather data © Copernicus ERA5 / ERA5-Land (contains modified Copernicus Climate Change Service information) / Open-Meteo / OpenWeather / MET Norway.",
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "frostNights": 2,
                    "threshold": 0.0,
                    "minTemperature": -3.1,
                    "firstFrostDate": "2026-04-04",
                    "lastFrostDate": "2026-04-12",
                    "fromDate": "2026-04-01",
                    "toDate": "2026-04-30",
                    "daysTotal": 30,
                    "daysWithData": 30,
                    "missingCount": 0,
                    "method": "daily-tmin-threshold",
                    "source": "user",
                    "disclaimer": "Decision support only. Not agronomic advice."
                  }
                }
              }
            }
          },
          "400": {
            "description": "Error. Body: { code, message }.\n\n- code -249: Body missing (POST) or threshold outside -20..5.\n- code -254: fromDate/toDate missing, not YYYY-MM-DD, or the window exceeds 366 days.\n- code -255: latitude/longitude are required without dailyTemps. Latitude -90..90, longitude -180..180.\n- code -251: No weather for this location/date (and no dailyTemps).\n- code -397: A parameter or the request body could not be read (e.g. text in a numeric field, malformed JSON). message names the invalid fields. No credits are charged."
          },
          "401": {
            "description": "Error. Body: { code, message }.\n\n- code -100: x-api-key is missing, empty, malformed, inactive, banned, expired, IP-restricted, or not allowed for this API."
          },
          "410": {
            "description": "Error. Body: { code, message }.\n\n- code -380: The API has been disabled or retired."
          },
          "413": {
            "description": "Error. Body: { code, message }.\n\n- code -390: The request body exceeds this endpoint's size limit. No credits are charged. For bodies far above the limit the connection may close before the upload finishes; the client may then see 502 instead of 413 (still no credits charged)."
          },
          "429": {
            "description": "Error. Body: { code, message }.\n\n- code -316: Daily new location (cell) limit (50) reached. Previously requested locations keep working; new locations next day (UTC). Retry-After header gives seconds until end of day.\n- code -221: Per-minute request limit exceeded. Response headers: x-rate-limit-limit, x-rate-limit-remaining, x-rate-limit-reset.\n- code -395: Package credit quota cannot cover this request. Besides code / message the body also has limit, currentUsage and requestCost.\n- code -394: Too many invalid keys were tried from this IP in a short time. Wait for the Retry-After header duration."
          },
          "500": {
            "description": "Error. Body: { code, message }.\n\n- code -1: Unexpected server error. message is a generic error text without technical details."
          },
          "503": {
            "description": "Error. Body: { code, message }.\n\n- code -256: Cell created; Worker is filling the last 730 days. Retry in a few minutes."
          }
        },
        "x-credit-cost": 1,
        "x-api-id": 49
      },
      "post": {
        "tags": [
          "Agriculture"
        ],
        "summary": "Frost Risk",
        "description": "Frost nights below a threshold. Weather data © Copernicus ERA5 / ERA5-Land (contains modified Copernicus Climate Change Service information) / Open-Meteo / OpenWeather / MET Norway.\n\nCost: 1 credit per successful request; failed requests are free.\n\n- Success body is { data: { ... } }. Error body is { code, message }. code is an ApiResponseCode enum value (negative integer).",
        "operationId": "AgricultureFrostRiskPost",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AgricultureFrostRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/AgricultureFrostRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/AgricultureFrostRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. Body: { data: { ... } }.\n\nFields of data:\n- `frostNights` (integer): Number of nights with tmin <= threshold.\n- `threshold` (number): Frost threshold °C used.\n- `minTemperature` (number): Lowest tmin °C in the window. Null when no data.\n- `firstFrostDate` (string): First frost night YYYY-MM-DD. Null if none.\n- `lastFrostDate` (string): Last frost night YYYY-MM-DD. Null if none.\n- `hoursBelow` (integer): Hours with temperature at or below the threshold. Null when hourly data is missing.\n- `horizonDays` (integer): Forecast horizon used. Null when dates were supplied.\n- `fromDate` (string): Window start YYYY-MM-DD.\n- `toDate` (string): Window end YYYY-MM-DD.\n- `daysTotal` (integer): Calendar days in the window (fromDate..toDate).\n- `daysWithData` (integer): Days that have temperature data.\n- `missingCount` (integer): Days without data. missingDates.Length.\n- `missingDates` (array): YYYY-MM-DD list of missing days.\n- `gridLatitude` (number): 0.1° cell latitude. Null when dailyTemps was used.\n- `gridLongitude` (number): 0.1° cell longitude. Null when dailyTemps was used.\n- `nights` (array): Frost nights when includeBreakdown=true. Empty array when false.\n- `nights[].date` (string): Frost night YYYY-MM-DD.\n- `nights[].tmin` (number): Minimum temperature °C that night.\n- `method` (string): Calculation method. daily-tmin-threshold for this API.\n- `source` (string): user: dailyTemps or et0Mm. db: tarim_hava cell.\n- `disclaimer` (string): Decision-support disclaimer. Not agronomic advice. When source is database: Weather data © Copernicus ERA5 / ERA5-Land (contains modified Copernicus Climate Change Service information) / Open-Meteo / OpenWeather / MET Norway.",
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "frostNights": 2,
                    "threshold": 0.0,
                    "minTemperature": -3.1,
                    "firstFrostDate": "2026-04-04",
                    "lastFrostDate": "2026-04-12",
                    "fromDate": "2026-04-01",
                    "toDate": "2026-04-30",
                    "daysTotal": 30,
                    "daysWithData": 30,
                    "missingCount": 0,
                    "method": "daily-tmin-threshold",
                    "source": "user",
                    "disclaimer": "Decision support only. Not agronomic advice."
                  }
                }
              }
            }
          },
          "400": {
            "description": "Error. Body: { code, message }.\n\n- code -249: Body missing (POST) or threshold outside -20..5.\n- code -254: fromDate/toDate missing, not YYYY-MM-DD, or the window exceeds 366 days.\n- code -255: latitude/longitude are required without dailyTemps. Latitude -90..90, longitude -180..180.\n- code -251: No weather for this location/date (and no dailyTemps).\n- code -397: A parameter or the request body could not be read (e.g. text in a numeric field, malformed JSON). message names the invalid fields. No credits are charged."
          },
          "401": {
            "description": "Error. Body: { code, message }.\n\n- code -100: x-api-key is missing, empty, malformed, inactive, banned, expired, IP-restricted, or not allowed for this API."
          },
          "410": {
            "description": "Error. Body: { code, message }.\n\n- code -380: The API has been disabled or retired."
          },
          "413": {
            "description": "Error. Body: { code, message }.\n\n- code -390: The request body exceeds this endpoint's size limit. No credits are charged. For bodies far above the limit the connection may close before the upload finishes; the client may then see 502 instead of 413 (still no credits charged)."
          },
          "429": {
            "description": "Error. Body: { code, message }.\n\n- code -316: Daily new location (cell) limit (50) reached. Previously requested locations keep working; new locations next day (UTC). Retry-After header gives seconds until end of day.\n- code -221: Per-minute request limit exceeded. Response headers: x-rate-limit-limit, x-rate-limit-remaining, x-rate-limit-reset.\n- code -395: Package credit quota cannot cover this request. Besides code / message the body also has limit, currentUsage and requestCost.\n- code -394: Too many invalid keys were tried from this IP in a short time. Wait for the Retry-After header duration."
          },
          "500": {
            "description": "Error. Body: { code, message }.\n\n- code -1: Unexpected server error. message is a generic error text without technical details."
          },
          "503": {
            "description": "Error. Body: { code, message }.\n\n- code -256: Cell created; Worker is filling the last 730 days. Retry in a few minutes."
          }
        },
        "x-credit-cost": 1,
        "x-api-id": 49
      }
    },
    "/api/v1/agriculture/irrigation": {
      "get": {
        "tags": [
          "Agriculture"
        ],
        "summary": "Irrigation Need",
        "description": "FAO-56 ETc and volume. 1 da = 1 donum = 1000 m². Decision support, not a prescription.\n\nCost: 1 credit per successful request; failed requests are free.\n\n- Success body is { data: { ... } }. Error body is { code, message }. code is an ApiResponseCode enum value (negative integer).",
        "operationId": "AgricultureIrrigation",
        "parameters": [
          {
            "name": "crop",
            "in": "query",
            "description": "Crop code. Required if kc is empty. Values: wheat, barley, maize, sunflower, cotton, potato, tomato, rapeseed, oats, rye, sugarbeet, grape, apple, chickpea, lentil.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "stage",
            "in": "query",
            "description": "FAO Kc stage. Values: initial, mid, late.",
            "schema": {
              "type": "string",
              "default": "mid"
            }
          },
          {
            "name": "kc",
            "in": "query",
            "description": "0–2. From table if empty.",
            "schema": {
              "type": "number",
              "format": "double"
            }
          },
          {
            "name": "et0Mm",
            "in": "query",
            "description": "Empty uses DB/Hargreaves via lat/lon.",
            "schema": {
              "type": "number",
              "format": "double"
            }
          },
          {
            "name": "area",
            "in": "query",
            "description": "Area > 0.",
            "required": true,
            "schema": {
              "type": "number",
              "format": "double"
            }
          },
          {
            "name": "areaUnit",
            "in": "query",
            "description": "Area unit. Values: da, dekar, donum, ha, are, m2.",
            "schema": {
              "type": "string",
              "default": "da"
            }
          },
          {
            "name": "fromDate",
            "in": "query",
            "description": "Weather window start.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "toDate",
            "in": "query",
            "description": "Weather window end.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "latitude",
            "in": "query",
            "description": "Cell when et0Mm is empty.",
            "schema": {
              "type": "number",
              "format": "double"
            }
          },
          {
            "name": "longitude",
            "in": "query",
            "description": "Longitude.",
            "schema": {
              "type": "number",
              "format": "double"
            }
          },
          {
            "name": "includeDaily",
            "in": "query",
            "description": "Daily breakdown. Values: true, false.",
            "schema": {
              "type": "boolean",
              "default": true
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. Body: { data: { ... } }.\n\nFields of data:\n- `etcMm` (number): Crop evapotranspiration mm. ETc = ET0 × Kc (FAO-56).\n- `et0Mm` (number): Reference evapotranspiration mm. From the request or Hargreaves/DB.\n- `kc` (number): Crop coefficient used. From the request or FAO table (stage).\n- `stage` (string): FAO Kc stage: initial, mid, late.\n- `volumeM3` (number): Irrigation volume m³ = etcMm/1000 * areaM2.\n- `areaM2` (number): Area in square meters. 1 da = 1000 m².\n- `areaDecares` (number): Area in decares (da).\n- `crop` (string): Normalized crop code. Null if omitted.\n- `fromDate` (string): Window start YYYY-MM-DD.\n- `toDate` (string): Window end YYYY-MM-DD.\n- `daysTotal` (integer): Calendar days in the window (fromDate..toDate).\n- `daysWithData` (integer): Days that have temperature data.\n- `missingCount` (integer): Days without data. missingDates.Length.\n- `missingDates` (array): YYYY-MM-DD list of missing days.\n- `gridLatitude` (number): 0.1° cell latitude. Null when dailyTemps was used.\n- `gridLongitude` (number): 0.1° cell longitude. Null when dailyTemps was used.\n- `daily` (array): Daily ETc when includeDaily=true and a date window is set. Otherwise empty.\n- `daily[].date` (string): Day YYYY-MM-DD.\n- `daily[].et0Mm` (number): ET0 mm for that day.\n- `daily[].etcMm` (number): ETc mm for that day.\n- `method` (string): Calculation method. fao56-etc for this API.\n- `source` (string): user: dailyTemps or et0Mm. db: tarim_hava cell.\n- `disclaimer` (string): Decision-support disclaimer. Not agronomic advice or a prescription.",
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "etcMm": 6.24,
                    "et0Mm": 5.2,
                    "kc": 1.20,
                    "stage": "mid",
                    "volumeM3": 312.0,
                    "areaM2": 50000.0,
                    "areaDecares": 50.0,
                    "crop": "maize",
                    "method": "fao56-etc",
                    "source": "user",
                    "disclaimer": "Decision support only. Not agronomic advice."
                  }
                }
              }
            }
          },
          "400": {
            "description": "Error. Body: { code, message }.\n\n- code -252: area missing/≤0 or areaUnit is not da, dekar, donum, ha, are, m2.\n- code -250: both crop and kc missing, or crop is unknown.\n- code -249: stage is not initial/mid/late, kc outside 0–2, Kc not in table, or et0Mm negative.\n- code -254: fromDate/toDate missing, not YYYY-MM-DD, or the window exceeds 366 days.\n- code -255: latitude/longitude are required without dailyTemps. Latitude -90..90, longitude -180..180.\n- code -251: No weather for this location/date (and no dailyTemps).\n- code -397: A parameter or the request body could not be read (e.g. text in a numeric field, malformed JSON). message names the invalid fields. No credits are charged."
          },
          "401": {
            "description": "Error. Body: { code, message }.\n\n- code -100: x-api-key is missing, empty, malformed, inactive, banned, expired, IP-restricted, or not allowed for this API."
          },
          "410": {
            "description": "Error. Body: { code, message }.\n\n- code -380: The API has been disabled or retired."
          },
          "413": {
            "description": "Error. Body: { code, message }.\n\n- code -390: The request body exceeds this endpoint's size limit. No credits are charged. For bodies far above the limit the connection may close before the upload finishes; the client may then see 502 instead of 413 (still no credits charged)."
          },
          "429": {
            "description": "Error. Body: { code, message }.\n\n- code -316: Daily new location (cell) limit (50) reached. Previously requested locations keep working; new locations next day (UTC). Retry-After header gives seconds until end of day.\n- code -221: Per-minute request limit exceeded. Response headers: x-rate-limit-limit, x-rate-limit-remaining, x-rate-limit-reset.\n- code -395: Package credit quota cannot cover this request. Besides code / message the body also has limit, currentUsage and requestCost.\n- code -394: Too many invalid keys were tried from this IP in a short time. Wait for the Retry-After header duration."
          },
          "500": {
            "description": "Error. Body: { code, message }.\n\n- code -1: Unexpected server error. message is a generic error text without technical details."
          },
          "503": {
            "description": "Error. Body: { code, message }.\n\n- code -256: Cell created; Worker is filling the last 730 days. Retry in a few minutes."
          }
        },
        "x-credit-cost": 1,
        "x-api-id": 50
      }
    },
    "/api/v1/agriculture/seedrate": {
      "get": {
        "tags": [
          "Agriculture"
        ],
        "summary": "Seed Rate",
        "description": "Seed amount (kg). User rate, spacing formula or table default.\n\nCost: 1 credit per successful request; failed requests are free.\n\n- Success body is { data: { ... } }. Error body is { code, message }. code is an ApiResponseCode enum value (negative integer).",
        "operationId": "AgricultureSeedRate",
        "parameters": [
          {
            "name": "crop",
            "in": "query",
            "description": "Crop code. Required without rate/spacing. Values: wheat, barley, maize, sunflower, cotton, potato, tomato, rapeseed, oats, rye, sugarbeet, grape, apple, chickpea, lentil.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "area",
            "in": "query",
            "description": "Area.",
            "required": true,
            "schema": {
              "type": "number",
              "format": "double"
            }
          },
          {
            "name": "areaUnit",
            "in": "query",
            "description": "Area unit. Values: da, dekar, donum, ha, are, m2.",
            "schema": {
              "type": "string",
              "default": "da"
            }
          },
          {
            "name": "seedKgPerDecare",
            "in": "query",
            "description": "User kg/da.",
            "schema": {
              "type": "number",
              "format": "double"
            }
          },
          {
            "name": "rowSpacingCm",
            "in": "query",
            "description": "Row spacing cm.",
            "schema": {
              "type": "number",
              "format": "double"
            }
          },
          {
            "name": "plantSpacingCm",
            "in": "query",
            "description": "Plant spacing cm.",
            "schema": {
              "type": "number",
              "format": "double"
            }
          },
          {
            "name": "germinationPercent",
            "in": "query",
            "description": "Germination %.",
            "schema": {
              "type": "number",
              "format": "double"
            }
          },
          {
            "name": "thousandSeedWeight",
            "in": "query",
            "description": "Thousand seed weight g.",
            "schema": {
              "type": "number",
              "format": "double"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. Body: { data: { ... } }.\n\nFields of data:\n- `seedKg` (number): Total seed kg = seedKgPerDecare × areaDecares.\n- `seedKgPerDecare` (number): Seed kg per decare. User rate, spacing formula or table default.\n- `plantsPerM2` (number): Plants per m² for the spacing formula. Null for other formulas.\n- `areaDecares` (number): Area in decares (da). 1 da = 1000 m².\n- `crop` (string): Normalized crop code. Null if omitted.\n- `formula` (string): user-rate: seedKgPerDecare was set. spacing: row/plant spacing. table-default: crop table.\n- `method` (string): Calculation method. seedrate for this API.\n- `source` (string): user: dailyTemps or et0Mm. db: tarim_hava cell.\n- `disclaimer` (string): Decision-support disclaimer. Not agronomic advice or a prescription.",
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "seedKg": 1000.0,
                    "seedKgPerDecare": 20.0,
                    "plantsPerM2": null,
                    "areaDecares": 50.0,
                    "crop": "wheat",
                    "formula": "table-default",
                    "method": "seedrate",
                    "source": "user",
                    "disclaimer": "Decision support only. Not agronomic advice."
                  }
                }
              }
            }
          },
          "400": {
            "description": "Error. Body: { code, message }.\n\n- code -252: area missing/≤0 or areaUnit is invalid.\n- code -250: crop is required (without rate/spacing) or crop is unknown.\n- code -249: seedKgPerDecare is negative, or none of rate/spacing/table default is available.\n- code -397: A parameter or the request body could not be read (e.g. text in a numeric field, malformed JSON). message names the invalid fields. No credits are charged."
          },
          "401": {
            "description": "Error. Body: { code, message }.\n\n- code -100: x-api-key is missing, empty, malformed, inactive, banned, expired, IP-restricted, or not allowed for this API."
          },
          "410": {
            "description": "Error. Body: { code, message }.\n\n- code -380: The API has been disabled or retired."
          },
          "413": {
            "description": "Error. Body: { code, message }.\n\n- code -390: The request body exceeds this endpoint's size limit. No credits are charged. For bodies far above the limit the connection may close before the upload finishes; the client may then see 502 instead of 413 (still no credits charged)."
          },
          "429": {
            "description": "Error. Body: { code, message }.\n\n- code -221: Per-minute request limit exceeded. Response headers: x-rate-limit-limit, x-rate-limit-remaining, x-rate-limit-reset.\n- code -395: Package credit quota cannot cover this request. Besides code / message the body also has limit, currentUsage and requestCost.\n- code -394: Too many invalid keys were tried from this IP in a short time. Wait for the Retry-After header duration."
          },
          "500": {
            "description": "Error. Body: { code, message }.\n\n- code -1: Unexpected server error. message is a generic error text without technical details."
          }
        },
        "x-credit-cost": 1,
        "x-api-id": 51
      }
    },
    "/api/v1/agriculture/spraymix": {
      "get": {
        "tags": [
          "Agriculture"
        ],
        "summary": "Spray Mix",
        "description": "Spray mix amount and tank count. Not a prescription.\n\nCost: 1 credit per successful request; failed requests are free.\n\n- Success body is { data: { ... } }. Error body is { code, message }. code is an ApiResponseCode enum value (negative integer).",
        "operationId": "AgricultureSprayMix",
        "parameters": [
          {
            "name": "crop",
            "in": "query",
            "description": "Crop code (informational). Values: wheat, barley, maize, sunflower, cotton, potato, tomato, rapeseed, oats, rye, sugarbeet, grape, apple, chickpea, lentil.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "area",
            "in": "query",
            "description": "Area.",
            "required": true,
            "schema": {
              "type": "number",
              "format": "double"
            }
          },
          {
            "name": "areaUnit",
            "in": "query",
            "description": "Area unit. Values: da, dekar, donum, ha, are, m2.",
            "schema": {
              "type": "string",
              "default": "da"
            }
          },
          {
            "name": "dosePerDecare",
            "in": "query",
            "description": "Dose per decare.",
            "required": true,
            "schema": {
              "type": "number",
              "format": "double"
            }
          },
          {
            "name": "doseUnit",
            "in": "query",
            "description": "Dose unit. Values: l, kg.",
            "schema": {
              "type": "string",
              "default": "l"
            }
          },
          {
            "name": "waterLiterPerDecare",
            "in": "query",
            "description": "Water L per decare.",
            "schema": {
              "type": "number",
              "format": "double"
            }
          },
          {
            "name": "tankLiter",
            "in": "query",
            "description": "Tank volume L.",
            "schema": {
              "type": "number",
              "format": "double"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. Body: { data: { ... } }.\n\nFields of data:\n- `productAmount` (number): Total product amount. Unit is doseUnit (l or kg).\n- `doseUnit` (string): Product unit: l or kg.\n- `waterLiter` (number): Total water litres = waterLiterPerDecare × areaDecares.\n- `tankCount` (integer): Tank count when tankLiter is set (rounded up). Null otherwise.\n- `areaDecares` (number): Area in decares (da). 1 da = 1000 m².\n- `crop` (string): Normalized crop code. Null if omitted.\n- `method` (string): Calculation method. area-dose-water for this API.\n- `source` (string): user: dailyTemps or et0Mm. db: tarim_hava cell.\n- `disclaimer` (string): Decision-support disclaimer. Not agronomic advice or a prescription.",
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "productAmount": 10.0,
                    "doseUnit": "l",
                    "waterLiter": 1000.0,
                    "tankCount": 3,
                    "areaDecares": 50.0,
                    "crop": "wheat",
                    "method": "area-dose-water",
                    "source": "user",
                    "disclaimer": "Decision support only. Not agronomic advice."
                  }
                }
              }
            }
          },
          "400": {
            "description": "Error. Body: { code, message }.\n\n- code -252: area missing/≤0 or areaUnit is invalid.\n- code -253: doseUnit is not l or kg.\n- code -249: dosePerDecare missing/negative, waterLiterPerDecare negative, or tankLiter ≤ 0.\n- code -397: A parameter or the request body could not be read (e.g. text in a numeric field, malformed JSON). message names the invalid fields. No credits are charged."
          },
          "401": {
            "description": "Error. Body: { code, message }.\n\n- code -100: x-api-key is missing, empty, malformed, inactive, banned, expired, IP-restricted, or not allowed for this API."
          },
          "410": {
            "description": "Error. Body: { code, message }.\n\n- code -380: The API has been disabled or retired."
          },
          "413": {
            "description": "Error. Body: { code, message }.\n\n- code -390: The request body exceeds this endpoint's size limit. No credits are charged. For bodies far above the limit the connection may close before the upload finishes; the client may then see 502 instead of 413 (still no credits charged)."
          },
          "429": {
            "description": "Error. Body: { code, message }.\n\n- code -221: Per-minute request limit exceeded. Response headers: x-rate-limit-limit, x-rate-limit-remaining, x-rate-limit-reset.\n- code -395: Package credit quota cannot cover this request. Besides code / message the body also has limit, currentUsage and requestCost.\n- code -394: Too many invalid keys were tried from this IP in a short time. Wait for the Retry-After header duration."
          },
          "500": {
            "description": "Error. Body: { code, message }.\n\n- code -1: Unexpected server error. message is a generic error text without technical details."
          }
        },
        "x-credit-cost": 1,
        "x-api-id": 52
      }
    },
    "/api/v1/agriculture/spraywindow": {
      "get": {
        "tags": [
          "Agriculture"
        ],
        "summary": "Spray Window",
        "description": "Finds hourly windows suitable for spraying from wind, 6h rain, humidity and temperature. Not a prescription. Weather data © Copernicus ERA5 / ERA5-Land (contains modified Copernicus Climate Change Service information) / Open-Meteo / OpenWeather / MET Norway.\n\nCost: 1 credit per successful request; failed requests are free.\n\n- Success body is { data: { ... } }. Error body is { code, message }. code is an ApiResponseCode enum value (negative integer).",
        "operationId": "AgricultureSprayWindow",
        "parameters": [
          {
            "name": "hours",
            "in": "query",
            "description": "Hours ahead. Default 48. Range 1–168.",
            "schema": {
              "type": "string",
              "default": "48"
            }
          },
          {
            "name": "includeHours",
            "in": "query",
            "description": "Hourly breakdown. Values: true, false.",
            "schema": {
              "type": "boolean",
              "default": true
            }
          },
          {
            "name": "windMin",
            "in": "query",
            "description": "Wind lower threshold km/h. Default 3.",
            "schema": {
              "type": "number",
              "format": "double",
              "default": 3
            }
          },
          {
            "name": "windMax",
            "in": "query",
            "description": "Wind upper threshold km/h. Default 15.",
            "schema": {
              "type": "number",
              "format": "double",
              "default": 15
            }
          },
          {
            "name": "rain6h",
            "in": "query",
            "description": "Max rain in previous 6 hours, mm. Default 0.2.",
            "schema": {
              "type": "number",
              "format": "double",
              "default": 0.2
            }
          },
          {
            "name": "humidityMax",
            "in": "query",
            "description": "Humidity upper threshold %. Default 90.",
            "schema": {
              "type": "number",
              "format": "double",
              "default": 90
            }
          },
          {
            "name": "tempMin",
            "in": "query",
            "description": "Temperature lower threshold °C. Default 10.",
            "schema": {
              "type": "number",
              "format": "double",
              "default": 10
            }
          },
          {
            "name": "tempMax",
            "in": "query",
            "description": "Temperature upper threshold °C. Default 25.",
            "schema": {
              "type": "number",
              "format": "double",
              "default": 25
            }
          },
          {
            "name": "latitude",
            "in": "query",
            "description": "Required without hourly. 0.1° cell.",
            "schema": {
              "type": "number",
              "format": "double"
            }
          },
          {
            "name": "longitude",
            "in": "query",
            "description": "Longitude.",
            "schema": {
              "type": "number",
              "format": "double"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. Body: { data: { ... } }.\n\nFields of data:\n- `suitableHours` (integer): Number of hours that meet the thresholds.\n- `hoursEvaluated` (integer): Number of hours evaluated.\n- `fromTime` (string): First evaluated hour (UTC ISO).\n- `toTime` (string): Last evaluated hour (UTC ISO).\n- `windMin` (number): Wind lower threshold km/h used.\n- `windMax` (number): Wind upper threshold km/h used.\n- `rain6h` (number): 6-hour rain threshold mm used.\n- `humidityMax` (number): Humidity upper threshold % used.\n- `tempMin` (number): Temperature lower threshold °C used.\n- `tempMax` (number): Temperature upper threshold °C used.\n- `gridLatitude` (number): 0.1° cell latitude. Null when hourly was used.\n- `gridLongitude` (number): 0.1° cell longitude. Null when hourly was used.\n- `windows` (array): Contiguous suitable hour ranges.\n- `windows[].fromTime` (string): Window start UTC ISO.\n- `windows[].toTime` (string): Window end UTC ISO.\n- `windows[].hours` (integer): Hours in the window.\n- `hours` (array): Hourly rows when includeHours=true. Empty array when false.\n- `hours[].time` (string): Hour UTC ISO.\n- `hours[].suitable` (boolean): true when all thresholds are met.\n- `hours[].temp` (number): Temperature °C.\n- `hours[].humidity` (number): Relative humidity %.\n- `hours[].windKmh` (number): Wind km/h.\n- `hours[].rainMm` (number): Rain in that hour, mm.\n- `hours[].rain6hMm` (number): Total rain in the previous 6 hours, mm.\n- `hours[].reasons` (array): Threshold violations when not suitable (wind-low, rain-6h ...).\n- `method` (string): Calculation method. hourly-threshold-window for this API.\n- `source` (string): user: dailyTemps or et0Mm. db: tarim_hava cell.\n- `disclaimer` (string): Decision-support disclaimer. Not agronomic advice or a prescription.",
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "suitableHours": 2,
                    "hoursEvaluated": 2,
                    "fromTime": "2026-08-28T10:00:00Z",
                    "toTime": "2026-08-28T11:00:00Z",
                    "windMin": 3.0,
                    "windMax": 15.0,
                    "rain6h": 0.2,
                    "humidityMax": 90.0,
                    "tempMin": 10.0,
                    "tempMax": 25.0,
                    "windows": [
                      {
                        "fromTime": "2026-08-28T10:00:00Z",
                        "toTime": "2026-08-28T11:00:00Z",
                        "hours": 2
                      }
                    ],
                    "method": "hourly-threshold-window",
                    "source": "user",
                    "disclaimer": "Decision support only. Not agronomic advice. Not a pesticide prescription."
                  }
                }
              }
            }
          },
          "400": {
            "description": "Error. Body: { code, message }.\n\n- code -255: latitude/longitude are required without hourly.\n- code -249: hours outside 1–168, invalid thresholds, or hourly > 168.\n- code -254: hourly.time is not a valid datetime.\n- code -397: A parameter or the request body could not be read (e.g. text in a numeric field, malformed JSON). message names the invalid fields. No credits are charged."
          },
          "401": {
            "description": "Error. Body: { code, message }.\n\n- code -100: x-api-key is missing, empty, malformed, inactive, banned, expired, IP-restricted, or not allowed for this API."
          },
          "410": {
            "description": "Error. Body: { code, message }.\n\n- code -380: The API has been disabled or retired."
          },
          "413": {
            "description": "Error. Body: { code, message }.\n\n- code -390: The request body exceeds this endpoint's size limit. No credits are charged. For bodies far above the limit the connection may close before the upload finishes; the client may then see 502 instead of 413 (still no credits charged)."
          },
          "429": {
            "description": "Error. Body: { code, message }.\n\n- code -316: Daily new location (cell) limit (50) reached. Previously requested locations keep working; new locations next day (UTC). Retry-After header gives seconds until end of day.\n- code -221: Per-minute request limit exceeded. Response headers: x-rate-limit-limit, x-rate-limit-remaining, x-rate-limit-reset.\n- code -395: Package credit quota cannot cover this request. Besides code / message the body also has limit, currentUsage and requestCost.\n- code -394: Too many invalid keys were tried from this IP in a short time. Wait for the Retry-After header duration."
          },
          "500": {
            "description": "Error. Body: { code, message }.\n\n- code -1: Unexpected server error. message is a generic error text without technical details."
          },
          "503": {
            "description": "Error. Body: { code, message }.\n\n- code -256: Cell created; Worker is filling hourly data. Retry in a minute."
          }
        },
        "x-credit-cost": 1,
        "x-api-id": 53
      },
      "post": {
        "tags": [
          "Agriculture"
        ],
        "summary": "Spray Window",
        "description": "Finds hourly windows suitable for spraying from wind, 6h rain, humidity and temperature. Not a prescription. Weather data © Copernicus ERA5 / ERA5-Land (contains modified Copernicus Climate Change Service information) / Open-Meteo / OpenWeather / MET Norway.\n\nCost: 1 credit per successful request; failed requests are free.\n\n- Success body is { data: { ... } }. Error body is { code, message }. code is an ApiResponseCode enum value (negative integer).",
        "operationId": "AgricultureSprayWindowPost",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AgricultureSprayWindowRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/AgricultureSprayWindowRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/AgricultureSprayWindowRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. Body: { data: { ... } }.\n\nFields of data:\n- `suitableHours` (integer): Number of hours that meet the thresholds.\n- `hoursEvaluated` (integer): Number of hours evaluated.\n- `fromTime` (string): First evaluated hour (UTC ISO).\n- `toTime` (string): Last evaluated hour (UTC ISO).\n- `windMin` (number): Wind lower threshold km/h used.\n- `windMax` (number): Wind upper threshold km/h used.\n- `rain6h` (number): 6-hour rain threshold mm used.\n- `humidityMax` (number): Humidity upper threshold % used.\n- `tempMin` (number): Temperature lower threshold °C used.\n- `tempMax` (number): Temperature upper threshold °C used.\n- `gridLatitude` (number): 0.1° cell latitude. Null when hourly was used.\n- `gridLongitude` (number): 0.1° cell longitude. Null when hourly was used.\n- `windows` (array): Contiguous suitable hour ranges.\n- `windows[].fromTime` (string): Window start UTC ISO.\n- `windows[].toTime` (string): Window end UTC ISO.\n- `windows[].hours` (integer): Hours in the window.\n- `hours` (array): Hourly rows when includeHours=true. Empty array when false.\n- `hours[].time` (string): Hour UTC ISO.\n- `hours[].suitable` (boolean): true when all thresholds are met.\n- `hours[].temp` (number): Temperature °C.\n- `hours[].humidity` (number): Relative humidity %.\n- `hours[].windKmh` (number): Wind km/h.\n- `hours[].rainMm` (number): Rain in that hour, mm.\n- `hours[].rain6hMm` (number): Total rain in the previous 6 hours, mm.\n- `hours[].reasons` (array): Threshold violations when not suitable (wind-low, rain-6h ...).\n- `method` (string): Calculation method. hourly-threshold-window for this API.\n- `source` (string): user: dailyTemps or et0Mm. db: tarim_hava cell.\n- `disclaimer` (string): Decision-support disclaimer. Not agronomic advice or a prescription.",
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "suitableHours": 2,
                    "hoursEvaluated": 2,
                    "fromTime": "2026-08-28T10:00:00Z",
                    "toTime": "2026-08-28T11:00:00Z",
                    "windMin": 3.0,
                    "windMax": 15.0,
                    "rain6h": 0.2,
                    "humidityMax": 90.0,
                    "tempMin": 10.0,
                    "tempMax": 25.0,
                    "windows": [
                      {
                        "fromTime": "2026-08-28T10:00:00Z",
                        "toTime": "2026-08-28T11:00:00Z",
                        "hours": 2
                      }
                    ],
                    "method": "hourly-threshold-window",
                    "source": "user",
                    "disclaimer": "Decision support only. Not agronomic advice. Not a pesticide prescription."
                  }
                }
              }
            }
          },
          "400": {
            "description": "Error. Body: { code, message }.\n\n- code -255: latitude/longitude are required without hourly.\n- code -249: hours outside 1–168, invalid thresholds, or hourly > 168.\n- code -254: hourly.time is not a valid datetime.\n- code -397: A parameter or the request body could not be read (e.g. text in a numeric field, malformed JSON). message names the invalid fields. No credits are charged."
          },
          "401": {
            "description": "Error. Body: { code, message }.\n\n- code -100: x-api-key is missing, empty, malformed, inactive, banned, expired, IP-restricted, or not allowed for this API."
          },
          "410": {
            "description": "Error. Body: { code, message }.\n\n- code -380: The API has been disabled or retired."
          },
          "413": {
            "description": "Error. Body: { code, message }.\n\n- code -390: The request body exceeds this endpoint's size limit. No credits are charged. For bodies far above the limit the connection may close before the upload finishes; the client may then see 502 instead of 413 (still no credits charged)."
          },
          "429": {
            "description": "Error. Body: { code, message }.\n\n- code -316: Daily new location (cell) limit (50) reached. Previously requested locations keep working; new locations next day (UTC). Retry-After header gives seconds until end of day.\n- code -221: Per-minute request limit exceeded. Response headers: x-rate-limit-limit, x-rate-limit-remaining, x-rate-limit-reset.\n- code -395: Package credit quota cannot cover this request. Besides code / message the body also has limit, currentUsage and requestCost.\n- code -394: Too many invalid keys were tried from this IP in a short time. Wait for the Retry-After header duration."
          },
          "500": {
            "description": "Error. Body: { code, message }.\n\n- code -1: Unexpected server error. message is a generic error text without technical details."
          },
          "503": {
            "description": "Error. Body: { code, message }.\n\n- code -256: Cell created; Worker is filling hourly data. Retry in a minute."
          }
        },
        "x-credit-cost": 1,
        "x-api-id": 53
      }
    },
    "/api/v1/agriculture/evapotranspiration": {
      "get": {
        "tags": [
          "Agriculture"
        ],
        "summary": "Evapotranspiration (ET0/ETc)",
        "description": "Reference evapotranspiration ET0 (FAO-56) over a date range. When crop or kc is given, crop water use ETc = ET0 × Kc is also returned. Decision support. Weather data © Copernicus ERA5 / ERA5-Land (contains modified Copernicus Climate Change Service information) / Open-Meteo / OpenWeather / MET Norway.\n\nCost: 3 credits per successful request; failed requests are free.\n\n- Success body is { data: { ... } }. Error body is { code, message }. code is an ApiResponseCode enum value (negative integer).",
        "operationId": "AgricultureEvapotranspiration",
        "parameters": [
          {
            "name": "latitude",
            "in": "query",
            "description": "Point latitude -90..90. 0.1° cell.",
            "required": true,
            "schema": {
              "type": "number",
              "format": "double"
            }
          },
          {
            "name": "longitude",
            "in": "query",
            "description": "Point longitude.",
            "required": true,
            "schema": {
              "type": "number",
              "format": "double"
            }
          },
          {
            "name": "fromDate",
            "in": "query",
            "description": "Start YYYY-MM-DD. Range ≤ 366 days.",
            "required": true,
            "schema": {
              "type": "string",
              "default": "2026-07-01"
            }
          },
          {
            "name": "toDate",
            "in": "query",
            "description": "End YYYY-MM-DD.",
            "required": true,
            "schema": {
              "type": "string",
              "default": "2026-07-31"
            }
          },
          {
            "name": "crop",
            "in": "query",
            "description": "Crop code. Kc is looked up from this (with stage) when kc is absent. Values: wheat, barley, maize, sunflower, cotton, potato, tomato, rapeseed, oats, rye, sugarbeet, grape, apple, chickpea, lentil.",
            "schema": {
              "type": "string",
              "default": "maize"
            }
          },
          {
            "name": "kc",
            "in": "query",
            "description": "Kc coefficient 0–2. Overrides crop/stage when given.",
            "schema": {
              "type": "number",
              "format": "double"
            }
          },
          {
            "name": "stage",
            "in": "query",
            "description": "initial, mid or late. Default mid. Used with crop to pick Kc. Values: initial, mid, late.",
            "schema": {
              "type": "string",
              "default": "mid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. Body: { data: { ... } }.\n\nFields of data:\n- `et0Mm` (number): Total ET0 over the range, mm.\n- `et0MmPerDay` (number): Mean daily ET0 mm.\n- `kc` (number): Kc used. null when not found.\n- `stage` (string): Stage the Kc was taken from (when kc was not passed).\n- `etcMm` (number): Total ETc = ET0 × Kc mm. null without Kc.\n- `etcMmPerDay` (number): Mean daily ETc mm.\n- `crop` (string): Normalized crop code.\n- `fromDate` (string): Window start.\n- `toDate` (string): Window end.\n- `daysTotal` (integer): Calendar days in the window.\n- `daysWithData` (integer): Days ET0 was computed for.\n- `missingCount` (integer): Days without data.\n- `missingDates` (array): YYYY-MM-DD list of missing days (first 10).\n- `degradedCount` (integer): Days ET0 could not be computed because Tmax was missing.\n- `degradedDates` (array): YYYY-MM-DD list of degraded days (first 10).\n- `gridLatitude` (number): 0.1° cell latitude.\n- `gridLongitude` (number): 0.1° cell longitude.\n- `daily` (array): Daily ET0/ETc rows.\n- `daily[].date` (string): Day YYYY-MM-DD.\n- `daily[].et0Mm` (number): ET0 for that day, mm.\n- `daily[].etcMm` (number): ETc for that day, mm. null without Kc.\n- `method` (string): Calculation method: fao56-et0.\n- `source` (string): database: tarim_hava cell.\n- `disclaimer` (string): Decision-support disclaimer.",
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "et0Mm": 168.4,
                    "et0MmPerDay": 5.61,
                    "kc": 1.15,
                    "stage": "mid",
                    "etcMm": 193.66,
                    "etcMmPerDay": 6.46,
                    "crop": "maize",
                    "fromDate": "2026-07-01",
                    "toDate": "2026-07-30",
                    "daysTotal": 30,
                    "daysWithData": 30,
                    "missingCount": 0,
                    "missingDates": [ ],
                    "degradedCount": 0,
                    "degradedDates": [ ],
                    "gridLatitude": 39.90,
                    "gridLongitude": 32.90,
                    "daily": [
                      {
                        "date": "2026-07-01",
                        "et0Mm": 5.20,
                        "etcMm": 5.98
                      },
                      {
                        "date": "2026-07-02",
                        "et0Mm": 6.63,
                        "etcMm": 7.62
                      }
                    ],
                    "method": "fao56-et0",
                    "source": "database",
                    "disclaimer": "Decision support only. Not agronomic advice. Weather data: Copernicus ERA5 / ERA5-Land, Open-Meteo, OpenWeather, MET Norway. Contains modified Copernicus Climate Change Service information."
                  }
                }
              }
            }
          },
          "400": {
            "description": "Error. Body: { code, message }.\n\n- code -254: fromDate/toDate missing, not YYYY-MM-DD, or range exceeds 366 days.\n- code -255: latitude/longitude missing or out of range.\n- code -249: kc outside 0–2 or stage invalid.\n- code -250: Unknown crop.\n- code -251: No weather for this location/date.\n- code -397: A parameter or the request body could not be read (e.g. text in a numeric field, malformed JSON). message names the invalid fields. No credits are charged."
          },
          "401": {
            "description": "Error. Body: { code, message }.\n\n- code -100: x-api-key is missing, empty, malformed, inactive, banned, expired, IP-restricted, or not allowed for this API."
          },
          "410": {
            "description": "Error. Body: { code, message }.\n\n- code -380: The API has been disabled or retired."
          },
          "413": {
            "description": "Error. Body: { code, message }.\n\n- code -390: The request body exceeds this endpoint's size limit. No credits are charged. For bodies far above the limit the connection may close before the upload finishes; the client may then see 502 instead of 413 (still no credits charged)."
          },
          "429": {
            "description": "Error. Body: { code, message }.\n\n- code -316: Daily new location (cell) limit (50) reached. Previously requested locations keep working; new locations next day (UTC). Retry-After header gives seconds until end of day.\n- code -221: Per-minute request limit exceeded. Response headers: x-rate-limit-limit, x-rate-limit-remaining, x-rate-limit-reset.\n- code -395: Package credit quota cannot cover this request. Besides code / message the body also has limit, currentUsage and requestCost.\n- code -394: Too many invalid keys were tried from this IP in a short time. Wait for the Retry-After header duration."
          },
          "500": {
            "description": "Error. Body: { code, message }.\n\n- code -1: Unexpected server error. message is a generic error text without technical details."
          },
          "503": {
            "description": "Error. Body: { code, message }.\n\n- code -256: Cell created; Worker is filling history. Retry in a few minutes."
          }
        },
        "x-credit-cost": 3,
        "x-api-id": 58
      }
    },
    "/api/v1/agriculture/deltat": {
      "get": {
        "tags": [
          "Agriculture"
        ],
        "summary": "Delta-T Spray Suitability",
        "description": "Computes Delta-T (dry − wet bulb, Stull 2011) from temperature and relative humidity and flags upcoming hours as ideal / caution / unsuitable. Ideal band is typically 2–8 °C. Not a prescription. Weather data © Copernicus ERA5 / ERA5-Land (contains modified Copernicus Climate Change Service information) / Open-Meteo / OpenWeather / MET Norway.\n\nCost: 3 credits per successful request; failed requests are free.\n\n- Success body is { data: { ... } }. Error body is { code, message }. code is an ApiResponseCode enum value (negative integer).",
        "operationId": "AgricultureDeltaT",
        "parameters": [
          {
            "name": "latitude",
            "in": "query",
            "description": "Point latitude -90..90. 0.1° cell.",
            "required": true,
            "schema": {
              "type": "number",
              "format": "double"
            }
          },
          {
            "name": "longitude",
            "in": "query",
            "description": "Point longitude.",
            "required": true,
            "schema": {
              "type": "number",
              "format": "double"
            }
          },
          {
            "name": "hours",
            "in": "query",
            "description": "Hours ahead 1–96. Default 48.",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 48
            }
          },
          {
            "name": "idealMin",
            "in": "query",
            "description": "Ideal Delta-T lower threshold °C. Default 2.",
            "schema": {
              "type": "number",
              "format": "double",
              "default": 2
            }
          },
          {
            "name": "idealMax",
            "in": "query",
            "description": "Ideal Delta-T upper threshold °C. Default 8.",
            "schema": {
              "type": "number",
              "format": "double",
              "default": 8
            }
          },
          {
            "name": "cautionMax",
            "in": "query",
            "description": "Caution band upper threshold °C. Above is unsuitable. Default 10.",
            "schema": {
              "type": "number",
              "format": "double",
              "default": 10
            }
          },
          {
            "name": "includeHours",
            "in": "query",
            "description": "Hourly breakdown. Default true. Values: true, false.",
            "schema": {
              "type": "boolean",
              "default": true
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. Body: { data: { ... } }.\n\nFields of data:\n- `idealHours` (integer): Hours in the ideal band.\n- `cautionHours` (integer): Hours in the caution band.\n- `unsuitableHours` (integer): Unsuitable hours (including missing data).\n- `hoursEvaluated` (integer): Hours evaluated.\n- `fromTime` (string): First hour UTC ISO.\n- `toTime` (string): Last hour UTC ISO.\n- `idealMin` (number): Ideal lower threshold used °C.\n- `idealMax` (number): Ideal upper threshold used °C.\n- `cautionMax` (number): Caution upper threshold used °C.\n- `gridLatitude` (number): 0.1° cell latitude.\n- `gridLongitude` (number): 0.1° cell longitude.\n- `windows` (array): Contiguous ideal hour ranges.\n- `windows[].fromTime` (string): Window start UTC ISO.\n- `windows[].toTime` (string): Window end UTC ISO.\n- `windows[].hours` (integer): Hours in the window.\n- `hours` (array): Hourly rows when includeHours=true.\n- `hours[].time` (string): Hour UTC ISO.\n- `hours[].tempC` (number): Temperature °C.\n- `hours[].humidityPercent` (number): Relative humidity %.\n- `hours[].deltaT` (number): Delta-T °C. null when humidity is outside 5–100%.\n- `hours[].rating` (string): ideal, caution, unsuitable or unknown.\n- `method` (string): Calculation method: delta-t.\n- `source` (string): database: tarim_hava cell.\n- `disclaimer` (string): Decision-support disclaimer. Not a prescription.",
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "idealHours": 21,
                    "cautionHours": 9,
                    "unsuitableHours": 18,
                    "hoursEvaluated": 48,
                    "fromTime": "2026-08-30T00:00:00Z",
                    "toTime": "2026-08-31T23:00:00Z",
                    "idealMin": 2.0,
                    "idealMax": 8.0,
                    "cautionMax": 10.0,
                    "gridLatitude": 39.90,
                    "gridLongitude": 32.90,
                    "windows": [
                      {
                        "fromTime": "2026-08-30T05:00:00Z",
                        "toTime": "2026-08-30T09:00:00Z",
                        "hours": 5
                      }
                    ],
                    "hours": [
                      {
                        "time": "2026-08-30T05:00:00Z",
                        "tempC": 17.4,
                        "humidityPercent": 71.0,
                        "deltaT": 3.1,
                        "rating": "ideal"
                      },
                      {
                        "time": "2026-08-30T13:00:00Z",
                        "tempC": 31.2,
                        "humidityPercent": 28.0,
                        "deltaT": 11.8,
                        "rating": "unsuitable"
                      }
                    ],
                    "method": "delta-t",
                    "source": "database",
                    "disclaimer": "Decision support only. Not agronomic advice. Weather data: Copernicus ERA5 / ERA5-Land, Open-Meteo, OpenWeather, MET Norway. Contains modified Copernicus Climate Change Service information. Not a pesticide prescription."
                  }
                }
              }
            }
          },
          "400": {
            "description": "Error. Body: { code, message }.\n\n- code -255: latitude/longitude missing or out of range.\n- code -249: hours outside 1–96 or invalid threshold order (0 ≤ idealMin < idealMax ≤ cautionMax).\n- code -251: No stored weather cell for this location.\n- code -397: A parameter or the request body could not be read (e.g. text in a numeric field, malformed JSON). message names the invalid fields. No credits are charged."
          },
          "401": {
            "description": "Error. Body: { code, message }.\n\n- code -100: x-api-key is missing, empty, malformed, inactive, banned, expired, IP-restricted, or not allowed for this API."
          },
          "410": {
            "description": "Error. Body: { code, message }.\n\n- code -380: The API has been disabled or retired."
          },
          "413": {
            "description": "Error. Body: { code, message }.\n\n- code -390: The request body exceeds this endpoint's size limit. No credits are charged. For bodies far above the limit the connection may close before the upload finishes; the client may then see 502 instead of 413 (still no credits charged)."
          },
          "429": {
            "description": "Error. Body: { code, message }.\n\n- code -316: Daily new location (cell) limit (50) reached. Previously requested locations keep working; new locations next day (UTC). Retry-After header gives seconds until end of day.\n- code -221: Per-minute request limit exceeded. Response headers: x-rate-limit-limit, x-rate-limit-remaining, x-rate-limit-reset.\n- code -395: Package credit quota cannot cover this request. Besides code / message the body also has limit, currentUsage and requestCost.\n- code -394: Too many invalid keys were tried from this IP in a short time. Wait for the Retry-After header duration."
          },
          "500": {
            "description": "Error. Body: { code, message }.\n\n- code -1: Unexpected server error. message is a generic error text without technical details."
          },
          "503": {
            "description": "Error. Body: { code, message }.\n\n- code -256: Cell created; Worker is filling hourly data. Retry in a minute."
          }
        },
        "x-credit-cost": 3,
        "x-api-id": 59
      }
    },
    "/api/v1/agriculture/chillhours": {
      "get": {
        "tags": [
          "Agriculture"
        ],
        "summary": "Chill Hours",
        "description": "Weinberger chill hours model: count of hours with 0°C ≤ temperature ≤ baseTemp (default 7.2°C). Sub-freezing hours are not counted. Comparable to published variety chill requirements. Requires hourly DB. Not a prescription. Weather data © Copernicus ERA5 / ERA5-Land (contains modified Copernicus Climate Change Service information) / Open-Meteo / OpenWeather / MET Norway.\n\nCost: 1 credit per successful request; failed requests are free.\n\n- Success body is { data: { ... } }. Error body is { code, message }. code is an ApiResponseCode enum value (negative integer).",
        "operationId": "AgricultureChillHours",
        "parameters": [
          {
            "name": "latitude",
            "in": "query",
            "description": "Latitude -90..90. 0.1° cell.",
            "required": true,
            "schema": {
              "type": "number",
              "format": "double"
            }
          },
          {
            "name": "longitude",
            "in": "query",
            "description": "Longitude.",
            "required": true,
            "schema": {
              "type": "number",
              "format": "double"
            }
          },
          {
            "name": "fromDate",
            "in": "query",
            "description": "YYYY-MM-DD. Last 400 days only (hourly data retention).",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "toDate",
            "in": "query",
            "description": "Max 366 days.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "baseTemp",
            "in": "query",
            "description": "Upper threshold °C, 0..20. Default 7.2.",
            "schema": {
              "type": "number",
              "format": "double",
              "default": 7.2
            }
          },
          {
            "name": "crop",
            "in": "query",
            "description": "Informational crop code. Values: wheat, barley, maize, sunflower, cotton, potato, tomato, rapeseed, oats, rye, sugarbeet, grape, apple, chickpea, lentil.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "includeDaily",
            "in": "query",
            "description": "Daily breakdown. Default true. Values: true, false.",
            "schema": {
              "type": "boolean",
              "default": true
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. Body: { data: { ... } }.\n\nFields of data:\n- `chillHours` (integer): Hours with 0°C ≤ temperature ≤ baseTemp (Weinberger).\n- `hoursEvaluated` (integer): Hours that have a temperature.\n- `hoursMissing` (integer): Expected hours in the window minus evaluated.\n- `baseTemp` (number): Threshold used °C.\n- `crop` (string): Normalized crop. Null if omitted.\n- `fromDate` (string): YYYY-MM-DD.\n- `toDate` (string): YYYY-MM-DD.\n- `gridLatitude` (number): 0.1° cell latitude.\n- `gridLongitude` (number): 0.1° cell longitude.\n- `daily` (array): Daily rows when includeDaily=true.\n- `daily[].date` (string): YYYY-MM-DD.\n- `daily[].hoursBelow` (integer): Hours that day with 0°C ≤ temperature ≤ baseTemp.\n- `daily[].tmin` (number): Day min °C.\n- `daily[].tmax` (number): Day max °C.\n- `method` (string): weinberger.\n- `source` (string): database.\n- `disclaimer` (string): Decision-support disclaimer.",
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "chillHours": 842,
                    "hoursEvaluated": 2880,
                    "hoursMissing": 0,
                    "baseTemp": 7.2,
                    "crop": "apple",
                    "fromDate": "2025-11-01",
                    "toDate": "2026-02-28",
                    "gridLatitude": 39.90,
                    "gridLongitude": 32.90,
                    "daily": [
                      {
                        "date": "2025-11-01",
                        "hoursBelow": 8,
                        "tmin": 2.1,
                        "tmax": 12.4
                      }
                    ],
                    "method": "weinberger",
                    "source": "database",
                    "disclaimer": "Decision support only. Not agronomic advice. Weather data: Copernicus ERA5 / ERA5-Land, Open-Meteo, OpenWeather, MET Norway. Contains modified Copernicus Climate Change Service information."
                  }
                }
              }
            }
          },
          "400": {
            "description": "Error. Body: { code, message }.\n\n- code -255: lat/lon missing or out of range.\n- code -254: fromDate/toDate invalid or range > 366.\n- code -249: baseTemp outside 0..20.\n- code -250: Unknown crop.\n- code -251: No cell/hourly data.\n- code -397: A parameter or the request body could not be read (e.g. text in a numeric field, malformed JSON). message names the invalid fields. No credits are charged."
          },
          "401": {
            "description": "Error. Body: { code, message }.\n\n- code -100: x-api-key is missing, empty, malformed, inactive, banned, expired, IP-restricted, or not allowed for this API."
          },
          "410": {
            "description": "Error. Body: { code, message }.\n\n- code -380: The API has been disabled or retired."
          },
          "413": {
            "description": "Error. Body: { code, message }.\n\n- code -390: The request body exceeds this endpoint's size limit. No credits are charged. For bodies far above the limit the connection may close before the upload finishes; the client may then see 502 instead of 413 (still no credits charged)."
          },
          "429": {
            "description": "Error. Body: { code, message }.\n\n- code -316: Daily new location (cell) limit (50) reached. Previously requested locations keep working; new locations next day (UTC). Retry-After header gives seconds until end of day.\n- code -221: Per-minute request limit exceeded. Response headers: x-rate-limit-limit, x-rate-limit-remaining, x-rate-limit-reset.\n- code -395: Package credit quota cannot cover this request. Besides code / message the body also has limit, currentUsage and requestCost.\n- code -394: Too many invalid keys were tried from this IP in a short time. Wait for the Retry-After header duration."
          },
          "500": {
            "description": "Error. Body: { code, message }.\n\n- code -1: Unexpected server error. message is a generic error text without technical details."
          },
          "503": {
            "description": "Error. Body: { code, message }.\n\n- code -256: Hourly data not ready; Worker is filling."
          }
        },
        "x-credit-cost": 1,
        "x-api-id": 66
      },
      "post": {
        "tags": [
          "Agriculture"
        ],
        "summary": "Chill Hours",
        "description": "Weinberger chill hours model: count of hours with 0°C ≤ temperature ≤ baseTemp (default 7.2°C). Sub-freezing hours are not counted. Comparable to published variety chill requirements. Requires hourly DB. Not a prescription. Weather data © Copernicus ERA5 / ERA5-Land (contains modified Copernicus Climate Change Service information) / Open-Meteo / OpenWeather / MET Norway.\n\nCost: 1 credit per successful request; failed requests are free.\n\n- Success body is { data: { ... } }. Error body is { code, message }. code is an ApiResponseCode enum value (negative integer).",
        "operationId": "AgricultureChillHoursPost",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AgricultureChillHoursRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/AgricultureChillHoursRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/AgricultureChillHoursRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. Body: { data: { ... } }.\n\nFields of data:\n- `chillHours` (integer): Hours with 0°C ≤ temperature ≤ baseTemp (Weinberger).\n- `hoursEvaluated` (integer): Hours that have a temperature.\n- `hoursMissing` (integer): Expected hours in the window minus evaluated.\n- `baseTemp` (number): Threshold used °C.\n- `crop` (string): Normalized crop. Null if omitted.\n- `fromDate` (string): YYYY-MM-DD.\n- `toDate` (string): YYYY-MM-DD.\n- `gridLatitude` (number): 0.1° cell latitude.\n- `gridLongitude` (number): 0.1° cell longitude.\n- `daily` (array): Daily rows when includeDaily=true.\n- `daily[].date` (string): YYYY-MM-DD.\n- `daily[].hoursBelow` (integer): Hours that day with 0°C ≤ temperature ≤ baseTemp.\n- `daily[].tmin` (number): Day min °C.\n- `daily[].tmax` (number): Day max °C.\n- `method` (string): weinberger.\n- `source` (string): database.\n- `disclaimer` (string): Decision-support disclaimer.",
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "chillHours": 842,
                    "hoursEvaluated": 2880,
                    "hoursMissing": 0,
                    "baseTemp": 7.2,
                    "crop": "apple",
                    "fromDate": "2025-11-01",
                    "toDate": "2026-02-28",
                    "gridLatitude": 39.90,
                    "gridLongitude": 32.90,
                    "daily": [
                      {
                        "date": "2025-11-01",
                        "hoursBelow": 8,
                        "tmin": 2.1,
                        "tmax": 12.4
                      }
                    ],
                    "method": "weinberger",
                    "source": "database",
                    "disclaimer": "Decision support only. Not agronomic advice. Weather data: Copernicus ERA5 / ERA5-Land, Open-Meteo, OpenWeather, MET Norway. Contains modified Copernicus Climate Change Service information."
                  }
                }
              }
            }
          },
          "400": {
            "description": "Error. Body: { code, message }.\n\n- code -255: lat/lon missing or out of range.\n- code -254: fromDate/toDate invalid or range > 366.\n- code -249: baseTemp outside 0..20.\n- code -250: Unknown crop.\n- code -251: No cell/hourly data.\n- code -397: A parameter or the request body could not be read (e.g. text in a numeric field, malformed JSON). message names the invalid fields. No credits are charged."
          },
          "401": {
            "description": "Error. Body: { code, message }.\n\n- code -100: x-api-key is missing, empty, malformed, inactive, banned, expired, IP-restricted, or not allowed for this API."
          },
          "410": {
            "description": "Error. Body: { code, message }.\n\n- code -380: The API has been disabled or retired."
          },
          "413": {
            "description": "Error. Body: { code, message }.\n\n- code -390: The request body exceeds this endpoint's size limit. No credits are charged. For bodies far above the limit the connection may close before the upload finishes; the client may then see 502 instead of 413 (still no credits charged)."
          },
          "429": {
            "description": "Error. Body: { code, message }.\n\n- code -316: Daily new location (cell) limit (50) reached. Previously requested locations keep working; new locations next day (UTC). Retry-After header gives seconds until end of day.\n- code -221: Per-minute request limit exceeded. Response headers: x-rate-limit-limit, x-rate-limit-remaining, x-rate-limit-reset.\n- code -395: Package credit quota cannot cover this request. Besides code / message the body also has limit, currentUsage and requestCost.\n- code -394: Too many invalid keys were tried from this IP in a short time. Wait for the Retry-After header duration."
          },
          "500": {
            "description": "Error. Body: { code, message }.\n\n- code -1: Unexpected server error. message is a generic error text without technical details."
          },
          "503": {
            "description": "Error. Body: { code, message }.\n\n- code -256: Hourly data not ready; Worker is filling."
          }
        },
        "x-credit-cost": 1,
        "x-api-id": 66
      }
    },
    "/api/v1/agriculture/harvestwindow": {
      "get": {
        "tags": [
          "Agriculture"
        ],
        "summary": "Harvest Window",
        "description": "Accumulates crop GDD to the harvest (or stageCode) threshold. Not a prescription.\n\nCost: 1 credit per successful request; failed requests are free.\n\n- Success body is { data: { ... } }. Error body is { code, message }. code is an ApiResponseCode enum value (negative integer).",
        "operationId": "AgricultureHarvestWindow",
        "parameters": [
          {
            "name": "crop",
            "in": "query",
            "description": "Crop code. Values: wheat, barley, maize, sunflower, cotton, potato, tomato, rapeseed, oats, rye, sugarbeet, grape, apple, chickpea, lentil.",
            "required": true,
            "schema": {
              "type": "string",
              "default": "wheat"
            }
          },
          {
            "name": "fromDate",
            "in": "query",
            "description": "YYYY-MM-DD",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "toDate",
            "in": "query",
            "description": "YYYY-MM-DD. Empty uses fromDate+365.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "latitude",
            "in": "query",
            "description": "Required without dailyTemps.",
            "schema": {
              "type": "number",
              "format": "double"
            }
          },
          {
            "name": "longitude",
            "in": "query",
            "description": "Longitude.",
            "schema": {
              "type": "number",
              "format": "double"
            }
          },
          {
            "name": "includeDaily",
            "in": "query",
            "description": "Daily GDD. Default true. Values: true, false.",
            "schema": {
              "type": "boolean",
              "default": true
            }
          },
          {
            "name": "stageCode",
            "in": "query",
            "description": "GDD threshold code. Default harvest. Values: emergence, flowering, harvest.",
            "schema": {
              "type": "string",
              "default": "harvest"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. Body: { data: { ... } }.\n\nFields of data:\n- `crop` (string): Normalized crop.\n- `stageCode` (string): Threshold code used.\n- `threshold` (number): Required cumulative GDD.\n- `gddCumulative` (number): Accumulated GDD.\n- `reached` (boolean): true when the threshold is reached.\n- `reachedDate` (string): Day the threshold was crossed. Null if not.\n- `remainingGdd` (number): Remaining GDD. 0 when reached.\n- `estimatedDate` (string): Estimate from mean daily GDD. Null without data.\n- `fromDate` (string): YYYY-MM-DD.\n- `toDate` (string): YYYY-MM-DD.\n- `daysTotal` (integer): Calendar days in the window.\n- `daysWithData` (integer): Days used for GDD.\n- `missingCount` (integer): Missing day count.\n- `missingDates` (array): First 10 missing dates.\n- `gridLatitude` (number): 0.1° cell.\n- `gridLongitude` (number): 0.1° cell.\n- `stages` (array): Crop GDD thresholds.\n- `stages[].code` (string): emergence, flowering, harvest ...\n- `stages[].threshold` (number): Threshold GDD.\n- `stages[].reached` (boolean): Whether reached.\n- `daily` (array): When includeDaily=true.\n- `daily[].date` (string): YYYY-MM-DD.\n- `daily[].tmin` (number): Min °C.\n- `daily[].tmax` (number): Max °C.\n- `daily[].gdd` (number): Daily GDD.\n- `daily[].gddCumulative` (number): Cumulative.\n- `method` (string): gdd-harvest.\n- `source` (string): database or user.\n- `disclaimer` (string): Decision-support disclaimer.",
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "crop": "wheat",
                    "stageCode": "harvest",
                    "threshold": 1600.0,
                    "gddCumulative": 1624.5,
                    "reached": true,
                    "reachedDate": "2026-07-18",
                    "remainingGdd": 0.0,
                    "estimatedDate": "2026-07-18",
                    "fromDate": "2026-03-01",
                    "toDate": "2026-08-31",
                    "daysTotal": 184,
                    "daysWithData": 180,
                    "missingCount": 4,
                    "missingDates": [
                      "2026-03-12"
                    ],
                    "gridLatitude": 39.90,
                    "gridLongitude": 32.90,
                    "stages": [
                      {
                        "code": "emergence",
                        "threshold": 120.0,
                        "reached": true
                      },
                      {
                        "code": "flowering",
                        "threshold": 800.0,
                        "reached": true
                      },
                      {
                        "code": "harvest",
                        "threshold": 1600.0,
                        "reached": true
                      }
                    ],
                    "daily": [
                      {
                        "date": "2026-03-01",
                        "tmin": 2.0,
                        "tmax": 12.0,
                        "gdd": 3.0,
                        "gddCumulative": 3.0
                      }
                    ],
                    "method": "gdd-harvest",
                    "source": "database",
                    "disclaimer": "Decision support only. Not agronomic advice. Weather data: Copernicus ERA5 / ERA5-Land, Open-Meteo, OpenWeather, MET Norway. Contains modified Copernicus Climate Change Service information."
                  }
                }
              }
            }
          },
          "400": {
            "description": "Error. Body: { code, message }.\n\n- code -250: crop missing or unknown.\n- code -249: stageCode not on this crop or body empty.\n- code -254: Invalid date range.\n- code -255: dailyTemps or lat/lon required.\n- code -251: No weather.\n- code -397: A parameter or the request body could not be read (e.g. text in a numeric field, malformed JSON). message names the invalid fields. No credits are charged."
          },
          "401": {
            "description": "Error. Body: { code, message }.\n\n- code -100: x-api-key is missing, empty, malformed, inactive, banned, expired, IP-restricted, or not allowed for this API."
          },
          "410": {
            "description": "Error. Body: { code, message }.\n\n- code -380: The API has been disabled or retired."
          },
          "413": {
            "description": "Error. Body: { code, message }.\n\n- code -390: The request body exceeds this endpoint's size limit. No credits are charged. For bodies far above the limit the connection may close before the upload finishes; the client may then see 502 instead of 413 (still no credits charged)."
          },
          "429": {
            "description": "Error. Body: { code, message }.\n\n- code -316: Daily new location (cell) limit (50) reached. Previously requested locations keep working; new locations next day (UTC). Retry-After header gives seconds until end of day.\n- code -221: Per-minute request limit exceeded. Response headers: x-rate-limit-limit, x-rate-limit-remaining, x-rate-limit-reset.\n- code -395: Package credit quota cannot cover this request. Besides code / message the body also has limit, currentUsage and requestCost.\n- code -394: Too many invalid keys were tried from this IP in a short time. Wait for the Retry-After header duration."
          },
          "500": {
            "description": "Error. Body: { code, message }.\n\n- code -1: Unexpected server error. message is a generic error text without technical details."
          },
          "503": {
            "description": "Error. Body: { code, message }.\n\n- code -256: Cell is filling."
          }
        },
        "x-credit-cost": 1,
        "x-api-id": 67
      },
      "post": {
        "tags": [
          "Agriculture"
        ],
        "summary": "Harvest Window",
        "description": "Accumulates crop GDD to the harvest (or stageCode) threshold. Not a prescription.\n\nCost: 1 credit per successful request; failed requests are free.\n\n- Success body is { data: { ... } }. Error body is { code, message }. code is an ApiResponseCode enum value (negative integer).",
        "operationId": "AgricultureHarvestWindowPost",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AgricultureHarvestWindowRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/AgricultureHarvestWindowRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/AgricultureHarvestWindowRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. Body: { data: { ... } }.\n\nFields of data:\n- `crop` (string): Normalized crop.\n- `stageCode` (string): Threshold code used.\n- `threshold` (number): Required cumulative GDD.\n- `gddCumulative` (number): Accumulated GDD.\n- `reached` (boolean): true when the threshold is reached.\n- `reachedDate` (string): Day the threshold was crossed. Null if not.\n- `remainingGdd` (number): Remaining GDD. 0 when reached.\n- `estimatedDate` (string): Estimate from mean daily GDD. Null without data.\n- `fromDate` (string): YYYY-MM-DD.\n- `toDate` (string): YYYY-MM-DD.\n- `daysTotal` (integer): Calendar days in the window.\n- `daysWithData` (integer): Days used for GDD.\n- `missingCount` (integer): Missing day count.\n- `missingDates` (array): First 10 missing dates.\n- `gridLatitude` (number): 0.1° cell.\n- `gridLongitude` (number): 0.1° cell.\n- `stages` (array): Crop GDD thresholds.\n- `stages[].code` (string): emergence, flowering, harvest ...\n- `stages[].threshold` (number): Threshold GDD.\n- `stages[].reached` (boolean): Whether reached.\n- `daily` (array): When includeDaily=true.\n- `daily[].date` (string): YYYY-MM-DD.\n- `daily[].tmin` (number): Min °C.\n- `daily[].tmax` (number): Max °C.\n- `daily[].gdd` (number): Daily GDD.\n- `daily[].gddCumulative` (number): Cumulative.\n- `method` (string): gdd-harvest.\n- `source` (string): database or user.\n- `disclaimer` (string): Decision-support disclaimer.",
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "crop": "wheat",
                    "stageCode": "harvest",
                    "threshold": 1600.0,
                    "gddCumulative": 1624.5,
                    "reached": true,
                    "reachedDate": "2026-07-18",
                    "remainingGdd": 0.0,
                    "estimatedDate": "2026-07-18",
                    "fromDate": "2026-03-01",
                    "toDate": "2026-08-31",
                    "daysTotal": 184,
                    "daysWithData": 180,
                    "missingCount": 4,
                    "missingDates": [
                      "2026-03-12"
                    ],
                    "gridLatitude": 39.90,
                    "gridLongitude": 32.90,
                    "stages": [
                      {
                        "code": "emergence",
                        "threshold": 120.0,
                        "reached": true
                      },
                      {
                        "code": "flowering",
                        "threshold": 800.0,
                        "reached": true
                      },
                      {
                        "code": "harvest",
                        "threshold": 1600.0,
                        "reached": true
                      }
                    ],
                    "daily": [
                      {
                        "date": "2026-03-01",
                        "tmin": 2.0,
                        "tmax": 12.0,
                        "gdd": 3.0,
                        "gddCumulative": 3.0
                      }
                    ],
                    "method": "gdd-harvest",
                    "source": "database",
                    "disclaimer": "Decision support only. Not agronomic advice. Weather data: Copernicus ERA5 / ERA5-Land, Open-Meteo, OpenWeather, MET Norway. Contains modified Copernicus Climate Change Service information."
                  }
                }
              }
            }
          },
          "400": {
            "description": "Error. Body: { code, message }.\n\n- code -250: crop missing or unknown.\n- code -249: stageCode not on this crop or body empty.\n- code -254: Invalid date range.\n- code -255: dailyTemps or lat/lon required.\n- code -251: No weather.\n- code -397: A parameter or the request body could not be read (e.g. text in a numeric field, malformed JSON). message names the invalid fields. No credits are charged."
          },
          "401": {
            "description": "Error. Body: { code, message }.\n\n- code -100: x-api-key is missing, empty, malformed, inactive, banned, expired, IP-restricted, or not allowed for this API."
          },
          "410": {
            "description": "Error. Body: { code, message }.\n\n- code -380: The API has been disabled or retired."
          },
          "413": {
            "description": "Error. Body: { code, message }.\n\n- code -390: The request body exceeds this endpoint's size limit. No credits are charged. For bodies far above the limit the connection may close before the upload finishes; the client may then see 502 instead of 413 (still no credits charged)."
          },
          "429": {
            "description": "Error. Body: { code, message }.\n\n- code -316: Daily new location (cell) limit (50) reached. Previously requested locations keep working; new locations next day (UTC). Retry-After header gives seconds until end of day.\n- code -221: Per-minute request limit exceeded. Response headers: x-rate-limit-limit, x-rate-limit-remaining, x-rate-limit-reset.\n- code -395: Package credit quota cannot cover this request. Besides code / message the body also has limit, currentUsage and requestCost.\n- code -394: Too many invalid keys were tried from this IP in a short time. Wait for the Retry-After header duration."
          },
          "500": {
            "description": "Error. Body: { code, message }.\n\n- code -1: Unexpected server error. message is a generic error text without technical details."
          },
          "503": {
            "description": "Error. Body: { code, message }.\n\n- code -256: Cell is filling."
          }
        },
        "x-credit-cost": 1,
        "x-api-id": 67
      }
    },
    "/api/v1/climate/normals": {
      "get": {
        "tags": [
          "Climate"
        ],
        "summary": "Climate Normals",
        "description": "Multi-year monthly normals for a point: temperature means, monthly precipitation totals, rainy/frost day counts, GDD (base 10 °C) and ET0. Values are interpolated from the 4 surrounding cells. Weather data © Copernicus ERA5 / ERA5-Land (contains modified Copernicus Climate Change Service information) / Open-Meteo / OpenWeather / MET Norway.\n\nCost: 5 credits per successful request; failed requests are free.\n\n- Success body is { data: { ... } }. Error body is { code, message }. code is an ApiResponseCode enum value (negative integer).",
        "operationId": "ClimateNormals",
        "parameters": [
          {
            "name": "latitude",
            "in": "query",
            "description": "Point latitude -90..90.",
            "required": true,
            "schema": {
              "type": "number",
              "format": "double"
            }
          },
          {
            "name": "longitude",
            "in": "query",
            "description": "Point longitude -180..180.",
            "required": true,
            "schema": {
              "type": "number",
              "format": "double"
            }
          },
          {
            "name": "month",
            "in": "query",
            "description": "1–12. All 12 months when empty.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "years",
            "in": "query",
            "description": "How many years back to average. Default 2; larger values are capped by the stored history of 730 days.",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 2
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. Body: { data: { ... } }.\n\nFields of data:\n- `sampleFrom` (string): Sample window start YYYY-MM-DD.\n- `sampleTo` (string): Sample window end YYYY-MM-DD.\n- `gddBaseC` (integer): GDD base temperature °C (10).\n- `months` (array): Normals for the requested months.\n- `months[].month` (integer): Month 1–12.\n- `months[].tminMeanC` (number): Mean daily minimum temperature °C.\n- `months[].tmaxMeanC` (number): Mean daily maximum temperature °C.\n- `months[].tmeanMeanC` (number): Mean daily mean temperature °C.\n- `months[].precipTotalMeanMm` (number): Multi-year mean of monthly total precipitation mm.\n- `months[].rainyDaysMean` (number): Mean number of rainy days (≥1 mm).\n- `months[].frostDaysMean` (number): Mean number of frost days (tmin ≤ 0 °C).\n- `months[].gddMean` (number): Multi-year mean of monthly GDD sum (base 10, cap 30).\n- `months[].et0TotalMeanMm` (number): Multi-year mean of monthly ET0 sum mm.\n- `months[].sampleYears` (integer): Number of years with data for that month.\n- `gridLatitude` (number): Latitude of the 0.1° grid corner around the request (interpolation reference).\n- `gridLongitude` (number): Longitude of the 0.1° grid corner.\n- `gridInterpolated` (boolean): true: values bilinearly blended from the 4 surrounding cells. false: single cell.\n- `sources` (array): Data sources that contributed: copernicus-era5-land, open-meteo, openweather, met-norway. For past days (older than about a week) Copernicus ERA5 / ERA5-Land takes precedence; UV, precipitation probability and the weather code of wet hours / days are derived from ERA5-Land variables, wind gust comes from ERA5 (0.25°); cloud cover and the weather code of dry hours / days are filled from other sources when available. At coastal / sea points ERA5-Land values come from the nearest land grid point.\n- `disclaimer` (string): Decision-support disclaimer and source attribution.",
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "gridLatitude": 39.90,
                    "gridLongitude": 32.90,
                    "gridInterpolated": true,
                    "sampleFrom": "2024-08-31",
                    "sampleTo": "2026-08-29",
                    "gddBaseC": 10,
                    "months": [
                      {
                        "month": 6,
                        "tminMeanC": 14.6,
                        "tmaxMeanC": 28.7,
                        "tmeanMeanC": 21.7,
                        "precipTotalMeanMm": 33.5,
                        "rainyDaysMean": 4.5,
                        "frostDaysMean": 0.0,
                        "gddMean": 351.2,
                        "et0TotalMeanMm": 168.4,
                        "sampleYears": 2
                      },
                      {
                        "month": 7,
                        "tminMeanC": 17.1,
                        "tmaxMeanC": 32.4,
                        "tmeanMeanC": 24.8,
                        "precipTotalMeanMm": 9.0,
                        "rainyDaysMean": 1.0,
                        "frostDaysMean": 0.0,
                        "gddMean": 458.6,
                        "et0TotalMeanMm": 195.2,
                        "sampleYears": 2
                      }
                    ],
                    "sources": [
                      "open-meteo"
                    ],
                    "disclaimer": "Multi-year monthly averages from Copernicus ERA5 / ERA5-Land, Open-Meteo, OpenWeather and MET Norway. Contains modified Copernicus Climate Change Service information. Decision support only."
                  }
                }
              }
            }
          },
          "400": {
            "description": "Error. Body: { code, message }.\n\n- code -257: latitude/longitude missing or out of range (lat -90..90, lon -180..180).\n- code -258: fromDate/toDate not YYYY-MM-DD, range exceeds 366 days, or outside the last 2 years / after yesterday. granularity=hourly: range at most 31 days, last 400 days only.\n- code -259: granularity/days/hours/metric/op/comparator is invalid.\n- code -397: A parameter or the request body could not be read (e.g. text in a numeric field, malformed JSON). message names the invalid fields. No credits are charged."
          },
          "401": {
            "description": "Error. Body: { code, message }.\n\n- code -100: x-api-key is missing, empty, malformed, inactive, banned, expired, IP-restricted, or not allowed for this API."
          },
          "410": {
            "description": "Error. Body: { code, message }.\n\n- code -380: The API has been disabled or retired."
          },
          "413": {
            "description": "Error. Body: { code, message }.\n\n- code -390: The request body exceeds this endpoint's size limit. No credits are charged. For bodies far above the limit the connection may close before the upload finishes; the client may then see 502 instead of 413 (still no credits charged)."
          },
          "429": {
            "description": "Error. Body: { code, message }.\n\n- code -316: Daily new location (cell) limit (50) reached. Previously requested locations keep working; new locations next day (UTC). Retry-After header gives seconds until end of day.\n- code -221: Per-minute request limit exceeded. Response headers: x-rate-limit-limit, x-rate-limit-remaining, x-rate-limit-reset.\n- code -395: Package credit quota cannot cover this request. Besides code / message the body also has limit, currentUsage and requestCost.\n- code -394: Too many invalid keys were tried from this IP in a short time. Wait for the Retry-After header duration."
          },
          "500": {
            "description": "Error. Body: { code, message }.\n\n- code -1: Unexpected server error. message is a generic error text without technical details."
          },
          "503": {
            "description": "Error. Body: { code, message }.\n\n- code -261: No stored weather for this location yet. Cells were created; the collector is filling them. Retry shortly."
          }
        },
        "x-credit-cost": 5,
        "x-api-id": 57
      }
    },
    "/api/v1/btcaddressvalidator": {
      "get": {
        "tags": [
          "CryptoAddress"
        ],
        "summary": "Bitcoin Address Validator",
        "description": "Validates a Bitcoin wallet address. Invalid addresses return HTTP 200 with isValid=false.\n\nCost: 1 credit per successful request; failed requests are free.\n\n- Success body is { data: { ... } }. Error body is { code, message }. code is an ApiResponseCode enum value (negative integer).",
        "operationId": "BtcAddressValidator",
        "parameters": [
          {
            "name": "address",
            "in": "query",
            "description": "Wallet address.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. Body: { data: { ... } }.\n\nFields of data:\n- `isValid` (boolean): true when the address matches format and checksum rules.\n- `address` (string): Validated address (submitted value).\n- `network` (string): Network id. mainnet for this API.\n- `addressType` (string): Address type. Possible values: p2pkh | p2sh | bech32.",
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "isValid": true,
                    "address": "3J98t1WpEZ73CNmQviecrnyiWrnqRhWNLy",
                    "network": "mainnet",
                    "addressType": "p2sh"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Error. Body: { code, message }.\n\n- code -228: `address` is empty or whitespace. Invalid addresses return HTTP 200 with data.isValid=false.\n- code -397: A parameter or the request body could not be read (e.g. text in a numeric field, malformed JSON). message names the invalid fields. No credits are charged."
          },
          "401": {
            "description": "Error. Body: { code, message }.\n\n- code -100: x-api-key is missing, empty, malformed, inactive, banned, expired, IP-restricted, or not allowed for this API."
          },
          "410": {
            "description": "Error. Body: { code, message }.\n\n- code -380: The API has been disabled or retired."
          },
          "413": {
            "description": "Error. Body: { code, message }.\n\n- code -390: The request body exceeds this endpoint's size limit. No credits are charged. For bodies far above the limit the connection may close before the upload finishes; the client may then see 502 instead of 413 (still no credits charged)."
          },
          "429": {
            "description": "Error. Body: { code, message }.\n\n- code -221: Per-minute request limit exceeded. Response headers: x-rate-limit-limit, x-rate-limit-remaining, x-rate-limit-reset.\n- code -395: Package credit quota cannot cover this request. Besides code / message the body also has limit, currentUsage and requestCost.\n- code -394: Too many invalid keys were tried from this IP in a short time. Wait for the Retry-After header duration."
          },
          "500": {
            "description": "Error. Body: { code, message }.\n\n- code -1: Unexpected server error. message is a generic error text without technical details."
          }
        },
        "x-credit-cost": 1,
        "x-api-id": 21
      }
    },
    "/api/v1/ethaddressvalidator": {
      "get": {
        "tags": [
          "CryptoAddress"
        ],
        "summary": "Ethereum Address Validator",
        "description": "Validates a Ethereum wallet address. Invalid addresses return HTTP 200 with isValid=false.\n\nCost: 1 credit per successful request; failed requests are free.\n\n- Success body is { data: { ... } }. Error body is { code, message }. code is an ApiResponseCode enum value (negative integer).",
        "operationId": "EthAddressValidator",
        "parameters": [
          {
            "name": "address",
            "in": "query",
            "description": "Wallet address.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. Body: { data: { ... } }.\n\nFields of data:\n- `isValid` (boolean): true when the address matches format and checksum rules.\n- `address` (string): Validated address (submitted value).\n- `network` (string): Network id. ethereum for this API.\n- `addressType` (string): Address type. Possible values: evm.\n- `isChecksumValid` (boolean): Whether the EIP-55 checksum is valid. All-lower/all-upper may be true; mixed case is checksum-checked.",
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "isValid": true,
                    "address": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
                    "network": "ethereum",
                    "addressType": "evm",
                    "isChecksumValid": true
                  }
                }
              }
            }
          },
          "400": {
            "description": "Error. Body: { code, message }.\n\n- code -228: `address` is empty or whitespace. Invalid addresses return HTTP 200 with data.isValid=false.\n- code -397: A parameter or the request body could not be read (e.g. text in a numeric field, malformed JSON). message names the invalid fields. No credits are charged."
          },
          "401": {
            "description": "Error. Body: { code, message }.\n\n- code -100: x-api-key is missing, empty, malformed, inactive, banned, expired, IP-restricted, or not allowed for this API."
          },
          "410": {
            "description": "Error. Body: { code, message }.\n\n- code -380: The API has been disabled or retired."
          },
          "413": {
            "description": "Error. Body: { code, message }.\n\n- code -390: The request body exceeds this endpoint's size limit. No credits are charged. For bodies far above the limit the connection may close before the upload finishes; the client may then see 502 instead of 413 (still no credits charged)."
          },
          "429": {
            "description": "Error. Body: { code, message }.\n\n- code -221: Per-minute request limit exceeded. Response headers: x-rate-limit-limit, x-rate-limit-remaining, x-rate-limit-reset.\n- code -395: Package credit quota cannot cover this request. Besides code / message the body also has limit, currentUsage and requestCost.\n- code -394: Too many invalid keys were tried from this IP in a short time. Wait for the Retry-After header duration."
          },
          "500": {
            "description": "Error. Body: { code, message }.\n\n- code -1: Unexpected server error. message is a generic error text without technical details."
          }
        },
        "x-credit-cost": 1,
        "x-api-id": 22
      }
    },
    "/api/v1/tronaddressvalidator": {
      "get": {
        "tags": [
          "CryptoAddress"
        ],
        "summary": "TRON Address Validator",
        "description": "Validates a Tron wallet address. Invalid addresses return HTTP 200 with isValid=false.\n\nCost: 1 credit per successful request; failed requests are free.\n\n- Success body is { data: { ... } }. Error body is { code, message }. code is an ApiResponseCode enum value (negative integer).",
        "operationId": "TronAddressValidator",
        "parameters": [
          {
            "name": "address",
            "in": "query",
            "description": "Wallet address.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. Body: { data: { ... } }.\n\nFields of data:\n- `isValid` (boolean): true when the address matches format and checksum rules.\n- `address` (string): Validated address (submitted value).\n- `network` (string): Network id. mainnet for this API.\n- `addressType` (string): Address type. Possible values: base58 | hex.\n- `hexAddress` (string): Hex form of the base58 address, starting with 41. Null when invalid.",
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "isValid": true,
                    "address": "TLyqzVGLV1srkB7dToTAEqgDSfPtXRJZYH",
                    "network": "mainnet",
                    "addressType": "base58",
                    "hexAddress": "41b31b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Error. Body: { code, message }.\n\n- code -228: `address` is empty or whitespace. Invalid addresses return HTTP 200 with data.isValid=false.\n- code -397: A parameter or the request body could not be read (e.g. text in a numeric field, malformed JSON). message names the invalid fields. No credits are charged."
          },
          "401": {
            "description": "Error. Body: { code, message }.\n\n- code -100: x-api-key is missing, empty, malformed, inactive, banned, expired, IP-restricted, or not allowed for this API."
          },
          "410": {
            "description": "Error. Body: { code, message }.\n\n- code -380: The API has been disabled or retired."
          },
          "413": {
            "description": "Error. Body: { code, message }.\n\n- code -390: The request body exceeds this endpoint's size limit. No credits are charged. For bodies far above the limit the connection may close before the upload finishes; the client may then see 502 instead of 413 (still no credits charged)."
          },
          "429": {
            "description": "Error. Body: { code, message }.\n\n- code -221: Per-minute request limit exceeded. Response headers: x-rate-limit-limit, x-rate-limit-remaining, x-rate-limit-reset.\n- code -395: Package credit quota cannot cover this request. Besides code / message the body also has limit, currentUsage and requestCost.\n- code -394: Too many invalid keys were tried from this IP in a short time. Wait for the Retry-After header duration."
          },
          "500": {
            "description": "Error. Body: { code, message }.\n\n- code -1: Unexpected server error. message is a generic error text without technical details."
          }
        },
        "x-credit-cost": 1,
        "x-api-id": 23
      }
    },
    "/api/v1/soladdressvalidator": {
      "get": {
        "tags": [
          "CryptoAddress"
        ],
        "summary": "Solana Address Validator",
        "description": "Validates a Solana wallet address. Invalid addresses return HTTP 200 with isValid=false.\n\nCost: 1 credit per successful request; failed requests are free.\n\n- Success body is { data: { ... } }. Error body is { code, message }. code is an ApiResponseCode enum value (negative integer).",
        "operationId": "SolAddressValidator",
        "parameters": [
          {
            "name": "address",
            "in": "query",
            "description": "Wallet address.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. Body: { data: { ... } }.\n\nFields of data:\n- `isValid` (boolean): true when the address matches format and checksum rules.\n- `address` (string): Validated address (submitted value).\n- `network` (string): Network id. mainnet for this API.\n- `addressType` (string): Address type. Possible values: ed25519.",
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "isValid": true,
                    "address": "So11111111111111111111111111111111111111112",
                    "network": "mainnet",
                    "addressType": "ed25519"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Error. Body: { code, message }.\n\n- code -228: `address` is empty or whitespace. Invalid addresses return HTTP 200 with data.isValid=false.\n- code -397: A parameter or the request body could not be read (e.g. text in a numeric field, malformed JSON). message names the invalid fields. No credits are charged."
          },
          "401": {
            "description": "Error. Body: { code, message }.\n\n- code -100: x-api-key is missing, empty, malformed, inactive, banned, expired, IP-restricted, or not allowed for this API."
          },
          "410": {
            "description": "Error. Body: { code, message }.\n\n- code -380: The API has been disabled or retired."
          },
          "413": {
            "description": "Error. Body: { code, message }.\n\n- code -390: The request body exceeds this endpoint's size limit. No credits are charged. For bodies far above the limit the connection may close before the upload finishes; the client may then see 502 instead of 413 (still no credits charged)."
          },
          "429": {
            "description": "Error. Body: { code, message }.\n\n- code -221: Per-minute request limit exceeded. Response headers: x-rate-limit-limit, x-rate-limit-remaining, x-rate-limit-reset.\n- code -395: Package credit quota cannot cover this request. Besides code / message the body also has limit, currentUsage and requestCost.\n- code -394: Too many invalid keys were tried from this IP in a short time. Wait for the Retry-After header duration."
          },
          "500": {
            "description": "Error. Body: { code, message }.\n\n- code -1: Unexpected server error. message is a generic error text without technical details."
          }
        },
        "x-credit-cost": 1,
        "x-api-id": 24
      }
    },
    "/api/v1/bscaddressvalidator": {
      "get": {
        "tags": [
          "CryptoAddress"
        ],
        "summary": "BNB Smart Chain Address Validator",
        "description": "Validates a BNB Smart Chain wallet address. Invalid addresses return HTTP 200 with isValid=false.\n\nCost: 1 credit per successful request; failed requests are free.\n\n- Success body is { data: { ... } }. Error body is { code, message }. code is an ApiResponseCode enum value (negative integer).",
        "operationId": "BscAddressValidator",
        "parameters": [
          {
            "name": "address",
            "in": "query",
            "description": "Wallet address.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. Body: { data: { ... } }.\n\nFields of data:\n- `isValid` (boolean): true when the address matches format and checksum rules.\n- `address` (string): Validated address (submitted value).\n- `network` (string): Network id. bsc for this API.\n- `addressType` (string): Address type. Possible values: evm.\n- `isChecksumValid` (boolean): Whether the EIP-55 checksum is valid. All-lower/all-upper may be true; mixed case is checksum-checked.",
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "isValid": true,
                    "address": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
                    "network": "bsc",
                    "addressType": "evm",
                    "isChecksumValid": true
                  }
                }
              }
            }
          },
          "400": {
            "description": "Error. Body: { code, message }.\n\n- code -228: `address` is empty or whitespace. Invalid addresses return HTTP 200 with data.isValid=false.\n- code -397: A parameter or the request body could not be read (e.g. text in a numeric field, malformed JSON). message names the invalid fields. No credits are charged."
          },
          "401": {
            "description": "Error. Body: { code, message }.\n\n- code -100: x-api-key is missing, empty, malformed, inactive, banned, expired, IP-restricted, or not allowed for this API."
          },
          "410": {
            "description": "Error. Body: { code, message }.\n\n- code -380: The API has been disabled or retired."
          },
          "413": {
            "description": "Error. Body: { code, message }.\n\n- code -390: The request body exceeds this endpoint's size limit. No credits are charged. For bodies far above the limit the connection may close before the upload finishes; the client may then see 502 instead of 413 (still no credits charged)."
          },
          "429": {
            "description": "Error. Body: { code, message }.\n\n- code -221: Per-minute request limit exceeded. Response headers: x-rate-limit-limit, x-rate-limit-remaining, x-rate-limit-reset.\n- code -395: Package credit quota cannot cover this request. Besides code / message the body also has limit, currentUsage and requestCost.\n- code -394: Too many invalid keys were tried from this IP in a short time. Wait for the Retry-After header duration."
          },
          "500": {
            "description": "Error. Body: { code, message }.\n\n- code -1: Unexpected server error. message is a generic error text without technical details."
          }
        },
        "x-credit-cost": 1,
        "x-api-id": 25
      }
    },
    "/api/v1/polygonaddressvalidator": {
      "get": {
        "tags": [
          "CryptoAddress"
        ],
        "summary": "Polygon Address Validator",
        "description": "Validates a Polygon wallet address. Invalid addresses return HTTP 200 with isValid=false.\n\nCost: 1 credit per successful request; failed requests are free.\n\n- Success body is { data: { ... } }. Error body is { code, message }. code is an ApiResponseCode enum value (negative integer).",
        "operationId": "PolygonAddressValidator",
        "parameters": [
          {
            "name": "address",
            "in": "query",
            "description": "Wallet address.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. Body: { data: { ... } }.\n\nFields of data:\n- `isValid` (boolean): true when the address matches format and checksum rules.\n- `address` (string): Validated address (submitted value).\n- `network` (string): Network id. polygon for this API.\n- `addressType` (string): Address type. Possible values: evm.\n- `isChecksumValid` (boolean): Whether the EIP-55 checksum is valid. All-lower/all-upper may be true; mixed case is checksum-checked.",
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "isValid": true,
                    "address": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
                    "network": "polygon",
                    "addressType": "evm",
                    "isChecksumValid": true
                  }
                }
              }
            }
          },
          "400": {
            "description": "Error. Body: { code, message }.\n\n- code -228: `address` is empty or whitespace. Invalid addresses return HTTP 200 with data.isValid=false.\n- code -397: A parameter or the request body could not be read (e.g. text in a numeric field, malformed JSON). message names the invalid fields. No credits are charged."
          },
          "401": {
            "description": "Error. Body: { code, message }.\n\n- code -100: x-api-key is missing, empty, malformed, inactive, banned, expired, IP-restricted, or not allowed for this API."
          },
          "410": {
            "description": "Error. Body: { code, message }.\n\n- code -380: The API has been disabled or retired."
          },
          "413": {
            "description": "Error. Body: { code, message }.\n\n- code -390: The request body exceeds this endpoint's size limit. No credits are charged. For bodies far above the limit the connection may close before the upload finishes; the client may then see 502 instead of 413 (still no credits charged)."
          },
          "429": {
            "description": "Error. Body: { code, message }.\n\n- code -221: Per-minute request limit exceeded. Response headers: x-rate-limit-limit, x-rate-limit-remaining, x-rate-limit-reset.\n- code -395: Package credit quota cannot cover this request. Besides code / message the body also has limit, currentUsage and requestCost.\n- code -394: Too many invalid keys were tried from this IP in a short time. Wait for the Retry-After header duration."
          },
          "500": {
            "description": "Error. Body: { code, message }.\n\n- code -1: Unexpected server error. message is a generic error text without technical details."
          }
        },
        "x-credit-cost": 1,
        "x-api-id": 26
      }
    },
    "/api/v1/emailvalidator": {
      "get": {
        "tags": [
          "Email"
        ],
        "summary": "Email Validator",
        "description": "Syntax plus known disposable domains (DB/Redis). No SMTP. Invalid addresses return HTTP 200 with isValid=false.\n\nCost: 1 credit per successful request; failed requests are free.\n\n- Success body is { data: { ... } }. Error body is { code, message }. code is an ApiResponseCode enum value (negative integer).\n- isDisposable uses eposta_gecici_alan + Redis. New 10-minute domains missing from the list can slip through.",
        "operationId": "EmailValidator",
        "parameters": [
          {
            "name": "email",
            "in": "query",
            "description": "Email address.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. Body: { data: { ... } }.\n\nFields of data:\n- `isValid` (boolean): true when syntax is valid.\n- `normalized` (string): Lowercased normalized address.\n- `localPart` (string): Local part before @.\n- `domain` (string): Punycode domain.\n- `isDisposable` (boolean): true for a known disposable provider. The list is not exhaustive.\n- `disposableMatchedDomain` (string): Matched list domain. Null otherwise.",
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "isValid": true,
                    "normalized": "user@example.com",
                    "localPart": "user",
                    "domain": "example.com",
                    "isDisposable": false,
                    "disposableMatchedDomain": null
                  }
                }
              }
            }
          },
          "400": {
            "description": "Error. Body: { code, message }.\n\n- code -283: email is empty.\n- code -397: A parameter or the request body could not be read (e.g. text in a numeric field, malformed JSON). message names the invalid fields. No credits are charged."
          },
          "401": {
            "description": "Error. Body: { code, message }.\n\n- code -100: x-api-key is missing, empty, malformed, inactive, banned, expired, IP-restricted, or not allowed for this API."
          },
          "410": {
            "description": "Error. Body: { code, message }.\n\n- code -380: The API has been disabled or retired."
          },
          "413": {
            "description": "Error. Body: { code, message }.\n\n- code -390: The request body exceeds this endpoint's size limit. No credits are charged. For bodies far above the limit the connection may close before the upload finishes; the client may then see 502 instead of 413 (still no credits charged)."
          },
          "429": {
            "description": "Error. Body: { code, message }.\n\n- code -221: Per-minute request limit exceeded. Response headers: x-rate-limit-limit, x-rate-limit-remaining, x-rate-limit-reset.\n- code -395: Package credit quota cannot cover this request. Besides code / message the body also has limit, currentUsage and requestCost.\n- code -394: Too many invalid keys were tried from this IP in a short time. Wait for the Retry-After header duration."
          },
          "500": {
            "description": "Error. Body: { code, message }.\n\n- code -1: Unexpected server error. message is a generic error text without technical details."
          }
        },
        "x-credit-cost": 1,
        "x-api-id": 64
      }
    },
    "/api/v1/exchangerates/tcmb": {
      "get": {
        "tags": [
          "ExchangeRate"
        ],
        "summary": "TCMB Exchange Rates",
        "description": "Returns CBRT (TCMB) FX rates.\n\nCost: 1 credit per successful request; failed requests are free.\n\n- Success body is { data: { ... } }. Error body is { code, message }. code is an ApiResponseCode enum value (negative integer).",
        "operationId": "TcmbExchangeRates",
        "parameters": [
          {
            "name": "code",
            "in": "query",
            "description": "Currency code. Empty returns all rates. Values: USD, AUD, DKK, EUR, GBP, CHF, SEK, CAD, KWD, NOK, SAR, JPY, BGN, RON, RUB, IRR, CNY, PKR, QAR, KRW, AZN, AED, XDR.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. Body: { data: { ... } }.\n\nFields of data:\n- `date` (string): CBRT rate date (ISO datetime). Previous business day on weekends/holidays.\n- `source` (string): Always TCMB.\n- `rates` (array): Rate list. A single item when code is set.\n- `rates[].code` (string): ISO currency code (USD, EUR, GBP ...).\n- `rates[].name` (string): CBRT Turkish currency name. Example: ABD DOLARI.\n- `rates[].forexBuying` (number): FX buying (CBRT). May be null.\n- `rates[].forexSelling` (number): FX selling (CBRT). May be null.\n- `rates[].banknoteBuying` (number): Banknote buying. Null for some codes.\n- `rates[].banknoteSelling` (number): Banknote selling. Null for some codes.",
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "date": "2026-08-19T00:00:00",
                    "source": "TCMB",
                    "rates": [
                      {
                        "code": "USD",
                        "name": "ABD DOLARI",
                        "forexBuying": 33.5214,
                        "forexSelling": 33.5818,
                        "banknoteBuying": 33.4980,
                        "banknoteSelling": 33.6321
                      },
                      {
                        "code": "EUR",
                        "name": "EURO",
                        "forexBuying": 36.2105,
                        "forexSelling": 36.2757,
                        "banknoteBuying": 36.1851,
                        "banknoteSelling": 36.3301
                      },
                      {
                        "code": "GBP",
                        "name": "İNGİLİZ STERLİNİ",
                        "forexBuying": 42.8012,
                        "forexSelling": 43.0256,
                        "banknoteBuying": 42.7712,
                        "banknoteSelling": 43.0901
                      }
                    ]
                  }
                }
              }
            }
          },
          "400": {
            "description": "Error. Body: { code, message }.\n\n- code -225: code is not in the CBRT list.\n- code -397: A parameter or the request body could not be read (e.g. text in a numeric field, malformed JSON). message names the invalid fields. No credits are charged."
          },
          "401": {
            "description": "Error. Body: { code, message }.\n\n- code -100: x-api-key is missing, empty, malformed, inactive, banned, expired, IP-restricted, or not allowed for this API."
          },
          "410": {
            "description": "Error. Body: { code, message }.\n\n- code -380: The API has been disabled or retired."
          },
          "413": {
            "description": "Error. Body: { code, message }.\n\n- code -390: The request body exceeds this endpoint's size limit. No credits are charged. For bodies far above the limit the connection may close before the upload finishes; the client may then see 502 instead of 413 (still no credits charged)."
          },
          "429": {
            "description": "Error. Body: { code, message }.\n\n- code -221: Per-minute request limit exceeded. Response headers: x-rate-limit-limit, x-rate-limit-remaining, x-rate-limit-reset.\n- code -395: Package credit quota cannot cover this request. Besides code / message the body also has limit, currentUsage and requestCost.\n- code -394: Too many invalid keys were tried from this IP in a short time. Wait for the Retry-After header duration."
          },
          "500": {
            "description": "Error. Body: { code, message }.\n\n- code -1: Unexpected server error. message is a generic error text without technical details."
          },
          "503": {
            "description": "Error. Body: { code, message }.\n\n- code -224: CBRT rate cache is empty or could not be retrieved."
          }
        },
        "x-credit-cost": 1,
        "x-api-id": 18
      }
    },
    "/api/v1/exchangerates/ecb": {
      "get": {
        "tags": [
          "ExchangeRate"
        ],
        "summary": "ECB Exchange Rates",
        "description": "Returns ECB euro-based rates.\n\nCost: 1 credit per successful request; failed requests are free.\n\n- Success body is { data: { ... } }. Error body is { code, message }. code is an ApiResponseCode enum value (negative integer).",
        "operationId": "EcbExchangeRates",
        "parameters": [
          {
            "name": "code",
            "in": "query",
            "description": "Currency code. Empty returns all rates. Values: USD, JPY, BGN, CZK, DKK, GBP, HUF, PLN, RON, SEK, CHF, ISK, NOK, TRY, AUD, BRL, CAD, CNY, HKD, IDR, ILS, INR, KRW, MXN, MYR, NZD, PHP, SGD, THB, ZAR.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. Body: { data: { ... } }.\n\nFields of data:\n- `date` (string): ECB rate date (ISO datetime).\n- `source` (string): Always ECB.\n- `baseCurrency` (string): Base currency. Always EUR. rate is the amount per 1 EUR.\n- `rates` (array): Rate list. A single item when code is set.\n- `rates[].code` (string): ISO currency code (USD, GBP, TRY ...).\n- `rates[].rate` (number): 1 EUR = rate units of code. May be null.",
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "date": "2026-08-19T00:00:00",
                    "source": "ECB",
                    "baseCurrency": "EUR",
                    "rates": [
                      {
                        "code": "USD",
                        "rate": 1.0876
                      },
                      {
                        "code": "GBP",
                        "rate": 0.8542
                      },
                      {
                        "code": "TRY",
                        "rate": 36.2140
                      }
                    ]
                  }
                }
              }
            }
          },
          "400": {
            "description": "Error. Body: { code, message }.\n\n- code -225: code is not in the ECB list.\n- code -397: A parameter or the request body could not be read (e.g. text in a numeric field, malformed JSON). message names the invalid fields. No credits are charged."
          },
          "401": {
            "description": "Error. Body: { code, message }.\n\n- code -100: x-api-key is missing, empty, malformed, inactive, banned, expired, IP-restricted, or not allowed for this API."
          },
          "410": {
            "description": "Error. Body: { code, message }.\n\n- code -380: The API has been disabled or retired."
          },
          "413": {
            "description": "Error. Body: { code, message }.\n\n- code -390: The request body exceeds this endpoint's size limit. No credits are charged. For bodies far above the limit the connection may close before the upload finishes; the client may then see 502 instead of 413 (still no credits charged)."
          },
          "429": {
            "description": "Error. Body: { code, message }.\n\n- code -221: Per-minute request limit exceeded. Response headers: x-rate-limit-limit, x-rate-limit-remaining, x-rate-limit-reset.\n- code -395: Package credit quota cannot cover this request. Besides code / message the body also has limit, currentUsage and requestCost.\n- code -394: Too many invalid keys were tried from this IP in a short time. Wait for the Retry-After header duration."
          },
          "500": {
            "description": "Error. Body: { code, message }.\n\n- code -1: Unexpected server error. message is a generic error text without technical details."
          },
          "503": {
            "description": "Error. Body: { code, message }.\n\n- code -226: ECB rate cache is empty or could not be retrieved."
          }
        },
        "x-credit-cost": 1,
        "x-api-id": 19
      }
    },
    "/api/v1/exchangerates/convert": {
      "get": {
        "tags": [
          "ExchangeRate"
        ],
        "summary": "Currency Converter",
        "description": "Converts an amount using TCMB or ECB rates. TCMB is TRY-based; ECB is EUR-based. from=to yields rate=1.\n\nCost: 1 credit per successful request; failed requests are free.\n\n- Success body is { data: { ... } }. Error body is { code, message }. code is an ApiResponseCode enum value (negative integer).",
        "operationId": "CurrencyConvert",
        "parameters": [
          {
            "name": "amount",
            "in": "query",
            "description": "Amount greater than zero.",
            "required": true,
            "schema": {
              "type": "number",
              "format": "double"
            }
          },
          {
            "name": "from",
            "in": "query",
            "description": "Source ISO 4217. Values: USD, AUD, DKK, EUR, GBP, CHF, SEK, CAD, KWD, NOK, SAR, JPY, BGN, RON, RUB, IRR, CNY, PKR, QAR, KRW, AZN, AED, XDR, TRY.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "to",
            "in": "query",
            "description": "Target ISO 4217.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "source",
            "in": "query",
            "description": "tcmb or ecb. Values: tcmb, ecb.",
            "schema": {
              "type": "string",
              "default": "tcmb"
            }
          },
          {
            "name": "quote",
            "in": "query",
            "description": "TCMB quote only. Values: forexSelling, forexBuying, banknoteSelling, banknoteBuying.",
            "schema": {
              "type": "string",
              "default": "forexSelling"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. Body: { data: { ... } }.\n\nFields of data:\n- `amount` (number): Requested amount.\n- `from` (string): Normalized source code.\n- `to` (string): Normalized target code.\n- `result` (number): Converted amount.\n- `rate` (number): 1 from = rate to.\n- `inverseRate` (number): 1 to = inverseRate from.\n- `source` (string): TCMB or ECB.\n- `quote` (string): TCMB quote name. Null for ECB.\n- `date` (string): Rate date as ISO datetime.",
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "amount": 100.0,
                    "from": "USD",
                    "to": "TRY",
                    "result": 3358.18,
                    "rate": 33.5818,
                    "inverseRate": 0.029778,
                    "source": "TCMB",
                    "quote": "forexSelling",
                    "date": "2026-09-03T00:00:00Z"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Error. Body: { code, message }.\n\n- code -278: amount missing, ≤ 0 or above 999999999999.99.\n- code -225: from/to/source invalid or not in the rate list.\n- code -279: quote is not a TCMB quote name.\n- code -397: A parameter or the request body could not be read (e.g. text in a numeric field, malformed JSON). message names the invalid fields. No credits are charged."
          },
          "401": {
            "description": "Error. Body: { code, message }.\n\n- code -100: x-api-key is missing, empty, malformed, inactive, banned, expired, IP-restricted, or not allowed for this API."
          },
          "410": {
            "description": "Error. Body: { code, message }.\n\n- code -380: The API has been disabled or retired."
          },
          "413": {
            "description": "Error. Body: { code, message }.\n\n- code -390: The request body exceeds this endpoint's size limit. No credits are charged. For bodies far above the limit the connection may close before the upload finishes; the client may then see 502 instead of 413 (still no credits charged)."
          },
          "429": {
            "description": "Error. Body: { code, message }.\n\n- code -221: Per-minute request limit exceeded. Response headers: x-rate-limit-limit, x-rate-limit-remaining, x-rate-limit-reset.\n- code -395: Package credit quota cannot cover this request. Besides code / message the body also has limit, currentUsage and requestCost.\n- code -394: Too many invalid keys were tried from this IP in a short time. Wait for the Retry-After header duration."
          },
          "500": {
            "description": "Error. Body: { code, message }.\n\n- code -1: Unexpected server error. message is a generic error text without technical details."
          },
          "503": {
            "description": "Error. Body: { code, message }.\n\n- code -224: TCMB cache empty (source=tcmb).\n- code -226: ECB cache empty (source=ecb)."
          }
        },
        "x-credit-cost": 1,
        "x-api-id": 60
      },
      "post": {
        "tags": [
          "ExchangeRate"
        ],
        "summary": "Currency Converter",
        "description": "Converts an amount using TCMB or ECB rates. TCMB is TRY-based; ECB is EUR-based. from=to yields rate=1.\n\nCost: 1 credit per successful request; failed requests are free.\n\n- Success body is { data: { ... } }. Error body is { code, message }. code is an ApiResponseCode enum value (negative integer).",
        "operationId": "CurrencyConvertPost",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CurrencyConvertRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CurrencyConvertRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CurrencyConvertRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. Body: { data: { ... } }.\n\nFields of data:\n- `amount` (number): Requested amount.\n- `from` (string): Normalized source code.\n- `to` (string): Normalized target code.\n- `result` (number): Converted amount.\n- `rate` (number): 1 from = rate to.\n- `inverseRate` (number): 1 to = inverseRate from.\n- `source` (string): TCMB or ECB.\n- `quote` (string): TCMB quote name. Null for ECB.\n- `date` (string): Rate date as ISO datetime.",
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "amount": 100.0,
                    "from": "USD",
                    "to": "TRY",
                    "result": 3358.18,
                    "rate": 33.5818,
                    "inverseRate": 0.029778,
                    "source": "TCMB",
                    "quote": "forexSelling",
                    "date": "2026-09-03T00:00:00Z"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Error. Body: { code, message }.\n\n- code -278: amount missing, ≤ 0 or above 999999999999.99.\n- code -225: from/to/source invalid or not in the rate list.\n- code -279: quote is not a TCMB quote name.\n- code -397: A parameter or the request body could not be read (e.g. text in a numeric field, malformed JSON). message names the invalid fields. No credits are charged."
          },
          "401": {
            "description": "Error. Body: { code, message }.\n\n- code -100: x-api-key is missing, empty, malformed, inactive, banned, expired, IP-restricted, or not allowed for this API."
          },
          "410": {
            "description": "Error. Body: { code, message }.\n\n- code -380: The API has been disabled or retired."
          },
          "413": {
            "description": "Error. Body: { code, message }.\n\n- code -390: The request body exceeds this endpoint's size limit. No credits are charged. For bodies far above the limit the connection may close before the upload finishes; the client may then see 502 instead of 413 (still no credits charged)."
          },
          "429": {
            "description": "Error. Body: { code, message }.\n\n- code -221: Per-minute request limit exceeded. Response headers: x-rate-limit-limit, x-rate-limit-remaining, x-rate-limit-reset.\n- code -395: Package credit quota cannot cover this request. Besides code / message the body also has limit, currentUsage and requestCost.\n- code -394: Too many invalid keys were tried from this IP in a short time. Wait for the Retry-After header duration."
          },
          "500": {
            "description": "Error. Body: { code, message }.\n\n- code -1: Unexpected server error. message is a generic error text without technical details."
          },
          "503": {
            "description": "Error. Body: { code, message }.\n\n- code -224: TCMB cache empty (source=tcmb).\n- code -226: ECB cache empty (source=ecb)."
          }
        },
        "x-credit-cost": 1,
        "x-api-id": 60
      }
    },
    "/api/v1/holidays": {
      "get": {
        "tags": [
          "Holiday"
        ],
        "summary": "Public Holidays",
        "description": "Public holidays from resmi_tatil. When date is set, isHoliday is returned.\n\nCost: 1 credit per successful request; failed requests are free.\n\n- Success body is { data: { ... } }. Error body is { code, message }. code is an ApiResponseCode enum value (negative integer).",
        "operationId": "PublicHolidays",
        "parameters": [
          {
            "name": "countryCode",
            "in": "query",
            "description": "ISO 3166-1 alpha-2.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "year",
            "in": "query",
            "description": "Year. Empty uses UTC year. Ignored when fromDate is set.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "fromDate",
            "in": "query",
            "description": "YYYY-MM-DD with toDate. Max 366 days.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "toDate",
            "in": "query",
            "description": "YYYY-MM-DD.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "date",
            "in": "query",
            "description": "Single day YYYY-MM-DD → isHoliday.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. Body: { data: { ... } }.\n\nFields of data:\n- `countryCode` (string): Normalized country code.\n- `year` (integer): Year in year mode. Otherwise null.\n- `isHoliday` (boolean): Set when date is provided. Otherwise null.\n- `count` (integer): Number of holidays returned.\n- `holidays` (array): Holiday rows.\n- `holidays[].date` (string): YYYY-MM-DD.\n- `holidays[].name` (string): Holiday name from the table.",
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "countryCode": "TR",
                    "year": 2026,
                    "isHoliday": null,
                    "count": 2,
                    "holidays": [
                      {
                        "date": "2026-01-01",
                        "name": "New Year's Day"
                      },
                      {
                        "date": "2026-04-23",
                        "name": "National Sovereignty and Children's Day"
                      }
                    ]
                  }
                }
              }
            }
          },
          "400": {
            "description": "Error. Body: { code, message }.\n\n- code -280: countryCode is empty.\n- code -243: Not ISO or unknown in ulke.\n- code -247: Invalid date format/year/range.\n- code -397: A parameter or the request body could not be read (e.g. text in a numeric field, malformed JSON). message names the invalid fields. No credits are charged."
          },
          "401": {
            "description": "Error. Body: { code, message }.\n\n- code -100: x-api-key is missing, empty, malformed, inactive, banned, expired, IP-restricted, or not allowed for this API."
          },
          "410": {
            "description": "Error. Body: { code, message }.\n\n- code -380: The API has been disabled or retired."
          },
          "413": {
            "description": "Error. Body: { code, message }.\n\n- code -390: The request body exceeds this endpoint's size limit. No credits are charged. For bodies far above the limit the connection may close before the upload finishes; the client may then see 502 instead of 413 (still no credits charged)."
          },
          "429": {
            "description": "Error. Body: { code, message }.\n\n- code -221: Per-minute request limit exceeded. Response headers: x-rate-limit-limit, x-rate-limit-remaining, x-rate-limit-reset.\n- code -395: Package credit quota cannot cover this request. Besides code / message the body also has limit, currentUsage and requestCost.\n- code -394: Too many invalid keys were tried from this IP in a short time. Wait for the Retry-After header duration."
          },
          "500": {
            "description": "Error. Body: { code, message }.\n\n- code -1: Unexpected server error. message is a generic error text without technical details."
          }
        },
        "x-credit-cost": 1,
        "x-api-id": 61
      }
    },
    "/api/v1/ibanvalidator": {
      "get": {
        "tags": [
          "Iban"
        ],
        "summary": "IBAN Validator",
        "description": "Validates an IBAN and splits country, bank and account parts.\n\nCost: 1 credit per successful request; failed requests are free.\n\n- Success body is { data: { ... } }. Error body is { code, message }. code is an ApiResponseCode enum value (negative integer).",
        "operationId": "IbanValidator",
        "parameters": [
          {
            "name": "iban",
            "in": "query",
            "description": "IBAN with or without spaces.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. Body: { data: { ... } }.\n\nFields of data:\n- `isValid` (boolean): true when MOD-97 checksum and country length are valid. Invalid IBANs still return HTTP 200.\n- `iban` (string): Normalized IBAN: no spaces, uppercase.\n- `ibanPrint` (string): Print format in groups of 4. Example: TR60 0001 0001 ...\n- `ibanObfuscated` (string): IBAN with the middle masked as X. Last 4 digits remain visible.\n- `countryCode` (string): ISO 3166-1 alpha-2 country code (first 2 characters).\n- `checkDigits` (string): IBAN check digits (characters 3–4).\n- `bban` (string): Basic Bank Account Number (BBAN), excluding country code and check digits.\n- `bankIdentifier` (string): Bank identifier inside the BBAN. Length depends on the country. May be null.\n- `bankName` (string): Bank name when known. Null otherwise.\n- `branchIdentifier` (string): Branch identifier when the country uses one. Otherwise null.\n- `sepaMember` (boolean): Whether the country is a SEPA member.\n- `isQrIban` (boolean): Whether the IBAN is in the Swiss/Liechtenstein QR-IBAN range.",
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "isValid": true,
                    "iban": "TR600001000104603212345678",
                    "ibanPrint": "TR60 0001 0001 0460 3212 3456 78",
                    "ibanObfuscated": "XXXXXXXXXXXXXXXXXXXXXX5678",
                    "countryCode": "TR",
                    "checkDigits": "60",
                    "bban": "0001000104603212345678",
                    "bankIdentifier": "00010",
                    "bankName": "T.C. Ziraat Bankası A.Ş.",
                    "branchIdentifier": null,
                    "sepaMember": false,
                    "isQrIban": false
                  }
                }
              }
            }
          },
          "400": {
            "description": "Error. Body: { code, message }.\n\n- code -227: `iban` is empty or whitespace. Invalid checksum returns HTTP 200 with data.isValid=false.\n- code -397: A parameter or the request body could not be read (e.g. text in a numeric field, malformed JSON). message names the invalid fields. No credits are charged."
          },
          "401": {
            "description": "Error. Body: { code, message }.\n\n- code -100: x-api-key is missing, empty, malformed, inactive, banned, expired, IP-restricted, or not allowed for this API."
          },
          "410": {
            "description": "Error. Body: { code, message }.\n\n- code -380: The API has been disabled or retired."
          },
          "413": {
            "description": "Error. Body: { code, message }.\n\n- code -390: The request body exceeds this endpoint's size limit. No credits are charged. For bodies far above the limit the connection may close before the upload finishes; the client may then see 502 instead of 413 (still no credits charged)."
          },
          "429": {
            "description": "Error. Body: { code, message }.\n\n- code -221: Per-minute request limit exceeded. Response headers: x-rate-limit-limit, x-rate-limit-remaining, x-rate-limit-reset.\n- code -395: Package credit quota cannot cover this request. Besides code / message the body also has limit, currentUsage and requestCost.\n- code -394: Too many invalid keys were tried from this IP in a short time. Wait for the Retry-After header duration."
          },
          "500": {
            "description": "Error. Body: { code, message }.\n\n- code -1: Unexpected server error. message is a generic error text without technical details."
          }
        },
        "x-credit-cost": 1,
        "x-api-id": 20
      }
    },
    "/api/v1/ibangenerator": {
      "get": {
        "tags": [
          "Iban"
        ],
        "summary": "IBAN Generator",
        "description": "Builds check digits from country + BBAN (or bank/account). Response shape matches the IBAN validator.\n\nCost: 1 credit per successful request; failed requests are free.\n\n- Success body is { data: { ... } }. Error body is { code, message }. code is an ApiResponseCode enum value (negative integer).",
        "operationId": "IbanGenerator",
        "parameters": [
          {
            "name": "countryCode",
            "in": "query",
            "description": "ISO country code.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "bban",
            "in": "query",
            "description": "BBAN. Overrides the part fields when set.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "bankIdentifier",
            "in": "query",
            "description": "Bank code. With accountNumber when bban is empty.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "accountNumber",
            "in": "query",
            "description": "Account number. Required when bban is empty.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "branchIdentifier",
            "in": "query",
            "description": "Branch code. Optional.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. Body: { data: { ... } }.\n\nFields of data:\n- `isValid` (boolean): true when the generated IBAN is valid.\n- `iban` (string): Electronic IBAN.\n- `ibanPrint` (string): Print format in groups of 4.\n- `ibanObfuscated` (string): Middle masked.\n- `countryCode` (string): ISO country.\n- `checkDigits` (string): Check digits.\n- `bban` (string): BBAN.\n- `bankIdentifier` (string): Bank identifier.\n- `bankName` (string): Bank name when known.\n- `branchIdentifier` (string): Branch.\n- `sepaMember` (boolean): SEPA member.\n- `isQrIban` (boolean): QR-IBAN range.",
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "isValid": true,
                    "iban": "TR330006100519786457841326",
                    "ibanPrint": "TR33 0006 1005 1978 6457 8413 26",
                    "ibanObfuscated": "TR33 ********************1326",
                    "countryCode": "TR",
                    "checkDigits": "33",
                    "bban": "0006100519786457841326",
                    "bankIdentifier": "00061",
                    "bankName": "T.C.ZİRAAT BANKASI",
                    "branchIdentifier": null,
                    "sepaMember": false,
                    "isQrIban": false
                  }
                }
              }
            }
          },
          "400": {
            "description": "Error. Body: { code, message }.\n\n- code -284: Country/BBAN/parts invalid or length mismatch.\n- code -397: A parameter or the request body could not be read (e.g. text in a numeric field, malformed JSON). message names the invalid fields. No credits are charged."
          },
          "401": {
            "description": "Error. Body: { code, message }.\n\n- code -100: x-api-key is missing, empty, malformed, inactive, banned, expired, IP-restricted, or not allowed for this API."
          },
          "410": {
            "description": "Error. Body: { code, message }.\n\n- code -380: The API has been disabled or retired."
          },
          "413": {
            "description": "Error. Body: { code, message }.\n\n- code -390: The request body exceeds this endpoint's size limit. No credits are charged. For bodies far above the limit the connection may close before the upload finishes; the client may then see 502 instead of 413 (still no credits charged)."
          },
          "429": {
            "description": "Error. Body: { code, message }.\n\n- code -221: Per-minute request limit exceeded. Response headers: x-rate-limit-limit, x-rate-limit-remaining, x-rate-limit-reset.\n- code -395: Package credit quota cannot cover this request. Besides code / message the body also has limit, currentUsage and requestCost.\n- code -394: Too many invalid keys were tried from this IP in a short time. Wait for the Retry-After header duration."
          },
          "500": {
            "description": "Error. Body: { code, message }.\n\n- code -1: Unexpected server error. message is a generic error text without technical details."
          }
        },
        "x-credit-cost": 1,
        "x-api-id": 65
      }
    },
    "/api/v1/imagegenerator/addwatermark": {
      "post": {
        "tags": [
          "ImageGenerator"
        ],
        "summary": "Add Watermark to Image",
        "description": "Draws a text watermark on an image.\n\nCost: 5 credits per successful request; failed requests are free.\n\n- Success body is { data: { ... } }. Error body is { code, message }. code is an ApiResponseCode enum value (negative integer).",
        "operationId": "ImageAddWaterMarkPost",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ImageWatermarkRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ImageWatermarkRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ImageWatermarkRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. Body: { data: { ... } }.\n\nFields of data:\n- `downloadUrl` (string): Signed download URL. Becomes invalid after expires.\n- `format` (string): Output format: png, jpeg or webp.\n- `width` (integer): Output width in pixels.\n- `height` (integer): Output height in pixels.\n- `sizeBytes` (integer): Output file size in bytes.\n- `expires` (number): Unix epoch expiry of the download URL (seconds).",
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "downloadUrl": "https://files.erseapi.com/images/sample/output.png?X-Amz-Expires=86400",
                    "format": "png",
                    "width": 800,
                    "height": 600,
                    "sizeBytes": 48210,
                    "expires": 1771891200
                  }
                }
              }
            }
          },
          "400": {
            "description": "Error. Body: { code, message }.\n\n- code -210: text is empty or longer than 200 characters.\n- code -204: Image missing, invalid base64, empty, over size/resolution limit, or unsupported format (png/jpeg/webp). Resize: width/height missing, or both required for Constant/InsideFixed.\n- code -206: outputFormat is not png, jpeg, jpg or webp.\n- code -400: A color field is not in #RGB, #RGBA, #RRGGBB or #RRGGBBAA format.\n- code -397: A parameter or the request body could not be read (e.g. text in a numeric field, malformed JSON). message names the invalid fields. No credits are charged."
          },
          "401": {
            "description": "Error. Body: { code, message }.\n\n- code -100: x-api-key is missing, empty, malformed, inactive, banned, expired, IP-restricted, or not allowed for this API."
          },
          "410": {
            "description": "Error. Body: { code, message }.\n\n- code -380: The API has been disabled or retired."
          },
          "413": {
            "description": "Error. Body: { code, message }.\n\n- code -390: The request body exceeds this endpoint's size limit. No credits are charged. For bodies far above the limit the connection may close before the upload finishes; the client may then see 502 instead of 413 (still no credits charged)."
          },
          "429": {
            "description": "Error. Body: { code, message }.\n\n- code -221: Per-minute request limit exceeded. Response headers: x-rate-limit-limit, x-rate-limit-remaining, x-rate-limit-reset.\n- code -395: Package credit quota cannot cover this request. Besides code / message the body also has limit, currentUsage and requestCost.\n- code -394: Too many invalid keys were tried from this IP in a short time. Wait for the Retry-After header duration."
          },
          "500": {
            "description": "Error. Body: { code, message }.\n\n- code -207: Output could not be stored.\n- code -208: Download URL could not be created.\n- code -1: Unexpected server error. message is a generic error text without technical details."
          }
        },
        "x-credit-cost": 5,
        "x-api-id": 11
      }
    },
    "/api/v1/imagegenerator/merge": {
      "post": {
        "tags": [
          "ImageGenerator"
        ],
        "summary": "Merge Images",
        "description": "Places a foreground image on a background image.\n\nCost: 5 credits per successful request; failed requests are free.\n\n- Success body is { data: { ... } }. Error body is { code, message }. code is an ApiResponseCode enum value (negative integer).",
        "operationId": "ImageMergePost",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ImageMergeRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ImageMergeRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ImageMergeRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. Body: { data: { ... } }.\n\nFields of data:\n- `downloadUrl` (string): Signed download URL. Becomes invalid after expires.\n- `format` (string): Output format: png, jpeg or webp.\n- `width` (integer): Output width in pixels.\n- `height` (integer): Output height in pixels.\n- `sizeBytes` (integer): Output file size in bytes.\n- `expires` (number): Unix epoch expiry of the download URL (seconds).",
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "downloadUrl": "https://files.erseapi.com/images/sample/output.png?X-Amz-Expires=86400",
                    "format": "png",
                    "width": 800,
                    "height": 600,
                    "sizeBytes": 48210,
                    "expires": 1771891200
                  }
                }
              }
            }
          },
          "400": {
            "description": "Error. Body: { code, message }.\n\n- code -204: Image missing, invalid base64, empty, over size/resolution limit, or unsupported format (png/jpeg/webp). Resize: width/height missing, or both required for Constant/InsideFixed.\n- code -206: outputFormat is not png, jpeg, jpg or webp.\n- code -400: A color field is not in #RGB, #RGBA, #RRGGBB or #RRGGBBAA format.\n- code -397: A parameter or the request body could not be read (e.g. text in a numeric field, malformed JSON). message names the invalid fields. No credits are charged."
          },
          "401": {
            "description": "Error. Body: { code, message }.\n\n- code -100: x-api-key is missing, empty, malformed, inactive, banned, expired, IP-restricted, or not allowed for this API."
          },
          "410": {
            "description": "Error. Body: { code, message }.\n\n- code -380: The API has been disabled or retired."
          },
          "413": {
            "description": "Error. Body: { code, message }.\n\n- code -390: The request body exceeds this endpoint's size limit. No credits are charged. For bodies far above the limit the connection may close before the upload finishes; the client may then see 502 instead of 413 (still no credits charged)."
          },
          "429": {
            "description": "Error. Body: { code, message }.\n\n- code -221: Per-minute request limit exceeded. Response headers: x-rate-limit-limit, x-rate-limit-remaining, x-rate-limit-reset.\n- code -395: Package credit quota cannot cover this request. Besides code / message the body also has limit, currentUsage and requestCost.\n- code -394: Too many invalid keys were tried from this IP in a short time. Wait for the Retry-After header duration."
          },
          "500": {
            "description": "Error. Body: { code, message }.\n\n- code -207: Output could not be stored.\n- code -208: Download URL could not be created.\n- code -1: Unexpected server error. message is a generic error text without technical details."
          }
        },
        "x-credit-cost": 5,
        "x-api-id": 12
      }
    },
    "/api/v1/imagegenerator/resize": {
      "post": {
        "tags": [
          "ImageGenerator"
        ],
        "summary": "Resize Image",
        "description": "Resizes an image.\n\nCost: 5 credits per successful request; failed requests are free.\n\n- Success body is { data: { ... } }. Error body is { code, message }. code is an ApiResponseCode enum value (negative integer).\n- At least one of width or height is required.",
        "operationId": "ImageResizePost",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ImageResizeRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ImageResizeRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ImageResizeRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. Body: { data: { ... } }.\n\nFields of data:\n- `downloadUrl` (string): Signed download URL. Becomes invalid after expires.\n- `format` (string): Output format: png, jpeg or webp.\n- `width` (integer): Output width in pixels.\n- `height` (integer): Output height in pixels.\n- `sizeBytes` (integer): Output file size in bytes.\n- `expires` (number): Unix epoch expiry of the download URL (seconds).",
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "downloadUrl": "https://files.erseapi.com/images/sample/output.png?X-Amz-Expires=86400",
                    "format": "png",
                    "width": 800,
                    "height": 600,
                    "sizeBytes": 48210,
                    "expires": 1771891200
                  }
                }
              }
            }
          },
          "400": {
            "description": "Error. Body: { code, message }.\n\n- code -204: Image missing, invalid base64, empty, over size/resolution limit, or unsupported format (png/jpeg/webp). Resize: width/height missing, or both required for Constant/InsideFixed.\n- code -206: outputFormat is not png, jpeg, jpg or webp.\n- code -400: A color field is not in #RGB, #RGBA, #RRGGBB or #RRGGBBAA format.\n- code -213: resizeMode is not Dynamic, Constant or InsideFixed.\n- code -397: A parameter or the request body could not be read (e.g. text in a numeric field, malformed JSON). message names the invalid fields. No credits are charged."
          },
          "401": {
            "description": "Error. Body: { code, message }.\n\n- code -100: x-api-key is missing, empty, malformed, inactive, banned, expired, IP-restricted, or not allowed for this API."
          },
          "410": {
            "description": "Error. Body: { code, message }.\n\n- code -380: The API has been disabled or retired."
          },
          "413": {
            "description": "Error. Body: { code, message }.\n\n- code -390: The request body exceeds this endpoint's size limit. No credits are charged. For bodies far above the limit the connection may close before the upload finishes; the client may then see 502 instead of 413 (still no credits charged)."
          },
          "429": {
            "description": "Error. Body: { code, message }.\n\n- code -221: Per-minute request limit exceeded. Response headers: x-rate-limit-limit, x-rate-limit-remaining, x-rate-limit-reset.\n- code -395: Package credit quota cannot cover this request. Besides code / message the body also has limit, currentUsage and requestCost.\n- code -394: Too many invalid keys were tried from this IP in a short time. Wait for the Retry-After header duration."
          },
          "500": {
            "description": "Error. Body: { code, message }.\n\n- code -207: Output could not be stored.\n- code -208: Download URL could not be created.\n- code -1: Unexpected server error. message is a generic error text without technical details."
          }
        },
        "x-credit-cost": 5,
        "x-api-id": 13
      }
    },
    "/api/v1/imagegenerator/compress": {
      "post": {
        "tags": [
          "ImageGenerator"
        ],
        "summary": "Compress Image",
        "description": "Compresses an image.\n\nCost: 50 credits per successful request; failed requests are free.\n\n- Success body is { data: { ... } }. Error body is { code, message }. code is an ApiResponseCode enum value (negative integer).",
        "operationId": "ImageCompressPost",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ImageCompressRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ImageCompressRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ImageCompressRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. Body: { data: { ... } }.\n\nFields of data:\n- `downloadUrl` (string): Signed download URL. Becomes invalid after expires.\n- `format` (string): Output format: png, jpeg or webp.\n- `width` (integer): Output width in pixels.\n- `height` (integer): Output height in pixels.\n- `sizeBytes` (integer): Output file size in bytes.\n- `expires` (number): Unix epoch expiry of the download URL (seconds).\n- `rate` (integer): Compression ratio %. (1 - output/input) * 100. Higher means a smaller file.",
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "downloadUrl": "https://files.erseapi.com/images/sample/output.png?X-Amz-Expires=86400",
                    "format": "jpeg",
                    "width": 800,
                    "height": 600,
                    "sizeBytes": 21480,
                    "expires": 1771891200,
                    "rate": 55
                  }
                }
              }
            }
          },
          "400": {
            "description": "Error. Body: { code, message }.\n\n- code -204: Image missing, invalid base64, empty, over size/resolution limit, or unsupported format (png/jpeg/webp). Resize: width/height missing, or both required for Constant/InsideFixed.\n- code -206: outputFormat is not png, jpeg, jpg or webp.\n- code -397: A parameter or the request body could not be read (e.g. text in a numeric field, malformed JSON). message names the invalid fields. No credits are charged."
          },
          "401": {
            "description": "Error. Body: { code, message }.\n\n- code -100: x-api-key is missing, empty, malformed, inactive, banned, expired, IP-restricted, or not allowed for this API."
          },
          "410": {
            "description": "Error. Body: { code, message }.\n\n- code -380: The API has been disabled or retired."
          },
          "413": {
            "description": "Error. Body: { code, message }.\n\n- code -390: The request body exceeds this endpoint's size limit. No credits are charged. For bodies far above the limit the connection may close before the upload finishes; the client may then see 502 instead of 413 (still no credits charged)."
          },
          "429": {
            "description": "Error. Body: { code, message }.\n\n- code -221: Per-minute request limit exceeded. Response headers: x-rate-limit-limit, x-rate-limit-remaining, x-rate-limit-reset.\n- code -395: Package credit quota cannot cover this request. Besides code / message the body also has limit, currentUsage and requestCost.\n- code -394: Too many invalid keys were tried from this IP in a short time. Wait for the Retry-After header duration."
          },
          "500": {
            "description": "Error. Body: { code, message }.\n\n- code -207: Output could not be stored.\n- code -208: Download URL could not be created.\n- code -1: Unexpected server error. message is a generic error text without technical details."
          },
          "503": {
            "description": "Error. Body: { code, message }.\n\n- code -216: Compression queue/service is busy. Retry later."
          }
        },
        "x-credit-cost": 50,
        "x-api-id": 14
      }
    },
    "/api/v1/maps/geocode": {
      "get": {
        "tags": [
          "Maps"
        ],
        "summary": "Address Geocoding",
        "description": "Converts an address to coordinates (Google Geocoding).\n\nCost: 100 credits per successful request; failed requests are free.\n\n- Success body is { data: { ... } }. Error body is { code, message }. code is an ApiResponseCode enum value (negative integer).",
        "operationId": "MapsGeocode",
        "parameters": [
          {
            "name": "address",
            "in": "query",
            "description": "Address text.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "includeAll",
            "in": "query",
            "description": "If true, all candidate results. Values: true, false.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. Body: { data: { ... } }.\n\nFields of data:\n- `results` (array): Candidate addresses. Usually one item (best match) when includeAll=false.\n- `results[].formattedAddress` (string): Single-line formatted address.\n- `results[].latitude` (number): Latitude WGS84.\n- `results[].longitude` (number): Longitude WGS84.\n- `results[].accuracy` (string): Location accuracy. Example: rooftop, range_interpolated, geometric_center, approximate.\n- `results[].isPartialMatch` (boolean): true when Google returned a partial match (address did not fully match).\n- `results[].countryCode` (string): ISO country code (TR, EE ...).\n- `results[].country` (string): Country name.\n- `results[].region` (string): Region / province (administrative_area_level_1).\n- `results[].district` (string): District.\n- `results[].locality` (string): Locality / city.\n- `results[].neighborhood` (string): Neighborhood.\n- `results[].postalCode` (string): Postal code.\n- `results[].street` (string): Street name.\n- `results[].streetNumber` (string): Street number.\n- `results[].level` (string): Result level. Example: street, locality, country.\n- `results[].viewport` (object): Map viewport with northeast and southwest points.\n- `results[].viewport.northeast.latitude` (number): Viewport northeast latitude.\n- `results[].viewport.northeast.longitude` (number): Viewport northeast longitude.\n- `results[].viewport.southwest.latitude` (number): Viewport southwest latitude.\n- `results[].viewport.southwest.longitude` (number): Viewport southwest longitude.",
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "results": [
                      {
                        "formattedAddress": "Moda Caddesi No:12, Kadıköy/İstanbul, Türkiye",
                        "latitude": 40.98765,
                        "longitude": 29.02541,
                        "accuracy": "rooftop",
                        "isPartialMatch": false,
                        "countryCode": "TR",
                        "country": "Türkiye",
                        "region": "İstanbul",
                        "district": "Kadıköy",
                        "locality": "İstanbul",
                        "neighborhood": "Moda",
                        "postalCode": "34710",
                        "street": "Moda Caddesi",
                        "streetNumber": "12",
                        "level": "street",
                        "viewport": {
                          "northeast": {
                            "latitude": 40.9889,
                            "longitude": 29.0267
                          },
                          "southwest": {
                            "latitude": 40.9863,
                            "longitude": 29.0241
                          }
                        }
                      }
                    ]
                  }
                }
              }
            }
          },
          "400": {
            "description": "Error. Body: { code, message }.\n\n- code -231: address is empty or too long.\n- code -401: Google rejected the input as invalid (INVALID_REQUEST). No credits are charged.\n- code -397: A parameter or the request body could not be read (e.g. text in a numeric field, malformed JSON). message names the invalid fields. No credits are charged."
          },
          "401": {
            "description": "Error. Body: { code, message }.\n\n- code -100: x-api-key is missing, empty, malformed, inactive, banned, expired, IP-restricted, or not allowed for this API."
          },
          "410": {
            "description": "Error. Body: { code, message }.\n\n- code -380: The API has been disabled or retired."
          },
          "413": {
            "description": "Error. Body: { code, message }.\n\n- code -390: The request body exceeds this endpoint's size limit. No credits are charged. For bodies far above the limit the connection may close before the upload finishes; the client may then see 502 instead of 413 (still no credits charged)."
          },
          "429": {
            "description": "Error. Body: { code, message }.\n\n- code -221: Per-minute request limit exceeded. Response headers: x-rate-limit-limit, x-rate-limit-remaining, x-rate-limit-reset.\n- code -395: Package credit quota cannot cover this request. Besides code / message the body also has limit, currentUsage and requestCost.\n- code -394: Too many invalid keys were tried from this IP in a short time. Wait for the Retry-After header duration."
          },
          "500": {
            "description": "Error. Body: { code, message }.\n\n- code -237: Google Maps service is not configured.\n- code -1: Unexpected server error. message is a generic error text without technical details."
          },
          "502": {
            "description": "Error. Body: { code, message }.\n\n- code -238: Google Geocoding returned an error (third party; not counted as downtime in the SLA)."
          },
          "503": {
            "description": "Error. Body: { code, message }.\n\n- code -238: Google Geocoding unreachable, timed out or rate-limited (third party; retry after Retry-After)."
          }
        },
        "x-credit-cost": 100,
        "x-api-id": 31
      }
    },
    "/api/v1/maps/reversegeocode": {
      "get": {
        "tags": [
          "Maps"
        ],
        "summary": "Reverse Geocoding",
        "description": "Converts coordinates to an address.\n\nCost: 100 credits per successful request; failed requests are free.\n\n- Success body is { data: { ... } }. Error body is { code, message }. code is an ApiResponseCode enum value (negative integer).",
        "operationId": "MapsReverseGeocode",
        "parameters": [
          {
            "name": "latitude",
            "in": "query",
            "description": "-90 .. 90.",
            "required": true,
            "schema": {
              "type": "number",
              "format": "double"
            }
          },
          {
            "name": "longitude",
            "in": "query",
            "description": "-180 .. 180.",
            "required": true,
            "schema": {
              "type": "number",
              "format": "double"
            }
          },
          {
            "name": "includeAll",
            "in": "query",
            "description": "All candidates. Values: true, false.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. Body: { data: { ... } }.\n\nFields of data:\n- `results` (array): Candidate addresses. Usually one item (best match) when includeAll=false.\n- `results[].formattedAddress` (string): Single-line formatted address.\n- `results[].latitude` (number): Latitude WGS84.\n- `results[].longitude` (number): Longitude WGS84.\n- `results[].accuracy` (string): Location accuracy. Example: rooftop, range_interpolated, geometric_center, approximate.\n- `results[].isPartialMatch` (boolean): true when Google returned a partial match (address did not fully match).\n- `results[].countryCode` (string): ISO country code (TR, EE ...).\n- `results[].country` (string): Country name.\n- `results[].region` (string): Region / province (administrative_area_level_1).\n- `results[].district` (string): District.\n- `results[].locality` (string): Locality / city.\n- `results[].neighborhood` (string): Neighborhood.\n- `results[].postalCode` (string): Postal code.\n- `results[].street` (string): Street name.\n- `results[].streetNumber` (string): Street number.\n- `results[].level` (string): Result level. Example: street, locality, country.\n- `results[].viewport` (object): Map viewport with northeast and southwest points.\n- `results[].viewport.northeast.latitude` (number): Viewport northeast latitude.\n- `results[].viewport.northeast.longitude` (number): Viewport northeast longitude.\n- `results[].viewport.southwest.latitude` (number): Viewport southwest latitude.\n- `results[].viewport.southwest.longitude` (number): Viewport southwest longitude.",
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "results": [
                      {
                        "formattedAddress": "Moda Caddesi No:12, Kadıköy/İstanbul, Türkiye",
                        "latitude": 40.98765,
                        "longitude": 29.02541,
                        "accuracy": "rooftop",
                        "isPartialMatch": false,
                        "countryCode": "TR",
                        "country": "Türkiye",
                        "region": "İstanbul",
                        "district": "Kadıköy",
                        "locality": "İstanbul",
                        "neighborhood": "Moda",
                        "postalCode": "34710",
                        "street": "Moda Caddesi",
                        "streetNumber": "12",
                        "level": "street",
                        "viewport": {
                          "northeast": {
                            "latitude": 40.9889,
                            "longitude": 29.0267
                          },
                          "southwest": {
                            "latitude": 40.9863,
                            "longitude": 29.0241
                          }
                        }
                      }
                    ]
                  }
                }
              }
            }
          },
          "400": {
            "description": "Error. Body: { code, message }.\n\n- code -232: latitude is outside -90..90.\n- code -233: longitude is outside -180..180.\n- code -401: Google rejected the input as invalid (INVALID_REQUEST). No credits are charged.\n- code -397: A parameter or the request body could not be read (e.g. text in a numeric field, malformed JSON). message names the invalid fields. No credits are charged."
          },
          "401": {
            "description": "Error. Body: { code, message }.\n\n- code -100: x-api-key is missing, empty, malformed, inactive, banned, expired, IP-restricted, or not allowed for this API."
          },
          "410": {
            "description": "Error. Body: { code, message }.\n\n- code -380: The API has been disabled or retired."
          },
          "413": {
            "description": "Error. Body: { code, message }.\n\n- code -390: The request body exceeds this endpoint's size limit. No credits are charged. For bodies far above the limit the connection may close before the upload finishes; the client may then see 502 instead of 413 (still no credits charged)."
          },
          "429": {
            "description": "Error. Body: { code, message }.\n\n- code -221: Per-minute request limit exceeded. Response headers: x-rate-limit-limit, x-rate-limit-remaining, x-rate-limit-reset.\n- code -395: Package credit quota cannot cover this request. Besides code / message the body also has limit, currentUsage and requestCost.\n- code -394: Too many invalid keys were tried from this IP in a short time. Wait for the Retry-After header duration."
          },
          "500": {
            "description": "Error. Body: { code, message }.\n\n- code -237: Google Maps service is not configured.\n- code -1: Unexpected server error. message is a generic error text without technical details."
          },
          "502": {
            "description": "Error. Body: { code, message }.\n\n- code -238: Google reverse geocoding returned an error (third party; not counted as downtime in the SLA)."
          },
          "503": {
            "description": "Error. Body: { code, message }.\n\n- code -238: Google reverse geocoding unreachable, timed out or rate-limited (third party; retry after Retry-After)."
          }
        },
        "x-credit-cost": 100,
        "x-api-id": 32
      }
    },
    "/api/v1/maps/polygon": {
      "post": {
        "tags": [
          "Maps"
        ],
        "summary": "Polygon Calculation",
        "description": "Computes polygon area, center and bounding box.\n\nCost: 1 credit per successful request; failed requests are free.\n\n- Success body is { data: { ... } }. Error body is { code, message }. code is an ApiResponseCode enum value (negative integer).",
        "operationId": "MapsPolygonPost",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MapsPolygonRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/MapsPolygonRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/MapsPolygonRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. Body: { data: { ... } }.\n\nFields of data:\n- `areaSquareMeters` (number): Polygon area in square meters (spherical).\n- `areaSquareKilometers` (number): Polygon area in km². areaSquareMeters / 1e6.\n- `center` (object): Geographic center of the polygon.\n- `center.latitude` (number): Center latitude.\n- `center.longitude` (number): Center longitude.\n- `boundingBox` (object): Four corners of the bounding rectangle.\n- `boundingBox.southwest` (object): Southwest corner {latitude, longitude}.\n- `boundingBox.southeast` (object): Southeast corner {latitude, longitude}.\n- `boundingBox.northeast` (object): Northeast corner {latitude, longitude}.\n- `boundingBox.northwest` (object): Northwest corner {latitude, longitude}.",
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "areaSquareMeters": 18452.31,
                    "areaSquareKilometers": 0.01845231,
                    "center": {
                      "latitude": 41.0115,
                      "longitude": 28.978
                    },
                    "boundingBox": {
                      "southwest": {
                        "latitude": 41.008,
                        "longitude": 28.97
                      },
                      "southeast": {
                        "latitude": 41.008,
                        "longitude": 28.986
                      },
                      "northeast": {
                        "latitude": 41.015,
                        "longitude": 28.986
                      },
                      "northwest": {
                        "latitude": 41.015,
                        "longitude": 28.97
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Error. Body: { code, message }.\n\n- code -234: path is missing or empty.\n- code -235: path must contain 3–500 points.\n- code -236: A path point has an invalid latitude/longitude.\n- code -397: A parameter or the request body could not be read (e.g. text in a numeric field, malformed JSON). message names the invalid fields. No credits are charged."
          },
          "401": {
            "description": "Error. Body: { code, message }.\n\n- code -100: x-api-key is missing, empty, malformed, inactive, banned, expired, IP-restricted, or not allowed for this API."
          },
          "410": {
            "description": "Error. Body: { code, message }.\n\n- code -380: The API has been disabled or retired."
          },
          "413": {
            "description": "Error. Body: { code, message }.\n\n- code -390: The request body exceeds this endpoint's size limit. No credits are charged. For bodies far above the limit the connection may close before the upload finishes; the client may then see 502 instead of 413 (still no credits charged)."
          },
          "429": {
            "description": "Error. Body: { code, message }.\n\n- code -221: Per-minute request limit exceeded. Response headers: x-rate-limit-limit, x-rate-limit-remaining, x-rate-limit-reset.\n- code -395: Package credit quota cannot cover this request. Besides code / message the body also has limit, currentUsage and requestCost.\n- code -394: Too many invalid keys were tried from this IP in a short time. Wait for the Retry-After header duration."
          },
          "500": {
            "description": "Error. Body: { code, message }.\n\n- code -1: Unexpected server error. message is a generic error text without technical details."
          }
        },
        "x-credit-cost": 1,
        "x-api-id": 33
      }
    },
    "/api/v1/maps/distance": {
      "get": {
        "tags": [
          "Maps"
        ],
        "summary": "Distance Calculation",
        "description": "Haversine distance between two points.\n\nCost: 1 credit per successful request; failed requests are free.\n\n- Success body is { data: { ... } }. Error body is { code, message }. code is an ApiResponseCode enum value (negative integer).",
        "operationId": "MapsDistance",
        "parameters": [
          {
            "name": "fromLatitude",
            "in": "query",
            "description": "From latitude.",
            "required": true,
            "schema": {
              "type": "number",
              "format": "double"
            }
          },
          {
            "name": "fromLongitude",
            "in": "query",
            "description": "From longitude.",
            "required": true,
            "schema": {
              "type": "number",
              "format": "double"
            }
          },
          {
            "name": "toLatitude",
            "in": "query",
            "description": "To latitude.",
            "required": true,
            "schema": {
              "type": "number",
              "format": "double"
            }
          },
          {
            "name": "toLongitude",
            "in": "query",
            "description": "To longitude.",
            "required": true,
            "schema": {
              "type": "number",
              "format": "double"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. Body: { data: { ... } }.\n\nFields of data:\n- `distanceMeters` (number): Haversine distance in meters. Great-circle (WGS84).\n- `distanceKilometers` (number): Haversine distance in kilometers. distanceMeters / 1000.",
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "distanceMeters": 6124.18,
                    "distanceKilometers": 6.12418
                  }
                }
              }
            }
          },
          "400": {
            "description": "Error. Body: { code, message }.\n\n- code -232: fromLatitude or toLatitude is outside -90..90.\n- code -233: fromLongitude or toLongitude is outside -180..180.\n- code -397: A parameter or the request body could not be read (e.g. text in a numeric field, malformed JSON). message names the invalid fields. No credits are charged."
          },
          "401": {
            "description": "Error. Body: { code, message }.\n\n- code -100: x-api-key is missing, empty, malformed, inactive, banned, expired, IP-restricted, or not allowed for this API."
          },
          "410": {
            "description": "Error. Body: { code, message }.\n\n- code -380: The API has been disabled or retired."
          },
          "413": {
            "description": "Error. Body: { code, message }.\n\n- code -390: The request body exceeds this endpoint's size limit. No credits are charged. For bodies far above the limit the connection may close before the upload finishes; the client may then see 502 instead of 413 (still no credits charged)."
          },
          "429": {
            "description": "Error. Body: { code, message }.\n\n- code -221: Per-minute request limit exceeded. Response headers: x-rate-limit-limit, x-rate-limit-remaining, x-rate-limit-reset.\n- code -395: Package credit quota cannot cover this request. Besides code / message the body also has limit, currentUsage and requestCost.\n- code -394: Too many invalid keys were tried from this IP in a short time. Wait for the Retry-After header duration."
          },
          "500": {
            "description": "Error. Body: { code, message }.\n\n- code -1: Unexpected server error. message is a generic error text without technical details."
          }
        },
        "x-credit-cost": 1,
        "x-api-id": 34
      }
    },
    "/api/v1/maps/bearing": {
      "get": {
        "tags": [
          "Maps"
        ],
        "summary": "Bearing Calculation",
        "description": "Bearing between two points.\n\nCost: 1 credit per successful request; failed requests are free.\n\n- Success body is { data: { ... } }. Error body is { code, message }. code is an ApiResponseCode enum value (negative integer).",
        "operationId": "MapsBearing",
        "parameters": [
          {
            "name": "fromLatitude",
            "in": "query",
            "description": "From latitude.",
            "required": true,
            "schema": {
              "type": "number",
              "format": "double"
            }
          },
          {
            "name": "fromLongitude",
            "in": "query",
            "description": "From longitude.",
            "required": true,
            "schema": {
              "type": "number",
              "format": "double"
            }
          },
          {
            "name": "toLatitude",
            "in": "query",
            "description": "To latitude.",
            "required": true,
            "schema": {
              "type": "number",
              "format": "double"
            }
          },
          {
            "name": "toLongitude",
            "in": "query",
            "description": "To longitude.",
            "required": true,
            "schema": {
              "type": "number",
              "format": "double"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. Body: { data: { ... } }.\n\nFields of data:\n- `bearingDegrees` (number): Initial bearing from start to end. 0–360 degrees. 0=north, 90=east.\n- `bearingRadians` (number): The same bearing in radians.",
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "bearingDegrees": 328.41,
                    "bearingRadians": 5.73172
                  }
                }
              }
            }
          },
          "400": {
            "description": "Error. Body: { code, message }.\n\n- code -232: fromLatitude or toLatitude is outside -90..90.\n- code -233: fromLongitude or toLongitude is outside -180..180.\n- code -397: A parameter or the request body could not be read (e.g. text in a numeric field, malformed JSON). message names the invalid fields. No credits are charged."
          },
          "401": {
            "description": "Error. Body: { code, message }.\n\n- code -100: x-api-key is missing, empty, malformed, inactive, banned, expired, IP-restricted, or not allowed for this API."
          },
          "410": {
            "description": "Error. Body: { code, message }.\n\n- code -380: The API has been disabled or retired."
          },
          "413": {
            "description": "Error. Body: { code, message }.\n\n- code -390: The request body exceeds this endpoint's size limit. No credits are charged. For bodies far above the limit the connection may close before the upload finishes; the client may then see 502 instead of 413 (still no credits charged)."
          },
          "429": {
            "description": "Error. Body: { code, message }.\n\n- code -221: Per-minute request limit exceeded. Response headers: x-rate-limit-limit, x-rate-limit-remaining, x-rate-limit-reset.\n- code -395: Package credit quota cannot cover this request. Besides code / message the body also has limit, currentUsage and requestCost.\n- code -394: Too many invalid keys were tried from this IP in a short time. Wait for the Retry-After header duration."
          },
          "500": {
            "description": "Error. Body: { code, message }.\n\n- code -1: Unexpected server error. message is a generic error text without technical details."
          }
        },
        "x-credit-cost": 1,
        "x-api-id": 37
      }
    },
    "/api/v1/maps/pathlength": {
      "post": {
        "tags": [
          "Maps"
        ],
        "summary": "Path Length",
        "description": "Length of a path (point array).\n\nCost: 1 credit per successful request; failed requests are free.\n\n- Success body is { data: { ... } }. Error body is { code, message }. code is an ApiResponseCode enum value (negative integer).",
        "operationId": "MapsPathLengthPost",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MapsPathLengthRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/MapsPathLengthRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/MapsPathLengthRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. Body: { data: { ... } }.\n\nFields of data:\n- `lengthMeters` (number): Sum of haversine segment lengths in meters.\n- `lengthKilometers` (number): Total length in km. lengthMeters / 1000.\n- `pointCount` (integer): Number of points in path.\n- `segmentCount` (integer): Segment count = pointCount - 1.\n- `segments` (array): Each segment when includeSegments=true. Empty array when false.\n- `segments[].index` (integer): Segment index (1-based).\n- `segments[].from` (object): Segment start {latitude, longitude}.\n- `segments[].to` (object): Segment end {latitude, longitude}.\n- `segments[].distanceMeters` (number): This segment's distance in meters.\n- `segments[].distanceKilometers` (number): This segment's distance in km.",
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "lengthMeters": 3462.21,
                    "lengthKilometers": 3.46221,
                    "pointCount": 4,
                    "segmentCount": 3,
                    "segments": [
                      {
                        "index": 1,
                        "from": {
                          "latitude": 41.008,
                          "longitude": 28.97
                        },
                        "to": {
                          "latitude": 41.008,
                          "longitude": 28.986
                        },
                        "distanceMeters": 1342.1,
                        "distanceKilometers": 1.3421
                      },
                      {
                        "index": 2,
                        "from": {
                          "latitude": 41.008,
                          "longitude": 28.986
                        },
                        "to": {
                          "latitude": 41.015,
                          "longitude": 28.986
                        },
                        "distanceMeters": 778.01,
                        "distanceKilometers": 0.77801
                      },
                      {
                        "index": 3,
                        "from": {
                          "latitude": 41.015,
                          "longitude": 28.986
                        },
                        "to": {
                          "latitude": 41.015,
                          "longitude": 28.97
                        },
                        "distanceMeters": 1342.1,
                        "distanceKilometers": 1.3421
                      }
                    ]
                  }
                }
              }
            }
          },
          "400": {
            "description": "Error. Body: { code, message }.\n\n- code -234: path is missing or empty.\n- code -239: path must contain 2–500 points.\n- code -236: A path point has an invalid latitude/longitude.\n- code -397: A parameter or the request body could not be read (e.g. text in a numeric field, malformed JSON). message names the invalid fields. No credits are charged."
          },
          "401": {
            "description": "Error. Body: { code, message }.\n\n- code -100: x-api-key is missing, empty, malformed, inactive, banned, expired, IP-restricted, or not allowed for this API."
          },
          "410": {
            "description": "Error. Body: { code, message }.\n\n- code -380: The API has been disabled or retired."
          },
          "413": {
            "description": "Error. Body: { code, message }.\n\n- code -390: The request body exceeds this endpoint's size limit. No credits are charged. For bodies far above the limit the connection may close before the upload finishes; the client may then see 502 instead of 413 (still no credits charged)."
          },
          "429": {
            "description": "Error. Body: { code, message }.\n\n- code -221: Per-minute request limit exceeded. Response headers: x-rate-limit-limit, x-rate-limit-remaining, x-rate-limit-reset.\n- code -395: Package credit quota cannot cover this request. Besides code / message the body also has limit, currentUsage and requestCost.\n- code -394: Too many invalid keys were tried from this IP in a short time. Wait for the Retry-After header duration."
          },
          "500": {
            "description": "Error. Body: { code, message }.\n\n- code -1: Unexpected server error. message is a generic error text without technical details."
          }
        },
        "x-credit-cost": 1,
        "x-api-id": 36
      }
    },
    "/api/v1/maps/pointinpolygon": {
      "post": {
        "tags": [
          "Maps"
        ],
        "summary": "Point In Polygon",
        "description": "Whether a point is inside a polygon.\n\nCost: 1 credit per successful request; failed requests are free.\n\n- Success body is { data: { ... } }. Error body is { code, message }. code is an ApiResponseCode enum value (negative integer).",
        "operationId": "MapsPointInPolygonPost",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MapsPointInPolygonRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/MapsPointInPolygonRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/MapsPointInPolygonRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. Body: { data: { ... } }.\n\nFields of data:\n- `inside` (boolean): true when the point is inside or on the edge of the polygon. Ray-casting.",
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "inside": true
                  }
                }
              }
            }
          },
          "400": {
            "description": "Error. Body: { code, message }.\n\n- code -240: Point (latitude/longitude) is missing.\n- code -236: Point or a path coordinate is invalid.\n- code -234: path is missing or empty.\n- code -235: path must contain 3–500 points.\n- code -397: A parameter or the request body could not be read (e.g. text in a numeric field, malformed JSON). message names the invalid fields. No credits are charged."
          },
          "401": {
            "description": "Error. Body: { code, message }.\n\n- code -100: x-api-key is missing, empty, malformed, inactive, banned, expired, IP-restricted, or not allowed for this API."
          },
          "410": {
            "description": "Error. Body: { code, message }.\n\n- code -380: The API has been disabled or retired."
          },
          "413": {
            "description": "Error. Body: { code, message }.\n\n- code -390: The request body exceeds this endpoint's size limit. No credits are charged. For bodies far above the limit the connection may close before the upload finishes; the client may then see 502 instead of 413 (still no credits charged)."
          },
          "429": {
            "description": "Error. Body: { code, message }.\n\n- code -221: Per-minute request limit exceeded. Response headers: x-rate-limit-limit, x-rate-limit-remaining, x-rate-limit-reset.\n- code -395: Package credit quota cannot cover this request. Besides code / message the body also has limit, currentUsage and requestCost.\n- code -394: Too many invalid keys were tried from this IP in a short time. Wait for the Retry-After header duration."
          },
          "500": {
            "description": "Error. Body: { code, message }.\n\n- code -1: Unexpected server error. message is a generic error text without technical details."
          }
        },
        "x-credit-cost": 1,
        "x-api-id": 35
      }
    },
    "/api/v1/markets/doviz": {
      "get": {
        "tags": [
          "Market"
        ],
        "summary": "Live Forex",
        "description": "Live FX prices.\n\nCost: 1 credit per successful request; failed requests are free.\n\n- Success body is { data: { ... } }. Error body is { code, message }. code is an ApiResponseCode enum value (negative integer).",
        "operationId": "LiveDoviz",
        "parameters": [
          {
            "name": "code",
            "in": "query",
            "description": "Symbol. The list shows always-present common symbols; for the full list call without code and read items[].code. Empty returns the summary list. Values: USD, EUR, GBP, CHF, CAD, AUD, JPY, SAR, RUB, AED, DKK, SEK, NOK.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. Body: { data: { ... } }.\n\nFields of data:\n- `list` (string): Market list name (doviz, altin, kripto, emtia).\n- `updatedAtUtc` (string): Last update time of the list (UTC ISO datetime).\n- `items` (array): Symbol prices. A single item when code is set.\n- `items[].code` (string): Symbol code. Example: USD, GA, BTC, COIL.\n- `items[].buying` (number): Buying price.\n- `items[].selling` (number): Selling price. May equal buying on single-price markets.\n- `items[].change` (number): Absolute change (buying side).\n- `items[].changePercent` (number): Percent change.\n- `items[].direction` (string): Direction: up, down or flat.\n- `items[].currency` (string): Price currency (TRY, USD ...).\n- `items[].currencySymbol` (string): Currency symbol (₺, $ ...).",
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "list": "doviz",
                    "updatedAtUtc": "2026-08-20T12:00:00",
                    "items": [
                      {
                        "code": "USD",
                        "buying": 47.9434,
                        "selling": 47.9848,
                        "change": 0.07,
                        "changePercent": 0.0336,
                        "direction": "up",
                        "currency": "TRY",
                        "currencySymbol": "₺"
                      },
                      {
                        "code": "EUR",
                        "buying": 56.1057,
                        "selling": 56.1478,
                        "change": 0.18,
                        "changePercent": 0.1011,
                        "direction": "up",
                        "currency": "TRY",
                        "currencySymbol": "₺"
                      },
                      {
                        "code": "GBP",
                        "buying": 65.0155,
                        "selling": 65.3414,
                        "change": -0.03,
                        "changePercent": -0.0196,
                        "direction": "down",
                        "currency": "TRY",
                        "currencySymbol": "₺"
                      }
                    ]
                  }
                }
              }
            }
          },
          "400": {
            "description": "Error. Body: { code, message }.\n\n- code -230: code is not in this list.\n- code -397: A parameter or the request body could not be read (e.g. text in a numeric field, malformed JSON). message names the invalid fields. No credits are charged."
          },
          "401": {
            "description": "Error. Body: { code, message }.\n\n- code -100: x-api-key is missing, empty, malformed, inactive, banned, expired, IP-restricted, or not allowed for this API."
          },
          "410": {
            "description": "Error. Body: { code, message }.\n\n- code -380: The API has been disabled or retired."
          },
          "413": {
            "description": "Error. Body: { code, message }.\n\n- code -390: The request body exceeds this endpoint's size limit. No credits are charged. For bodies far above the limit the connection may close before the upload finishes; the client may then see 502 instead of 413 (still no credits charged)."
          },
          "429": {
            "description": "Error. Body: { code, message }.\n\n- code -221: Per-minute request limit exceeded. Response headers: x-rate-limit-limit, x-rate-limit-remaining, x-rate-limit-reset.\n- code -395: Package credit quota cannot cover this request. Besides code / message the body also has limit, currentUsage and requestCost.\n- code -394: Too many invalid keys were tried from this IP in a short time. Wait for the Retry-After header duration."
          },
          "500": {
            "description": "Error. Body: { code, message }.\n\n- code -1: Unexpected server error. message is a generic error text without technical details."
          },
          "503": {
            "description": "Error. Body: { code, message }.\n\n- code -229: Live market cache is not available yet.\n- code -396: Market data has not been updated for more than 60 minutes; stale data is not returned. No credits are charged."
          }
        },
        "x-credit-cost": 1,
        "x-api-id": 27
      }
    },
    "/api/v1/markets/altin": {
      "get": {
        "tags": [
          "Market"
        ],
        "summary": "Live Gold",
        "description": "Live gold prices.\n\nCost: 1 credit per successful request; failed requests are free.\n\n- Success body is { data: { ... } }. Error body is { code, message }. code is an ApiResponseCode enum value (negative integer).",
        "operationId": "LiveAltin",
        "parameters": [
          {
            "name": "code",
            "in": "query",
            "description": "Symbol. The list shows always-present common symbols; for the full list call without code and read items[].code. Empty returns the summary list. Values: GA, C, Y, T, ATA, CUM, 22A, 18A, 14A, ONS, GUMUS, XAUUSD.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. Body: { data: { ... } }.\n\nFields of data:\n- `list` (string): Market list name (doviz, altin, kripto, emtia).\n- `updatedAtUtc` (string): Last update time of the list (UTC ISO datetime).\n- `items` (array): Symbol prices. A single item when code is set.\n- `items[].code` (string): Symbol code. Example: USD, GA, BTC, COIL.\n- `items[].buying` (number): Buying price.\n- `items[].selling` (number): Selling price. May equal buying on single-price markets.\n- `items[].change` (number): Absolute change (buying side).\n- `items[].changePercent` (number): Percent change.\n- `items[].direction` (string): Direction: up, down or flat.\n- `items[].currency` (string): Price currency (TRY, USD ...).\n- `items[].currencySymbol` (string): Currency symbol (₺, $ ...).",
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "list": "altin",
                    "updatedAtUtc": "2026-08-20T12:00:00",
                    "items": [
                      {
                        "code": "GA",
                        "buying": 6967.19,
                        "selling": 6968.16,
                        "change": -0.01,
                        "changePercent": -0.70,
                        "direction": "down",
                        "currency": "TRY",
                        "currencySymbol": "₺"
                      },
                      {
                        "code": "C",
                        "buying": 11283.97,
                        "selling": 11465.27,
                        "change": -0.05,
                        "changePercent": -5.73,
                        "direction": "down",
                        "currency": "TRY",
                        "currencySymbol": "₺"
                      },
                      {
                        "code": "XAUUSD",
                        "buying": 4518.79,
                        "selling": 4519.41,
                        "change": -0.08,
                        "changePercent": -3.62,
                        "direction": "down",
                        "currency": "USD",
                        "currencySymbol": "$"
                      }
                    ]
                  }
                }
              }
            }
          },
          "400": {
            "description": "Error. Body: { code, message }.\n\n- code -230: code is not in this list.\n- code -397: A parameter or the request body could not be read (e.g. text in a numeric field, malformed JSON). message names the invalid fields. No credits are charged."
          },
          "401": {
            "description": "Error. Body: { code, message }.\n\n- code -100: x-api-key is missing, empty, malformed, inactive, banned, expired, IP-restricted, or not allowed for this API."
          },
          "410": {
            "description": "Error. Body: { code, message }.\n\n- code -380: The API has been disabled or retired."
          },
          "413": {
            "description": "Error. Body: { code, message }.\n\n- code -390: The request body exceeds this endpoint's size limit. No credits are charged. For bodies far above the limit the connection may close before the upload finishes; the client may then see 502 instead of 413 (still no credits charged)."
          },
          "429": {
            "description": "Error. Body: { code, message }.\n\n- code -221: Per-minute request limit exceeded. Response headers: x-rate-limit-limit, x-rate-limit-remaining, x-rate-limit-reset.\n- code -395: Package credit quota cannot cover this request. Besides code / message the body also has limit, currentUsage and requestCost.\n- code -394: Too many invalid keys were tried from this IP in a short time. Wait for the Retry-After header duration."
          },
          "500": {
            "description": "Error. Body: { code, message }.\n\n- code -1: Unexpected server error. message is a generic error text without technical details."
          },
          "503": {
            "description": "Error. Body: { code, message }.\n\n- code -229: Live market cache is not available yet.\n- code -396: Market data has not been updated for more than 60 minutes; stale data is not returned. No credits are charged."
          }
        },
        "x-credit-cost": 1,
        "x-api-id": 28
      }
    },
    "/api/v1/markets/crypto": {
      "get": {
        "tags": [
          "Market"
        ],
        "summary": "Live Crypto",
        "description": "Live crypto prices.\n\nCost: 1 credit per successful request; failed requests are free.\n\n- Success body is { data: { ... } }. Error body is { code, message }. code is an ApiResponseCode enum value (negative integer).",
        "operationId": "LiveCrypto",
        "parameters": [
          {
            "name": "code",
            "in": "query",
            "description": "Symbol. The list shows always-present common symbols; for the full list call without code and read items[].code. Empty returns the summary list. Values: BTC, ETH, USDT, BNB, XRP, SOL, ADA, DOGE, TRX, DOT.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. Body: { data: { ... } }.\n\nFields of data:\n- `list` (string): Market list name (doviz, altin, kripto, emtia).\n- `updatedAtUtc` (string): Last update time of the list (UTC ISO datetime).\n- `items` (array): Symbol prices. A single item when code is set.\n- `items[].code` (string): Symbol code. Example: USD, GA, BTC, COIL.\n- `items[].buying` (number): Buying price.\n- `items[].selling` (number): Selling price. May equal buying on single-price markets.\n- `items[].change` (number): Absolute change (buying side).\n- `items[].changePercent` (number): Percent change.\n- `items[].direction` (string): Direction: up, down or flat.\n- `items[].currency` (string): Price currency (TRY, USD ...).\n- `items[].currencySymbol` (string): Currency symbol (₺, $ ...).",
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "list": "kripto",
                    "updatedAtUtc": "2026-08-20T12:00:00",
                    "items": [
                      {
                        "code": "BTC",
                        "buying": 69315.92,
                        "selling": 69315.92,
                        "change": 0.29,
                        "changePercent": 201.02,
                        "direction": "up",
                        "currency": "USD",
                        "currencySymbol": "$"
                      },
                      {
                        "code": "ETH",
                        "buying": 2245.66,
                        "selling": 2245.66,
                        "change": 1.24,
                        "changePercent": 27.85,
                        "direction": "up",
                        "currency": "USD",
                        "currencySymbol": "$"
                      },
                      {
                        "code": "USDT",
                        "buying": 1.00,
                        "selling": 1.00,
                        "change": -0.04,
                        "changePercent": 0.00,
                        "direction": "down",
                        "currency": "USD",
                        "currencySymbol": "$"
                      }
                    ]
                  }
                }
              }
            }
          },
          "400": {
            "description": "Error. Body: { code, message }.\n\n- code -230: code is not in this list.\n- code -397: A parameter or the request body could not be read (e.g. text in a numeric field, malformed JSON). message names the invalid fields. No credits are charged."
          },
          "401": {
            "description": "Error. Body: { code, message }.\n\n- code -100: x-api-key is missing, empty, malformed, inactive, banned, expired, IP-restricted, or not allowed for this API."
          },
          "410": {
            "description": "Error. Body: { code, message }.\n\n- code -380: The API has been disabled or retired."
          },
          "413": {
            "description": "Error. Body: { code, message }.\n\n- code -390: The request body exceeds this endpoint's size limit. No credits are charged. For bodies far above the limit the connection may close before the upload finishes; the client may then see 502 instead of 413 (still no credits charged)."
          },
          "429": {
            "description": "Error. Body: { code, message }.\n\n- code -221: Per-minute request limit exceeded. Response headers: x-rate-limit-limit, x-rate-limit-remaining, x-rate-limit-reset.\n- code -395: Package credit quota cannot cover this request. Besides code / message the body also has limit, currentUsage and requestCost.\n- code -394: Too many invalid keys were tried from this IP in a short time. Wait for the Retry-After header duration."
          },
          "500": {
            "description": "Error. Body: { code, message }.\n\n- code -1: Unexpected server error. message is a generic error text without technical details."
          },
          "503": {
            "description": "Error. Body: { code, message }.\n\n- code -229: Live market cache is not available yet.\n- code -396: Market data has not been updated for more than 60 minutes; stale data is not returned. No credits are charged."
          }
        },
        "x-credit-cost": 1,
        "x-api-id": 29
      }
    },
    "/api/v1/markets/commodities": {
      "get": {
        "tags": [
          "Market"
        ],
        "summary": "Live Commodities",
        "description": "Live commodities prices.\n\nCost: 1 credit per successful request; failed requests are free.\n\n- Success body is { data: { ... } }. Error body is { code, message }. code is an ApiResponseCode enum value (negative integer).",
        "operationId": "LiveCommodities",
        "parameters": [
          {
            "name": "code",
            "in": "query",
            "description": "Symbol. The list shows always-present common symbols; for the full list call without code and read items[].code. Empty returns the summary list. Values: COIL, XBRUSD, XAGUSD, XPTUSD, XPDUSD, NG.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. Body: { data: { ... } }.\n\nFields of data:\n- `list` (string): Market list name (doviz, altin, kripto, emtia).\n- `updatedAtUtc` (string): Last update time of the list (UTC ISO datetime).\n- `items` (array): Symbol prices. A single item when code is set.\n- `items[].code` (string): Symbol code. Example: USD, GA, BTC, COIL.\n- `items[].buying` (number): Buying price.\n- `items[].selling` (number): Selling price. May equal buying on single-price markets.\n- `items[].change` (number): Absolute change (buying side).\n- `items[].changePercent` (number): Percent change.\n- `items[].direction` (string): Direction: up, down or flat.\n- `items[].currency` (string): Price currency (TRY, USD ...).\n- `items[].currencySymbol` (string): Currency symbol (₺, $ ...).",
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "list": "emtia",
                    "updatedAtUtc": "2026-08-20T12:00:00",
                    "items": [
                      {
                        "code": "COIL",
                        "buying": 85.65,
                        "selling": 85.65,
                        "change": -0.04,
                        "changePercent": -0.03,
                        "direction": "down",
                        "currency": "USD",
                        "currencySymbol": "$"
                      },
                      {
                        "code": "XBRUSD",
                        "buying": 91.58,
                        "selling": 91.67,
                        "change": 0.05,
                        "changePercent": 0.05,
                        "direction": "up",
                        "currency": "USD",
                        "currencySymbol": "$"
                      },
                      {
                        "code": "XAGUSD",
                        "buying": 66.97,
                        "selling": 67.04,
                        "change": -0.01,
                        "changePercent": -0.01,
                        "direction": "down",
                        "currency": "USD",
                        "currencySymbol": "$"
                      }
                    ]
                  }
                }
              }
            }
          },
          "400": {
            "description": "Error. Body: { code, message }.\n\n- code -230: code is not in this list.\n- code -397: A parameter or the request body could not be read (e.g. text in a numeric field, malformed JSON). message names the invalid fields. No credits are charged."
          },
          "401": {
            "description": "Error. Body: { code, message }.\n\n- code -100: x-api-key is missing, empty, malformed, inactive, banned, expired, IP-restricted, or not allowed for this API."
          },
          "410": {
            "description": "Error. Body: { code, message }.\n\n- code -380: The API has been disabled or retired."
          },
          "413": {
            "description": "Error. Body: { code, message }.\n\n- code -390: The request body exceeds this endpoint's size limit. No credits are charged. For bodies far above the limit the connection may close before the upload finishes; the client may then see 502 instead of 413 (still no credits charged)."
          },
          "429": {
            "description": "Error. Body: { code, message }.\n\n- code -221: Per-minute request limit exceeded. Response headers: x-rate-limit-limit, x-rate-limit-remaining, x-rate-limit-reset.\n- code -395: Package credit quota cannot cover this request. Besides code / message the body also has limit, currentUsage and requestCost.\n- code -394: Too many invalid keys were tried from this IP in a short time. Wait for the Retry-After header duration."
          },
          "500": {
            "description": "Error. Body: { code, message }.\n\n- code -1: Unexpected server error. message is a generic error text without technical details."
          },
          "503": {
            "description": "Error. Body: { code, message }.\n\n- code -229: Live market cache is not available yet.\n- code -396: Market data has not been updated for more than 60 minutes; stale data is not returned. No credits are charged."
          }
        },
        "x-credit-cost": 1,
        "x-api-id": 30
      }
    },
    "/api/v1/math/vat": {
      "get": {
        "tags": [
          "Math"
        ],
        "summary": "VAT Calculation",
        "description": "Calculates VAT net, tax and gross. Whether amount is net or gross is decided by mode.\n\nCost: 1 credit per successful request; failed requests are free.\n\n- Success body is { data: { ... } }. Error body is { code, message }. code is an ApiResponseCode enum value (negative integer).\n- Money fields are rounded to 2 decimals with AwayFromZero.",
        "operationId": "MathVat",
        "parameters": [
          {
            "name": "amount",
            "in": "query",
            "description": "0 .. 999999999999.99. add/split: net, extract: gross.",
            "required": true,
            "schema": {
              "type": "number",
              "format": "double"
            }
          },
          {
            "name": "rate",
            "in": "query",
            "description": "VAT % . 0 .. 1000.",
            "required": true,
            "schema": {
              "type": "number",
              "format": "double"
            }
          },
          {
            "name": "mode",
            "in": "query",
            "description": "add: add to net. extract: extract from gross. split: currently same as add. Values: add, extract, split.",
            "schema": {
              "type": "string",
              "default": "add"
            }
          },
          {
            "name": "currency",
            "in": "query",
            "description": "ISO code. Empty → null.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. Body: { data: { ... } }.\n\nFields of data:\n- `amountNet` (number): Net amount excluding VAT. Rounded to 2 decimals with AwayFromZero.\n- `amountTax` (number): VAT amount = gross − net. 2 decimals.\n- `amountGross` (number): Gross amount including VAT. 2 decimals.\n- `rate` (number): Applied VAT rate (%). Same as the request rate.\n- `currency` (string): ISO currency code. Null if omitted.\n- `mode` (string): Applied mode: add, extract or split.",
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "amountNet": 1000.00,
                    "amountTax": 200.00,
                    "amountGross": 1200.00,
                    "rate": 20.0,
                    "currency": "EUR",
                    "mode": "add"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Error. Body: { code, message }.\n\n- code -241: amount or rate is missing, not a number, or out of range (amount 0..999999999999.99, rate 0..1000).\n- code -242: mode is not add, extract or split.\n- code -397: A parameter or the request body could not be read (e.g. text in a numeric field, malformed JSON). message names the invalid fields. No credits are charged."
          },
          "401": {
            "description": "Error. Body: { code, message }.\n\n- code -100: x-api-key is missing, empty, malformed, inactive, banned, expired, IP-restricted, or not allowed for this API."
          },
          "410": {
            "description": "Error. Body: { code, message }.\n\n- code -380: The API has been disabled or retired."
          },
          "413": {
            "description": "Error. Body: { code, message }.\n\n- code -390: The request body exceeds this endpoint's size limit. No credits are charged. For bodies far above the limit the connection may close before the upload finishes; the client may then see 502 instead of 413 (still no credits charged)."
          },
          "429": {
            "description": "Error. Body: { code, message }.\n\n- code -221: Per-minute request limit exceeded. Response headers: x-rate-limit-limit, x-rate-limit-remaining, x-rate-limit-reset.\n- code -395: Package credit quota cannot cover this request. Besides code / message the body also has limit, currentUsage and requestCost.\n- code -394: Too many invalid keys were tried from this IP in a short time. Wait for the Retry-After header duration."
          },
          "500": {
            "description": "Error. Body: { code, message }.\n\n- code -1: Unexpected server error. message is a generic error text without technical details."
          }
        },
        "x-credit-cost": 1,
        "x-api-id": 38
      }
    },
    "/api/v1/math/percentage": {
      "get": {
        "tags": [
          "Math"
        ],
        "summary": "Percentage Calculation",
        "description": "Percentage calculations: of, increase, decrease, ratio, change.\n\nCost: 1 credit per successful request; failed requests are free.\n\n- Success body is { data: { ... } }. Error body is { code, message }. code is an ApiResponseCode enum value (negative integer).",
        "operationId": "MathPercentage",
        "parameters": [
          {
            "name": "value",
            "in": "query",
            "description": "Main number.",
            "required": true,
            "schema": {
              "type": "number",
              "format": "double"
            }
          },
          {
            "name": "rate",
            "in": "query",
            "description": "Percent for of/increase/decrease.",
            "schema": {
              "type": "number",
              "format": "double"
            }
          },
          {
            "name": "mode",
            "in": "query",
            "description": "of: percent of. increase/decrease: add/subtract. ratio: value as % of valueTo. change: percent change. Values: of, increase, decrease, ratio, change.",
            "schema": {
              "type": "string",
              "default": "of"
            }
          },
          {
            "name": "valueTo",
            "in": "query",
            "description": "Second number for ratio and change.",
            "schema": {
              "type": "number",
              "format": "double"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. Body: { data: { ... } }.\n\nFields of data:\n- `value` (number): Result. of: percent amount. increase/decrease: new value. ratio/change: percent.\n- `rate` (number): of/increase/decrease: input rate. ratio/change: computed percent.\n- `difference` (number): increase/decrease: absolute difference. change: valueTo − value. May be 0 for other modes.\n- `mode` (string): Applied mode: of, increase, decrease, ratio, change.",
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "value": 20.0,
                    "rate": 25.0,
                    "difference": 20.0,
                    "mode": "of"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Error. Body: { code, message }.\n\n- code -241: value is required. of/increase/decrease need rate; ratio/change need valueTo. Number may be out of range.\n- code -242: mode is not of, increase, decrease, ratio or change.\n- code -397: A parameter or the request body could not be read (e.g. text in a numeric field, malformed JSON). message names the invalid fields. No credits are charged."
          },
          "401": {
            "description": "Error. Body: { code, message }.\n\n- code -100: x-api-key is missing, empty, malformed, inactive, banned, expired, IP-restricted, or not allowed for this API."
          },
          "410": {
            "description": "Error. Body: { code, message }.\n\n- code -380: The API has been disabled or retired."
          },
          "413": {
            "description": "Error. Body: { code, message }.\n\n- code -390: The request body exceeds this endpoint's size limit. No credits are charged. For bodies far above the limit the connection may close before the upload finishes; the client may then see 502 instead of 413 (still no credits charged)."
          },
          "429": {
            "description": "Error. Body: { code, message }.\n\n- code -221: Per-minute request limit exceeded. Response headers: x-rate-limit-limit, x-rate-limit-remaining, x-rate-limit-reset.\n- code -395: Package credit quota cannot cover this request. Besides code / message the body also has limit, currentUsage and requestCost.\n- code -394: Too many invalid keys were tried from this IP in a short time. Wait for the Retry-After header duration."
          },
          "500": {
            "description": "Error. Body: { code, message }.\n\n- code -1: Unexpected server error. message is a generic error text without technical details."
          }
        },
        "x-credit-cost": 1,
        "x-api-id": 39
      }
    },
    "/api/v1/math/discount": {
      "get": {
        "tags": [
          "Math"
        ],
        "summary": "Discount Calculation",
        "description": "Calculates discount (percent or fixed amount).\n\nCost: 1 credit per successful request; failed requests are free.\n\n- Success body is { data: { ... } }. Error body is { code, message }. code is an ApiResponseCode enum value (negative integer).\n- POST /discount accepts the same fields in the body.",
        "operationId": "MathDiscount",
        "parameters": [
          {
            "name": "amount",
            "in": "query",
            "description": "List price (GET). POST uses amount or items.",
            "required": true,
            "schema": {
              "type": "number",
              "format": "double"
            }
          },
          {
            "name": "rate",
            "in": "query",
            "description": "Rate for percent mode.",
            "schema": {
              "type": "number",
              "format": "double"
            }
          },
          {
            "name": "amountDiscount",
            "in": "query",
            "description": "Discount amount for fixed mode.",
            "schema": {
              "type": "number",
              "format": "double"
            }
          },
          {
            "name": "mode",
            "in": "query",
            "description": "percent or fixed. Values: percent, fixed.",
            "schema": {
              "type": "string",
              "default": "percent"
            }
          },
          {
            "name": "currency",
            "in": "query",
            "description": "ISO code.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. Body: { data: { ... } }.\n\nFields of data:\n- `amountList` (number): List price before discount. 2 decimals.\n- `amountDiscount` (number): Total discount amount. Sum of steps when stacked.\n- `amountNet` (number): Amount payable after discount.\n- `savingPercent` (number): Saving percent = amountDiscount / amountList * 100.\n- `currency` (string): ISO currency code. Null if omitted.\n- `breakdown` (array): Each applied discount step. One step on GET.\n- `breakdown[].index` (integer): Step index (1-based).\n- `breakdown[].mode` (string): Step mode: percent or fixed.\n- `breakdown[].amountBefore` (number): Amount before this step.\n- `breakdown[].amountDiscount` (number): Discount applied in this step.\n- `breakdown[].amountAfter` (number): Amount after this step.",
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "amountList": 100.00,
                    "amountDiscount": 10.00,
                    "amountNet": 90.00,
                    "savingPercent": 10.0,
                    "currency": "EUR",
                    "breakdown": [
                      {
                        "index": 1,
                        "mode": "percent",
                        "amountBefore": 100.00,
                        "amountDiscount": 10.00,
                        "amountAfter": 90.00
                      }
                    ]
                  }
                }
              }
            }
          },
          "400": {
            "description": "Error. Body: { code, message }.\n\n- code -241: amount missing/out of range, POST body missing, or amountDiscount negative in fixed mode.\n- code -242: mode is not percent or fixed.\n- code -397: A parameter or the request body could not be read (e.g. text in a numeric field, malformed JSON). message names the invalid fields. No credits are charged."
          },
          "401": {
            "description": "Error. Body: { code, message }.\n\n- code -100: x-api-key is missing, empty, malformed, inactive, banned, expired, IP-restricted, or not allowed for this API."
          },
          "410": {
            "description": "Error. Body: { code, message }.\n\n- code -380: The API has been disabled or retired."
          },
          "413": {
            "description": "Error. Body: { code, message }.\n\n- code -390: The request body exceeds this endpoint's size limit. No credits are charged. For bodies far above the limit the connection may close before the upload finishes; the client may then see 502 instead of 413 (still no credits charged)."
          },
          "429": {
            "description": "Error. Body: { code, message }.\n\n- code -221: Per-minute request limit exceeded. Response headers: x-rate-limit-limit, x-rate-limit-remaining, x-rate-limit-reset.\n- code -395: Package credit quota cannot cover this request. Besides code / message the body also has limit, currentUsage and requestCost.\n- code -394: Too many invalid keys were tried from this IP in a short time. Wait for the Retry-After header duration."
          },
          "500": {
            "description": "Error. Body: { code, message }.\n\n- code -1: Unexpected server error. message is a generic error text without technical details."
          }
        },
        "x-credit-cost": 1,
        "x-api-id": 40
      },
      "post": {
        "tags": [
          "Math"
        ],
        "summary": "Discount Calculation",
        "description": "Calculates discount (percent or fixed amount).\n\nCost: 1 credit per successful request; failed requests are free.\n\n- Success body is { data: { ... } }. Error body is { code, message }. code is an ApiResponseCode enum value (negative integer).\n- POST /discount accepts the same fields in the body.",
        "operationId": "MathDiscountPost",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MathDiscountRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/MathDiscountRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/MathDiscountRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. Body: { data: { ... } }.\n\nFields of data:\n- `amountList` (number): List price before discount. 2 decimals.\n- `amountDiscount` (number): Total discount amount. Sum of steps when stacked.\n- `amountNet` (number): Amount payable after discount.\n- `savingPercent` (number): Saving percent = amountDiscount / amountList * 100.\n- `currency` (string): ISO currency code. Null if omitted.\n- `breakdown` (array): Each applied discount step. One step on GET.\n- `breakdown[].index` (integer): Step index (1-based).\n- `breakdown[].mode` (string): Step mode: percent or fixed.\n- `breakdown[].amountBefore` (number): Amount before this step.\n- `breakdown[].amountDiscount` (number): Discount applied in this step.\n- `breakdown[].amountAfter` (number): Amount after this step.",
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "amountList": 100.00,
                    "amountDiscount": 10.00,
                    "amountNet": 90.00,
                    "savingPercent": 10.0,
                    "currency": "EUR",
                    "breakdown": [
                      {
                        "index": 1,
                        "mode": "percent",
                        "amountBefore": 100.00,
                        "amountDiscount": 10.00,
                        "amountAfter": 90.00
                      }
                    ]
                  }
                }
              }
            }
          },
          "400": {
            "description": "Error. Body: { code, message }.\n\n- code -241: amount missing/out of range, POST body missing, or amountDiscount negative in fixed mode.\n- code -242: mode is not percent or fixed.\n- code -397: A parameter or the request body could not be read (e.g. text in a numeric field, malformed JSON). message names the invalid fields. No credits are charged."
          },
          "401": {
            "description": "Error. Body: { code, message }.\n\n- code -100: x-api-key is missing, empty, malformed, inactive, banned, expired, IP-restricted, or not allowed for this API."
          },
          "410": {
            "description": "Error. Body: { code, message }.\n\n- code -380: The API has been disabled or retired."
          },
          "413": {
            "description": "Error. Body: { code, message }.\n\n- code -390: The request body exceeds this endpoint's size limit. No credits are charged. For bodies far above the limit the connection may close before the upload finishes; the client may then see 502 instead of 413 (still no credits charged)."
          },
          "429": {
            "description": "Error. Body: { code, message }.\n\n- code -221: Per-minute request limit exceeded. Response headers: x-rate-limit-limit, x-rate-limit-remaining, x-rate-limit-reset.\n- code -395: Package credit quota cannot cover this request. Besides code / message the body also has limit, currentUsage and requestCost.\n- code -394: Too many invalid keys were tried from this IP in a short time. Wait for the Retry-After header duration."
          },
          "500": {
            "description": "Error. Body: { code, message }.\n\n- code -1: Unexpected server error. message is a generic error text without technical details."
          }
        },
        "x-credit-cost": 1,
        "x-api-id": 40
      }
    },
    "/api/v1/math/unitconvert": {
      "get": {
        "tags": [
          "Math"
        ],
        "summary": "Unit Conversion",
        "description": "Converts units (length, mass, volume, temperature, area, speed, pressure, data). Agriculture units: da, donum, ha, kental, hl.\n\nCost: 1 credit per successful request; failed requests are free.\n\n- Success body is { data: { ... } }. Error body is { code, message }. code is an ApiResponseCode enum value (negative integer).",
        "operationId": "MathUnitConvert",
        "parameters": [
          {
            "name": "value",
            "in": "query",
            "description": "Number.",
            "required": true,
            "schema": {
              "type": "number",
              "format": "double"
            }
          },
          {
            "name": "from",
            "in": "query",
            "description": "Source unit. Valid values are in the category rows below.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "to",
            "in": "query",
            "description": "Target unit. Valid values are in the category rows below.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "category",
            "in": "query",
            "description": "Inferred from units if empty. Values: length, mass, volume, temperature, area, speed, pressure, data.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. Body: { data: { ... } }.\n\nFields of data:\n- `value` (number): Number in the target unit. Non-temperature categories use a factor.\n- `from` (string): Normalized source unit (e.g. da, km, c).\n- `to` (string): Normalized target unit.\n- `category` (string): length, mass, volume, temperature, area, speed, pressure or data.",
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "value": 10000.0,
                    "from": "km",
                    "to": "m",
                    "category": "length"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Error. Body: { code, message }.\n\n- code -241: value is missing or not a number.\n- code -245: from, to or category is invalid / mismatched (different categories).\n- code -397: A parameter or the request body could not be read (e.g. text in a numeric field, malformed JSON). message names the invalid fields. No credits are charged."
          },
          "401": {
            "description": "Error. Body: { code, message }.\n\n- code -100: x-api-key is missing, empty, malformed, inactive, banned, expired, IP-restricted, or not allowed for this API."
          },
          "410": {
            "description": "Error. Body: { code, message }.\n\n- code -380: The API has been disabled or retired."
          },
          "413": {
            "description": "Error. Body: { code, message }.\n\n- code -390: The request body exceeds this endpoint's size limit. No credits are charged. For bodies far above the limit the connection may close before the upload finishes; the client may then see 502 instead of 413 (still no credits charged)."
          },
          "429": {
            "description": "Error. Body: { code, message }.\n\n- code -221: Per-minute request limit exceeded. Response headers: x-rate-limit-limit, x-rate-limit-remaining, x-rate-limit-reset.\n- code -395: Package credit quota cannot cover this request. Besides code / message the body also has limit, currentUsage and requestCost.\n- code -394: Too many invalid keys were tried from this IP in a short time. Wait for the Retry-After header duration."
          },
          "500": {
            "description": "Error. Body: { code, message }.\n\n- code -1: Unexpected server error. message is a generic error text without technical details."
          }
        },
        "x-credit-cost": 1,
        "x-api-id": 41
      }
    },
    "/api/v1/math/numbertotext": {
      "get": {
        "tags": [
          "Math"
        ],
        "summary": "Number To Text",
        "description": "Converts a number to words (optional currency).\n\nCost: 1 credit per successful request; failed requests are free.\n\n- Success body is { data: { ... } }. Error body is { code, message }. code is an ApiResponseCode enum value (negative integer).",
        "operationId": "MathNumberToText",
        "parameters": [
          {
            "name": "value",
            "in": "query",
            "description": "Number used if amount is empty.",
            "schema": {
              "type": "number",
              "format": "double"
            }
          },
          {
            "name": "amount",
            "in": "query",
            "description": "Amount.",
            "schema": {
              "type": "number",
              "format": "double"
            }
          },
          {
            "name": "currency",
            "in": "query",
            "description": "ISO currency. Empty writes a plain number.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "language",
            "in": "query",
            "description": "Language. Values: tr, en, de, et, lv, lt, fi.",
            "schema": {
              "type": "string",
              "default": "en"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. Body: { data: { ... } }.\n\nFields of data:\n- `text` (string): Lowercase words. When currency is set, the unit name is appended (euros and cents ...).\n- `language` (string): Language code used (tr, en, de, et, lv, lt, fi).\n- `currency` (string): ISO currency code. Null for a plain number.\n- `value` (number): Number that was converted (amount or value).",
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "text": "one thousand two hundred thirty-four euros and fifty-six cents",
                    "language": "en",
                    "currency": "EUR",
                    "value": 1234.56
                  }
                }
              }
            }
          },
          "400": {
            "description": "Error. Body: { code, message }.\n\n- code -241: amount/value missing, not a number, or |value| > 999999999999.99.\n- code -244: language is not tr, en, de, et, lv, lt or fi.\n- code -397: A parameter or the request body could not be read (e.g. text in a numeric field, malformed JSON). message names the invalid fields. No credits are charged."
          },
          "401": {
            "description": "Error. Body: { code, message }.\n\n- code -100: x-api-key is missing, empty, malformed, inactive, banned, expired, IP-restricted, or not allowed for this API."
          },
          "410": {
            "description": "Error. Body: { code, message }.\n\n- code -380: The API has been disabled or retired."
          },
          "413": {
            "description": "Error. Body: { code, message }.\n\n- code -390: The request body exceeds this endpoint's size limit. No credits are charged. For bodies far above the limit the connection may close before the upload finishes; the client may then see 502 instead of 413 (still no credits charged)."
          },
          "429": {
            "description": "Error. Body: { code, message }.\n\n- code -221: Per-minute request limit exceeded. Response headers: x-rate-limit-limit, x-rate-limit-remaining, x-rate-limit-reset.\n- code -395: Package credit quota cannot cover this request. Besides code / message the body also has limit, currentUsage and requestCost.\n- code -394: Too many invalid keys were tried from this IP in a short time. Wait for the Retry-After header duration."
          },
          "500": {
            "description": "Error. Body: { code, message }.\n\n- code -1: Unexpected server error. message is a generic error text without technical details."
          }
        },
        "x-credit-cost": 1,
        "x-api-id": 42
      }
    },
    "/api/v1/math/datediff": {
      "get": {
        "tags": [
          "Math"
        ],
        "summary": "Date Difference",
        "description": "Difference between two dates (days, hours, age).\n\nCost: 1 credit per successful request; failed requests are free.\n\n- Success body is { data: { ... } }. Error body is { code, message }. code is an ApiResponseCode enum value (negative integer).",
        "operationId": "MathDateDiff",
        "parameters": [
          {
            "name": "fromDate",
            "in": "query",
            "description": "Start.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "toDate",
            "in": "query",
            "description": "End.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. Body: { data: { ... } }.\n\nFields of data:\n- `days` (integer): Whole days between the two dates (|to − from|).\n- `hours` (integer): The same difference in hours (days * 24).\n- `minutes` (integer): The same difference in minutes (hours * 60).\n- `years` (integer): Calendar year difference (whole years).\n- `months` (integer): Remaining month difference after years (0–11).\n- `daysRemainder` (integer): Remaining days after years and months.\n- `age` (integer): Age at toDate if fromDate is a birth date. Same as years.\n- `fromDate` (string): Normalized start YYYY-MM-DD.\n- `toDate` (string): Normalized end YYYY-MM-DD.",
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "days": 13138,
                    "hours": 315312,
                    "minutes": 18918720,
                    "years": 36,
                    "months": 0,
                    "daysRemainder": 20,
                    "age": 36,
                    "fromDate": "1990-08-02",
                    "toDate": "2026-08-22"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Error. Body: { code, message }.\n\n- code -247: fromDate or toDate is missing or not YYYY-MM-DD.\n- code -397: A parameter or the request body could not be read (e.g. text in a numeric field, malformed JSON). message names the invalid fields. No credits are charged."
          },
          "401": {
            "description": "Error. Body: { code, message }.\n\n- code -100: x-api-key is missing, empty, malformed, inactive, banned, expired, IP-restricted, or not allowed for this API."
          },
          "410": {
            "description": "Error. Body: { code, message }.\n\n- code -380: The API has been disabled or retired."
          },
          "413": {
            "description": "Error. Body: { code, message }.\n\n- code -390: The request body exceeds this endpoint's size limit. No credits are charged. For bodies far above the limit the connection may close before the upload finishes; the client may then see 502 instead of 413 (still no credits charged)."
          },
          "429": {
            "description": "Error. Body: { code, message }.\n\n- code -221: Per-minute request limit exceeded. Response headers: x-rate-limit-limit, x-rate-limit-remaining, x-rate-limit-reset.\n- code -395: Package credit quota cannot cover this request. Besides code / message the body also has limit, currentUsage and requestCost.\n- code -394: Too many invalid keys were tried from this IP in a short time. Wait for the Retry-After header duration."
          },
          "500": {
            "description": "Error. Body: { code, message }.\n\n- code -1: Unexpected server error. message is a generic error text without technical details."
          }
        },
        "x-credit-cost": 1,
        "x-api-id": 43
      }
    },
    "/api/v1/math/loan": {
      "get": {
        "tags": [
          "Math"
        ],
        "summary": "Loan / Installment Calculation",
        "description": "Equal-installment (annuity) loan.\n\nCost: 1 credit per successful request; failed requests are free.\n\n- Success body is { data: { ... } }. Error body is { code, message }. code is an ApiResponseCode enum value (negative integer).",
        "operationId": "MathLoan",
        "parameters": [
          {
            "name": "amount",
            "in": "query",
            "description": "Principal.",
            "required": true,
            "schema": {
              "type": "number",
              "format": "double"
            }
          },
          {
            "name": "rate",
            "in": "query",
            "description": "Annual interest %.",
            "required": true,
            "schema": {
              "type": "number",
              "format": "double"
            }
          },
          {
            "name": "termMonths",
            "in": "query",
            "description": "Term 1–360 months.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "currency",
            "in": "query",
            "description": "ISO code.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "includeSchedule",
            "in": "query",
            "description": "Installment schedule. Values: true, false.",
            "schema": {
              "type": "boolean",
              "default": true
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. Body: { data: { ... } }.\n\nFields of data:\n- `amount` (number): Principal. 2 decimals.\n- `rate` (number): Annual interest rate (%).\n- `termMonths` (integer): Term in months.\n- `amountPayment` (number): Fixed monthly installment (annuity). 2 decimals.\n- `amountInterest` (number): Total interest paid over the term.\n- `amountTotal` (number): Principal + total interest. amountPayment * termMonths.\n- `currency` (string): ISO currency code. Null if omitted.\n- `schedule` (array): Installment rows when includeSchedule=true. Empty array when false.\n- `schedule[].index` (integer): Installment number (1 to termMonths).\n- `schedule[].amountPayment` (number): Payment this month (principal + interest).\n- `schedule[].amountPrincipal` (number): Principal portion of this installment.\n- `schedule[].amountInterest` (number): Interest portion of this installment.\n- `schedule[].amountRemaining` (number): Remaining principal after this installment.",
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "amount": 100000.00,
                    "rate": 24.0,
                    "termMonths": 12,
                    "amountPayment": 9455.96,
                    "amountInterest": 13471.52,
                    "amountTotal": 113471.52,
                    "currency": "EUR",
                    "schedule": [
                      {
                        "index": 1,
                        "amountPayment": 9455.96,
                        "amountPrincipal": 7455.96,
                        "amountInterest": 2000.00,
                        "amountRemaining": 92544.04
                      }
                    ]
                  }
                }
              }
            }
          },
          "400": {
            "description": "Error. Body: { code, message }.\n\n- code -241: POST body missing, or amount/rate missing or out of range.\n- code -248: termMonths is outside 1–360.\n- code -397: A parameter or the request body could not be read (e.g. text in a numeric field, malformed JSON). message names the invalid fields. No credits are charged."
          },
          "401": {
            "description": "Error. Body: { code, message }.\n\n- code -100: x-api-key is missing, empty, malformed, inactive, banned, expired, IP-restricted, or not allowed for this API."
          },
          "410": {
            "description": "Error. Body: { code, message }.\n\n- code -380: The API has been disabled or retired."
          },
          "413": {
            "description": "Error. Body: { code, message }.\n\n- code -390: The request body exceeds this endpoint's size limit. No credits are charged. For bodies far above the limit the connection may close before the upload finishes; the client may then see 502 instead of 413 (still no credits charged)."
          },
          "429": {
            "description": "Error. Body: { code, message }.\n\n- code -221: Per-minute request limit exceeded. Response headers: x-rate-limit-limit, x-rate-limit-remaining, x-rate-limit-reset.\n- code -395: Package credit quota cannot cover this request. Besides code / message the body also has limit, currentUsage and requestCost.\n- code -394: Too many invalid keys were tried from this IP in a short time. Wait for the Retry-After header duration."
          },
          "500": {
            "description": "Error. Body: { code, message }.\n\n- code -1: Unexpected server error. message is a generic error text without technical details."
          }
        },
        "x-credit-cost": 1,
        "x-api-id": 44
      },
      "post": {
        "tags": [
          "Math"
        ],
        "summary": "Loan / Installment Calculation",
        "description": "Equal-installment (annuity) loan.\n\nCost: 1 credit per successful request; failed requests are free.\n\n- Success body is { data: { ... } }. Error body is { code, message }. code is an ApiResponseCode enum value (negative integer).",
        "operationId": "MathLoanPost",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MathLoanRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/MathLoanRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/MathLoanRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. Body: { data: { ... } }.\n\nFields of data:\n- `amount` (number): Principal. 2 decimals.\n- `rate` (number): Annual interest rate (%).\n- `termMonths` (integer): Term in months.\n- `amountPayment` (number): Fixed monthly installment (annuity). 2 decimals.\n- `amountInterest` (number): Total interest paid over the term.\n- `amountTotal` (number): Principal + total interest. amountPayment * termMonths.\n- `currency` (string): ISO currency code. Null if omitted.\n- `schedule` (array): Installment rows when includeSchedule=true. Empty array when false.\n- `schedule[].index` (integer): Installment number (1 to termMonths).\n- `schedule[].amountPayment` (number): Payment this month (principal + interest).\n- `schedule[].amountPrincipal` (number): Principal portion of this installment.\n- `schedule[].amountInterest` (number): Interest portion of this installment.\n- `schedule[].amountRemaining` (number): Remaining principal after this installment.",
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "amount": 100000.00,
                    "rate": 24.0,
                    "termMonths": 12,
                    "amountPayment": 9455.96,
                    "amountInterest": 13471.52,
                    "amountTotal": 113471.52,
                    "currency": "EUR",
                    "schedule": [
                      {
                        "index": 1,
                        "amountPayment": 9455.96,
                        "amountPrincipal": 7455.96,
                        "amountInterest": 2000.00,
                        "amountRemaining": 92544.04
                      }
                    ]
                  }
                }
              }
            }
          },
          "400": {
            "description": "Error. Body: { code, message }.\n\n- code -241: POST body missing, or amount/rate missing or out of range.\n- code -248: termMonths is outside 1–360.\n- code -397: A parameter or the request body could not be read (e.g. text in a numeric field, malformed JSON). message names the invalid fields. No credits are charged."
          },
          "401": {
            "description": "Error. Body: { code, message }.\n\n- code -100: x-api-key is missing, empty, malformed, inactive, banned, expired, IP-restricted, or not allowed for this API."
          },
          "410": {
            "description": "Error. Body: { code, message }.\n\n- code -380: The API has been disabled or retired."
          },
          "413": {
            "description": "Error. Body: { code, message }.\n\n- code -390: The request body exceeds this endpoint's size limit. No credits are charged. For bodies far above the limit the connection may close before the upload finishes; the client may then see 502 instead of 413 (still no credits charged)."
          },
          "429": {
            "description": "Error. Body: { code, message }.\n\n- code -221: Per-minute request limit exceeded. Response headers: x-rate-limit-limit, x-rate-limit-remaining, x-rate-limit-reset.\n- code -395: Package credit quota cannot cover this request. Besides code / message the body also has limit, currentUsage and requestCost.\n- code -394: Too many invalid keys were tried from this IP in a short time. Wait for the Retry-After header duration."
          },
          "500": {
            "description": "Error. Body: { code, message }.\n\n- code -1: Unexpected server error. message is a generic error text without technical details."
          }
        },
        "x-credit-cost": 1,
        "x-api-id": 44
      }
    },
    "/api/v1/math/stats": {
      "post": {
        "tags": [
          "Math"
        ],
        "summary": "List Statistics",
        "description": "List statistics (min, max, average, median, deviation).\n\nCost: 1 credit per successful request; failed requests are free.\n\n- Success body is { data: { ... } }. Error body is { code, message }. code is an ApiResponseCode enum value (negative integer).",
        "operationId": "MathStatsPost",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MathStatsRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/MathStatsRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/MathStatsRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. Body: { data: { ... } }.\n\nFields of data:\n- `count` (integer): Number of items in values.\n- `min` (number): Minimum value.\n- `max` (number): Maximum value.\n- `sum` (number): Sum of all values.\n- `average` (number): Arithmetic mean (sum / count).\n- `median` (number): Median. Average of the two middle values when count is even.\n- `standardDeviation` (number): Sample standard deviation (n-1).",
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "count": 5,
                    "min": 10.0,
                    "max": 50.0,
                    "sum": 150.0,
                    "average": 30.0,
                    "median": 30.0,
                    "standardDeviation": 15.8113883
                  }
                }
              }
            }
          },
          "400": {
            "description": "Error. Body: { code, message }.\n\n- code -246: values is missing, empty, or has more than 10000 items.\n- code -397: A parameter or the request body could not be read (e.g. text in a numeric field, malformed JSON). message names the invalid fields. No credits are charged."
          },
          "401": {
            "description": "Error. Body: { code, message }.\n\n- code -100: x-api-key is missing, empty, malformed, inactive, banned, expired, IP-restricted, or not allowed for this API."
          },
          "410": {
            "description": "Error. Body: { code, message }.\n\n- code -380: The API has been disabled or retired."
          },
          "413": {
            "description": "Error. Body: { code, message }.\n\n- code -390: The request body exceeds this endpoint's size limit. No credits are charged. For bodies far above the limit the connection may close before the upload finishes; the client may then see 502 instead of 413 (still no credits charged)."
          },
          "429": {
            "description": "Error. Body: { code, message }.\n\n- code -221: Per-minute request limit exceeded. Response headers: x-rate-limit-limit, x-rate-limit-remaining, x-rate-limit-reset.\n- code -395: Package credit quota cannot cover this request. Besides code / message the body also has limit, currentUsage and requestCost.\n- code -394: Too many invalid keys were tried from this IP in a short time. Wait for the Retry-After header duration."
          },
          "500": {
            "description": "Error. Body: { code, message }.\n\n- code -1: Unexpected server error. message is a generic error text without technical details."
          }
        },
        "x-credit-cost": 1,
        "x-api-id": 45
      }
    },
    "/api/v1/math/isoweek": {
      "get": {
        "tags": [
          "Math"
        ],
        "summary": "ISO Week",
        "description": "ISO week number.\n\nCost: 1 credit per successful request; failed requests are free.\n\n- Success body is { data: { ... } }. Error body is { code, message }. code is an ApiResponseCode enum value (negative integer).",
        "operationId": "MathIsoWeek",
        "parameters": [
          {
            "name": "date",
            "in": "query",
            "description": "YYYY-MM-DD. Empty = today.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. Body: { data: { ... } }.\n\nFields of data:\n- `year` (integer): ISO-8601 year. 1 January in week 53 may belong to the previous year.\n- `week` (integer): ISO week number 1–53. Weeks start on Monday.\n- `weekday` (integer): ISO weekday. 1=Monday ... 7=Sunday.\n- `fromDate` (string): Monday of this ISO week YYYY-MM-DD.\n- `toDate` (string): Sunday of this ISO week YYYY-MM-DD.\n- `date` (string): Queried date (or today) YYYY-MM-DD.",
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "year": 2026,
                    "week": 34,
                    "weekday": 6,
                    "fromDate": "2026-08-17",
                    "toDate": "2026-08-23",
                    "date": "2026-08-22"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Error. Body: { code, message }.\n\n- code -247: date was sent but is not YYYY-MM-DD.\n- code -397: A parameter or the request body could not be read (e.g. text in a numeric field, malformed JSON). message names the invalid fields. No credits are charged."
          },
          "401": {
            "description": "Error. Body: { code, message }.\n\n- code -100: x-api-key is missing, empty, malformed, inactive, banned, expired, IP-restricted, or not allowed for this API."
          },
          "410": {
            "description": "Error. Body: { code, message }.\n\n- code -380: The API has been disabled or retired."
          },
          "413": {
            "description": "Error. Body: { code, message }.\n\n- code -390: The request body exceeds this endpoint's size limit. No credits are charged. For bodies far above the limit the connection may close before the upload finishes; the client may then see 502 instead of 413 (still no credits charged)."
          },
          "429": {
            "description": "Error. Body: { code, message }.\n\n- code -221: Per-minute request limit exceeded. Response headers: x-rate-limit-limit, x-rate-limit-remaining, x-rate-limit-reset.\n- code -395: Package credit quota cannot cover this request. Besides code / message the body also has limit, currentUsage and requestCost.\n- code -394: Too many invalid keys were tried from this IP in a short time. Wait for the Retry-After header duration."
          },
          "500": {
            "description": "Error. Body: { code, message }.\n\n- code -1: Unexpected server error. message is a generic error text without technical details."
          }
        },
        "x-credit-cost": 1,
        "x-api-id": 46
      }
    },
    "/api/v1/math/businessdays": {
      "get": {
        "tags": [
          "Math"
        ],
        "summary": "Business Days Calculation",
        "description": "Business-day difference or add. Public holidays excluded when countryCode is set.\n\nCost: 1 credit per successful request; failed requests are free.\n\n- Success body is { data: { ... } }. Error body is { code, message }. code is an ApiResponseCode enum value (negative integer).",
        "operationId": "MathBusinessDays",
        "parameters": [
          {
            "name": "mode",
            "in": "query",
            "description": "diff or add. Values: diff, add.",
            "schema": {
              "type": "string",
              "default": "diff"
            }
          },
          {
            "name": "fromDate",
            "in": "query",
            "description": "Start YYYY-MM-DD.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "toDate",
            "in": "query",
            "description": "End for diff.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "days",
            "in": "query",
            "description": "Business days for add (may be negative).",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "countryCode",
            "in": "query",
            "description": "ISO country (EE, TR, DE ...).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "includeBreakdown",
            "in": "query",
            "description": "Holiday breakdown. Values: true, false.",
            "schema": {
              "type": "boolean",
              "default": true
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. Body: { data: { ... } }.\n\nFields of data:\n- `mode` (string): Applied mode: diff or add.\n- `days` (integer): diff: business days in the range. add: business days added/subtracted.\n- `fromDate` (string): Normalized start YYYY-MM-DD.\n- `toDate` (string): diff: end date. add: may stay equal to fromDate.\n- `resultDate` (string): add: resulting business date YYYY-MM-DD. diff: null.\n- `countryCode` (string): ISO country code used. Null if omitted (no holiday exclusion).\n- `holidays` (array): Excluded public holidays. May be empty without countryCode or when includeBreakdown=false.\n- `holidays[].date` (string): Holiday date YYYY-MM-DD.\n- `holidays[].name` (string): Holiday name in English.",
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "mode": "diff",
                    "days": 20,
                    "fromDate": "2026-01-01",
                    "toDate": "2026-01-31",
                    "resultDate": null,
                    "countryCode": "EE",
                    "holidays": [
                      {
                        "date": "2026-01-01",
                        "name": "New Year's Day"
                      }
                    ]
                  }
                }
              }
            }
          },
          "400": {
            "description": "Error. Body: { code, message }.\n\n- code -242: mode is not diff or add.\n- code -247: fromDate missing/invalid. toDate is also required for diff.\n- code -241: days is missing in add mode or outside ±3660; in diff mode the range exceeds 3660 days.\n- code -243: countryCode is not ISO 3166-1 alpha-2 or is unknown.\n- code -397: A parameter or the request body could not be read (e.g. text in a numeric field, malformed JSON). message names the invalid fields. No credits are charged."
          },
          "401": {
            "description": "Error. Body: { code, message }.\n\n- code -100: x-api-key is missing, empty, malformed, inactive, banned, expired, IP-restricted, or not allowed for this API."
          },
          "410": {
            "description": "Error. Body: { code, message }.\n\n- code -380: The API has been disabled or retired."
          },
          "413": {
            "description": "Error. Body: { code, message }.\n\n- code -390: The request body exceeds this endpoint's size limit. No credits are charged. For bodies far above the limit the connection may close before the upload finishes; the client may then see 502 instead of 413 (still no credits charged)."
          },
          "429": {
            "description": "Error. Body: { code, message }.\n\n- code -221: Per-minute request limit exceeded. Response headers: x-rate-limit-limit, x-rate-limit-remaining, x-rate-limit-reset.\n- code -395: Package credit quota cannot cover this request. Besides code / message the body also has limit, currentUsage and requestCost.\n- code -394: Too many invalid keys were tried from this IP in a short time. Wait for the Retry-After header duration."
          },
          "500": {
            "description": "Error. Body: { code, message }.\n\n- code -1: Unexpected server error. message is a generic error text without technical details."
          }
        },
        "x-credit-cost": 1,
        "x-api-id": 47
      }
    },
    "/api/v1/isikukoodvalidator": {
      "get": {
        "tags": [
          "PersonalCode"
        ],
        "summary": "Estonia Personal Code Validator",
        "description": "Validates Estonian personal code (isikukood) and, when possible, returns birth date / gender / check digit. Invalid codes return isValid=false with HTTP 200.\n\nCost: 1 credit per successful request; failed requests are free.\n\n- Success body is { data: { ... } }. Error body is { code, message }. code is an ApiResponseCode enum value (negative integer).",
        "operationId": "EstonianPersonalCodeValidatorApi",
        "parameters": [
          {
            "name": "code",
            "in": "query",
            "description": "Identity code to validate.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. Body: { data: { ... } }.\n\nFields of data:\n- `isValid` (boolean): true when the code matches checksum and format rules. Invalid codes still return HTTP 200.\n- `gender` (integer): Gender code. 1=male, 0=female. Derived from the first digit.\n- `genderText` (string): Gender text: Male or Female.\n- `birthDate` (string): Birth date YYYY-MM-DD. May be empty when the code is invalid.\n- `age` (integer): Age in whole years as of today.\n- `securityDigit` (integer): Check digit (last digit).\n- `maskedCode` (string): Code with middle digits masked.",
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "isValid": true,
                    "gender": 1,
                    "genderText": "Male",
                    "birthDate": "1990-08-02",
                    "age": 35,
                    "securityDigit": 7,
                    "maskedCode": "3900*****27"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Error. Body: { code, message }.\n\n- code -188: `code` is empty or whitespace. Invalid checksum/format returns HTTP 200 with data.isValid=false, not 400.\n- code -397: A parameter or the request body could not be read (e.g. text in a numeric field, malformed JSON). message names the invalid fields. No credits are charged."
          },
          "401": {
            "description": "Error. Body: { code, message }.\n\n- code -100: x-api-key is missing, empty, malformed, inactive, banned, expired, IP-restricted, or not allowed for this API."
          },
          "410": {
            "description": "Error. Body: { code, message }.\n\n- code -380: The API has been disabled or retired."
          },
          "413": {
            "description": "Error. Body: { code, message }.\n\n- code -390: The request body exceeds this endpoint's size limit. No credits are charged. For bodies far above the limit the connection may close before the upload finishes; the client may then see 502 instead of 413 (still no credits charged)."
          },
          "429": {
            "description": "Error. Body: { code, message }.\n\n- code -221: Per-minute request limit exceeded. Response headers: x-rate-limit-limit, x-rate-limit-remaining, x-rate-limit-reset.\n- code -395: Package credit quota cannot cover this request. Besides code / message the body also has limit, currentUsage and requestCost.\n- code -394: Too many invalid keys were tried from this IP in a short time. Wait for the Retry-After header duration."
          },
          "500": {
            "description": "Error. Body: { code, message }.\n\n- code -1: Unexpected server error. message is a generic error text without technical details."
          }
        },
        "x-credit-cost": 1,
        "x-api-id": 1
      }
    },
    "/api/v1/finnishssnvalidator": {
      "get": {
        "tags": [
          "PersonalCode"
        ],
        "summary": "Finnish Personal Code Validator",
        "description": "Validates Finnish personal identity code and, when possible, returns birth date / gender / check digit. Invalid codes return isValid=false with HTTP 200.\n\nCost: 1 credit per successful request; failed requests are free.\n\n- Success body is { data: { ... } }. Error body is { code, message }. code is an ApiResponseCode enum value (negative integer).",
        "operationId": "FinnishPersonalCodeValidatorApi",
        "parameters": [
          {
            "name": "code",
            "in": "query",
            "description": "Identity code to validate.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. Body: { data: { ... } }.\n\nFields of data:\n- `isValid` (boolean): true when the code matches checksum and format rules. Invalid codes still return HTTP 200.\n- `gender` (integer): Gender code. 1=male, 0=female. From the individual number (odd/even).\n- `genderText` (string): Gender text: Male or Female.\n- `birthDate` (string): Birth date YYYY-MM-DD. Century comes from the separator (+, -, A).\n- `age` (integer): Age in whole years as of today.\n- `centurySymbol` (string): Century separator: + (1800s), - (1900s), A (2000s).\n- `individualNumber` (string): Individual serial number (3 digits).\n- `securityDigit` (integer): Numeric value of the check character.\n- `maskedCode` (string): Code with middle digits masked.",
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "isValid": true,
                    "gender": 1,
                    "genderText": "Male",
                    "birthDate": "1990-08-02",
                    "age": 35,
                    "centurySymbol": "-",
                    "individualNumber": "143",
                    "securityDigit": 10,
                    "maskedCode": "0208*****3A"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Error. Body: { code, message }.\n\n- code -188: `code` is empty or whitespace. Invalid checksum/format returns HTTP 200 with data.isValid=false, not 400.\n- code -397: A parameter or the request body could not be read (e.g. text in a numeric field, malformed JSON). message names the invalid fields. No credits are charged."
          },
          "401": {
            "description": "Error. Body: { code, message }.\n\n- code -100: x-api-key is missing, empty, malformed, inactive, banned, expired, IP-restricted, or not allowed for this API."
          },
          "410": {
            "description": "Error. Body: { code, message }.\n\n- code -380: The API has been disabled or retired."
          },
          "413": {
            "description": "Error. Body: { code, message }.\n\n- code -390: The request body exceeds this endpoint's size limit. No credits are charged. For bodies far above the limit the connection may close before the upload finishes; the client may then see 502 instead of 413 (still no credits charged)."
          },
          "429": {
            "description": "Error. Body: { code, message }.\n\n- code -221: Per-minute request limit exceeded. Response headers: x-rate-limit-limit, x-rate-limit-remaining, x-rate-limit-reset.\n- code -395: Package credit quota cannot cover this request. Besides code / message the body also has limit, currentUsage and requestCost.\n- code -394: Too many invalid keys were tried from this IP in a short time. Wait for the Retry-After header duration."
          },
          "500": {
            "description": "Error. Body: { code, message }.\n\n- code -1: Unexpected server error. message is a generic error text without technical details."
          }
        },
        "x-credit-cost": 1,
        "x-api-id": 2
      }
    },
    "/api/v1/tcknvalidator": {
      "get": {
        "tags": [
          "PersonalCode"
        ],
        "summary": "Turkish Personal Code Validator",
        "description": "Validates Turkish national ID (TCKN) and, when possible, returns birth date / gender / check digit. Invalid codes return isValid=false with HTTP 200.\n\nCost: 1 credit per successful request; failed requests are free.\n\n- Success body is { data: { ... } }. Error body is { code, message }. code is an ApiResponseCode enum value (negative integer).",
        "operationId": "TurkishPersonalCodeValidatorApi",
        "parameters": [
          {
            "name": "code",
            "in": "query",
            "description": "Identity code to validate.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. Body: { data: { ... } }.\n\nFields of data:\n- `isValid` (boolean): true when the code matches checksum and format rules. Invalid codes still return HTTP 200.\n- `checkDigit1` (integer): 10th digit. Algorithmic check of the first 9 digits.\n- `checkDigit2` (integer): 11th digit. Algorithmic check of the first 10 digits.\n- `maskedCode` (string): TCKN with middle digits masked.",
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "isValid": true,
                    "checkDigit1": 8,
                    "checkDigit2": 2,
                    "maskedCode": "100000*****82"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Error. Body: { code, message }.\n\n- code -188: `code` is empty or whitespace. Invalid checksum/format returns HTTP 200 with data.isValid=false, not 400.\n- code -397: A parameter or the request body could not be read (e.g. text in a numeric field, malformed JSON). message names the invalid fields. No credits are charged."
          },
          "401": {
            "description": "Error. Body: { code, message }.\n\n- code -100: x-api-key is missing, empty, malformed, inactive, banned, expired, IP-restricted, or not allowed for this API."
          },
          "410": {
            "description": "Error. Body: { code, message }.\n\n- code -380: The API has been disabled or retired."
          },
          "413": {
            "description": "Error. Body: { code, message }.\n\n- code -390: The request body exceeds this endpoint's size limit. No credits are charged. For bodies far above the limit the connection may close before the upload finishes; the client may then see 502 instead of 413 (still no credits charged)."
          },
          "429": {
            "description": "Error. Body: { code, message }.\n\n- code -221: Per-minute request limit exceeded. Response headers: x-rate-limit-limit, x-rate-limit-remaining, x-rate-limit-reset.\n- code -395: Package credit quota cannot cover this request. Besides code / message the body also has limit, currentUsage and requestCost.\n- code -394: Too many invalid keys were tried from this IP in a short time. Wait for the Retry-After header duration."
          },
          "500": {
            "description": "Error. Body: { code, message }.\n\n- code -1: Unexpected server error. message is a generic error text without technical details."
          }
        },
        "x-credit-cost": 1,
        "x-api-id": 3
      }
    },
    "/api/v1/latvianpersonalcodevalidator": {
      "get": {
        "tags": [
          "PersonalCode"
        ],
        "summary": "Latvian Personal Code Validator",
        "description": "Validates Latvian personal code and, when possible, returns birth date / gender / check digit. Invalid codes return isValid=false with HTTP 200.\n\nCost: 1 credit per successful request; failed requests are free.\n\n- Success body is { data: { ... } }. Error body is { code, message }. code is an ApiResponseCode enum value (negative integer).",
        "operationId": "LatvianPersonalCodeValidatorApi",
        "parameters": [
          {
            "name": "code",
            "in": "query",
            "description": "Identity code to validate.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. Body: { data: { ... } }.\n\nFields of data:\n- `isValid` (boolean): true when the code matches checksum and format rules. Invalid codes still return HTTP 200.\n- `birthDate` (string): Birth date YYYY-MM-DD for the old format. May be null for the new format.\n- `age` (integer): Age when birth date is known; otherwise 0.\n- `checkDigit` (integer): Check digit.\n- `maskedCode` (string): Code with middle digits masked.\n- `formatType` (string): OldFormat (DDMMYY-CXXXX), NewFormat (2026+) or Unknown.",
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "isValid": true,
                    "birthDate": "1990-08-02",
                    "age": 35,
                    "checkDigit": 4,
                    "maskedCode": "020890*****4",
                    "formatType": "OldFormat (DDMMYY-CXXXX)"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Error. Body: { code, message }.\n\n- code -188: `code` is empty or whitespace. Invalid checksum/format returns HTTP 200 with data.isValid=false, not 400.\n- code -397: A parameter or the request body could not be read (e.g. text in a numeric field, malformed JSON). message names the invalid fields. No credits are charged."
          },
          "401": {
            "description": "Error. Body: { code, message }.\n\n- code -100: x-api-key is missing, empty, malformed, inactive, banned, expired, IP-restricted, or not allowed for this API."
          },
          "410": {
            "description": "Error. Body: { code, message }.\n\n- code -380: The API has been disabled or retired."
          },
          "413": {
            "description": "Error. Body: { code, message }.\n\n- code -390: The request body exceeds this endpoint's size limit. No credits are charged. For bodies far above the limit the connection may close before the upload finishes; the client may then see 502 instead of 413 (still no credits charged)."
          },
          "429": {
            "description": "Error. Body: { code, message }.\n\n- code -221: Per-minute request limit exceeded. Response headers: x-rate-limit-limit, x-rate-limit-remaining, x-rate-limit-reset.\n- code -395: Package credit quota cannot cover this request. Besides code / message the body also has limit, currentUsage and requestCost.\n- code -394: Too many invalid keys were tried from this IP in a short time. Wait for the Retry-After header duration."
          },
          "500": {
            "description": "Error. Body: { code, message }.\n\n- code -1: Unexpected server error. message is a generic error text without technical details."
          }
        },
        "x-credit-cost": 1,
        "x-api-id": 4
      }
    },
    "/api/v1/aadhaarvalidator": {
      "get": {
        "tags": [
          "PersonalCode"
        ],
        "summary": "India Aadhaar / PAN Validator",
        "description": "Validates Indian Aadhaar number and, when possible, returns birth date / gender / check digit. Invalid codes return isValid=false with HTTP 200.\n\nCost: 1 credit per successful request; failed requests are free.\n\n- Success body is { data: { ... } }. Error body is { code, message }. code is an ApiResponseCode enum value (negative integer).",
        "operationId": "IndianPersonalCodeValidatorApi",
        "parameters": [
          {
            "name": "code",
            "in": "query",
            "description": "Identity code to validate.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. Body: { data: { ... } }.\n\nFields of data:\n- `isValid` (boolean): true when the code matches checksum and format rules. Invalid codes still return HTTP 200.\n- `securityDigit` (integer): Verhoeff check digit (last digit).\n- `maskedCode` (string): Grouped and masked Aadhaar.",
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "isValid": true,
                    "securityDigit": 6,
                    "maskedCode": "2345-****-****-6"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Error. Body: { code, message }.\n\n- code -188: `code` is empty or whitespace. Invalid checksum/format returns HTTP 200 with data.isValid=false, not 400.\n- code -397: A parameter or the request body could not be read (e.g. text in a numeric field, malformed JSON). message names the invalid fields. No credits are charged."
          },
          "401": {
            "description": "Error. Body: { code, message }.\n\n- code -100: x-api-key is missing, empty, malformed, inactive, banned, expired, IP-restricted, or not allowed for this API."
          },
          "410": {
            "description": "Error. Body: { code, message }.\n\n- code -380: The API has been disabled or retired."
          },
          "413": {
            "description": "Error. Body: { code, message }.\n\n- code -390: The request body exceeds this endpoint's size limit. No credits are charged. For bodies far above the limit the connection may close before the upload finishes; the client may then see 502 instead of 413 (still no credits charged)."
          },
          "429": {
            "description": "Error. Body: { code, message }.\n\n- code -221: Per-minute request limit exceeded. Response headers: x-rate-limit-limit, x-rate-limit-remaining, x-rate-limit-reset.\n- code -395: Package credit quota cannot cover this request. Besides code / message the body also has limit, currentUsage and requestCost.\n- code -394: Too many invalid keys were tried from this IP in a short time. Wait for the Retry-After header duration."
          },
          "500": {
            "description": "Error. Body: { code, message }.\n\n- code -1: Unexpected server error. message is a generic error text without technical details."
          }
        },
        "x-credit-cost": 1,
        "x-api-id": 5
      }
    },
    "/api/v1/asmenskodasvalidator": {
      "get": {
        "tags": [
          "PersonalCode"
        ],
        "summary": "Lithuanian Personal Code Validator",
        "description": "Validates Lithuanian personal code and, when possible, returns birth date / gender / check digit. Invalid codes return isValid=false with HTTP 200.\n\nCost: 1 credit per successful request; failed requests are free.\n\n- Success body is { data: { ... } }. Error body is { code, message }. code is an ApiResponseCode enum value (negative integer).",
        "operationId": "LithuanianPersonalCodeValidatorApi",
        "parameters": [
          {
            "name": "code",
            "in": "query",
            "description": "Identity code to validate.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. Body: { data: { ... } }.\n\nFields of data:\n- `isValid` (boolean): true when the code matches checksum and format rules. Invalid codes still return HTTP 200.\n- `gender` (integer): Gender code. 1=male, 0=female.\n- `genderText` (string): Gender text: Male or Female.\n- `birthDate` (string): Birth date YYYY-MM-DD.\n- `age` (integer): Age in whole years as of today.\n- `securityDigit` (integer): Check digit.\n- `maskedCode` (string): Code with middle digits masked.",
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "isValid": true,
                    "gender": 1,
                    "genderText": "Male",
                    "birthDate": "1990-08-02",
                    "age": 35,
                    "securityDigit": 3,
                    "maskedCode": "3900****123"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Error. Body: { code, message }.\n\n- code -188: `code` is empty or whitespace. Invalid checksum/format returns HTTP 200 with data.isValid=false, not 400.\n- code -397: A parameter or the request body could not be read (e.g. text in a numeric field, malformed JSON). message names the invalid fields. No credits are charged."
          },
          "401": {
            "description": "Error. Body: { code, message }.\n\n- code -100: x-api-key is missing, empty, malformed, inactive, banned, expired, IP-restricted, or not allowed for this API."
          },
          "410": {
            "description": "Error. Body: { code, message }.\n\n- code -380: The API has been disabled or retired."
          },
          "413": {
            "description": "Error. Body: { code, message }.\n\n- code -390: The request body exceeds this endpoint's size limit. No credits are charged. For bodies far above the limit the connection may close before the upload finishes; the client may then see 502 instead of 413 (still no credits charged)."
          },
          "429": {
            "description": "Error. Body: { code, message }.\n\n- code -221: Per-minute request limit exceeded. Response headers: x-rate-limit-limit, x-rate-limit-remaining, x-rate-limit-reset.\n- code -395: Package credit quota cannot cover this request. Besides code / message the body also has limit, currentUsage and requestCost.\n- code -394: Too many invalid keys were tried from this IP in a short time. Wait for the Retry-After header duration."
          },
          "500": {
            "description": "Error. Body: { code, message }.\n\n- code -1: Unexpected server error. message is a generic error text without technical details."
          }
        },
        "x-credit-cost": 1,
        "x-api-id": 6
      }
    },
    "/api/v1/luxembourgishpersonalcodevalidator": {
      "get": {
        "tags": [
          "PersonalCode"
        ],
        "summary": "Luxembourgish Personal Code Validator",
        "description": "Validates Luxembourgish national identifier and, when possible, returns birth date / gender / check digit. Invalid codes return isValid=false with HTTP 200.\n\nCost: 1 credit per successful request; failed requests are free.\n\n- Success body is { data: { ... } }. Error body is { code, message }. code is an ApiResponseCode enum value (negative integer).",
        "operationId": "LuxembourgishPersonalCodeValidatorApi",
        "parameters": [
          {
            "name": "code",
            "in": "query",
            "description": "Identity code to validate.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. Body: { data: { ... } }.\n\nFields of data:\n- `isValid` (boolean): true when the code matches checksum and format rules. Invalid codes still return HTTP 200.\n- `birthDate` (string): Birth date YYYY-MM-DD (first 8 digits).\n- `age` (integer): Age in whole years as of today.\n- `birthOrderNumber` (integer): Same-day birth order number (digits 9–11).\n- `securityDigit` (string): 2-digit checksum (last two digits).\n- `maskedCode` (string): Code with middle digits masked.",
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "isValid": true,
                    "birthDate": "1990-08-02",
                    "age": 35,
                    "birthOrderNumber": 12,
                    "securityDigit": "45",
                    "maskedCode": "1990-****-**245"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Error. Body: { code, message }.\n\n- code -188: `code` is empty or whitespace. Invalid checksum/format returns HTTP 200 with data.isValid=false, not 400.\n- code -397: A parameter or the request body could not be read (e.g. text in a numeric field, malformed JSON). message names the invalid fields. No credits are charged."
          },
          "401": {
            "description": "Error. Body: { code, message }.\n\n- code -100: x-api-key is missing, empty, malformed, inactive, banned, expired, IP-restricted, or not allowed for this API."
          },
          "410": {
            "description": "Error. Body: { code, message }.\n\n- code -380: The API has been disabled or retired."
          },
          "413": {
            "description": "Error. Body: { code, message }.\n\n- code -390: The request body exceeds this endpoint's size limit. No credits are charged. For bodies far above the limit the connection may close before the upload finishes; the client may then see 502 instead of 413 (still no credits charged)."
          },
          "429": {
            "description": "Error. Body: { code, message }.\n\n- code -221: Per-minute request limit exceeded. Response headers: x-rate-limit-limit, x-rate-limit-remaining, x-rate-limit-reset.\n- code -395: Package credit quota cannot cover this request. Besides code / message the body also has limit, currentUsage and requestCost.\n- code -394: Too many invalid keys were tried from this IP in a short time. Wait for the Retry-After header duration."
          },
          "500": {
            "description": "Error. Body: { code, message }.\n\n- code -1: Unexpected server error. message is a generic error text without technical details."
          }
        },
        "x-credit-cost": 1,
        "x-api-id": 7
      }
    },
    "/api/v1/taiwanesepersonalcodevalidator": {
      "get": {
        "tags": [
          "PersonalCode"
        ],
        "summary": "Taiwanese Personal Code Validator",
        "description": "Validates Taiwanese national ID and, when possible, returns birth date / gender / check digit. Invalid codes return isValid=false with HTTP 200.\n\nCost: 1 credit per successful request; failed requests are free.\n\n- Success body is { data: { ... } }. Error body is { code, message }. code is an ApiResponseCode enum value (negative integer).",
        "operationId": "TaiwanesePersonalCodeValidatorApi",
        "parameters": [
          {
            "name": "code",
            "in": "query",
            "description": "Identity code to validate.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. Body: { data: { ... } }.\n\nFields of data:\n- `isValid` (boolean): true when the code matches checksum and format rules. Invalid codes still return HTTP 200.\n- `gender` (integer): Gender code. 1=male, 0=female. From the 2nd character.\n- `genderText` (string): Gender text: Male or Female.\n- `regionCode` (string): First letter: city/region code (e.g. A=Taipei).\n- `securityDigit` (integer): Check digit (last digit).\n- `maskedCode` (string): Code with middle digits masked.",
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "isValid": true,
                    "gender": 1,
                    "genderText": "Male",
                    "regionCode": "A",
                    "securityDigit": 9,
                    "maskedCode": "A****789"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Error. Body: { code, message }.\n\n- code -188: `code` is empty or whitespace. Invalid checksum/format returns HTTP 200 with data.isValid=false, not 400.\n- code -397: A parameter or the request body could not be read (e.g. text in a numeric field, malformed JSON). message names the invalid fields. No credits are charged."
          },
          "401": {
            "description": "Error. Body: { code, message }.\n\n- code -100: x-api-key is missing, empty, malformed, inactive, banned, expired, IP-restricted, or not allowed for this API."
          },
          "410": {
            "description": "Error. Body: { code, message }.\n\n- code -380: The API has been disabled or retired."
          },
          "413": {
            "description": "Error. Body: { code, message }.\n\n- code -390: The request body exceeds this endpoint's size limit. No credits are charged. For bodies far above the limit the connection may close before the upload finishes; the client may then see 502 instead of 413 (still no credits charged)."
          },
          "429": {
            "description": "Error. Body: { code, message }.\n\n- code -221: Per-minute request limit exceeded. Response headers: x-rate-limit-limit, x-rate-limit-remaining, x-rate-limit-reset.\n- code -395: Package credit quota cannot cover this request. Besides code / message the body also has limit, currentUsage and requestCost.\n- code -394: Too many invalid keys were tried from this IP in a short time. Wait for the Retry-After header duration."
          },
          "500": {
            "description": "Error. Body: { code, message }.\n\n- code -1: Unexpected server error. message is a generic error text without technical details."
          }
        },
        "x-credit-cost": 1,
        "x-api-id": 8
      }
    },
    "/api/v1/mohrepersoncodevalidator": {
      "get": {
        "tags": [
          "PersonalCode"
        ],
        "summary": "UAE Emirates ID Validator",
        "description": "Validates UAE Emirates ID and, when possible, returns birth date / gender / check digit. Invalid codes return isValid=false with HTTP 200.\n\nCost: 1 credit per successful request; failed requests are free.\n\n- Success body is { data: { ... } }. Error body is { code, message }. code is an ApiResponseCode enum value (negative integer).",
        "operationId": "EmiratiPersonalCodeValidatorApi",
        "parameters": [
          {
            "name": "code",
            "in": "query",
            "description": "Identity code to validate.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. Body: { data: { ... } }.\n\nFields of data:\n- `isValid` (boolean): true when the code matches checksum and format rules. Invalid codes still return HTTP 200.\n- `birthDate` (string): Date derived from birth year YYYY-MM-DD. Day/month may be 01-01.\n- `age` (integer): Age from the birth year.\n- `securityDigit` (integer): Check digit.\n- `maskedCode` (string): Emirates ID with middle digits masked.",
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "isValid": true,
                    "birthDate": "1990-08-02",
                    "age": 35,
                    "securityDigit": 1,
                    "maskedCode": "7841-****-****-0001"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Error. Body: { code, message }.\n\n- code -188: `code` is empty or whitespace. Invalid checksum/format returns HTTP 200 with data.isValid=false, not 400.\n- code -397: A parameter or the request body could not be read (e.g. text in a numeric field, malformed JSON). message names the invalid fields. No credits are charged."
          },
          "401": {
            "description": "Error. Body: { code, message }.\n\n- code -100: x-api-key is missing, empty, malformed, inactive, banned, expired, IP-restricted, or not allowed for this API."
          },
          "410": {
            "description": "Error. Body: { code, message }.\n\n- code -380: The API has been disabled or retired."
          },
          "413": {
            "description": "Error. Body: { code, message }.\n\n- code -390: The request body exceeds this endpoint's size limit. No credits are charged. For bodies far above the limit the connection may close before the upload finishes; the client may then see 502 instead of 413 (still no credits charged)."
          },
          "429": {
            "description": "Error. Body: { code, message }.\n\n- code -221: Per-minute request limit exceeded. Response headers: x-rate-limit-limit, x-rate-limit-remaining, x-rate-limit-reset.\n- code -395: Package credit quota cannot cover this request. Besides code / message the body also has limit, currentUsage and requestCost.\n- code -394: Too many invalid keys were tried from this IP in a short time. Wait for the Retry-After header duration."
          },
          "500": {
            "description": "Error. Body: { code, message }.\n\n- code -1: Unexpected server error. message is a generic error text without technical details."
          }
        },
        "x-credit-cost": 1,
        "x-api-id": 9
      }
    },
    "/api/v1/phonevalidator": {
      "get": {
        "tags": [
          "Phone"
        ],
        "summary": "Phone Validator",
        "description": "libphonenumber locally. No network. Invalid parse returns HTTP 200 with isValid=false.\n\nCost: 1 credit per successful request; failed requests are free.\n\n- Success body is { data: { ... } }. Error body is { code, message }. code is an ApiResponseCode enum value (negative integer).",
        "operationId": "PhoneValidator",
        "parameters": [
          {
            "name": "number",
            "in": "query",
            "description": "Phone. +E.164 or national.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "defaultRegion",
            "in": "query",
            "description": "ISO region TR, EE ... required without +.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. Body: { data: { ... } }.\n\nFields of data:\n- `isValid` (boolean): true when the number is valid.\n- `isPossible` (boolean): true when the length is possible.\n- `e164` (string): E.164 format.\n- `national` (string): National format.\n- `international` (string): International format.\n- `region` (string): ISO region code.\n- `type` (string): mobile, fixed_line, ...\n- `countryCallingCode` (integer): Country calling code.",
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "isValid": true,
                    "isPossible": true,
                    "e164": "+905321234567",
                    "national": "0532 123 45 67",
                    "international": "+90 532 123 45 67",
                    "region": "TR",
                    "type": "mobile",
                    "countryCallingCode": 90
                  }
                }
              }
            }
          },
          "400": {
            "description": "Error. Body: { code, message }.\n\n- code -281: number is empty.\n- code -282: number has no + and defaultRegion is missing.\n- code -397: A parameter or the request body could not be read (e.g. text in a numeric field, malformed JSON). message names the invalid fields. No credits are charged."
          },
          "401": {
            "description": "Error. Body: { code, message }.\n\n- code -100: x-api-key is missing, empty, malformed, inactive, banned, expired, IP-restricted, or not allowed for this API."
          },
          "410": {
            "description": "Error. Body: { code, message }.\n\n- code -380: The API has been disabled or retired."
          },
          "413": {
            "description": "Error. Body: { code, message }.\n\n- code -390: The request body exceeds this endpoint's size limit. No credits are charged. For bodies far above the limit the connection may close before the upload finishes; the client may then see 502 instead of 413 (still no credits charged)."
          },
          "429": {
            "description": "Error. Body: { code, message }.\n\n- code -221: Per-minute request limit exceeded. Response headers: x-rate-limit-limit, x-rate-limit-remaining, x-rate-limit-reset.\n- code -395: Package credit quota cannot cover this request. Besides code / message the body also has limit, currentUsage and requestCost.\n- code -394: Too many invalid keys were tried from this IP in a short time. Wait for the Retry-After header duration."
          },
          "500": {
            "description": "Error. Body: { code, message }.\n\n- code -1: Unexpected server error. message is a generic error text without technical details."
          }
        },
        "x-credit-cost": 1,
        "x-api-id": 63
      }
    },
    "/api/v1/qrcodegenerator": {
      "post": {
        "tags": [
          "QrCode"
        ],
        "summary": "QR Code Generator",
        "description": "Generates a QR code and returns a download URL.\n\nCost: 5 credits per successful request; failed requests are free.\n\n- Success body is { data: { ... } }. Error body is { code, message }. code is an ApiResponseCode enum value (negative integer).",
        "operationId": "QrCodeGeneratorApiPost",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GenerateQrCodeRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success. Body: { data: { ... } }.\n\nFields of data:\n- `downloadUrl` (string): Signed download URL (X-Amz-Expires). Becomes invalid after expires.\n- `type` (string): Generated content type. Example: Url, Text, Wifi, Vcard.\n- `format` (string): File format: png, webp, jpeg or svg.\n- `correction` (string): QR error-correction level. L / M / Q / H. Default M.\n- `expires` (number): Unix epoch expiry of the download URL (seconds).",
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "downloadUrl": "https://files.erseapi.com/images/sample/output.png?X-Amz-Expires=86400",
                    "type": "Url",
                    "format": "png",
                    "correction": "M",
                    "expires": 1771891200
                  }
                }
              }
            }
          },
          "400": {
            "description": "Error. Body: { code, message }.\n\n- code -187: JSON body is missing.\n- code -195: Unsupported type. Must be 1–8 (text, url, email, phone, sms, geo, wifi, vcard).\n- code -189: type=1 (text) and text is empty.\n- code -190: type=2 (url) and url is invalid.\n- code -191: type=3 (email) and the email is invalid.\n- code -192: type=4/5 (phone/sms) and phone is empty.\n- code -193: type=7 (wifi) and SSID is empty.\n- code -194: type=8 (vcard) and firstName is empty.\n- code -202: iconBase64 could not be decoded or is an unsupported image.\n- code -398: format is not png / jpeg / jpg / webp, a color is not in #RRGGBB format, the content exceeds QR capacity, or body field types do not match.\n- code -397: A parameter or the request body could not be read (e.g. text in a numeric field, malformed JSON). message names the invalid fields. No credits are charged."
          },
          "401": {
            "description": "Error. Body: { code, message }.\n\n- code -100: x-api-key is missing, empty, malformed, inactive, banned, expired, IP-restricted, or not allowed for this API."
          },
          "410": {
            "description": "Error. Body: { code, message }.\n\n- code -380: The API has been disabled or retired."
          },
          "413": {
            "description": "Error. Body: { code, message }.\n\n- code -390: The request body exceeds this endpoint's size limit. No credits are charged. For bodies far above the limit the connection may close before the upload finishes; the client may then see 502 instead of 413 (still no credits charged)."
          },
          "429": {
            "description": "Error. Body: { code, message }.\n\n- code -221: Per-minute request limit exceeded. Response headers: x-rate-limit-limit, x-rate-limit-remaining, x-rate-limit-reset.\n- code -395: Package credit quota cannot cover this request. Besides code / message the body also has limit, currentUsage and requestCost.\n- code -394: Too many invalid keys were tried from this IP in a short time. Wait for the Retry-After header duration."
          },
          "500": {
            "description": "Error. Body: { code, message }.\n\n- code -196: Generated QR could not be stored.\n- code -197: Download URL could not be created.\n- code -1: Unexpected server error. message is a generic error text without technical details."
          }
        },
        "x-credit-cost": 5,
        "x-api-id": 10
      }
    },
    "/api/v1/translator": {
      "post": {
        "tags": [
          "TextProcessing"
        ],
        "summary": "Text Translator",
        "description": "Translates text to a target language.\n\nCost: 100 credits per successful request; failed requests are free.\n\n- Success body is { data: { ... } }. Error body is { code, message }. code is an ApiResponseCode enum value (negative integer).",
        "operationId": "TranslatorPost",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TranslateTextRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/TranslateTextRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/TranslateTextRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. Body: { data: { ... } }.\n\nFields of data:\n- `sourceLang` (string): Source language ISO code (tr, en, de ...). Detected when source is empty.\n- `targetLang` (string): Target language ISO code. Same as the request target.\n- `translatedText` (string): Translated text. Translation of the input (max 500 characters).",
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "sourceLang": "en",
                    "targetLang": "tr",
                    "translatedText": "Merhaba dünya"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Error. Body: { code, message }.\n\n- code -218: target is empty or an unsupported language code.\n- code -223: source was sent but is an unsupported language code.\n- code -222: source and target are the same language.\n- code -219: text is empty.\n- code -399: text is longer than 500 characters.\n- code -397: A parameter or the request body could not be read (e.g. text in a numeric field, malformed JSON). message names the invalid fields. No credits are charged."
          },
          "401": {
            "description": "Error. Body: { code, message }.\n\n- code -100: x-api-key is missing, empty, malformed, inactive, banned, expired, IP-restricted, or not allowed for this API."
          },
          "410": {
            "description": "Error. Body: { code, message }.\n\n- code -380: The API has been disabled or retired."
          },
          "413": {
            "description": "Error. Body: { code, message }.\n\n- code -390: The request body exceeds this endpoint's size limit. No credits are charged. For bodies far above the limit the connection may close before the upload finishes; the client may then see 502 instead of 413 (still no credits charged)."
          },
          "429": {
            "description": "Error. Body: { code, message }.\n\n- code -221: Per-minute request limit exceeded. Response headers: x-rate-limit-limit, x-rate-limit-remaining, x-rate-limit-reset.\n- code -395: Package credit quota cannot cover this request. Besides code / message the body also has limit, currentUsage and requestCost.\n- code -394: Too many invalid keys were tried from this IP in a short time. Wait for the Retry-After header duration."
          },
          "500": {
            "description": "Error. Body: { code, message }.\n\n- code -220: Google API access token could not be obtained.\n- code -1: Unexpected server error. message is a generic error text without technical details."
          },
          "502": {
            "description": "Error. Body: { code, message }.\n\n- code -377: Google Translation returned an error (third party; not counted as downtime in the SLA)."
          },
          "503": {
            "description": "Error. Body: { code, message }.\n\n- code -377: Google Translation unreachable, timed out or rate-limited (third party; retry after Retry-After)."
          }
        },
        "x-credit-cost": 100,
        "x-api-id": 16
      }
    },
    "/api/v1/languagedetector": {
      "post": {
        "tags": [
          "TextProcessing"
        ],
        "summary": "Language Detector",
        "description": "Detects the language of a text.\n\nCost: 1 credit per successful request; failed requests are free.\n\n- Success body is { data: { ... } }. Error body is { code, message }. code is an ApiResponseCode enum value (negative integer).",
        "operationId": "LanguageDetectorPost",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DetectLanguageRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/DetectLanguageRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/DetectLanguageRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success. Body: { data: { ... } }.\n\nFields of data:\n- `languageCode` (string): Detected ISO 639 language code (tr, en, de ...).\n- `confidence` (number): Confidence 0–1. Closer to 1 means more certain.",
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "languageCode": "tr",
                    "confidence": 0.98
                  }
                }
              }
            }
          },
          "400": {
            "description": "Error. Body: { code, message }.\n\n- code -219: text is empty.\n- code -399: text is longer than 500 characters.\n- code -397: A parameter or the request body could not be read (e.g. text in a numeric field, malformed JSON). message names the invalid fields. No credits are charged."
          },
          "401": {
            "description": "Error. Body: { code, message }.\n\n- code -100: x-api-key is missing, empty, malformed, inactive, banned, expired, IP-restricted, or not allowed for this API."
          },
          "410": {
            "description": "Error. Body: { code, message }.\n\n- code -380: The API has been disabled or retired."
          },
          "413": {
            "description": "Error. Body: { code, message }.\n\n- code -390: The request body exceeds this endpoint's size limit. No credits are charged. For bodies far above the limit the connection may close before the upload finishes; the client may then see 502 instead of 413 (still no credits charged)."
          },
          "429": {
            "description": "Error. Body: { code, message }.\n\n- code -221: Per-minute request limit exceeded. Response headers: x-rate-limit-limit, x-rate-limit-remaining, x-rate-limit-reset.\n- code -395: Package credit quota cannot cover this request. Besides code / message the body also has limit, currentUsage and requestCost.\n- code -394: Too many invalid keys were tried from this IP in a short time. Wait for the Retry-After header duration."
          },
          "500": {
            "description": "Error. Body: { code, message }.\n\n- code -220: Google API access token could not be obtained.\n- code -1: Unexpected server error. message is a generic error text without technical details."
          },
          "502": {
            "description": "Error. Body: { code, message }.\n\n- code -377: Google language detection returned an error (third party; not counted as downtime in the SLA)."
          },
          "503": {
            "description": "Error. Body: { code, message }.\n\n- code -377: Google language detection unreachable, timed out or rate-limited (third party; retry after Retry-After)."
          }
        },
        "x-credit-cost": 1,
        "x-api-id": 17
      }
    },
    "/api/v1/vknvalidator": {
      "get": {
        "tags": [
          "Vkn"
        ],
        "summary": "VKN Validator",
        "description": "10-digit VKN checksum. Invalid codes return HTTP 200 with isValid=false. Not a registry lookup.\n\nCost: 1 credit per successful request; failed requests are free.\n\n- Success body is { data: { ... } }. Error body is { code, message }. code is an ApiResponseCode enum value (negative integer).",
        "operationId": "VknValidator",
        "parameters": [
          {
            "name": "code",
            "in": "query",
            "description": "10-digit VKN.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. Body: { data: { ... } }.\n\nFields of data:\n- `isValid` (boolean): true when checksum is valid.\n- `checkDigit` (integer): 10th digit. Null when invalid.\n- `maskedCode` (string): VKN with the middle masked.",
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "isValid": true,
                    "checkDigit": 0,
                    "maskedCode": "12******90"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Error. Body: { code, message }.\n\n- code -188: code is empty.\n- code -397: A parameter or the request body could not be read (e.g. text in a numeric field, malformed JSON). message names the invalid fields. No credits are charged."
          },
          "401": {
            "description": "Error. Body: { code, message }.\n\n- code -100: x-api-key is missing, empty, malformed, inactive, banned, expired, IP-restricted, or not allowed for this API."
          },
          "410": {
            "description": "Error. Body: { code, message }.\n\n- code -380: The API has been disabled or retired."
          },
          "413": {
            "description": "Error. Body: { code, message }.\n\n- code -390: The request body exceeds this endpoint's size limit. No credits are charged. For bodies far above the limit the connection may close before the upload finishes; the client may then see 502 instead of 413 (still no credits charged)."
          },
          "429": {
            "description": "Error. Body: { code, message }.\n\n- code -221: Per-minute request limit exceeded. Response headers: x-rate-limit-limit, x-rate-limit-remaining, x-rate-limit-reset.\n- code -395: Package credit quota cannot cover this request. Besides code / message the body also has limit, currentUsage and requestCost.\n- code -394: Too many invalid keys were tried from this IP in a short time. Wait for the Retry-After header duration."
          },
          "500": {
            "description": "Error. Body: { code, message }.\n\n- code -1: Unexpected server error. message is a generic error text without technical details."
          }
        },
        "x-credit-cost": 1,
        "x-api-id": 62
      }
    },
    "/api/v1/weather/history": {
      "get": {
        "tags": [
          "Weather"
        ],
        "summary": "Weather History",
        "description": "Daily or hourly historical weather for a point (up to 2 years). Values are bilinearly interpolated from the 4 surrounding cells. On days sourced from ERA5-Land, precipitation probability (from observed precipitation; 0–1, share of surrounding cells with precipitation), UV index (approximate, from solar radiation) and the weather code of wet hours / days (from precipitation and snow; no fog, shower or thunderstorm distinction) are derived values; UV is daily only. Cloud cover and the weather code of dry hours / days are not derived from ERA5; they come from other sources when available, otherwise null. Wind gust comes from ERA5 (0.25° grid). Weather data © Copernicus ERA5 / ERA5-Land (contains modified Copernicus Climate Change Service information) / Open-Meteo / OpenWeather / MET Norway.\n\nCost: 3 credits per successful request; failed requests are free.\n\n- Success body is { data: { ... } }. Error body is { code, message }. code is an ApiResponseCode enum value (negative integer).",
        "operationId": "WeatherHistory",
        "parameters": [
          {
            "name": "latitude",
            "in": "query",
            "description": "Point latitude -90..90.",
            "required": true,
            "schema": {
              "type": "number",
              "format": "double"
            }
          },
          {
            "name": "longitude",
            "in": "query",
            "description": "Point longitude -180..180.",
            "required": true,
            "schema": {
              "type": "number",
              "format": "double"
            }
          },
          {
            "name": "fromDate",
            "in": "query",
            "description": "Start YYYY-MM-DD. At most 2 years ago. Range ≤ 366 days.",
            "required": true,
            "schema": {
              "type": "string",
              "default": "2026-06-01"
            }
          },
          {
            "name": "toDate",
            "in": "query",
            "description": "End YYYY-MM-DD. At most yesterday.",
            "required": true,
            "schema": {
              "type": "string",
              "default": "2026-06-30"
            }
          },
          {
            "name": "granularity",
            "in": "query",
            "description": "daily or hourly. Default daily. Values: daily, hourly.",
            "schema": {
              "type": "string",
              "default": "daily"
            }
          },
          {
            "name": "fields",
            "in": "query",
            "description": "Comma-separated field list. All fields when empty. Valid keys are listed under Options (tmin/tmax/tmean/precip... daily only, temp hourly only). Values: temp, tmin, tmax, tmean, precip, precipprob, snow, wind, windgust, winddir, humidity, pressure, cloud, uvi, dewpoint, et0, sunrise, sunset, daylight, weathercode.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. Body: { data: { ... } }.\n\nFields of data:\n- `granularity` (string): Granularity used.\n- `fromDate` (string): Window start YYYY-MM-DD.\n- `toDate` (string): Window end YYYY-MM-DD.\n- `daysTotal` (integer): Calendar days in the window.\n- `daysWithData` (integer): Days with data (daily).\n- `hoursWithData` (integer): Hours with data (hourly).\n- `missingCount` (integer): Days without data.\n- `missingDates` (array): YYYY-MM-DD list of missing days (first 10).\n- `gridLatitude` (number): Latitude of the 0.1° grid corner around the request (interpolation reference).\n- `gridLongitude` (number): Longitude of the 0.1° grid corner.\n- `gridInterpolated` (boolean): true: values bilinearly blended from the 4 surrounding cells. false: single cell.\n- `sources` (array): Data sources that contributed: copernicus-era5-land, open-meteo, openweather, met-norway. For past days (older than about a week) Copernicus ERA5 / ERA5-Land takes precedence; UV, precipitation probability and the weather code of wet hours / days are derived from ERA5-Land variables, wind gust comes from ERA5 (0.25°); cloud cover and the weather code of dry hours / days are filled from other sources when available. At coastal / sea points ERA5-Land values come from the nearest land grid point.\n- `disclaimer` (string): Decision-support disclaimer and source attribution.\n- `daily` (array): Daily rows when granularity is daily.\n- `daily[].date` (string): Day YYYY-MM-DD (UTC).\n- `daily[].tmin` (number): Minimum temperature °C.\n- `daily[].tmax` (number): Maximum temperature °C.\n- `daily[].tmean` (number): Mean temperature °C.\n- `daily[].precipMm` (number): Total precipitation mm.\n- `daily[].snowMm` (number): Snow mm (approx. water equivalent).\n- `daily[].windKmh` (number): Max wind km/h.\n- `daily[].windGustKmh` (number): Max wind gust km/h. For past days from ERA5 (0.25° grid, daily max of end-of-hour hourly gusts); may be lower than mean wind (windKmh, 0.1° ERA5-Land). May be null.\n- `daily[].windDirectionDeg` (number): Dominant wind direction degrees.\n- `daily[].humidityPercent` (number): Mean relative humidity %.\n- `daily[].pressureHpa` (number): Mean pressure hPa.\n- `daily[].cloudPercent` (number): Mean cloud cover %. May be null.\n- `daily[].uvi` (number): Max UV index (forecast only).\n- `daily[].dewPointC` (number): Mean dew point °C.\n- `daily[].et0Mm` (number): Reference evapotranspiration ET0 mm (FAO-56).\n- `daily[].sunrise` (string): Sunrise UTC ISO.\n- `daily[].sunset` (string): Sunset UTC ISO.\n- `daily[].daylightMinutes` (integer): Daylight duration minutes.\n- `daily[].weatherCode` (integer): OpenWeather-style condition code (800 clear, 5xx rain ...).\n- `hourly` (array): Hourly rows when granularity is hourly/both.\n- `hourly[].time` (string): Hour UTC ISO.\n- `hourly[].tempC` (number): Temperature °C.\n- `hourly[].humidityPercent` (number): Relative humidity %.\n- `hourly[].windKmh` (number): Wind km/h.\n- `hourly[].windGustKmh` (number): Wind gust km/h (max gust over the preceding hour). May be null.\n- `hourly[].precipMm` (number): Precipitation in that hour mm.\n- `hourly[].precipProbability` (number): Precipitation probability 0–1 (when available).\n- `hourly[].cloudPercent` (number): Cloud cover %. May be null.\n- `hourly[].weatherCode` (integer): OpenWeather-style condition code.",
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "gridLatitude": 39.90,
                    "gridLongitude": 32.90,
                    "gridInterpolated": true,
                    "granularity": "daily",
                    "fromDate": "2026-06-01",
                    "toDate": "2026-06-03",
                    "daysTotal": 3,
                    "daysWithData": 3,
                    "hoursWithData": 0,
                    "missingCount": 0,
                    "missingDates": [ ],
                    "daily": [
                      {
                        "date": "2026-06-01",
                        "tmin": 14.2,
                        "tmax": 27.9,
                        "tmean": 20.8,
                        "precipMm": 0.0,
                        "windKmh": 11.5,
                        "humidityPercent": 46.0,
                        "et0Mm": 5.10,
                        "weatherCode": 800
                      },
                      {
                        "date": "2026-06-02",
                        "tmin": 15.0,
                        "tmax": 29.1,
                        "tmean": 21.6,
                        "precipMm": 1.2,
                        "windKmh": 13.0,
                        "humidityPercent": 52.0,
                        "et0Mm": 5.44,
                        "weatherCode": 500
                      }
                    ],
                    "hourly": [ ],
                    "sources": [
                      "open-meteo"
                    ],
                    "disclaimer": "Weather data aggregated from Copernicus ERA5 / ERA5-Land, Open-Meteo, OpenWeather and MET Norway. Contains modified Copernicus Climate Change Service information. Decision support only."
                  }
                }
              }
            }
          },
          "400": {
            "description": "Error. Body: { code, message }.\n\n- code -257: latitude/longitude missing or out of range (lat -90..90, lon -180..180).\n- code -258: fromDate/toDate not YYYY-MM-DD, range exceeds 366 days, or outside the last 2 years / after yesterday. granularity=hourly: range at most 31 days, last 400 days only.\n- code -259: granularity/days/hours/metric/op/comparator is invalid.\n- code -397: A parameter or the request body could not be read (e.g. text in a numeric field, malformed JSON). message names the invalid fields. No credits are charged."
          },
          "401": {
            "description": "Error. Body: { code, message }.\n\n- code -100: x-api-key is missing, empty, malformed, inactive, banned, expired, IP-restricted, or not allowed for this API."
          },
          "410": {
            "description": "Error. Body: { code, message }.\n\n- code -380: The API has been disabled or retired."
          },
          "413": {
            "description": "Error. Body: { code, message }.\n\n- code -390: The request body exceeds this endpoint's size limit. No credits are charged. For bodies far above the limit the connection may close before the upload finishes; the client may then see 502 instead of 413 (still no credits charged)."
          },
          "429": {
            "description": "Error. Body: { code, message }.\n\n- code -316: Daily new location (cell) limit (50) reached. Previously requested locations keep working; new locations next day (UTC). Retry-After header gives seconds until end of day.\n- code -221: Per-minute request limit exceeded. Response headers: x-rate-limit-limit, x-rate-limit-remaining, x-rate-limit-reset.\n- code -395: Package credit quota cannot cover this request. Besides code / message the body also has limit, currentUsage and requestCost.\n- code -394: Too many invalid keys were tried from this IP in a short time. Wait for the Retry-After header duration."
          },
          "500": {
            "description": "Error. Body: { code, message }.\n\n- code -1: Unexpected server error. message is a generic error text without technical details."
          },
          "503": {
            "description": "Error. Body: { code, message }.\n\n- code -261: No stored weather for this location yet. Cells were created; the collector is filling them. Retry shortly."
          }
        },
        "x-credit-cost": 3,
        "x-api-id": 54
      }
    },
    "/api/v1/weather/forecast": {
      "get": {
        "tags": [
          "Weather"
        ],
        "summary": "Weather Forecast",
        "description": "Daily forecast up to 10 days and hourly up to 96 hours for a point. MET Norway is preferred for Baltic/Nordic points, Open-Meteo (ICON-EU) elsewhere.\n\nCost: 2 credits per successful request; failed requests are free.\n\n- Success body is { data: { ... } }. Error body is { code, message }. code is an ApiResponseCode enum value (negative integer).",
        "operationId": "WeatherForecast",
        "parameters": [
          {
            "name": "latitude",
            "in": "query",
            "description": "Point latitude -90..90.",
            "required": true,
            "schema": {
              "type": "number",
              "format": "double"
            }
          },
          {
            "name": "longitude",
            "in": "query",
            "description": "Point longitude -180..180.",
            "required": true,
            "schema": {
              "type": "number",
              "format": "double"
            }
          },
          {
            "name": "granularity",
            "in": "query",
            "description": "daily, hourly or both. Default daily. Values: daily, hourly, both.",
            "schema": {
              "type": "string",
              "default": "daily"
            }
          },
          {
            "name": "days",
            "in": "query",
            "description": "Daily forecast days 1–10. Default 10.",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 10
            }
          },
          {
            "name": "hours",
            "in": "query",
            "description": "Hourly forecast hours 1–96. Default 96.",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 96
            }
          },
          {
            "name": "fields",
            "in": "query",
            "description": "Comma-separated field list. All fields when empty. Valid keys are listed under Options (tmin/tmax/tmean... daily only, temp hourly only). Values: temp, tmin, tmax, tmean, precip, precipprob, snow, wind, windgust, winddir, humidity, pressure, cloud, uvi, dewpoint, et0, sunrise, sunset, daylight, weathercode.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. Body: { data: { ... } }.\n\nFields of data:\n- `granularity` (string): Granularity used.\n- `fromDate` (string): First daily date (daily/both).\n- `toDate` (string): Last daily date (daily/both).\n- `fromTime` (string): First hourly time UTC ISO (hourly/both).\n- `toTime` (string): Last hourly time UTC ISO (hourly/both).\n- `daysReturned` (integer): Number of daily rows returned.\n- `hoursReturned` (integer): Number of hourly rows returned.\n- `gridLatitude` (number): Latitude of the 0.1° grid corner around the request (interpolation reference).\n- `gridLongitude` (number): Longitude of the 0.1° grid corner.\n- `gridInterpolated` (boolean): true: values bilinearly blended from the 4 surrounding cells. false: single cell.\n- `sources` (array): Data sources that contributed: copernicus-era5-land, open-meteo, openweather, met-norway. For past days (older than about a week) Copernicus ERA5 / ERA5-Land takes precedence; UV, precipitation probability and the weather code of wet hours / days are derived from ERA5-Land variables, wind gust comes from ERA5 (0.25°); cloud cover and the weather code of dry hours / days are filled from other sources when available. At coastal / sea points ERA5-Land values come from the nearest land grid point.\n- `disclaimer` (string): Decision-support disclaimer and source attribution.\n- `daily` (array): Daily rows when granularity is daily.\n- `daily[].date` (string): Day YYYY-MM-DD (UTC).\n- `daily[].tmin` (number): Minimum temperature °C.\n- `daily[].tmax` (number): Maximum temperature °C.\n- `daily[].tmean` (number): Mean temperature °C.\n- `daily[].precipMm` (number): Total precipitation mm.\n- `daily[].snowMm` (number): Snow mm (approx. water equivalent).\n- `daily[].windKmh` (number): Max wind km/h.\n- `daily[].windGustKmh` (number): Max wind gust km/h. For past days from ERA5 (0.25° grid, daily max of end-of-hour hourly gusts); may be lower than mean wind (windKmh, 0.1° ERA5-Land). May be null.\n- `daily[].windDirectionDeg` (number): Dominant wind direction degrees.\n- `daily[].humidityPercent` (number): Mean relative humidity %.\n- `daily[].pressureHpa` (number): Mean pressure hPa.\n- `daily[].cloudPercent` (number): Mean cloud cover %. May be null.\n- `daily[].uvi` (number): Max UV index (forecast only).\n- `daily[].dewPointC` (number): Mean dew point °C.\n- `daily[].et0Mm` (number): Reference evapotranspiration ET0 mm (FAO-56).\n- `daily[].sunrise` (string): Sunrise UTC ISO.\n- `daily[].sunset` (string): Sunset UTC ISO.\n- `daily[].daylightMinutes` (integer): Daylight duration minutes.\n- `daily[].weatherCode` (integer): OpenWeather-style condition code (800 clear, 5xx rain ...).\n- `hourly` (array): Hourly rows when granularity is hourly/both.\n- `hourly[].time` (string): Hour UTC ISO.\n- `hourly[].tempC` (number): Temperature °C.\n- `hourly[].humidityPercent` (number): Relative humidity %.\n- `hourly[].windKmh` (number): Wind km/h.\n- `hourly[].windGustKmh` (number): Wind gust km/h (max gust over the preceding hour). May be null.\n- `hourly[].precipMm` (number): Precipitation in that hour mm.\n- `hourly[].precipProbability` (number): Precipitation probability 0–1 (when available).\n- `hourly[].cloudPercent` (number): Cloud cover %. May be null.\n- `hourly[].weatherCode` (integer): OpenWeather-style condition code.",
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "gridLatitude": 39.90,
                    "gridLongitude": 32.90,
                    "gridInterpolated": true,
                    "granularity": "both",
                    "fromDate": "2026-08-30",
                    "toDate": "2026-09-08",
                    "fromTime": "2026-08-30T02:00:00Z",
                    "toTime": "2026-09-03T02:00:00Z",
                    "daysReturned": 10,
                    "hoursReturned": 96,
                    "daily": [
                      {
                        "date": "2026-08-30",
                        "tmin": 16.4,
                        "tmax": 31.2,
                        "tmean": 23.8,
                        "precipMm": 0.0,
                        "precipProbability": 0.05,
                        "windKmh": 12.8,
                        "et0Mm": 5.90,
                        "weatherCode": 801
                      }
                    ],
                    "hourly": [
                      {
                        "time": "2026-08-30T02:00:00Z",
                        "tempC": 18.1,
                        "humidityPercent": 62.0,
                        "windKmh": 9.4,
                        "precipMm": 0.0,
                        "cloudPercent": 20.0,
                        "weatherCode": 800
                      }
                    ],
                    "sources": [
                      "met-norway",
                      "open-meteo"
                    ],
                    "disclaimer": "Weather data aggregated from Copernicus ERA5 / ERA5-Land, Open-Meteo, OpenWeather and MET Norway. Contains modified Copernicus Climate Change Service information. Decision support only."
                  }
                }
              }
            }
          },
          "400": {
            "description": "Error. Body: { code, message }.\n\n- code -257: latitude/longitude missing or out of range (lat -90..90, lon -180..180).\n- code -258: Invalid date parameter.\n- code -259: granularity/days/hours/metric/op/comparator is invalid.\n- code -397: A parameter or the request body could not be read (e.g. text in a numeric field, malformed JSON). message names the invalid fields. No credits are charged."
          },
          "401": {
            "description": "Error. Body: { code, message }.\n\n- code -100: x-api-key is missing, empty, malformed, inactive, banned, expired, IP-restricted, or not allowed for this API."
          },
          "410": {
            "description": "Error. Body: { code, message }.\n\n- code -380: The API has been disabled or retired."
          },
          "413": {
            "description": "Error. Body: { code, message }.\n\n- code -390: The request body exceeds this endpoint's size limit. No credits are charged. For bodies far above the limit the connection may close before the upload finishes; the client may then see 502 instead of 413 (still no credits charged)."
          },
          "429": {
            "description": "Error. Body: { code, message }.\n\n- code -316: Daily new location (cell) limit (50) reached. Previously requested locations keep working; new locations next day (UTC). Retry-After header gives seconds until end of day.\n- code -221: Per-minute request limit exceeded. Response headers: x-rate-limit-limit, x-rate-limit-remaining, x-rate-limit-reset.\n- code -395: Package credit quota cannot cover this request. Besides code / message the body also has limit, currentUsage and requestCost.\n- code -394: Too many invalid keys were tried from this IP in a short time. Wait for the Retry-After header duration."
          },
          "500": {
            "description": "Error. Body: { code, message }.\n\n- code -1: Unexpected server error. message is a generic error text without technical details."
          },
          "503": {
            "description": "Error. Body: { code, message }.\n\n- code -261: No stored weather for this location yet. Cells were created; the collector is filling them. Retry shortly."
          }
        },
        "x-credit-cost": 2,
        "x-api-id": 55
      }
    },
    "/api/v1/weather/aggregate": {
      "get": {
        "tags": [
          "Weather"
        ],
        "summary": "Weather Aggregate",
        "description": "Sum / mean / min / max for a chosen metric over a date range, or the number of days crossing a threshold per a comparator (op=count).\n\nCost: 3 credits per successful request; failed requests are free.\n\n- Success body is { data: { ... } }. Error body is { code, message }. code is an ApiResponseCode enum value (negative integer).",
        "operationId": "WeatherAggregate",
        "parameters": [
          {
            "name": "latitude",
            "in": "query",
            "description": "Point latitude -90..90.",
            "required": true,
            "schema": {
              "type": "number",
              "format": "double"
            }
          },
          {
            "name": "longitude",
            "in": "query",
            "description": "Point longitude -180..180.",
            "required": true,
            "schema": {
              "type": "number",
              "format": "double"
            }
          },
          {
            "name": "fromDate",
            "in": "query",
            "description": "Start YYYY-MM-DD. Range ≤ 366 days.",
            "required": true,
            "schema": {
              "type": "string",
              "default": "2026-06-01"
            }
          },
          {
            "name": "toDate",
            "in": "query",
            "description": "End YYYY-MM-DD. At most yesterday (UTC): aggregates use observed days only.",
            "required": true,
            "schema": {
              "type": "string",
              "default": "2026-06-30"
            }
          },
          {
            "name": "metric",
            "in": "query",
            "description": "temp, tmin, tmax, precip, snow, wind, humidity, et0. Values: temp, tmin, tmax, precip, snow, wind, humidity, et0.",
            "required": true,
            "schema": {
              "type": "string",
              "default": "precip"
            }
          },
          {
            "name": "op",
            "in": "query",
            "description": "sum, mean, min, max, count. count requires threshold. Values: sum, mean, min, max, count.",
            "required": true,
            "schema": {
              "type": "string",
              "default": "sum"
            }
          },
          {
            "name": "threshold",
            "in": "query",
            "description": "Threshold. Only for op=count.",
            "schema": {
              "type": "number",
              "format": "double"
            }
          },
          {
            "name": "comparator",
            "in": "query",
            "description": "gt, gte, lt, lte. Default gt. Only for op=count. Values: gt, gte, lt, lte.",
            "schema": {
              "type": "string",
              "default": "gt"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success. Body: { data: { ... } }.\n\nFields of data:\n- `metric` (string): Metric used.\n- `op` (string): Operation used.\n- `threshold` (number): Threshold when op=count, else null.\n- `comparator` (string): Comparator when op=count, else null.\n- `fromDate` (string): Window start.\n- `toDate` (string): Window end.\n- `daysTotal` (integer): Calendar days in the window.\n- `daysWithData` (integer): Days the metric could be computed.\n- `missingCount` (integer): Days without data.\n- `value` (number): sum/mean/min/max result. null when op=count.\n- `count` (integer): Days crossing the threshold when op=count. null otherwise.\n- `unit` (string): Result unit (°C, mm, km/h, %). days when op=count.\n- `gridLatitude` (number): Latitude of the 0.1° grid corner around the request (interpolation reference).\n- `gridLongitude` (number): Longitude of the 0.1° grid corner.\n- `gridInterpolated` (boolean): true: values bilinearly blended from the 4 surrounding cells. false: single cell.\n- `sources` (array): Data sources that contributed: copernicus-era5-land, open-meteo, openweather, met-norway. For past days (older than about a week) Copernicus ERA5 / ERA5-Land takes precedence; UV, precipitation probability and the weather code of wet hours / days are derived from ERA5-Land variables, wind gust comes from ERA5 (0.25°); cloud cover and the weather code of dry hours / days are filled from other sources when available. At coastal / sea points ERA5-Land values come from the nearest land grid point.\n- `disclaimer` (string): Decision-support disclaimer and source attribution.",
            "content": {
              "application/json": {
                "example": {
                  "data": {
                    "gridLatitude": 39.90,
                    "gridLongitude": 32.90,
                    "gridInterpolated": true,
                    "metric": "precip",
                    "op": "sum",
                    "threshold": null,
                    "comparator": null,
                    "fromDate": "2026-06-01",
                    "toDate": "2026-06-30",
                    "daysTotal": 30,
                    "daysWithData": 30,
                    "missingCount": 0,
                    "value": 41.7,
                    "count": null,
                    "unit": "mm",
                    "sources": [
                      "open-meteo"
                    ],
                    "disclaimer": "Weather data aggregated from Copernicus ERA5 / ERA5-Land, Open-Meteo, OpenWeather and MET Norway. Contains modified Copernicus Climate Change Service information. Decision support only."
                  }
                }
              }
            }
          },
          "400": {
            "description": "Error. Body: { code, message }.\n\n- code -257: latitude/longitude missing or out of range (lat -90..90, lon -180..180).\n- code -258: fromDate/toDate not YYYY-MM-DD, range exceeds 366 days, or outside the last 2 years / after yesterday. granularity=hourly: range at most 31 days, last 400 days only.\n- code -259: granularity/days/hours/metric/op/comparator is invalid.\n- code -397: A parameter or the request body could not be read (e.g. text in a numeric field, malformed JSON). message names the invalid fields. No credits are charged."
          },
          "401": {
            "description": "Error. Body: { code, message }.\n\n- code -100: x-api-key is missing, empty, malformed, inactive, banned, expired, IP-restricted, or not allowed for this API."
          },
          "410": {
            "description": "Error. Body: { code, message }.\n\n- code -380: The API has been disabled or retired."
          },
          "413": {
            "description": "Error. Body: { code, message }.\n\n- code -390: The request body exceeds this endpoint's size limit. No credits are charged. For bodies far above the limit the connection may close before the upload finishes; the client may then see 502 instead of 413 (still no credits charged)."
          },
          "429": {
            "description": "Error. Body: { code, message }.\n\n- code -316: Daily new location (cell) limit (50) reached. Previously requested locations keep working; new locations next day (UTC). Retry-After header gives seconds until end of day.\n- code -221: Per-minute request limit exceeded. Response headers: x-rate-limit-limit, x-rate-limit-remaining, x-rate-limit-reset.\n- code -395: Package credit quota cannot cover this request. Besides code / message the body also has limit, currentUsage and requestCost.\n- code -394: Too many invalid keys were tried from this IP in a short time. Wait for the Retry-After header duration."
          },
          "500": {
            "description": "Error. Body: { code, message }.\n\n- code -1: Unexpected server error. message is a generic error text without technical details."
          },
          "503": {
            "description": "Error. Body: { code, message }.\n\n- code -261: No stored weather for this location yet. Cells were created; the collector is filling them. Retry shortly."
          }
        },
        "x-credit-cost": 3,
        "x-api-id": 56
      }
    }
  },
  "components": {
    "schemas": {
      "AgricultureChillHoursRequest": {
        "required": [
          "fromDate",
          "latitude",
          "longitude",
          "toDate"
        ],
        "type": "object",
        "properties": {
          "latitude": {
            "type": [
              "null",
              "number"
            ],
            "description": "Latitude -90..90. 0.1° cell.",
            "format": "double"
          },
          "longitude": {
            "type": [
              "null",
              "number"
            ],
            "description": "Longitude.",
            "format": "double"
          },
          "fromDate": {
            "type": [
              "null",
              "string"
            ],
            "description": "YYYY-MM-DD. Last 400 days only (hourly data retention)."
          },
          "toDate": {
            "type": [
              "null",
              "string"
            ],
            "description": "Max 366 days."
          },
          "baseTemp": {
            "type": [
              "null",
              "number"
            ],
            "description": "Upper threshold °C, 0..20. Default 7.2.",
            "format": "double",
            "default": 7.2
          },
          "crop": {
            "type": [
              "null",
              "string"
            ],
            "description": "Informational crop code. Values: wheat, barley, maize, sunflower, cotton, potato, tomato, rapeseed, oats, rye, sugarbeet, grape, apple, chickpea, lentil."
          },
          "includeDaily": {
            "type": [
              "null",
              "boolean"
            ],
            "description": "Daily breakdown. Default true. Values: true, false.",
            "default": true
          }
        },
        "additionalProperties": false
      },
      "AgricultureDailyTemp": {
        "type": "object",
        "properties": {
          "date": {
            "type": [
              "null",
              "string"
            ]
          },
          "tmin": {
            "type": [
              "null",
              "number"
            ],
            "format": "double"
          },
          "tmax": {
            "type": [
              "null",
              "number"
            ],
            "format": "double"
          },
          "et0Mm": {
            "type": [
              "null",
              "number"
            ],
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "AgricultureFrostRequest": {
        "type": "object",
        "properties": {
          "fromDate": {
            "type": [
              "null",
              "string"
            ],
            "description": "YYYY-MM-DD. Empty uses today plus horizonDays."
          },
          "toDate": {
            "type": [
              "null",
              "string"
            ],
            "description": "YYYY-MM-DD"
          },
          "threshold": {
            "type": [
              "null",
              "number"
            ],
            "description": "Frost threshold °C. Default 0. -20..5.",
            "format": "double",
            "default": 0
          },
          "latitude": {
            "type": [
              "null",
              "number"
            ],
            "description": "Required without dailyTemps.",
            "format": "double"
          },
          "longitude": {
            "type": [
              "null",
              "number"
            ],
            "description": "Longitude.",
            "format": "double"
          },
          "includeBreakdown": {
            "type": [
              "null",
              "boolean"
            ],
            "description": "Night breakdown. Values: true, false.",
            "default": true
          },
          "horizonDays": {
            "type": [
              "null",
              "integer"
            ],
            "description": "Forecast horizon in days when fromDate/toDate are omitted. Default 10. Range 1–10.",
            "format": "int32",
            "default": 10
          },
          "dailyTemps": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/AgricultureDailyTemp"
            }
          }
        },
        "additionalProperties": false
      },
      "AgricultureGddRequest": {
        "required": [
          "fromDate",
          "toDate"
        ],
        "type": "object",
        "properties": {
          "crop": {
            "type": [
              "null",
              "string"
            ],
            "description": "Crop code. baseTemp required if empty. Values: wheat, barley, maize, sunflower, cotton, potato, tomato, rapeseed, oats, rye, sugarbeet, grape, apple, chickpea, lentil."
          },
          "baseTemp": {
            "type": [
              "null",
              "number"
            ],
            "description": "GDD base °C.",
            "format": "double"
          },
          "upperTemp": {
            "type": [
              "null",
              "number"
            ],
            "description": "Upper cap °C.",
            "format": "double"
          },
          "fromDate": {
            "type": [
              "null",
              "string"
            ],
            "description": "YYYY-MM-DD"
          },
          "toDate": {
            "type": [
              "null",
              "string"
            ],
            "description": "Max 366 days."
          },
          "latitude": {
            "type": [
              "null",
              "number"
            ],
            "description": "0.1° cell. Required without dailyTemps.",
            "format": "double"
          },
          "longitude": {
            "type": [
              "null",
              "number"
            ],
            "description": "Longitude.",
            "format": "double"
          },
          "includeDaily": {
            "type": [
              "null",
              "boolean"
            ],
            "description": "Daily breakdown. Values: true, false.",
            "default": true
          },
          "dailyTemps": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/AgricultureDailyTemp"
            },
            "description": "[{date,tmin,tmax}]. Overrides lat/lon."
          }
        },
        "additionalProperties": false
      },
      "AgricultureHarvestWindowRequest": {
        "required": [
          "crop",
          "fromDate"
        ],
        "type": "object",
        "properties": {
          "crop": {
            "type": [
              "null",
              "string"
            ],
            "description": "Crop code. Values: wheat, barley, maize, sunflower, cotton, potato, tomato, rapeseed, oats, rye, sugarbeet, grape, apple, chickpea, lentil.",
            "default": "wheat"
          },
          "fromDate": {
            "type": [
              "null",
              "string"
            ],
            "description": "YYYY-MM-DD"
          },
          "toDate": {
            "type": [
              "null",
              "string"
            ],
            "description": "YYYY-MM-DD. Empty uses fromDate+365."
          },
          "latitude": {
            "type": [
              "null",
              "number"
            ],
            "description": "Required without dailyTemps.",
            "format": "double"
          },
          "longitude": {
            "type": [
              "null",
              "number"
            ],
            "description": "Longitude.",
            "format": "double"
          },
          "includeDaily": {
            "type": [
              "null",
              "boolean"
            ],
            "description": "Daily GDD. Default true. Values: true, false.",
            "default": true
          },
          "stageCode": {
            "type": [
              "null",
              "string"
            ],
            "description": "GDD threshold code. Default harvest. Values: emergence, flowering, harvest.",
            "default": "harvest"
          },
          "dailyTemps": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/AgricultureDailyTemp"
            },
            "description": "[{date,tmin,tmax}]. Overrides lat/lon."
          }
        },
        "additionalProperties": false
      },
      "AgricultureHourlyPoint": {
        "type": "object",
        "properties": {
          "time": {
            "type": [
              "null",
              "string"
            ]
          },
          "temp": {
            "type": [
              "null",
              "number"
            ],
            "format": "double"
          },
          "humidity": {
            "type": [
              "null",
              "number"
            ],
            "format": "double"
          },
          "windKmh": {
            "type": [
              "null",
              "number"
            ],
            "format": "double"
          },
          "rainMm": {
            "type": [
              "null",
              "number"
            ],
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "AgricultureSprayWindowRequest": {
        "type": "object",
        "properties": {
          "hours": {
            "type": [
              "null",
              "integer"
            ],
            "description": "Hours ahead. Default 48. Range 1–168.",
            "format": "int32",
            "default": 48
          },
          "includeHours": {
            "type": [
              "null",
              "boolean"
            ],
            "description": "Hourly breakdown. Values: true, false.",
            "default": true
          },
          "windMin": {
            "type": [
              "null",
              "number"
            ],
            "description": "Wind lower threshold km/h. Default 3.",
            "format": "double",
            "default": 3
          },
          "windMax": {
            "type": [
              "null",
              "number"
            ],
            "description": "Wind upper threshold km/h. Default 15.",
            "format": "double",
            "default": 15
          },
          "rain6h": {
            "type": [
              "null",
              "number"
            ],
            "description": "Max rain in previous 6 hours, mm. Default 0.2.",
            "format": "double",
            "default": 0.2
          },
          "humidityMax": {
            "type": [
              "null",
              "number"
            ],
            "description": "Humidity upper threshold %. Default 90.",
            "format": "double",
            "default": 90
          },
          "tempMin": {
            "type": [
              "null",
              "number"
            ],
            "description": "Temperature lower threshold °C. Default 10.",
            "format": "double",
            "default": 10
          },
          "tempMax": {
            "type": [
              "null",
              "number"
            ],
            "description": "Temperature upper threshold °C. Default 25.",
            "format": "double",
            "default": 25
          },
          "latitude": {
            "type": [
              "null",
              "number"
            ],
            "description": "Required without hourly. 0.1° cell.",
            "format": "double"
          },
          "longitude": {
            "type": [
              "null",
              "number"
            ],
            "description": "Longitude.",
            "format": "double"
          },
          "hourly": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/AgricultureHourlyPoint"
            },
            "description": "[{time,temp,humidity,windKmh,rainMm}]. Overrides lat/lon."
          }
        },
        "additionalProperties": false
      },
      "CurrencyConvertRequest": {
        "required": [
          "amount",
          "from",
          "to"
        ],
        "type": "object",
        "properties": {
          "amount": {
            "type": [
              "null",
              "number"
            ],
            "description": "Amount greater than zero.",
            "format": "double"
          },
          "from": {
            "type": [
              "null",
              "string"
            ],
            "description": "Source ISO 4217. Values: USD, AUD, DKK, EUR, GBP, CHF, SEK, CAD, KWD, NOK, SAR, JPY, BGN, RON, RUB, IRR, CNY, PKR, QAR, KRW, AZN, AED, XDR, TRY."
          },
          "to": {
            "type": [
              "null",
              "string"
            ],
            "description": "Target ISO 4217."
          },
          "source": {
            "type": [
              "null",
              "string"
            ],
            "description": "tcmb or ecb. Values: tcmb, ecb.",
            "default": "tcmb"
          },
          "quote": {
            "type": [
              "null",
              "string"
            ],
            "description": "TCMB quote only. Values: forexSelling, forexBuying, banknoteSelling, banknoteBuying.",
            "default": "forexSelling"
          }
        },
        "additionalProperties": false
      },
      "DetectLanguageRequest": {
        "required": [
          "text"
        ],
        "type": "object",
        "properties": {
          "text": {
            "type": [
              "null",
              "string"
            ],
            "description": "Text."
          }
        },
        "additionalProperties": false
      },
      "GenerateQrCodeRequest": {
        "type": "object",
        "properties": {
          "type": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          },
          "format": {
            "type": [
              "null",
              "string"
            ]
          },
          "size": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          },
          "foregroundColor": {
            "type": [
              "null",
              "string"
            ]
          },
          "backgroundColor": {
            "type": [
              "null",
              "string"
            ]
          },
          "useMargin": {
            "type": [
              "null",
              "boolean"
            ]
          },
          "iconBase64": {
            "type": [
              "null",
              "string"
            ]
          },
          "iconSizePercent": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          },
          "iconBorderWidth": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          },
          "text": {
            "type": [
              "null",
              "string"
            ]
          },
          "url": {
            "type": [
              "null",
              "string"
            ]
          },
          "email": {
            "type": [
              "null",
              "string"
            ]
          },
          "subject": {
            "type": [
              "null",
              "string"
            ]
          },
          "body": {
            "type": [
              "null",
              "string"
            ]
          },
          "phone": {
            "type": [
              "null",
              "string"
            ]
          },
          "message": {
            "type": [
              "null",
              "string"
            ]
          },
          "latitude": {
            "type": [
              "null",
              "number"
            ],
            "format": "double"
          },
          "longitude": {
            "type": [
              "null",
              "number"
            ],
            "format": "double"
          },
          "ssid": {
            "type": [
              "null",
              "string"
            ]
          },
          "password": {
            "type": [
              "null",
              "string"
            ]
          },
          "encryption": {
            "type": [
              "null",
              "string"
            ]
          },
          "hidden": {
            "type": [
              "null",
              "boolean"
            ]
          },
          "firstName": {
            "type": [
              "null",
              "string"
            ]
          },
          "lastName": {
            "type": [
              "null",
              "string"
            ]
          },
          "company": {
            "type": [
              "null",
              "string"
            ]
          },
          "companyTitle": {
            "type": [
              "null",
              "string"
            ]
          },
          "street": {
            "type": [
              "null",
              "string"
            ]
          },
          "houseNumber": {
            "type": [
              "null",
              "string"
            ]
          },
          "city": {
            "type": [
              "null",
              "string"
            ]
          },
          "zipCode": {
            "type": [
              "null",
              "string"
            ]
          },
          "country": {
            "type": [
              "null",
              "string"
            ]
          },
          "stateRegion": {
            "type": [
              "null",
              "string"
            ]
          },
          "website": {
            "type": [
              "null",
              "string"
            ]
          }
        },
        "additionalProperties": false
      },
      "ImageCompressRequest": {
        "required": [
          "imageBase64"
        ],
        "type": "object",
        "properties": {
          "imageBase64": {
            "type": [
              "null",
              "string"
            ],
            "description": "Source image."
          },
          "outputFormat": {
            "type": [
              "null",
              "string"
            ],
            "description": "png, jpeg, webp. Empty keeps the source format. Values: png, jpeg, webp."
          }
        },
        "additionalProperties": false
      },
      "ImageMergeRequest": {
        "required": [
          "backgroundImageBase64",
          "foregroundImageBase64"
        ],
        "type": "object",
        "properties": {
          "backgroundImageBase64": {
            "type": [
              "null",
              "string"
            ],
            "description": "Background (base64)."
          },
          "foregroundImageBase64": {
            "type": [
              "null",
              "string"
            ],
            "description": "Foreground (base64)."
          },
          "position": {
            "type": [
              "null",
              "string"
            ],
            "description": "Position. Values: TopLeft, TopCenter, TopRight, CenterLeft, Center, CenterRight, BottomLeft, BottomCenter, BottomRight.",
            "default": "Center"
          },
          "sizePercent": {
            "type": "integer",
            "description": "Foreground size as % of the background short edge.",
            "format": "int32",
            "default": 25
          },
          "borderWidth": {
            "type": "integer",
            "description": "Foreground border width (pixels, 0-200; values outside the range are clamped).",
            "format": "int32",
            "default": 0
          },
          "backdropColor": {
            "type": [
              "null",
              "string"
            ],
            "description": "Border/backdrop color.",
            "default": "#FFFFFF"
          },
          "marginPercent": {
            "type": "integer",
            "description": "Edge margin percent.",
            "format": "int32",
            "default": 0
          },
          "outputFormat": {
            "type": [
              "null",
              "string"
            ],
            "description": "Empty → png. Values: png, jpeg, webp."
          },
          "quality": {
            "type": [
              "null",
              "integer"
            ],
            "description": "JPEG/WebP quality 1–100.",
            "format": "int32",
            "default": 90
          }
        },
        "additionalProperties": false
      },
      "ImageResizeRequest": {
        "required": [
          "imageBase64"
        ],
        "type": "object",
        "properties": {
          "imageBase64": {
            "type": [
              "null",
              "string"
            ],
            "description": "Source image."
          },
          "outputFormat": {
            "type": [
              "null",
              "string"
            ],
            "description": "Empty → png. Values: png, jpeg, webp."
          },
          "quality": {
            "type": [
              "null",
              "integer"
            ],
            "description": "JPEG/WebP quality 1–100.",
            "format": "int32",
            "default": 90
          },
          "width": {
            "type": [
              "null",
              "integer"
            ],
            "description": "Target width (px).",
            "format": "int32"
          },
          "height": {
            "type": [
              "null",
              "integer"
            ],
            "description": "Target height (px).",
            "format": "int32"
          },
          "resizeMode": {
            "type": [
              "null",
              "string"
            ],
            "description": "Dynamic: keep ratio and fit. Constant: stretch to exact size. InsideFixed: fit and center on a fixed canvas. Values: Dynamic, Constant, InsideFixed.",
            "default": "Dynamic"
          },
          "backgroundColor": {
            "type": [
              "null",
              "string"
            ],
            "description": "InsideFixed canvas fill (hex)."
          }
        },
        "additionalProperties": false
      },
      "ImageWatermarkRequest": {
        "required": [
          "imageBase64",
          "text"
        ],
        "type": "object",
        "properties": {
          "imageBase64": {
            "type": [
              "null",
              "string"
            ],
            "description": "Source image (base64, data URI allowed)."
          },
          "outputFormat": {
            "type": [
              "null",
              "string"
            ],
            "description": "Empty → png. Values: png, jpeg, webp."
          },
          "quality": {
            "type": [
              "null",
              "integer"
            ],
            "description": "JPEG/WebP quality 1–100.",
            "format": "int32",
            "default": 90
          },
          "text": {
            "type": [
              "null",
              "string"
            ],
            "description": "Watermark text (max 200 characters)."
          },
          "position": {
            "type": [
              "null",
              "string"
            ],
            "description": "Position. Values: TopLeft, TopCenter, TopRight, CenterLeft, Center, CenterRight, BottomLeft, BottomCenter, BottomRight.",
            "default": "BottomRight"
          },
          "fontSizePercent": {
            "type": [
              "null",
              "integer"
            ],
            "description": "Font size percent of the short edge. 1–100.",
            "format": "int32",
            "default": 5
          },
          "fontColor": {
            "type": [
              "null",
              "string"
            ],
            "description": "Text color (hex).",
            "default": "#FFFFFF"
          },
          "opacity": {
            "type": [
              "null",
              "integer"
            ],
            "description": "Opacity %. 0=transparent, 100=opaque.",
            "format": "int32",
            "default": 50
          },
          "marginPercent": {
            "type": [
              "null",
              "integer"
            ],
            "description": "Edge margin percent.",
            "format": "int32",
            "default": 3
          },
          "bold": {
            "type": "boolean",
            "description": "Bold text. Values: true, false.",
            "default": false
          }
        },
        "additionalProperties": false
      },
      "MapsCoordinate": {
        "type": "object",
        "properties": {
          "latitude": {
            "type": "number",
            "format": "double"
          },
          "longitude": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "MapsPathLengthRequest": {
        "required": [
          "path"
        ],
        "type": "object",
        "properties": {
          "path": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/MapsCoordinate"
            },
            "description": "At least 2 points."
          },
          "includeSegments": {
            "type": [
              "null",
              "boolean"
            ],
            "description": "Segment breakdown. Values: true, false.",
            "default": true
          }
        },
        "additionalProperties": false
      },
      "MapsPointInPolygonRequest": {
        "required": [
          "latitude",
          "longitude",
          "path"
        ],
        "type": "object",
        "properties": {
          "latitude": {
            "type": "number",
            "description": "Point latitude.",
            "format": "double"
          },
          "longitude": {
            "type": "number",
            "description": "Point longitude.",
            "format": "double"
          },
          "path": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/MapsCoordinate"
            },
            "description": "Polygon points (at least 3)."
          }
        },
        "additionalProperties": false
      },
      "MapsPolygonRequest": {
        "required": [
          "path"
        ],
        "type": "object",
        "properties": {
          "path": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/MapsCoordinate"
            },
            "description": "At least 3 points: [{latitude, longitude}, ...]."
          }
        },
        "additionalProperties": false
      },
      "MathDiscountItem": {
        "type": "object",
        "properties": {
          "mode": {
            "type": [
              "null",
              "string"
            ]
          },
          "rate": {
            "type": [
              "null",
              "number"
            ],
            "format": "double"
          },
          "amountDiscount": {
            "type": [
              "null",
              "number"
            ],
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "MathDiscountRequest": {
        "required": [
          "amount"
        ],
        "type": "object",
        "properties": {
          "amount": {
            "type": [
              "null",
              "number"
            ],
            "description": "List price (GET). POST uses amount or items.",
            "format": "double"
          },
          "currency": {
            "type": [
              "null",
              "string"
            ],
            "description": "ISO code."
          },
          "mode": {
            "type": [
              "null",
              "string"
            ],
            "description": "percent or fixed. Values: percent, fixed.",
            "default": "percent"
          },
          "rate": {
            "type": [
              "null",
              "number"
            ],
            "description": "Rate for percent mode.",
            "format": "double"
          },
          "amountDiscount": {
            "type": [
              "null",
              "number"
            ],
            "description": "Discount amount for fixed mode.",
            "format": "double"
          },
          "discounts": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/MathDiscountItem"
            }
          }
        },
        "additionalProperties": false
      },
      "MathLoanRequest": {
        "required": [
          "amount",
          "rate",
          "termMonths"
        ],
        "type": "object",
        "properties": {
          "amount": {
            "type": [
              "null",
              "number"
            ],
            "description": "Principal.",
            "format": "double"
          },
          "rate": {
            "type": [
              "null",
              "number"
            ],
            "description": "Annual interest %.",
            "format": "double"
          },
          "termMonths": {
            "type": [
              "null",
              "integer"
            ],
            "description": "Term 1–360 months.",
            "format": "int32"
          },
          "currency": {
            "type": [
              "null",
              "string"
            ],
            "description": "ISO code."
          },
          "includeSchedule": {
            "type": [
              "null",
              "boolean"
            ],
            "description": "Installment schedule. Values: true, false.",
            "default": true
          }
        },
        "additionalProperties": false
      },
      "MathStatsRequest": {
        "required": [
          "values"
        ],
        "type": "object",
        "properties": {
          "values": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "type": "number",
              "format": "double"
            },
            "description": "[10, 20, 30] max 10000 items."
          }
        },
        "additionalProperties": false
      },
      "TranslateTextRequest": {
        "required": [
          "target",
          "text"
        ],
        "type": "object",
        "properties": {
          "text": {
            "type": [
              "null",
              "string"
            ],
            "description": "Text to translate (max 500 characters)."
          },
          "target": {
            "type": [
              "null",
              "string"
            ],
            "description": "Target language code (tr, en, de ...)."
          },
          "source": {
            "type": [
              "null",
              "string"
            ],
            "description": "Source language. Detected automatically if empty."
          }
        },
        "additionalProperties": false
      }
    },
    "securitySchemes": {
      "ApiKey": {
        "type": "apiKey",
        "description": "Authorization with an API key.\n\nHeader: X-API-Key\nExample: X-API-Key: abc123xyz...",
        "name": "X-API-Key",
        "in": "header"
      },
      "OAuth2": {
        "type": "oauth2",
        "description": "OAuth 2.1 authorization code with PKCE (S256 only) for MCP clients such as claude.ai and ChatGPT. Send the access token as \"Authorization: Bearer <token>\". Metadata: https://api.apikodu.com/.well-known/oauth-authorization-server",
        "flows": {
          "authorizationCode": {
            "authorizationUrl": "https://dashboard.apikodu.com/oauth/authorize",
            "tokenUrl": "https://api.apikodu.com/oauth/token",
            "refreshUrl": "https://api.apikodu.com/oauth/token",
            "scopes": {
              "mcp": "Use the APIs with the API key bound to the connection (credits and restrictions of that key apply).",
              "offline_access": "Keep the connection with refresh tokens."
            }
          }
        }
      }
    }
  },
  "security": [
    {
      "ApiKey": [ ]
    },
    {
      "OAuth2": [
        "mcp"
      ]
    }
  ],
  "tags": [
    {
      "name": "Agriculture"
    },
    {
      "name": "Climate"
    },
    {
      "name": "CryptoAddress"
    },
    {
      "name": "Email"
    },
    {
      "name": "ExchangeRate"
    },
    {
      "name": "Holiday"
    },
    {
      "name": "Iban"
    },
    {
      "name": "ImageGenerator"
    },
    {
      "name": "Maps"
    },
    {
      "name": "Market"
    },
    {
      "name": "Math"
    },
    {
      "name": "PersonalCode"
    },
    {
      "name": "Phone"
    },
    {
      "name": "QrCode"
    },
    {
      "name": "TextProcessing"
    },
    {
      "name": "Vkn"
    },
    {
      "name": "Weather"
    }
  ]
}