{
  "openapi": "3.1.0",
  "info": {
    "title": "Dataminal API",
    "version": "1.0",
    "summary": "Nigerian economic, market and election data as read-only JSON.",
    "description": "Structured Nigerian economic, market and election data from the institutions that publish it, as read-only JSON. Every data response is `{ \"count\": n, \"data\": [ ... ] }` of flat records, and most rows name the release they came from.\n\n**Authentication.** Send your API key in the `X-Api-Key` header, from a server or a script, never from a web page and never in a URL (a key in a URL is refused). Without a key, catalog and metadata routes answer in full and data routes return a ten-row sample with an `access` note. Get a key: sign in at dataminal.com, open Settings, API access, and say what you will build; every request is reviewed. A key reads only the datasets approved for it.\n\n**Limits.** Developer key: 1,000 rows per response, 60 requests a minute, 5,000 a day, 100,000 a month, 100,000 rows a day, daily series 366 days per request, `offset` up to 2,000. Production key: 5,000 rows per response, 120 a minute, 20,000 a day, 400,000 a month, 1,000,000 rows a day, daily series five years per request, `offset` up to 10,000. A key that makes more than 600 different requests in an hour (2,000 on Production) is paused for six hours, so narrow requests with filters (metric, state, period, from/to) rather than walking a table request by request. Responses carry `X-RateLimit-Remaining` and `X-Quota-Remaining`; a 429 carries `Retry-After` (seconds). Every key on an account shares one quota.\n\n**Formats.** JSON only. To save CSV, write the `data` array out, for example `pandas.DataFrame(body[\"data\"]).to_csv(\"file.csv\", index=False)`. Banking and private capital also offer whole-dataset files through `/download?file=` routes, which return a link valid for five minutes.\n\n**Errors.** 400 invalid parameters (the message names the accepted format), 401 missing, revoked or expired key, 403 licensed data or a dataset this key is not approved for, 404 unknown route, 429 rate limit or used-up quota, 503 quota check unavailable (retry after `Retry-After`). The body is `{ \"error\": \"...\", \"code\": \"...\" }`.\n\nHuman reference: https://dataminal.com/developers. Terms: https://dataminal.com/terms.",
    "termsOfService": "https://dataminal.com/terms",
    "contact": {
      "name": "Dataminal",
      "email": "research@dataminal.com",
      "url": "https://dataminal.com/developers"
    }
  },
  "servers": [
    {
      "url": "https://api.dataminal.com"
    }
  ],
  "externalDocs": {
    "description": "API reference",
    "url": "https://dataminal.com/developers"
  },
  "security": [
    {
      "ApiKey": []
    },
    {}
  ],
  "tags": [
    {
      "name": "Catalog",
      "externalDocs": {
        "url": "https://dataminal.com/developers"
      }
    },
    {
      "name": "GDP",
      "externalDocs": {
        "url": "https://dataminal.com/nigeria/gdp?tab=api"
      }
    },
    {
      "name": "CPI",
      "externalDocs": {
        "url": "https://dataminal.com/nigeria/cpi?tab=api"
      }
    },
    {
      "name": "FAAC",
      "externalDocs": {
        "url": "https://dataminal.com/nigeria/faac?tab=api"
      }
    },
    {
      "name": "Electricity",
      "externalDocs": {
        "url": "https://dataminal.com/nigeria/electricity?tab=api"
      }
    },
    {
      "name": "Oil production",
      "externalDocs": {
        "url": "https://dataminal.com/nigeria/oil?tab=api"
      }
    },
    {
      "name": "Gas production",
      "externalDocs": {
        "url": "https://dataminal.com/nigeria/gas?tab=api"
      }
    },
    {
      "name": "Crude oil price",
      "externalDocs": {
        "url": "https://dataminal.com/nigeria/crude-oil-price?tab=api"
      }
    },
    {
      "name": "World commodity prices",
      "externalDocs": {
        "url": "https://dataminal.com/nigeria/commodity-prices?tab=api"
      }
    },
    {
      "name": "VAT and company income tax",
      "externalDocs": {
        "url": "https://dataminal.com/nigeria/tax-collections?tab=api"
      }
    },
    {
      "name": "Road crashes and rail traffic",
      "externalDocs": {
        "url": "https://dataminal.com/nigeria/transport?tab=api"
      }
    },
    {
      "name": "Purchasing Managers' Index",
      "externalDocs": {
        "url": "https://dataminal.com/nigeria/pmi?tab=api"
      }
    },
    {
      "name": "Public procurement",
      "externalDocs": {
        "url": "https://dataminal.com/nigeria/procurement?tab=api"
      }
    },
    {
      "name": "Solid minerals",
      "externalDocs": {
        "url": "https://dataminal.com/nigeria/mining?tab=api"
      }
    },
    {
      "name": "State fiscal",
      "externalDocs": {
        "url": "https://dataminal.com/nigeria/state-fiscal?tab=api"
      }
    },
    {
      "name": "Exchange rate",
      "externalDocs": {
        "url": "https://dataminal.com/nigeria/exchange-rate?tab=api"
      }
    },
    {
      "name": "Foreign trade",
      "externalDocs": {
        "url": "https://dataminal.com/nigeria/trade?tab=api"
      }
    },
    {
      "name": "Labour market",
      "externalDocs": {
        "url": "https://dataminal.com/nigeria/labour-market?tab=api"
      }
    },
    {
      "name": "Telecommunications",
      "externalDocs": {
        "url": "https://dataminal.com/nigeria/telecommunications?tab=api"
      }
    },
    {
      "name": "Capital importation",
      "externalDocs": {
        "url": "https://dataminal.com/nigeria/capital-importation?tab=api"
      }
    },
    {
      "name": "Balance of payments",
      "externalDocs": {
        "url": "https://dataminal.com/nigeria/balance-of-payments?tab=api"
      }
    },
    {
      "name": "International investment position",
      "externalDocs": {
        "url": "https://dataminal.com/nigeria/international-investment-position?tab=api"
      }
    },
    {
      "name": "Pension assets",
      "externalDocs": {
        "url": "https://dataminal.com/nigeria/pension-assets?tab=api"
      }
    },
    {
      "name": "Mutual funds",
      "externalDocs": {
        "url": "https://dataminal.com/nigeria/mutual-funds?tab=api"
      }
    },
    {
      "name": "Insurance",
      "externalDocs": {
        "url": "https://dataminal.com/nigeria/insurance?tab=api"
      }
    },
    {
      "name": "DisCo performance",
      "externalDocs": {
        "url": "https://dataminal.com/nigeria/power-sector?tab=api"
      }
    },
    {
      "name": "Government finance",
      "externalDocs": {
        "url": "https://dataminal.com/nigeria/government-finance?tab=api"
      }
    },
    {
      "name": "Interest rates",
      "externalDocs": {
        "url": "https://dataminal.com/nigeria/interest-rates?tab=api"
      }
    },
    {
      "name": "Population",
      "externalDocs": {
        "url": "https://dataminal.com/nigeria/population?tab=api"
      }
    },
    {
      "name": "Banking and credit",
      "externalDocs": {
        "url": "https://dataminal.com/nigeria/banking-credit?tab=api"
      }
    },
    {
      "name": "Private equity and infrastructure funds",
      "externalDocs": {
        "url": "https://dataminal.com/nigeria/private-capital?tab=api"
      }
    },
    {
      "name": "Fixed income",
      "externalDocs": {
        "url": "https://dataminal.com/nigeria/fixed-income?tab=api"
      }
    },
    {
      "name": "Monetary",
      "externalDocs": {
        "url": "https://dataminal.com/nigeria/monetary?tab=api"
      }
    },
    {
      "name": "Public debt",
      "externalDocs": {
        "url": "https://dataminal.com/nigeria/debt?tab=api"
      }
    },
    {
      "name": "Elections",
      "externalDocs": {
        "url": "https://dataminal.com/developers#elections"
      }
    },
    {
      "name": "State Enrichment",
      "externalDocs": {
        "url": "https://dataminal.com/nigeria/state-enrichment"
      }
    },
    {
      "name": "Context",
      "externalDocs": {
        "url": "https://dataminal.com/nigeria/context/leaders"
      }
    }
  ],
  "paths": {
    "/": {
      "get": {
        "tags": [
          "Catalog"
        ],
        "operationId": "catalog__index",
        "summary": "API index",
        "description": "What the API is and how to authenticate.\n\nReference: https://dataminal.com/developers",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/datasets": {
      "get": {
        "tags": [
          "Catalog"
        ],
        "operationId": "catalog__datasets",
        "summary": "Datasets",
        "description": "Every dataset's route prefix.\n\nReference: https://dataminal.com/developers",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/downloads/allowance": {
      "get": {
        "tags": [
          "Catalog"
        ],
        "operationId": "catalog__downloads_allowance",
        "summary": "Download allowance",
        "description": "Counts one download against today's allowance and says how many are left. dataminal.com asks before it builds a CSV: a signed-in reader has 5 downloads a day, shared with whole-dataset files, and is asked to write to research@dataminal.com for more. A key reading data never needs it.\n\nReference: https://dataminal.com/developers",
        "parameters": [
          {
            "name": "file",
            "in": "query",
            "required": true,
            "description": "The file being downloaded, for example nigeria-cpi.csv.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/gdp/latest": {
      "get": {
        "tags": [
          "GDP"
        ],
        "operationId": "gdp__latest",
        "summary": "Latest quarter",
        "description": "The newest quarter's output and growth.\n\nReference: https://dataminal.com/nigeria/gdp?tab=api",
        "parameters": [
          {
            "name": "period",
            "in": "query",
            "required": false,
            "description": "One period: 2026Q2 for a quarter, 2025 for a year.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "start_period",
            "in": "query",
            "required": false,
            "description": "First period to include.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "end_period",
            "in": "query",
            "required": false,
            "description": "Last period to include.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "year",
            "in": "query",
            "required": false,
            "description": "Calendar year.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "quarter",
            "in": "query",
            "required": false,
            "description": "Quarter, 1 to 4.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "frequency",
            "in": "query",
            "required": false,
            "description": "quarterly or annual.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "series",
            "in": "query",
            "required": false,
            "description": "Series key, for example total_gdp.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "measure",
            "in": "query",
            "required": false,
            "description": "level or growth.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "price_basis",
            "in": "query",
            "required": false,
            "description": "real or nominal.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "valuation",
            "in": "query",
            "required": false,
            "description": "Valuation basis as published.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "base_year",
            "in": "query",
            "required": false,
            "description": "Base year. Defaults to the newest (2019); pass 2010 for the older series.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "sector",
            "in": "query",
            "required": false,
            "description": "Sector key.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "activity",
            "in": "query",
            "required": false,
            "description": "Activity key.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "oil_non_oil",
            "in": "query",
            "required": false,
            "description": "oil or non_oil.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum rows to return.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/gdp/history": {
      "get": {
        "tags": [
          "GDP"
        ],
        "operationId": "gdp__history",
        "summary": "History",
        "description": "Any measure over time, newest first.\n\nReference: https://dataminal.com/nigeria/gdp?tab=api",
        "parameters": [
          {
            "name": "period",
            "in": "query",
            "required": false,
            "description": "One period: 2026Q2 for a quarter, 2025 for a year.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "start_period",
            "in": "query",
            "required": false,
            "description": "First period to include.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "end_period",
            "in": "query",
            "required": false,
            "description": "Last period to include.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "year",
            "in": "query",
            "required": false,
            "description": "Calendar year.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "quarter",
            "in": "query",
            "required": false,
            "description": "Quarter, 1 to 4.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "frequency",
            "in": "query",
            "required": false,
            "description": "quarterly or annual.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "series",
            "in": "query",
            "required": false,
            "description": "Series key, for example total_gdp.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "measure",
            "in": "query",
            "required": false,
            "description": "level or growth.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "price_basis",
            "in": "query",
            "required": false,
            "description": "real or nominal.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "valuation",
            "in": "query",
            "required": false,
            "description": "Valuation basis as published.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "base_year",
            "in": "query",
            "required": false,
            "description": "Base year. Defaults to the newest (2019); pass 2010 for the older series.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "sector",
            "in": "query",
            "required": false,
            "description": "Sector key.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "activity",
            "in": "query",
            "required": false,
            "description": "Activity key.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "oil_non_oil",
            "in": "query",
            "required": false,
            "description": "oil or non_oil.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum rows to return.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/gdp/sectors": {
      "get": {
        "tags": [
          "GDP"
        ],
        "operationId": "gdp__sectors",
        "summary": "By activity",
        "description": "Output and growth by sector and activity for a period.\n\nReference: https://dataminal.com/nigeria/gdp?tab=api",
        "parameters": [
          {
            "name": "period",
            "in": "query",
            "required": false,
            "description": "One period: 2026Q2 for a quarter, 2025 for a year.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "start_period",
            "in": "query",
            "required": false,
            "description": "First period to include.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "end_period",
            "in": "query",
            "required": false,
            "description": "Last period to include.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "year",
            "in": "query",
            "required": false,
            "description": "Calendar year.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "quarter",
            "in": "query",
            "required": false,
            "description": "Quarter, 1 to 4.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "frequency",
            "in": "query",
            "required": false,
            "description": "quarterly or annual.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "series",
            "in": "query",
            "required": false,
            "description": "Series key, for example total_gdp.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "measure",
            "in": "query",
            "required": false,
            "description": "level or growth.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "price_basis",
            "in": "query",
            "required": false,
            "description": "real or nominal.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "valuation",
            "in": "query",
            "required": false,
            "description": "Valuation basis as published.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "base_year",
            "in": "query",
            "required": false,
            "description": "Base year. Defaults to the newest (2019); pass 2010 for the older series.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "sector",
            "in": "query",
            "required": false,
            "description": "Sector key.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "activity",
            "in": "query",
            "required": false,
            "description": "Activity key.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "oil_non_oil",
            "in": "query",
            "required": false,
            "description": "oil or non_oil.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum rows to return.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/gdp/oil-non-oil": {
      "get": {
        "tags": [
          "GDP"
        ],
        "operationId": "gdp__oil_non_oil",
        "summary": "Oil and non-oil",
        "description": "The oil and non-oil split.\n\nReference: https://dataminal.com/nigeria/gdp?tab=api",
        "parameters": [
          {
            "name": "period",
            "in": "query",
            "required": false,
            "description": "One period: 2026Q2 for a quarter, 2025 for a year.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "start_period",
            "in": "query",
            "required": false,
            "description": "First period to include.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "end_period",
            "in": "query",
            "required": false,
            "description": "Last period to include.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "year",
            "in": "query",
            "required": false,
            "description": "Calendar year.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "quarter",
            "in": "query",
            "required": false,
            "description": "Quarter, 1 to 4.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "frequency",
            "in": "query",
            "required": false,
            "description": "quarterly or annual.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "series",
            "in": "query",
            "required": false,
            "description": "Series key, for example total_gdp.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "measure",
            "in": "query",
            "required": false,
            "description": "level or growth.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "price_basis",
            "in": "query",
            "required": false,
            "description": "real or nominal.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "valuation",
            "in": "query",
            "required": false,
            "description": "Valuation basis as published.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "base_year",
            "in": "query",
            "required": false,
            "description": "Base year. Defaults to the newest (2019); pass 2010 for the older series.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "sector",
            "in": "query",
            "required": false,
            "description": "Sector key.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "activity",
            "in": "query",
            "required": false,
            "description": "Activity key.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "oil_non_oil",
            "in": "query",
            "required": false,
            "description": "oil or non_oil.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum rows to return.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/gdp/vintages": {
      "get": {
        "tags": [
          "GDP"
        ],
        "operationId": "gdp__vintages",
        "summary": "Vintages",
        "description": "Which base years hold which periods.\n\nReference: https://dataminal.com/nigeria/gdp?tab=api",
        "parameters": [
          {
            "name": "period",
            "in": "query",
            "required": false,
            "description": "One period: 2026Q2 for a quarter, 2025 for a year.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "start_period",
            "in": "query",
            "required": false,
            "description": "First period to include.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "end_period",
            "in": "query",
            "required": false,
            "description": "Last period to include.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "year",
            "in": "query",
            "required": false,
            "description": "Calendar year.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "quarter",
            "in": "query",
            "required": false,
            "description": "Quarter, 1 to 4.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "frequency",
            "in": "query",
            "required": false,
            "description": "quarterly or annual.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "series",
            "in": "query",
            "required": false,
            "description": "Series key, for example total_gdp.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "measure",
            "in": "query",
            "required": false,
            "description": "level or growth.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "price_basis",
            "in": "query",
            "required": false,
            "description": "real or nominal.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "valuation",
            "in": "query",
            "required": false,
            "description": "Valuation basis as published.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "base_year",
            "in": "query",
            "required": false,
            "description": "Base year. Defaults to the newest (2019); pass 2010 for the older series.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "sector",
            "in": "query",
            "required": false,
            "description": "Sector key.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "activity",
            "in": "query",
            "required": false,
            "description": "Activity key.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "oil_non_oil",
            "in": "query",
            "required": false,
            "description": "oil or non_oil.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum rows to return.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/gdp/releases": {
      "get": {
        "tags": [
          "GDP"
        ],
        "operationId": "gdp__releases",
        "summary": "Releases",
        "description": "The NBS releases ingested.\n\nReference: https://dataminal.com/nigeria/gdp?tab=api",
        "parameters": [
          {
            "name": "period",
            "in": "query",
            "required": false,
            "description": "One period: 2026Q2 for a quarter, 2025 for a year.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "start_period",
            "in": "query",
            "required": false,
            "description": "First period to include.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "end_period",
            "in": "query",
            "required": false,
            "description": "Last period to include.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "year",
            "in": "query",
            "required": false,
            "description": "Calendar year.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "quarter",
            "in": "query",
            "required": false,
            "description": "Quarter, 1 to 4.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "frequency",
            "in": "query",
            "required": false,
            "description": "quarterly or annual.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "series",
            "in": "query",
            "required": false,
            "description": "Series key, for example total_gdp.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "measure",
            "in": "query",
            "required": false,
            "description": "level or growth.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "price_basis",
            "in": "query",
            "required": false,
            "description": "real or nominal.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "valuation",
            "in": "query",
            "required": false,
            "description": "Valuation basis as published.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "base_year",
            "in": "query",
            "required": false,
            "description": "Base year. Defaults to the newest (2019); pass 2010 for the older series.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "sector",
            "in": "query",
            "required": false,
            "description": "Sector key.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "activity",
            "in": "query",
            "required": false,
            "description": "Activity key.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "oil_non_oil",
            "in": "query",
            "required": false,
            "description": "oil or non_oil.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum rows to return.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/gdp": {
      "get": {
        "tags": [
          "GDP"
        ],
        "operationId": "gdp__root",
        "summary": "Default view",
        "description": "The dataset's default rows: the same as one of its named routes (history or latest). Prefer the named routes, which are described in full.\n\nReference: https://dataminal.com/nigeria/gdp?tab=api",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/cpi/latest": {
      "get": {
        "tags": [
          "CPI"
        ],
        "operationId": "cpi__latest",
        "summary": "Latest figures",
        "description": "Returns every category published for the most recent month of a geography. National responses include all items, food, core, and all items less farm produce with their basket weights; urban and rural responses include all items only.\n\nReference: https://dataminal.com/nigeria/cpi?tab=api",
        "parameters": [
          {
            "name": "geography",
            "in": "query",
            "required": false,
            "description": "national (default), urban, or rural.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "count": 4,
                  "data": [
                    {
                      "period": "2026-07-01",
                      "geography_type": "national",
                      "geography_name": "Nigeria",
                      "category": "all_items",
                      "index_value": 145.268506,
                      "mom_pct": 1.5721619353936518,
                      "yoy_pct": 15.429881605085427,
                      "avg_12m_pct": 16.892930987800824,
                      "weight": 100,
                      "base_year": 2024,
                      "source_agency": "National Bureau of Statistics Nigeria",
                      "source_release": "2026-07",
                      "publication_date": "2026-08-17"
                    },
                    {
                      "period": "2026-07-01",
                      "geography_type": "national",
                      "geography_name": "Nigeria",
                      "category": "food",
                      "index_value": 153.12165,
                      "mom_pct": 5.564736297828318,
                      "yoy_pct": 20.312445980985288,
                      "avg_12m_pct": 16.06072364855106,
                      "weight": 27.98,
                      "base_year": 2024,
                      "source_agency": "National Bureau of Statistics Nigeria",
                      "source_release": "2026-07",
                      "publication_date": "2026-08-17"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/cpi/history": {
      "get": {
        "tags": [
          "CPI"
        ],
        "operationId": "cpi__history",
        "summary": "Monthly history",
        "description": "Returns the monthly series for one category and geography, newest first. When a later NBS release revises an earlier month, the most recently ingested value is returned.\n\nReference: https://dataminal.com/nigeria/cpi?tab=api",
        "parameters": [
          {
            "name": "category",
            "in": "query",
            "required": false,
            "description": "all_items (default), food, core, or all_items_less_farm_produce. Food, core, and all items less farm produce are published for the national geography only.",
            "schema": {
              "type": "string"
            },
            "example": "food"
          },
          {
            "name": "geography",
            "in": "query",
            "required": false,
            "description": "national (default), urban, or rural.",
            "schema": {
              "type": "string"
            },
            "example": "national"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum number of months to return. Defaults to 120, capped at 500.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "count": 43,
                  "data": [
                    {
                      "period": "2026-07-01",
                      "geography_type": "national",
                      "geography_name": "Nigeria",
                      "category": "food",
                      "index_value": 153.12165,
                      "mom_pct": 5.564736297828318,
                      "yoy_pct": 20.312445980985288,
                      "avg_12m_pct": 16.06072364855106,
                      "base_year": 2024,
                      "source_release": "2026-07",
                      "publication_date": "2026-08-17"
                    },
                    {
                      "period": "2026-06-01",
                      "geography_type": "national",
                      "geography_name": "Nigeria",
                      "category": "food",
                      "index_value": 145.05,
                      "mom_pct": 3.7480467847686327,
                      "yoy_pct": 17.521361462084045,
                      "avg_12m_pct": 16.418650801523157,
                      "base_year": 2024,
                      "source_release": "2026-07",
                      "publication_date": "2026-08-17"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/cpi/components": {
      "get": {
        "tags": [
          "CPI"
        ],
        "operationId": "cpi__components",
        "summary": "Components",
        "description": "Returns the index value of every published CPI component for one month and geography, sorted by component name.\n\nReference: https://dataminal.com/nigeria/cpi?tab=api",
        "parameters": [
          {
            "name": "period",
            "in": "query",
            "required": false,
            "description": "Reference month as YYYY-MM-DD, using the first day of the month (e.g. 2026-07-01). Defaults to the latest available period.",
            "schema": {
              "type": "string",
              "format": "date"
            },
            "example": "2026-07-01"
          },
          {
            "name": "geography",
            "in": "query",
            "required": false,
            "description": "national (default), urban, or rural.",
            "schema": {
              "type": "string"
            },
            "example": "national"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "count": 22,
                  "data": [
                    {
                      "period": "2026-07-01",
                      "geography_type": "national",
                      "geography_name": "Nigeria",
                      "component": "alcoholic_beverages_tobacco_narcotics",
                      "index_value": 143.275717,
                      "base_year": 2024,
                      "source_release": "2026-07",
                      "publication_date": "2026-08-17"
                    },
                    {
                      "period": "2026-07-01",
                      "geography_type": "national",
                      "geography_name": "Nigeria",
                      "component": "all_items",
                      "index_value": 145.268506,
                      "base_year": 2024,
                      "source_release": "2026-07",
                      "publication_date": "2026-08-17"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/cpi/states": {
      "get": {
        "tags": [
          "CPI"
        ],
        "operationId": "cpi__states",
        "summary": "States",
        "description": "Returns the state-level index and inflation rates for one month and category, for all 36 states and the FCT, sorted by state. The response carries the NBS comparability note.\n\nReference: https://dataminal.com/nigeria/cpi?tab=api",
        "parameters": [
          {
            "name": "period",
            "in": "query",
            "required": false,
            "description": "Reference month as YYYY-MM-DD, using the first day of the month (e.g. 2026-07-01). Defaults to the latest available period.",
            "schema": {
              "type": "string",
              "format": "date"
            },
            "example": "2026-07-01"
          },
          {
            "name": "category",
            "in": "query",
            "required": false,
            "description": "all_items (default) or food.",
            "schema": {
              "type": "string"
            },
            "example": "all_items"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "count": 37,
                  "data": [
                    {
                      "period": "2026-07-01",
                      "state": "Abia",
                      "category": "all_items",
                      "index_value": 153.0332962420798,
                      "mom_pct": 1.8050065922518428,
                      "yoy_pct": 20.880641218659818,
                      "base_year": 2024,
                      "source_release": "2026-07",
                      "publication_date": "2026-08-17"
                    },
                    {
                      "period": "2026-07-01",
                      "state": "Abuja",
                      "category": "all_items",
                      "index_value": 151.12404162490034,
                      "mom_pct": 0.9099944287633548,
                      "yoy_pct": 16.433702693075375,
                      "base_year": 2024,
                      "source_release": "2026-07",
                      "publication_date": "2026-08-17"
                    }
                  ],
                  "note": "NBS notes that state CPI indices should not be used for direct inter-state price-level comparison because market baskets differ by state."
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/cpi/releases": {
      "get": {
        "tags": [
          "CPI"
        ],
        "operationId": "cpi__releases",
        "summary": "Releases",
        "description": "Returns the NBS releases ingested by Dataminal, newest first, with headline figures and links to the official source files.\n\nReference: https://dataminal.com/nigeria/cpi?tab=api",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum number of releases to return. Defaults to 12, capped at 100.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "count": 1,
                  "data": [
                    {
                      "release_id": "nbs-cpi-2026-07",
                      "reference_period": "2026-07",
                      "reference_year": 2026,
                      "reference_month": 7,
                      "publication_date": "2026-08-17",
                      "publication_frequency": "monthly",
                      "base_year": 2024,
                      "weight_reference_period": 2023,
                      "headline_yoy_pct": 15.429881605085427,
                      "headline_mom_pct": 1.5721619353936518,
                      "food_yoy_pct": 20.312445980985288,
                      "core_yoy_pct": 14.974591869398196,
                      "state_count": 37,
                      "source_agency": "National Bureau of Statistics Nigeria",
                      "source_dataset": "Consumer Price Index and Inflation",
                      "source_url": "https://microdata.nigerianstat.gov.ng/index.php/catalog/154/related-materials",
                      "download_url": "https://microdata.nigerianstat.gov.ng/index.php/catalog/154/download/1432",
                      "source_file": "cpi_1New_July2026.xlsx"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/faac/latest": {
      "get": {
        "tags": [
          "FAAC"
        ],
        "operationId": "faac__latest",
        "summary": "Latest month",
        "description": "Returns the monthly summary for the most recent sharing month: total gross distributed, revenue components, and the federal, state, local government and derivation shares.\n\nReference: https://dataminal.com/nigeria/faac?tab=api",
        "parameters": [
          {
            "name": "final",
            "in": "query",
            "required": false,
            "description": "true returns final (NBS) rows only, excluding months served provisionally from the OAGF report. Defaults to false: the best available version of each month.",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "count": 1,
                  "data": [
                    {
                      "period": "2026-04-01",
                      "revenue_month": "2026-03",
                      "total_gross": 2632392352818.26,
                      "total_statutory": 1699871108455.11,
                      "total_vat": 664424897289.929,
                      "total_emtl": null,
                      "total_exchange_gain": null,
                      "total_solid_mineral": 68096347073.22,
                      "total_augmentation": 200000000000,
                      "total_others": null,
                      "fgn_total": 820368156169.036,
                      "states_total": 673425092105.079,
                      "lgcs_total": 481029745699.918,
                      "derivation_13pct_total": 129611990604.845,
                      "other_lines_total": 527957368239.38184,
                      "states_total_net": 708177214372.818,
                      "lgas_total_net": 477889205754.7273,
                      "state_count": 36,
                      "lga_count": 774,
                      "layout_signature": "augmentation+solid_mineral+statutory+total+vat",
                      "source_release": "2026-04",
                      "publication_date": "2026-06-16",
                      "source_url": "https://microdata.nigerianstat.gov.ng/index.php/catalog/156/related-materials",
                      "source_file": "Disbursement April, 2026.xlsx",
                      "source_publisher": "nbs",
                      "is_provisional": false
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/faac/history": {
      "get": {
        "tags": [
          "FAAC"
        ],
        "operationId": "faac__history",
        "summary": "Monthly history",
        "description": "Returns the monthly summary for every ingested sharing month, newest first.\n\nReference: https://dataminal.com/nigeria/faac?tab=api",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum rows to return. Defaults to 120, capped at 500.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "final",
            "in": "query",
            "required": false,
            "description": "true returns final (NBS) rows only, excluding months served provisionally from the OAGF report. Defaults to false: the best available version of each month.",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "count": 3,
                  "data": [
                    {
                      "period": "2026-04-01",
                      "revenue_month": "2026-03",
                      "total_gross": 2632392352818.26,
                      "total_statutory": 1699871108455.11,
                      "total_vat": 664424897289.929,
                      "total_emtl": null,
                      "total_exchange_gain": null,
                      "total_solid_mineral": 68096347073.22,
                      "total_augmentation": 200000000000,
                      "total_others": null,
                      "fgn_total": 820368156169.036,
                      "states_total": 673425092105.079,
                      "lgcs_total": 481029745699.918,
                      "derivation_13pct_total": 129611990604.845,
                      "other_lines_total": 527957368239.38184,
                      "states_total_net": 708177214372.818,
                      "lgas_total_net": 477889205754.7273,
                      "state_count": 36,
                      "lga_count": 774,
                      "layout_signature": "augmentation+solid_mineral+statutory+total+vat",
                      "source_release": "2026-04",
                      "publication_date": "2026-06-16",
                      "source_url": "https://microdata.nigerianstat.gov.ng/index.php/catalog/156/related-materials",
                      "source_file": "Disbursement April, 2026.xlsx",
                      "source_publisher": "nbs",
                      "is_provisional": false
                    },
                    {
                      "period": "2026-03-01",
                      "revenue_month": "2026-02",
                      "total_gross": 2230406988593.45,
                      "total_statutory": 1561956668982.58,
                      "total_vat": 668450319610.87,
                      "total_emtl": null,
                      "total_exchange_gain": null,
                      "total_solid_mineral": null,
                      "total_augmentation": null,
                      "total_others": null,
                      "fgn_total": 675085380416.304,
                      "states_total": 651525076775.178,
                      "lgcs_total": 456467059154.715,
                      "derivation_13pct_total": 110948848005.823,
                      "other_lines_total": 336380624241.4302,
                      "states_total_net": 661402638379.538,
                      "lgas_total_net": 453995542314.91144,
                      "state_count": 36,
                      "lga_count": 774,
                      "layout_signature": "statutory+total+vat",
                      "source_release": "2026-03",
                      "publication_date": "2026-04-26",
                      "source_url": "https://microdata.nigerianstat.gov.ng/index.php/catalog/156/related-materials",
                      "source_file": "Disbursement March, 2026.xlsx"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/faac/states": {
      "get": {
        "tags": [
          "FAAC"
        ],
        "operationId": "faac__states",
        "summary": "State allocations",
        "description": "Returns Table III rows for the 36 states and the FCT. Without parameters: every state for the latest month. With state and no period: that state's full history. A non-state line (SOKU, August and September 2024) only with beneficiary_type=other.\n\nReference: https://dataminal.com/nigeria/faac?tab=api",
        "parameters": [
          {
            "name": "period",
            "in": "query",
            "required": false,
            "description": "Sharing month as YYYY-MM-DD, using the first day of the month (e.g. 2026-04-01). Defaults to the latest available month.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "state",
            "in": "query",
            "required": false,
            "description": "Canonical state key such as lagos, akwa_ibom or fct.",
            "schema": {
              "type": "string"
            },
            "example": "lagos"
          },
          {
            "name": "beneficiary_type",
            "in": "query",
            "required": false,
            "description": "state, fct or other. Defaults to the states and the FCT; other returns non-state Table III lines such as SOKU.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum rows to return. Defaults to 500, capped at 2000.",
            "schema": {
              "type": "integer"
            },
            "example": 2
          },
          {
            "name": "final",
            "in": "query",
            "required": false,
            "description": "true returns final (NBS) rows only, excluding months served provisionally from the OAGF report. Defaults to false: the best available version of each month.",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "count": 2,
                  "data": [
                    {
                      "period": "2026-04-01",
                      "revenue_month": "2026-03",
                      "state": "LAGOS",
                      "state_key": "lagos",
                      "beneficiary_type": "state",
                      "lgc_count": 20,
                      "statutory": 11023832484.5646,
                      "derivation_13pct": 0,
                      "gross_statutory_total": 11023832484.5646,
                      "deduction_external_debt": 8338643520.01,
                      "deduction_ispo": 0,
                      "deduction_other": 0,
                      "total_deductions": 8338643520.01,
                      "net_statutory": 2685188964.5546,
                      "exchange_gain": null,
                      "solid_mineral": 544159345.15,
                      "augmentation": 1837016340.9724,
                      "emtl": null,
                      "others": null,
                      "ecology_total": 371215610.8806,
                      "ecology_transfer_nddc": 0,
                      "ecology_net": 371215610.8806,
                      "vat_gross": 44914372802.0784,
                      "vat_deduction": 9886025186.97,
                      "vat_net": 35028347615.1084,
                      "total_gross": 58734930233.656,
                      "total_net": 40510261526.676,
                      "source_release": "2026-04",
                      "publication_date": "2026-06-16"
                    },
                    {
                      "period": "2026-03-01",
                      "revenue_month": "2026-02",
                      "state": "LAGOS",
                      "state_key": "lagos",
                      "beneficiary_type": "state",
                      "lgc_count": 20,
                      "statutory": 10691056957.6089,
                      "derivation_13pct": 0,
                      "gross_statutory_total": 10691056957.6089,
                      "deduction_external_debt": 8338643520.01,
                      "deduction_ispo": 0,
                      "deduction_other": 296060038.83,
                      "total_deductions": 8634703558.84,
                      "net_statutory": 2056353398.76891,
                      "exchange_gain": null,
                      "solid_mineral": null,
                      "augmentation": null,
                      "emtl": null,
                      "others": null,
                      "ecology_total": 296060038.826093,
                      "ecology_transfer_nddc": 0,
                      "ecology_net": 296060038.826093,
                      "vat_gross": 51933950387.4091,
                      "vat_deduction": 9886025186.97,
                      "vat_net": 42047925200.4391,
                      "total_gross": 62921067383.8441,
                      "total_net": 44400338638.0341,
                      "source_release": "2026-03",
                      "publication_date": "2026-04-26"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/faac/lgas": {
      "get": {
        "tags": [
          "FAAC"
        ],
        "operationId": "faac__lgas",
        "summary": "Local government allocations",
        "description": "Returns Table IV rows. Without parameters: all 774 councils for the latest month. With lga and no period: that council's full history.\n\nReference: https://dataminal.com/nigeria/faac?tab=api",
        "parameters": [
          {
            "name": "period",
            "in": "query",
            "required": false,
            "description": "Sharing month as YYYY-MM-DD, using the first day of the month (e.g. 2026-04-01). Defaults to the latest available month.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "state",
            "in": "query",
            "required": false,
            "description": "Canonical state key such as lagos, akwa_ibom or fct.",
            "schema": {
              "type": "string"
            },
            "example": "kano"
          },
          {
            "name": "lga",
            "in": "query",
            "required": false,
            "description": "Council slug such as aba_north.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum rows to return. Defaults to 1000, capped at 5000.",
            "schema": {
              "type": "integer"
            },
            "example": 2
          },
          {
            "name": "final",
            "in": "query",
            "required": false,
            "description": "true returns final (NBS) rows only, excluding months served provisionally from the OAGF report. Defaults to false: the best available version of each month.",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "count": 2,
                  "data": [
                    {
                      "period": "2026-04-01",
                      "revenue_month": "2026-03",
                      "state": "KANO",
                      "state_key": "kano",
                      "lga": "AJINGI",
                      "lga_key": "ajingi",
                      "net_statutory": 283403039.58,
                      "deduction": 0,
                      "exchange_gain": null,
                      "solid_mineral": 13989364.65,
                      "augmentation": 47226408.38,
                      "emtl": null,
                      "others": null,
                      "ecology_total": 10338564.3782,
                      "ecology_transfer_nddc": 0,
                      "ecology_net": 10338564.3782,
                      "vat": 185714080.73,
                      "total_net": 540671457.7182,
                      "source_release": "2026-04",
                      "publication_date": "2026-06-16"
                    },
                    {
                      "period": "2026-04-01",
                      "revenue_month": "2026-03",
                      "state": "KANO",
                      "state_key": "kano",
                      "lga": "ALBASU",
                      "lga_key": "albasu",
                      "net_statutory": 290279192.24,
                      "deduction": 0,
                      "exchange_gain": null,
                      "solid_mineral": 14328785.87,
                      "augmentation": 48372253.51,
                      "emtl": null,
                      "others": null,
                      "ecology_total": 10589406.9486,
                      "ecology_transfer_nddc": 0,
                      "ecology_net": 10589406.9486,
                      "vat": 189842106.71,
                      "total_net": 553411745.2786,
                      "source_release": "2026-04",
                      "publication_date": "2026-06-16"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/faac/revenue-sources": {
      "get": {
        "tags": [
          "FAAC"
        ],
        "operationId": "faac__revenue_sources",
        "summary": "Revenue sources",
        "description": "Returns the long-format summary table for one month: every beneficiary line by revenue component.\n\nReference: https://dataminal.com/nigeria/faac?tab=api",
        "parameters": [
          {
            "name": "period",
            "in": "query",
            "required": false,
            "description": "Sharing month as YYYY-MM-DD, using the first day of the month (e.g. 2026-04-01). Defaults to the latest available month.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "table",
            "in": "query",
            "required": false,
            "description": "gross_summary (default, Table I) or fgn_distribution (Table II).",
            "schema": {
              "type": "string"
            },
            "example": "gross_summary"
          },
          {
            "name": "final",
            "in": "query",
            "required": false,
            "description": "true returns final (NBS) rows only, excluding months served provisionally from the OAGF report. Defaults to false: the best available version of each month.",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "count": 70,
                  "data": [
                    {
                      "period": "2026-04-01",
                      "revenue_month": "2026-03",
                      "table_id": "gross_summary",
                      "line_no": 1,
                      "beneficiary": "FGN (see Table II)",
                      "beneficiary_key": "fgn",
                      "component": "Augmentation of ₦200 Billion from Non Oil for the month of April, 2026",
                      "component_key": "augmentation",
                      "amount_ngn": 105360000000,
                      "is_total": false,
                      "source_release": "2026-04",
                      "publication_date": "2026-06-16"
                    },
                    {
                      "period": "2026-04-01",
                      "revenue_month": "2026-03",
                      "table_id": "gross_summary",
                      "line_no": 1,
                      "beneficiary": "FGN (see Table II)",
                      "beneficiary_key": "fgn",
                      "component": "Distribution from Solid Minerals Revenue for the Month of April, 2026",
                      "component_key": "solid_mineral",
                      "amount_ngn": 31209645405.21,
                      "is_total": false,
                      "source_release": "2026-04",
                      "publication_date": "2026-06-16"
                    },
                    {
                      "period": "2026-04-01",
                      "revenue_month": "2026-03",
                      "table_id": "gross_summary",
                      "line_no": 1,
                      "beneficiary": "FGN (see Table II)",
                      "beneficiary_key": "fgn",
                      "component": "Statutory",
                      "component_key": "statutory",
                      "amount_ngn": 632259476776.833,
                      "is_total": false,
                      "source_release": "2026-04",
                      "publication_date": "2026-06-16"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/faac/deductions": {
      "get": {
        "tags": [
          "FAAC"
        ],
        "operationId": "faac__deductions",
        "summary": "Deductions",
        "description": "Returns deductions for one month, optionally filtered by beneficiary type and state.\n\nReference: https://dataminal.com/nigeria/faac?tab=api",
        "parameters": [
          {
            "name": "period",
            "in": "query",
            "required": false,
            "description": "Sharing month as YYYY-MM-DD, using the first day of the month (e.g. 2026-04-01). Defaults to the latest available month.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "type",
            "in": "query",
            "required": false,
            "description": "fgn, state, fct, other, or lga.",
            "schema": {
              "type": "string"
            },
            "example": "state"
          },
          {
            "name": "state",
            "in": "query",
            "required": false,
            "description": "Canonical state key such as lagos, akwa_ibom or fct.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum rows to return. Defaults to 1000, capped at 5000.",
            "schema": {
              "type": "integer"
            },
            "example": 5
          },
          {
            "name": "final",
            "in": "query",
            "required": false,
            "description": "true returns final (NBS) rows only, excluding months served provisionally from the OAGF report. Defaults to false: the best available version of each month.",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "count": 5,
                  "data": [
                    {
                      "period": "2026-04-01",
                      "revenue_month": "2026-03",
                      "beneficiary_type": "state",
                      "beneficiary": "ABIA",
                      "state_key": "abia",
                      "lga_key": null,
                      "deduction_type": "external_debt",
                      "amount_ngn": 606031676.25,
                      "source_release": "2026-04",
                      "publication_date": "2026-06-16"
                    },
                    {
                      "period": "2026-04-01",
                      "revenue_month": "2026-03",
                      "beneficiary_type": "state",
                      "beneficiary": "ABIA",
                      "state_key": "abia",
                      "lga_key": null,
                      "deduction_type": "ispo",
                      "amount_ngn": 0,
                      "source_release": "2026-04",
                      "publication_date": "2026-06-16"
                    },
                    {
                      "period": "2026-04-01",
                      "revenue_month": "2026-03",
                      "beneficiary_type": "state",
                      "beneficiary": "ABIA",
                      "state_key": "abia",
                      "lga_key": null,
                      "deduction_type": "other",
                      "amount_ngn": 171916704.82,
                      "source_release": "2026-04",
                      "publication_date": "2026-06-16"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/faac/releases": {
      "get": {
        "tags": [
          "FAAC"
        ],
        "operationId": "faac__releases",
        "summary": "Releases",
        "description": "Returns the ingested releases, newest first, with source links and headline totals. A month served provisionally from the OAGF report appears with source_publisher oagf until the NBS release replaces it.\n\nReference: https://dataminal.com/nigeria/faac?tab=api",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum rows to return. Defaults to 24, capped at 100.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "final",
            "in": "query",
            "required": false,
            "description": "true returns final (NBS) rows only, excluding months served provisionally from the OAGF report. Defaults to false: the best available version of each month.",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "count": 2,
                  "data": [
                    {
                      "release_id": "nbs-faac-2026-04",
                      "reference_period": "2026-04",
                      "reference_year": 2026,
                      "reference_month": 4,
                      "revenue_month": "2026-03",
                      "publication_date": "2026-06-16",
                      "publication_frequency": "monthly",
                      "resource_title": "April 2026 FAAC Disbursement Report",
                      "data_format": "zip",
                      "bundle": false,
                      "bundle_periods": "2026-04",
                      "source_agency": "National Bureau of Statistics Nigeria",
                      "source_dataset": "Federation Account Allocation Committee (FAAC) Disbursement",
                      "source_url": "https://microdata.nigerianstat.gov.ng/index.php/catalog/156/related-materials",
                      "download_url": "https://microdata.nigerianstat.gov.ng/index.php/catalog/156/download/1423/FAAC_Report_April_2026.zip",
                      "report_url": null,
                      "source_file": "Disbursement April, 2026.xlsx",
                      "layout_signature": "augmentation+solid_mineral+statutory+total+vat",
                      "total_gross_ngn": 2632392352818.26,
                      "fgn_ngn": 820368156169.036,
                      "states_ngn": 673425092105.079,
                      "lgcs_ngn": 481029745699.918,
                      "derivation_13pct_ngn": 129611990604.845,
                      "state_count": 36,
                      "lga_count": 774,
                      "warning_count": 0,
                      "source_publisher": "nbs",
                      "is_provisional": false
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/electricity/grid/latest": {
      "get": {
        "tags": [
          "Electricity"
        ],
        "operationId": "electricity__grid_latest",
        "summary": "Latest day",
        "description": "Returns the grid summary for the most recent day with readings: hourly peak and low, energy by fuel, and the operator's reported figures where captured.\n\nReference: https://dataminal.com/nigeria/electricity?tab=api",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "count": 1,
                  "data": [
                    {
                      "date": "2026-09-04",
                      "plants_reporting": 20,
                      "plants_online": 20,
                      "hours_reported": 24,
                      "peak_hourly_mw": 4543.36,
                      "peak_hour_ending": 21,
                      "offpeak_hourly_mw": 4024.52,
                      "offpeak_hour_ending": 11,
                      "mean_mw": 4260.87,
                      "energy_mwh": 102260.93,
                      "hydro_mwh": 30466.48,
                      "gas_mwh": 71794.45,
                      "other_mwh": 0,
                      "hydro_share_pct": 29.793,
                      "reported_peak_mw": 4925,
                      "reported_peak_time": "21:15",
                      "reported_energy_generated_mwh": 107932.38,
                      "reported_energy_sent_out_mwh": 106320.33,
                      "reported_transmission_loss_mwh": 1612.05,
                      "warning_count": 0
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/electricity/grid/daily": {
      "get": {
        "tags": [
          "Electricity"
        ],
        "operationId": "electricity__grid_daily",
        "summary": "Daily grid series",
        "description": "Returns one row per day, newest first, optionally within a date range. complete says whether the day's record is whole; notes state the rule and the caveat on the record before September 2019.\n\nReference: https://dataminal.com/nigeria/electricity?tab=api",
        "parameters": [
          {
            "name": "from",
            "in": "query",
            "required": false,
            "description": "First day to include, YYYY-MM-DD.",
            "schema": {
              "type": "string",
              "format": "date"
            },
            "example": "2026-08-01"
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "description": "Last day to include, YYYY-MM-DD.",
            "schema": {
              "type": "string",
              "format": "date"
            },
            "example": "2026-08-31"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum rows to return. Defaults to 365, capped at 5000.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "count": 31,
                  "data": [
                    {
                      "date": "2026-08-31",
                      "plants_reporting": 22,
                      "missing_hours": 0,
                      "complete": true,
                      "peak_hourly_mw": 4402.11,
                      "energy_mwh": 98211.5,
                      "hydro_share_pct": 31.2
                    }
                  ],
                  "notes": [
                    "A day is complete when at least 13 plants report and no hour is missing ..."
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/electricity/grid/monthly": {
      "get": {
        "tags": [
          "Electricity"
        ],
        "operationId": "electricity__grid_monthly",
        "summary": "Monthly grid aggregates",
        "description": "Aggregates the daily series by month over complete days without an implausible reading (complete_days, coverage_pct): mean generation, hourly peak and low, energy per day, total energy and its split by fuel, and the operator's reported totals where captured. Averages and extremes are null when complete days are fewer than two thirds of the month; totals are null unless every day counts, so a month in progress has none.\n\nReference: https://dataminal.com/nigeria/electricity?tab=api",
        "parameters": [
          {
            "name": "from",
            "in": "query",
            "required": false,
            "description": "First day to include, YYYY-MM-DD.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "description": "Last day to include, YYYY-MM-DD.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum rows to return. Defaults to 120, capped at 240.",
            "schema": {
              "type": "integer"
            },
            "example": 12
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "count": 12,
                  "data": [
                    {
                      "month": "2026-08-01",
                      "days_in_month": 31,
                      "days_reported": 31,
                      "days_with_readings": 31,
                      "days_incomplete": 0,
                      "days_flagged": 0,
                      "complete_days": 31,
                      "coverage_pct": 100,
                      "mean_mw": 3907.69,
                      "max_peak_hourly_mw": 4918.55,
                      "mean_daily_energy_mwh": 93784.62,
                      "energy_mwh": 2907323.25,
                      "hydro_mwh": 1128705.34,
                      "gas_mwh": 1778465.01,
                      "hydro_share_pct": 38.82
                    }
                  ],
                  "notes": [
                    "...",
                    "...",
                    "..."
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/electricity/grid/plants": {
      "get": {
        "tags": [
          "Electricity"
        ],
        "operationId": "electricity__grid_plants",
        "summary": "Generation by plant",
        "description": "Returns one row per plant for a day (default: the latest day), or a plant's daily history when a plant key is given.\n\nReference: https://dataminal.com/nigeria/electricity?tab=api",
        "parameters": [
          {
            "name": "date",
            "in": "query",
            "required": false,
            "description": "Day as YYYY-MM-DD. Defaults to the latest day with readings.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "plant",
            "in": "query",
            "required": false,
            "description": "Plant key such as egbin, kainji or azura_edo_ipp.",
            "schema": {
              "type": "string"
            },
            "example": "egbin"
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "description": "First day to include, YYYY-MM-DD.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "description": "Last day to include, YYYY-MM-DD.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum rows to return. Defaults to 500, capped at 5000.",
            "schema": {
              "type": "integer"
            },
            "example": 3
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "count": 3,
                  "data": [
                    {
                      "date": "2026-09-04",
                      "plant": "EGBIN (STEAM)",
                      "plant_key": "egbin",
                      "fuel": "gas",
                      "technology": "steam_turbine",
                      "ownership": "other",
                      "hours_reported": 24,
                      "hours_online": 24,
                      "mean_mw": 622,
                      "max_mw": 643,
                      "min_mw": 563,
                      "energy_mwh": 14928,
                      "portal_energy_mwh": 14928,
                      "share_of_generation_pct": 14.6
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/electricity/grid/hourly": {
      "get": {
        "tags": [
          "Electricity"
        ],
        "operationId": "electricity__grid_hourly",
        "summary": "Hourly generation",
        "description": "Returns the hour-ending readings (MW) for every plant on a day, or one plant when a key is given.\n\nReference: https://dataminal.com/nigeria/electricity?tab=api",
        "parameters": [
          {
            "name": "date",
            "in": "query",
            "required": false,
            "description": "Day as YYYY-MM-DD. Defaults to the latest day with readings.",
            "schema": {
              "type": "string",
              "format": "date"
            },
            "example": "2026-09-04"
          },
          {
            "name": "plant",
            "in": "query",
            "required": false,
            "description": "Plant key such as egbin, kainji or azura_edo_ipp.",
            "schema": {
              "type": "string"
            },
            "example": "kainji"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum rows to return. Defaults to 1000, capped at 5000.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "count": 24,
                  "data": [
                    {
                      "date": "2026-09-04",
                      "hour_ending": 1,
                      "plant": "KAINJI (HYDRO)",
                      "plant_key": "kainji",
                      "fuel": "hydro",
                      "mw": 380
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/electricity/plants": {
      "get": {
        "tags": [
          "Electricity"
        ],
        "operationId": "electricity__plants",
        "summary": "Plant registry",
        "description": "Every plant seen on the portal with its fuel, technology, ownership class, first and last day observed, days online, highest output, and energy over the last 30 and 365 days.\n\nReference: https://dataminal.com/nigeria/electricity?tab=api",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "count": 30,
                  "data": [
                    {
                      "plant_key": "egbin",
                      "plant": "EGBIN (STEAM)",
                      "fuel": "gas",
                      "technology": "steam_turbine",
                      "ownership": "other",
                      "first_seen": "2018-01-01",
                      "last_seen": "2026-09-04",
                      "days_reported": 3100,
                      "days_online": 3080,
                      "max_mw": 1080,
                      "implausible_hours": 2,
                      "mean_mw_30d": 620.4,
                      "energy_mwh_30d": 446688,
                      "energy_mwh_365d": 5200000
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/electricity/discos/latest": {
      "get": {
        "tags": [
          "Electricity"
        ],
        "operationId": "electricity__discos_latest",
        "summary": "Distribution companies, latest month",
        "description": "Returns every distribution company and the all-company total for the latest month in the NBS series.\n\nReference: https://dataminal.com/nigeria/electricity?tab=api",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "count": 12,
                  "data": [
                    {
                      "month": "2025-12-01",
                      "disco": "DISCOS",
                      "disco_key": "discos",
                      "is_total": true,
                      "customers_total": 14100000,
                      "customers_metered": 6900000,
                      "metered_share_pct": 48.9,
                      "revenue_collected_ngn": 250000000000,
                      "energy_billed_gwh": 2250,
                      "revenue_per_kwh_ngn": 111.1,
                      "source_release": "2025Q4"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/electricity/discos/monthly": {
      "get": {
        "tags": [
          "Electricity"
        ],
        "operationId": "electricity__discos_monthly",
        "summary": "Distribution companies, monthly series",
        "description": "Returns the monthly series for all companies, one company (disco key), or one month.\n\nReference: https://dataminal.com/nigeria/electricity?tab=api",
        "parameters": [
          {
            "name": "disco",
            "in": "query",
            "required": false,
            "description": "Company key: abuja, benin, eko, enugu, ibadan, ikeja, jos, kaduna, kano, port_harcourt, yola, or discos for the total.",
            "schema": {
              "type": "string"
            },
            "example": "ikeja"
          },
          {
            "name": "month",
            "in": "query",
            "required": false,
            "description": "Month as YYYY-MM.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum rows to return. Defaults to 2000, capped at 5000.",
            "schema": {
              "type": "integer"
            },
            "example": 2
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "count": 2,
                  "data": [
                    {
                      "month": "2025-12-01",
                      "disco": "IKEJA (IEDC)",
                      "disco_key": "ikeja",
                      "customers_total": 1500000,
                      "energy_billed_gwh": 380,
                      "revenue_collected_ngn": 50000000000
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/electricity/releases": {
      "get": {
        "tags": [
          "Electricity"
        ],
        "operationId": "electricity__releases",
        "summary": "NBS releases",
        "description": "Returns the quarterly NBS releases ingested, newest first.\n\nReference: https://dataminal.com/nigeria/electricity?tab=api",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum rows to return. Defaults to 24, capped at 100.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "count": 6,
                  "data": [
                    {
                      "release_id": "nbs-electricity-2025Q4",
                      "quarter": "2025Q4",
                      "series_start": "2015-01",
                      "series_end": "2025-12",
                      "month_count": 132,
                      "resource_title": "Nigeria Electricity Report Q4 2024-Q4 2025",
                      "bundle": true,
                      "publication_date": "2026-06-29",
                      "warning_count": 4
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/oil/latest": {
      "get": {
        "tags": [
          "Oil production"
        ],
        "operationId": "oil_production__latest",
        "summary": "Latest month",
        "description": "Returns the most recent month NUPRC has published: crude oil, blended and unblended condensate and total, in barrels and barrels per day.\n\nReference: https://dataminal.com/nigeria/oil?tab=api",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "count": 1,
                  "data": [
                    {
                      "period": "2026-07-01",
                      "days_in_month": 31,
                      "measure_basis": "daily_average_kbopd",
                      "crude_oil_bbl": 46662750,
                      "condensate_bbl": 5134840,
                      "total_bbl": 51797590,
                      "crude_oil_bopd": 1505250,
                      "condensate_bopd": 165640,
                      "total_bopd": 1670890,
                      "crude_share_pct": 90.087,
                      "terminals_producing": 30,
                      "source_release": "nuprc-oil-2026-20260812-fe87e7bc",
                      "publication_date": "2026-08-12"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/oil/history": {
      "get": {
        "tags": [
          "Oil production"
        ],
        "operationId": "oil_production__history",
        "summary": "Monthly history",
        "description": "Returns the national monthly series, newest first, from the newest publication of each month. Optionally within a month range or one year.\n\nReference: https://dataminal.com/nigeria/oil?tab=api",
        "parameters": [
          {
            "name": "from",
            "in": "query",
            "required": false,
            "description": "First month to include, YYYY-MM.",
            "schema": {
              "type": "string",
              "pattern": "^\\d{4}-\\d{2}$"
            },
            "example": "2025-01"
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "description": "Last month to include, YYYY-MM.",
            "schema": {
              "type": "string",
              "pattern": "^\\d{4}-\\d{2}$"
            },
            "example": "2025-12"
          },
          {
            "name": "year",
            "in": "query",
            "required": false,
            "description": "Restrict to one year, e.g. 2024.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum rows to return. Defaults to 120, capped at 500.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "count": 12,
                  "data": [
                    {
                      "period": "2025-12-01",
                      "crude_oil_bbl": 44080769,
                      "condensate_bbl": 3793923,
                      "total_bbl": 47874692,
                      "crude_oil_bopd": 1421960.3,
                      "total_bopd": 1544344.9,
                      "crude_share_pct": 92.075,
                      "source_release": "nuprc-oil-2025-20260101-3e5292ec"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/oil/terminals": {
      "get": {
        "tags": [
          "Oil production"
        ],
        "operationId": "oil_production__terminals",
        "summary": "Production by terminal and stream",
        "description": "Returns one row per terminal or stream and liquid type for a month (default: the latest), or a terminal's monthly history when a terminal key is given.\n\nReference: https://dataminal.com/nigeria/oil?tab=api",
        "parameters": [
          {
            "name": "period",
            "in": "query",
            "required": false,
            "description": "Month as YYYY-MM. Defaults to the latest month.",
            "schema": {
              "type": "string",
              "pattern": "^\\d{4}-\\d{2}$"
            }
          },
          {
            "name": "terminal",
            "in": "query",
            "required": false,
            "description": "Terminal key such as bonny, forcados, escravos or bonga.",
            "schema": {
              "type": "string"
            },
            "example": "forcados"
          },
          {
            "name": "liquid_type",
            "in": "query",
            "required": false,
            "description": "crude_oil, condensate or blend_total.",
            "schema": {
              "type": "string"
            },
            "example": "crude_oil"
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "description": "First month to include, YYYY-MM.",
            "schema": {
              "type": "string",
              "pattern": "^\\d{4}-\\d{2}$"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "description": "Last month to include, YYYY-MM.",
            "schema": {
              "type": "string",
              "pattern": "^\\d{4}-\\d{2}$"
            }
          },
          {
            "name": "year",
            "in": "query",
            "required": false,
            "description": "Restrict to one year, e.g. 2024.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum rows to return. Defaults to 500, capped at 5000.",
            "schema": {
              "type": "integer"
            },
            "example": 3
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "count": 3,
                  "data": [
                    {
                      "period": "2026-07-01",
                      "terminal": "Forcados",
                      "terminal_key": "forcados",
                      "terminal_name_source": "FORCADOS",
                      "terminal_kind": "terminal",
                      "liquid_type": "crude_oil",
                      "is_blended": true,
                      "volume_bbl": 9326970,
                      "daily_average_bopd": 300870,
                      "share_of_total_pct": 18.006
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/oil/terminals/summary": {
      "get": {
        "tags": [
          "Oil production"
        ],
        "operationId": "oil_production__terminals_summary",
        "summary": "Terminal summary",
        "description": "Aggregates every terminal and stream over the most recent months (default 12): crude and condensate volumes, share of national output, months producing and the latest month's daily average.\n\nReference: https://dataminal.com/nigeria/oil?tab=api",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Months in the window. Defaults to 12, capped at 120.",
            "schema": {
              "type": "integer"
            },
            "example": 12
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "count": 36,
                  "months": 12,
                  "data": [
                    {
                      "terminal_key": "forcados",
                      "terminal": "Forcados",
                      "terminal_kind": "terminal",
                      "blends_condensate": true,
                      "months_reported": 12,
                      "months_producing": 12,
                      "crude_oil_bbl": 94032331,
                      "condensate_bbl": 10289520,
                      "total_bbl": 104321851,
                      "share_of_total_pct": 17.4,
                      "latest_month_bopd": 322340
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/oil/releases": {
      "get": {
        "tags": [
          "Oil production"
        ],
        "operationId": "oil_production__releases",
        "summary": "Releases",
        "description": "Returns every NUPRC file ingested, newest publication first: the year and months it covers, where it came from, its hashes and whether it duplicates an earlier release.\n\nReference: https://dataminal.com/nigeria/oil?tab=api",
        "parameters": [
          {
            "name": "year",
            "in": "query",
            "required": false,
            "description": "Restrict to releases covering one year.",
            "schema": {
              "type": "integer"
            },
            "example": 2024
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum rows to return. Defaults to 24, capped at 100.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "count": 14,
                  "data": [
                    {
                      "release_id": "nuprc-oil-2024-20251101-fb2ce97e",
                      "year": 2024,
                      "title": "JAN DEC 2024 RECONCILED PRODUCTION",
                      "measure_basis": "volume_bbl",
                      "source_format": "xlsx",
                      "first_month": "2024-01",
                      "last_month": "2024-12",
                      "month_count": 12,
                      "publication_date": "2025-11-01",
                      "publication_date_basis": "archive_upload_month",
                      "source_kind": "web_archive",
                      "duplicate_of": null,
                      "total_bbl": 570713104
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/gas/latest": {
      "get": {
        "tags": [
          "Gas production"
        ],
        "operationId": "gas_production__latest",
        "summary": "Latest month",
        "description": "The newest month in data, its month in period, and the year so far against the same months a year before in year_to_date (volumes summed, per-day rate and flared share recomputed).\n\nReference: https://dataminal.com/nigeria/gas?tab=api",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/gas/monthly": {
      "get": {
        "tags": [
          "Gas production"
        ],
        "operationId": "gas_production__monthly",
        "summary": "Monthly series",
        "description": "One row per month, oldest first: gas produced (associated and non-associated), field use, domestic and export sales, flared volumes and shrinkage in MMSCF for the month, with per-day rates, shares of production and year-on-year changes.\n\nReference: https://dataminal.com/nigeria/gas?tab=api",
        "parameters": [
          {
            "name": "from",
            "in": "query",
            "required": false,
            "description": "Earliest month, YYYY-MM, inclusive.",
            "schema": {
              "type": "string"
            },
            "example": "2025-01"
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "description": "Latest month, YYYY-MM, inclusive.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "year",
            "in": "query",
            "required": false,
            "description": "One calendar year, e.g. 2025.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "vintage",
            "in": "query",
            "required": false,
            "description": "current (default): each month's statement in the file the Commission serves now. all: every file's statement of it, to see revisions.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Default 600, maximum 5000.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/gas/annual": {
      "get": {
        "tags": [
          "Gas production"
        ],
        "operationId": "gas_production__annual",
        "summary": "Annual totals",
        "description": "One row per calendar year, summed from the current monthly rows. months_reported and is_complete say whether the year is whole; a year in progress has no year-on-year change. Compare part years through production_mmscf_per_day.\n\nReference: https://dataminal.com/nigeria/gas?tab=api",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/gas/releases": {
      "get": {
        "tags": [
          "Gas production"
        ],
        "operationId": "gas_production__releases",
        "summary": "Files read",
        "description": "One row per file read: the year the Commission lists it under, the year the file itself shows, whether it is the current data, a cross-check print, replaced, or held back, and why.\n\nReference: https://dataminal.com/nigeria/gas?tab=api",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/gas/checks": {
      "get": {
        "tags": [
          "Gas production"
        ],
        "operationId": "gas_production__checks",
        "summary": "Checks",
        "description": "The identities each file must satisfy: associated plus non-associated against total production, the uses against total utilised, the disposition against production, the printed percentages against the volumes, the months against the TOTAL row, and the PDF print against the workbook.\n\nReference: https://dataminal.com/nigeria/gas?tab=api",
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "required": false,
            "description": "pass, fail or not_applicable.",
            "schema": {
              "type": "string"
            },
            "example": "fail"
          },
          {
            "name": "vintage",
            "in": "query",
            "required": false,
            "description": "current (default): each month's statement in the file the Commission serves now. all: every file's statement of it, to see revisions.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Default 1000, maximum 5000.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/gas/methodologies": {
      "get": {
        "tags": [
          "Gas production"
        ],
        "operationId": "gas_production__methodologies",
        "summary": "Methodology notes",
        "description": "Definitions, units, vintages, provisional months and the checks, one row per topic.\n\nReference: https://dataminal.com/nigeria/gas?tab=api",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "dataset": "nigeria_gas",
                  "source": "Nigerian Upstream Petroleum Regulatory Commission (NUPRC), Gas Production Status Report",
                  "unit": "million standard cubic feet (MMSCF) in the month; per-day fields in MMSCF a day; shares in percent",
                  "note": "Nigeria's gas production by month since January 2021 ...",
                  "count": 10,
                  "data": [
                    {
                      "topic": "units",
                      "title": "Units",
                      "body": "Every volume is in million standard cubic feet (MMSCF) for the whole month ..."
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/gas": {
      "get": {
        "tags": [
          "Gas production"
        ],
        "operationId": "gas_production__root",
        "summary": "Default view",
        "description": "The dataset's default rows: the same as one of its named routes (history or latest). Prefer the named routes, which are described in full.\n\nReference: https://dataminal.com/nigeria/gas?tab=api",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/crude-oil-price/latest": {
      "get": {
        "tags": [
          "Crude oil price"
        ],
        "operationId": "crude_oil_price__latest",
        "summary": "Latest month",
        "description": "The newest month: the Bonny Light price with its change on the month and on the year, and the Bank's production and export figures.\n\nReference: https://dataminal.com/nigeria/crude-oil-price?tab=api",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/crude-oil-price/monthly": {
      "get": {
        "tags": [
          "Crude oil price"
        ],
        "operationId": "crude_oil_price__monthly",
        "summary": "Monthly series",
        "description": "One row per month since January 2006, oldest first: the Bonny Light price in US dollars a barrel, the Bank's crude production and exports in million barrels a day, and month-on-month and year-on-year changes.\n\nReference: https://dataminal.com/nigeria/crude-oil-price?tab=api",
        "parameters": [
          {
            "name": "from",
            "in": "query",
            "required": false,
            "description": "Earliest month, YYYY-MM, inclusive.",
            "schema": {
              "type": "string"
            },
            "example": "2024-01"
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "description": "Latest month, YYYY-MM, inclusive.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "vintage",
            "in": "query",
            "required": false,
            "description": "current (default): what the Bank's series says now. all: the earlier statements of revised months too.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Default 1000, maximum 5000.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/crude-oil-price/annual": {
      "get": {
        "tags": [
          "Crude oil price"
        ],
        "operationId": "crude_oil_price__annual",
        "summary": "Annual averages",
        "description": "One row per calendar year: the plain mean of the monthly prices, the highest and lowest month, and average production and exports. months_reported and is_complete say whether the year is whole.\n\nReference: https://dataminal.com/nigeria/crude-oil-price?tab=api",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/crude-oil-price/releases": {
      "get": {
        "tags": [
          "Crude oil price"
        ],
        "operationId": "crude_oil_price__releases",
        "summary": "Snapshots read",
        "description": "One row per distinct snapshot of the Bank's series: when it was first read, the months it added and the months whose figures it changed. The Bank states no dates of its own.\n\nReference: https://dataminal.com/nigeria/crude-oil-price?tab=api",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/crude-oil-price/checks": {
      "get": {
        "tags": [
          "Crude oil price"
        ],
        "operationId": "crude_oil_price__checks",
        "summary": "Checks",
        "description": "Coverage and plausibility of each snapshot: a row for every month, no month dropped, prices and volumes in range, exports not above production, and the Bank's rule that exports are production less 0.45.\n\nReference: https://dataminal.com/nigeria/crude-oil-price?tab=api",
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "required": false,
            "description": "pass or fail.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "vintage",
            "in": "query",
            "required": false,
            "description": "current (default): what the Bank's series says now. all: the earlier statements of revised months too.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/crude-oil-price/methodologies": {
      "get": {
        "tags": [
          "Crude oil price"
        ],
        "operationId": "crude_oil_price__methodologies",
        "summary": "Methodology notes",
        "description": "Definitions and caveats, one row per topic.\n\nReference: https://dataminal.com/nigeria/crude-oil-price?tab=api",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "dataset": "nigeria_crude_oil_price",
                  "source": "Central Bank of Nigeria, Crude Oil Price, Production and Export",
                  "unit": "US dollars a barrel (price); million barrels a day (production, exports); percent (changes)",
                  "note": "The monthly average price of Bonny Light, Nigeria's benchmark crude, since January 2006 ...",
                  "count": 8,
                  "data": [
                    {
                      "topic": "price",
                      "title": "The price",
                      "body": "bonny_light_usd_per_barrel is the monthly average price of Bonny Light crude ..."
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/crude-oil-price": {
      "get": {
        "tags": [
          "Crude oil price"
        ],
        "operationId": "crude_oil_price__root",
        "summary": "Default view",
        "description": "The dataset's default rows: the same as one of its named routes (history or latest). Prefer the named routes, which are described in full.\n\nReference: https://dataminal.com/nigeria/crude-oil-price?tab=api",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/commodity-prices/latest": {
      "get": {
        "tags": [
          "World commodity prices"
        ],
        "operationId": "world_commodity_prices__latest",
        "summary": "Latest prices",
        "description": "The newest price of every series still published, one row per series in the World Bank's order, with its change on the month and on the year. latest_period is the newest month any series reaches.\n\nReference: https://dataminal.com/nigeria/commodity-prices?tab=api",
        "parameters": [
          {
            "name": "group",
            "in": "query",
            "required": false,
            "description": "energy, beverages, oils_meals, grains, other_food, raw_materials, fertilizers, metals_minerals or precious_metals.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "nigeria_link",
            "in": "query",
            "required": false,
            "description": "export, import or benchmark: only the series that bear plainly on Nigeria in that way.",
            "schema": {
              "type": "string"
            },
            "example": "export"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/commodity-prices/series": {
      "get": {
        "tags": [
          "World commodity prices"
        ],
        "operationId": "world_commodity_prices__series",
        "summary": "Series list",
        "description": "Every series, including the ones that have ended: its id, name, unit, group, the months it covers and its newest price. Read this to find a series id.\n\nReference: https://dataminal.com/nigeria/commodity-prices?tab=api",
        "parameters": [
          {
            "name": "group",
            "in": "query",
            "required": false,
            "description": "energy, beverages, oils_meals, grains, other_food, raw_materials, fertilizers, metals_minerals or precious_metals.",
            "schema": {
              "type": "string"
            },
            "example": "fertilizers"
          },
          {
            "name": "nigeria_link",
            "in": "query",
            "required": false,
            "description": "export, import or benchmark: only the series that bear plainly on Nigeria in that way.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/commodity-prices/monthly": {
      "get": {
        "tags": [
          "World commodity prices"
        ],
        "operationId": "world_commodity_prices__monthly",
        "summary": "Monthly prices",
        "description": "Monthly average prices of one to twelve series, oldest first within a series, each in its own unit, with the change on the month and on the year. A month the World Bank leaves blank has no row.\n\nReference: https://dataminal.com/nigeria/commodity-prices?tab=api",
        "parameters": [
          {
            "name": "series",
            "in": "query",
            "required": true,
            "description": "One to twelve series ids, comma-separated, e.g. crude_oil_brent,cocoa. The ids are listed by /series.",
            "schema": {
              "type": "string"
            },
            "example": "crude_oil_brent,cocoa"
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "description": "Earliest month, YYYY-MM, inclusive.",
            "schema": {
              "type": "string"
            },
            "example": "2024-01"
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "description": "Latest month, YYYY-MM, inclusive.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "vintage",
            "in": "query",
            "required": false,
            "description": "current (default): the newest statement of each month. all: the earlier statements of revised months too.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Default 2000, maximum 10000.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/commodity-prices/annual": {
      "get": {
        "tags": [
          "World commodity prices"
        ],
        "operationId": "world_commodity_prices__annual",
        "summary": "Annual averages",
        "description": "One row per series per calendar year: the plain mean of the monthly prices, the highest and lowest month. is_complete false marks a year with fewer than twelve months.\n\nReference: https://dataminal.com/nigeria/commodity-prices?tab=api",
        "parameters": [
          {
            "name": "series",
            "in": "query",
            "required": true,
            "description": "One to twelve series ids, comma-separated, e.g. crude_oil_brent,cocoa. The ids are listed by /series.",
            "schema": {
              "type": "string"
            },
            "example": "urea"
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "description": "Earliest year, e.g. 2015.",
            "schema": {
              "type": "integer"
            },
            "example": 2020
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "description": "Latest year.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/commodity-prices/releases": {
      "get": {
        "tags": [
          "World commodity prices"
        ],
        "operationId": "world_commodity_prices__releases",
        "summary": "Editions read",
        "description": "One row per edition of the World Bank's workbook: its date, the months it covers, the prices it added and the prices it revised.\n\nReference: https://dataminal.com/nigeria/commodity-prices?tab=api",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/commodity-prices/checks": {
      "get": {
        "tags": [
          "World commodity prices"
        ],
        "operationId": "world_commodity_prices__checks",
        "summary": "Checks",
        "description": "Structure checks of each edition: every month present, the series still there, and the cells left out because they hold a spreadsheet error or a zero instead of a price.\n\nReference: https://dataminal.com/nigeria/commodity-prices?tab=api",
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "required": false,
            "description": "pass or fail.",
            "schema": {
              "type": "string"
            },
            "example": "fail"
          },
          {
            "name": "vintage",
            "in": "query",
            "required": false,
            "description": "current (default): the newest statement of each month. all: the earlier statements of revised months too.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/commodity-prices/methodologies": {
      "get": {
        "tags": [
          "World commodity prices"
        ],
        "operationId": "world_commodity_prices__methodologies",
        "summary": "Methodology notes",
        "description": "Definitions and caveats, one row per topic.\n\nReference: https://dataminal.com/nigeria/commodity-prices?tab=api",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "dataset": "world_commodity_prices",
                  "source": "World Bank Commodity Price Data (The Pink Sheet)",
                  "unit": "nominal US dollars in each series' own unit ($/bbl, $/mt, $/kg, $/mmbtu, $/troy oz); changes in percent",
                  "note": "World benchmark prices for 71 commodity series, monthly averages in nominal US dollars since January 1960 ...",
                  "count": 10,
                  "data": [
                    {
                      "topic": "not_nigerian_prices",
                      "title": "These are world prices, not prices in Nigeria",
                      "body": "A series is a benchmark quoted in a world market ..."
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/commodity-prices": {
      "get": {
        "tags": [
          "World commodity prices"
        ],
        "operationId": "world_commodity_prices__root",
        "summary": "Default view",
        "description": "The dataset's default rows: the same as one of its named routes (history or latest). Prefer the named routes, which are described in full.\n\nReference: https://dataminal.com/nigeria/commodity-prices?tab=api",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/tax-collections/latest": {
      "get": {
        "tags": [
          "VAT and company income tax"
        ],
        "operationId": "vat_and_company_income_tax__latest",
        "summary": "Latest quarter",
        "description": "Every line and sector of the newest quarter each tax has, sectors largest first and then the lines under them. latest_period names the quarter for each tax.\n\nReference: https://dataminal.com/nigeria/tax-collections?tab=api",
        "parameters": [
          {
            "name": "tax",
            "in": "query",
            "required": false,
            "description": "vat (Value Added Tax) or cit (Company Income Tax). The two are never added together.",
            "schema": {
              "type": "string"
            },
            "example": "vat"
          },
          {
            "name": "kind",
            "in": "query",
            "required": false,
            "description": "sector, local_subtotal, foreign, import (VAT only), other_payments (CIT, 2021 only) or total.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/tax-collections/lines": {
      "get": {
        "tags": [
          "VAT and company income tax"
        ],
        "operationId": "vat_and_company_income_tax__lines",
        "summary": "Lines and sectors",
        "description": "Every line and sector of each tax: its id, kind, the sector list it belongs to and the quarters it covers. Read this to find a line id.\n\nReference: https://dataminal.com/nigeria/tax-collections?tab=api",
        "parameters": [
          {
            "name": "tax",
            "in": "query",
            "required": false,
            "description": "vat (Value Added Tax) or cit (Company Income Tax). The two are never added together.",
            "schema": {
              "type": "string"
            },
            "example": "cit"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "dataset": "nigeria_tax_collections",
                  "source": "National Bureau of Statistics, from the Federal Inland Revenue Service (Nigeria Revenue Service from 2026)",
                  "unit": "naira collected in the quarter (amount_ngn; amount_ngn_billion is the same in billions); shares and changes in percent",
                  "note": "...",
                  "count": 53,
                  "data": [
                    {
                      "tax": "cit",
                      "line_id": "financial_insurance",
                      "line_kind": "sector",
                      "line_name": "Financial and insurance activities",
                      "classification": "isic_rev4",
                      "first_period": "2021-Q3",
                      "last_period": "2026-Q1",
                      "quarters": 19
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/tax-collections/quarterly": {
      "get": {
        "tags": [
          "VAT and company income tax"
        ],
        "operationId": "vat_and_company_income_tax__quarterly",
        "summary": "Quarterly collections",
        "description": "Collections by quarter since Q1 2021, oldest first: the sectors and the lines under them, with each sector's share of local collections and the change on the quarter and on the year. Filter by tax, and by line or kind.\n\nReference: https://dataminal.com/nigeria/tax-collections?tab=api",
        "parameters": [
          {
            "name": "tax",
            "in": "query",
            "required": false,
            "description": "vat (Value Added Tax) or cit (Company Income Tax). The two are never added together.",
            "schema": {
              "type": "string"
            },
            "example": "vat"
          },
          {
            "name": "line",
            "in": "query",
            "required": false,
            "description": "One to thirty line ids, comma-separated: sector ids such as manufacturing, or total, local_subtotal, foreign, import. /lines lists them.",
            "schema": {
              "type": "string"
            },
            "example": "total,manufacturing"
          },
          {
            "name": "kind",
            "in": "query",
            "required": false,
            "description": "sector, local_subtotal, foreign, import (VAT only), other_payments (CIT, 2021 only) or total.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "classification",
            "in": "query",
            "required": false,
            "description": "isic_rev4 (from Q3 2021) or tax_authority_sectors (Q1 and Q2 2021).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "description": "Earliest quarter, YYYY-Qn, inclusive.",
            "schema": {
              "type": "string"
            },
            "example": "2024-Q1"
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "description": "Latest quarter, YYYY-Qn, inclusive.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "year",
            "in": "query",
            "required": false,
            "description": "One calendar year.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "vintage",
            "in": "query",
            "required": false,
            "description": "current (default): each line's statement in the newest edition that prints it. all: every edition's statement.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Default 2000, maximum 10000.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/tax-collections/annual": {
      "get": {
        "tags": [
          "VAT and company income tax"
        ],
        "operationId": "vat_and_company_income_tax__annual",
        "summary": "Annual collections",
        "description": "One row per tax, calendar year and line: the sum of the quarters. is_complete false marks a year with fewer than four quarters. printed_total_ngn is NBS's own total for the year, and printed_total_differs marks where it is not the sum of the quarters.\n\nReference: https://dataminal.com/nigeria/tax-collections?tab=api",
        "parameters": [
          {
            "name": "tax",
            "in": "query",
            "required": false,
            "description": "vat (Value Added Tax) or cit (Company Income Tax). The two are never added together.",
            "schema": {
              "type": "string"
            },
            "example": "cit"
          },
          {
            "name": "line",
            "in": "query",
            "required": false,
            "description": "One to thirty line ids, comma-separated: sector ids such as manufacturing, or total, local_subtotal, foreign, import. /lines lists them.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "kind",
            "in": "query",
            "required": false,
            "description": "sector, local_subtotal, foreign, import (VAT only), other_payments (CIT, 2021 only) or total.",
            "schema": {
              "type": "string"
            },
            "example": "total"
          },
          {
            "name": "classification",
            "in": "query",
            "required": false,
            "description": "isic_rev4 (from Q3 2021) or tax_authority_sectors (Q1 and Q2 2021).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "description": "Earliest year, e.g. 2022.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "description": "Latest year.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/tax-collections/releases": {
      "get": {
        "tags": [
          "VAT and company income tax"
        ],
        "operationId": "vat_and_company_income_tax__releases",
        "summary": "Editions",
        "description": "Every tables workbook read, newest edition first: the quarter it is named for, when NBS posted it, the quarters it holds and whether it is the current one.\n\nReference: https://dataminal.com/nigeria/tax-collections?tab=api",
        "parameters": [
          {
            "name": "tax",
            "in": "query",
            "required": false,
            "description": "vat (Value Added Tax) or cit (Company Income Tax). The two are never added together.",
            "schema": {
              "type": "string"
            },
            "example": "vat"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/tax-collections/checks": {
      "get": {
        "tags": [
          "VAT and company income tax"
        ],
        "operationId": "vat_and_company_income_tax__checks",
        "summary": "Checks",
        "description": "The identities each edition must satisfy: the sectors add up to the local sub-total, the lines to the total, NBS's printed annual totals to their quarters. The current editions by default.\n\nReference: https://dataminal.com/nigeria/tax-collections?tab=api",
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "required": false,
            "description": "pass or fail.",
            "schema": {
              "type": "string"
            },
            "example": "fail"
          },
          {
            "name": "tax",
            "in": "query",
            "required": false,
            "description": "vat (Value Added Tax) or cit (Company Income Tax). The two are never added together.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "vintage",
            "in": "query",
            "required": false,
            "description": "current (default) or all editions.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/tax-collections/methodologies": {
      "get": {
        "tags": [
          "VAT and company income tax"
        ],
        "operationId": "vat_and_company_income_tax__methodologies",
        "summary": "Methodology",
        "description": "Definitions, the two sector lists, how shares and annual figures are derived, and what is checked.\n\nReference: https://dataminal.com/nigeria/tax-collections?tab=api",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "dataset": "nigeria_tax_collections",
                  "source": "National Bureau of Statistics, from the Federal Inland Revenue Service (Nigeria Revenue Service from 2026)",
                  "unit": "naira collected in the quarter (amount_ngn; amount_ngn_billion is the same in billions); shares and changes in percent",
                  "note": "...",
                  "count": 11,
                  "data": [
                    {
                      "topic": "lines",
                      "title": "The lines under the sectors",
                      "body": "..."
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/tax-collections": {
      "get": {
        "tags": [
          "VAT and company income tax"
        ],
        "operationId": "vat_and_company_income_tax__root",
        "summary": "Default view",
        "description": "The dataset's default rows: the same as one of its named routes (history or latest). Prefer the named routes, which are described in full.\n\nReference: https://dataminal.com/nigeria/tax-collections?tab=api",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/transport/latest": {
      "get": {
        "tags": [
          "Road crashes and rail traffic"
        ],
        "operationId": "road_crashes_and_rail_traffic__latest",
        "summary": "Latest quarter",
        "description": "The newest quarter of road crashes for every state and the nation (national row first, then most crashes first), and in `rail` the newest quarter of rail traffic. latest_period names each.\n\nReference: https://dataminal.com/nigeria/transport?tab=api",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/transport/road": {
      "get": {
        "tags": [
          "Road crashes and rail traffic"
        ],
        "operationId": "road_crashes_and_rail_traffic__road",
        "summary": "Road tables",
        "description": "One road table by period: crashes (the default; by state, with the national row), causes (by state and cause code), casualties (people killed or injured by sex and age, national) or vehicles (involved, by type or by use, national).\n\nReference: https://dataminal.com/nigeria/transport?tab=api",
        "parameters": [
          {
            "name": "table",
            "in": "query",
            "required": false,
            "description": "crashes (default), causes, casualties or vehicles.",
            "schema": {
              "type": "string"
            },
            "example": "crashes"
          },
          {
            "name": "state",
            "in": "query",
            "required": false,
            "description": "State keys, comma-separated (lagos, kano, fct, akwa_ibom), or total for Nigeria. crashes and causes.",
            "schema": {
              "type": "string"
            },
            "example": "lagos,kano,total"
          },
          {
            "name": "cause",
            "in": "query",
            "required": false,
            "description": "Cause codes, comma-separated (spv, tbt, dgd, total). causes only.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "outcome",
            "in": "query",
            "required": false,
            "description": "killed or injured. casualties only.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "dimension",
            "in": "query",
            "required": false,
            "description": "type or use. vehicles only.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "description": "Earliest period, a quarter (2024-Q1) or a year (2019), inclusive.",
            "schema": {
              "type": "string"
            },
            "example": "2024-Q1"
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "description": "Latest period, inclusive.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "period_type",
            "in": "query",
            "required": false,
            "description": "quarter or year.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "vintage",
            "in": "query",
            "required": false,
            "description": "current (default) or all: every edition's statement.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Default 5000, maximum 20000.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/transport/rail": {
      "get": {
        "tags": [
          "Road crashes and rail traffic"
        ],
        "operationId": "road_crashes_and_rail_traffic__rail",
        "summary": "Rail traffic and revenue",
        "description": "The Nigerian Railway Corporation's passengers, goods carried, revenue and other income, by quarter (from Q1 2016 for passengers, Q1 2017 for the rest) and by year (from 2011, with railway accidents to 2015).\n\nReference: https://dataminal.com/nigeria/transport?tab=api",
        "parameters": [
          {
            "name": "item",
            "in": "query",
            "required": false,
            "description": "passengers, cargo_tonnes, passenger_revenue_ngn, cargo_revenue_ngn, other_income_ngn, pipeline_tonnes, pipeline_revenue_ngn, accidents; comma-separated.",
            "schema": {
              "type": "string"
            },
            "example": "passengers"
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "description": "Earliest period, a quarter (2024-Q1) or a year (2019), inclusive.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "description": "Latest period, inclusive.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "period_type",
            "in": "query",
            "required": false,
            "description": "quarter or year.",
            "schema": {
              "type": "string"
            },
            "example": "quarter"
          },
          {
            "name": "vintage",
            "in": "query",
            "required": false,
            "description": "current (default) or all: every edition's statement.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Default 2000, maximum 10000.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/transport/releases": {
      "get": {
        "tags": [
          "Road crashes and rail traffic"
        ],
        "operationId": "road_crashes_and_rail_traffic__releases",
        "summary": "Releases",
        "description": "Every file read: the catalog's tables workbooks and the archived e-library PDFs, with each one's status, what it covers and any table block left out.\n\nReference: https://dataminal.com/nigeria/transport?tab=api",
        "parameters": [
          {
            "name": "series",
            "in": "query",
            "required": false,
            "description": "road or rail.",
            "schema": {
              "type": "string"
            },
            "example": "road"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/transport/checks": {
      "get": {
        "tags": [
          "Road crashes and rail traffic"
        ],
        "operationId": "road_crashes_and_rail_traffic__checks",
        "summary": "Checks",
        "description": "The identities each edition must satisfy (severities add to crashes, states to the nation, causes to each state, people and vehicles to their totals, rail years to their quarters). The current editions by default.\n\nReference: https://dataminal.com/nigeria/transport?tab=api",
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "required": false,
            "description": "pass or fail.",
            "schema": {
              "type": "string"
            },
            "example": "fail"
          },
          {
            "name": "series",
            "in": "query",
            "required": false,
            "description": "road or rail.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "vintage",
            "in": "query",
            "required": false,
            "description": "current (default) or all.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/transport/methodologies": {
      "get": {
        "tags": [
          "Road crashes and rail traffic"
        ],
        "operationId": "road_crashes_and_rail_traffic__methodologies",
        "summary": "Methodology",
        "description": "Definitions, sources, editions, archived releases, what is derived and what is checked.\n\nReference: https://dataminal.com/nigeria/transport?tab=api",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "dataset": "nigeria_transport",
                  "source": "National Bureau of Statistics, from the Federal Road Safety Corps (road) and the Nigerian Railway Corporation (rail)",
                  "unit": "...",
                  "note": "...",
                  "count": 11,
                  "data": [
                    {
                      "topic": "road_crashes",
                      "title": "Road crashes",
                      "body": "..."
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/transport": {
      "get": {
        "tags": [
          "Road crashes and rail traffic"
        ],
        "operationId": "road_crashes_and_rail_traffic__root",
        "summary": "Default view",
        "description": "The dataset's default rows: the same as one of its named routes (history or latest). Prefer the named routes, which are described in full.\n\nReference: https://dataminal.com/nigeria/transport?tab=api",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/pmi/latest": {
      "get": {
        "tags": [
          "Purchasing Managers' Index"
        ],
        "operationId": "purchasing_managers_index__latest",
        "summary": "Latest month",
        "description": "Every sector and indicator of the newest month the 2024 framework's composite PMI reaches. latest_period names it.\n\nReference: https://dataminal.com/nigeria/pmi?tab=api",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/pmi/indices": {
      "get": {
        "tags": [
          "Purchasing Managers' Index"
        ],
        "operationId": "purchasing_managers_index__indices",
        "summary": "Index values",
        "description": "Index values over time, oldest first: by framework (2014 or 2024), month, sector and indicator. indicator pmi is a sector's PMI; the others are its survey questions. Pass a framework: the two are different surveys.\n\nReference: https://dataminal.com/nigeria/pmi?tab=api",
        "parameters": [
          {
            "name": "framework",
            "in": "query",
            "required": false,
            "description": "2024 (composite, industry, services, agriculture; from 2023) or 2014 (manufacturing and non-manufacturing; 2014 to 2020).",
            "schema": {
              "type": "string"
            },
            "example": "2024"
          },
          {
            "name": "sector",
            "in": "query",
            "required": false,
            "description": "Sector keys, comma-separated (composite, industry, services, agriculture, manufacturing, cement, finance_insurance ...). /sectors lists them.",
            "schema": {
              "type": "string"
            },
            "example": "composite,manufacturing"
          },
          {
            "name": "indicator",
            "in": "query",
            "required": false,
            "description": "pmi, output, new_orders, employment, inventory, supplier_delivery, new_export_orders, new_import_orders, output_prices, input_prices, quantity_purchased, backlog, finished_goods_stock, farm_yield, inventory_sentiment, capacity_utilization; comma-separated.",
            "schema": {
              "type": "string"
            },
            "example": "pmi,input_prices"
          },
          {
            "name": "level",
            "in": "query",
            "required": false,
            "description": "composite, sector, group, subsector or activity.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "parent",
            "in": "query",
            "required": false,
            "description": "Every sector under this one (manufacturing, services, agriculture ...).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "description": "Earliest month, inclusive (2023-01).",
            "schema": {
              "type": "string"
            },
            "example": "2025-01"
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "description": "Latest month, inclusive (2026-10).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "vintage",
            "in": "query",
            "required": false,
            "description": "current (default) or all: every report's statement.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Default 5000, maximum 20000.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/pmi/sectors": {
      "get": {
        "tags": [
          "Purchasing Managers' Index"
        ],
        "operationId": "purchasing_managers_index__sectors",
        "summary": "Sectors",
        "description": "The sectors of each framework: key, name, level, parent, first and last month and how many months are held.\n\nReference: https://dataminal.com/nigeria/pmi?tab=api",
        "parameters": [
          {
            "name": "framework",
            "in": "query",
            "required": false,
            "description": "2014 or 2024.",
            "schema": {
              "type": "string"
            },
            "example": "2024"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/pmi/releases": {
      "get": {
        "tags": [
          "Purchasing Managers' Index"
        ],
        "operationId": "purchasing_managers_index__releases",
        "summary": "Reports",
        "description": "Every report read: the month it is for, whether its tables were text or pictures, the tables read, what it held and what was left out.\n\nReference: https://dataminal.com/nigeria/pmi?tab=api",
        "parameters": [
          {
            "name": "framework",
            "in": "query",
            "required": false,
            "description": "2014 or 2024.",
            "schema": {
              "type": "string"
            },
            "example": "2024"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/pmi/checks": {
      "get": {
        "tags": [
          "Purchasing Managers' Index"
        ],
        "operationId": "purchasing_managers_index__checks",
        "summary": "Checks",
        "description": "The identities each report must satisfy: whole rows, tables that agree, months named, and the PMI as the average of its four indicators where the Bank's averaging holds. The newest reports by default.\n\nReference: https://dataminal.com/nigeria/pmi?tab=api",
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "required": false,
            "description": "pass or fail.",
            "schema": {
              "type": "string"
            },
            "example": "fail"
          },
          {
            "name": "framework",
            "in": "query",
            "required": false,
            "description": "2014 or 2024.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "vintage",
            "in": "query",
            "required": false,
            "description": "current (default) or all.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/pmi/methodologies": {
      "get": {
        "tags": [
          "Purchasing Managers' Index"
        ],
        "operationId": "purchasing_managers_index__methodologies",
        "summary": "Methodology",
        "description": "Definitions, the two frameworks, sectors and renames, editions, reports printed as pictures and the checks.\n\nReference: https://dataminal.com/nigeria/pmi?tab=api",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "dataset": "nigeria_pmi",
                  "source": "Central Bank of Nigeria, Purchasing Managers' Index reports",
                  "unit": "diffusion index, 0 to 100 (above 50: expansion; below 50: contraction); change in index points",
                  "note": "...",
                  "count": 9,
                  "data": [
                    {
                      "topic": "frameworks",
                      "title": "Two frameworks, never joined",
                      "body": "..."
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/pmi": {
      "get": {
        "tags": [
          "Purchasing Managers' Index"
        ],
        "operationId": "purchasing_managers_index__root",
        "summary": "Default view",
        "description": "The dataset's default rows: the same as one of its named routes (history or latest). Prefer the named routes, which are described in full.\n\nReference: https://dataminal.com/nigeria/pmi?tab=api",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/procurement/summary": {
      "get": {
        "tags": [
          "Public procurement"
        ],
        "operationId": "public_procurement__summary",
        "summary": "Summary by release year",
        "description": "Returns one row per release year: processes, tenders, awards and contracts recorded, and the tender, award and contract values attached to them.\n\nReference: https://dataminal.com/nigeria/procurement?tab=api",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "count": 6,
                  "data": [
                    {
                      "release_year": 2024,
                      "process_count": 52722,
                      "tender_count": 9184,
                      "award_count": 9021,
                      "contract_count": 8842,
                      "tender_value_ngn": 4182300000000,
                      "award_value_ngn": 3907450000000,
                      "contract_value_ngn": 3811620000000
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/procurement/processes": {
      "get": {
        "tags": [
          "Public procurement"
        ],
        "operationId": "public_procurement__processes",
        "summary": "Contracting processes",
        "description": "Returns contracting processes, newest release date first. One row per OCID, with the buyer, the budget it was planned against, the stage it reached and its tender, award and contract values.\n\nReference: https://dataminal.com/nigeria/procurement?tab=api",
        "parameters": [
          {
            "name": "year",
            "in": "query",
            "required": false,
            "description": "Restrict to one release year. Coverage currently runs from 2021 to 2026.",
            "schema": {
              "type": "integer"
            },
            "example": 2024
          },
          {
            "name": "buyer",
            "in": "query",
            "required": false,
            "description": "Buying entity key, e.g. federal_ministry_of_health. Matches buyer_key.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "method",
            "in": "query",
            "required": false,
            "description": "Filter on procurement_method_details, e.g. National Competitive Bidding.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "stage",
            "in": "query",
            "required": false,
            "description": "Restrict to the furthest stage reached: planning, tender, award or contract.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum rows to return. Defaults to 100, capped at 2000.",
            "schema": {
              "type": "integer"
            },
            "example": 3
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "count": 3,
                  "data": [
                    {
                      "ocid": "ocds-hs8gzz-0000000001",
                      "release_year": 2024,
                      "release_date": "2024-09-18",
                      "buyer_name": "Federal Ministry of Health",
                      "buyer_key": "federal_ministry_of_health",
                      "project_title": "Supply of laboratory consumables",
                      "budget_amount_ngn": 184000000,
                      "has_tender": true,
                      "award_count": 1,
                      "contract_count": 1,
                      "tender_value_ngn": 179400000,
                      "award_value_ngn": 176250000,
                      "contract_value_ngn": 176250000,
                      "procurement_method": "open",
                      "procurement_method_details": "National Competitive Bidding",
                      "stage": "contract"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/procurement/awards": {
      "get": {
        "tags": [
          "Public procurement"
        ],
        "operationId": "public_procurement__awards",
        "summary": "Awards",
        "description": "Returns awards, newest first: the supplier, the buyer, the status, value and date. A process can carry more than one award.\n\nReference: https://dataminal.com/nigeria/procurement?tab=api",
        "parameters": [
          {
            "name": "year",
            "in": "query",
            "required": false,
            "description": "Restrict to one release year. Coverage currently runs from 2021 to 2026.",
            "schema": {
              "type": "integer"
            },
            "example": 2024
          },
          {
            "name": "supplier",
            "in": "query",
            "required": false,
            "description": "Supplier key. Matches supplier_key.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "buyer",
            "in": "query",
            "required": false,
            "description": "Buying entity key, e.g. federal_ministry_of_health. Matches buyer_key.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum rows to return. Defaults to 100, capped at 2000.",
            "schema": {
              "type": "integer"
            },
            "example": 3
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "count": 3,
                  "data": [
                    {
                      "ocid": "ocds-hs8gzz-0000000001",
                      "release_year": 2024,
                      "award_id": "AWD-0000000001",
                      "status": "active",
                      "award_date": "2024-10-02",
                      "value_ngn": 176250000,
                      "currency": "NGN",
                      "supplier_name": "Progressive Educational Services Ltd",
                      "supplier_key": "progressive_educational_services",
                      "buyer_name": "Federal Ministry of Health",
                      "buyer_key": "federal_ministry_of_health",
                      "procurement_method_details": "National Competitive Bidding"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/procurement/contracts": {
      "get": {
        "tags": [
          "Public procurement"
        ],
        "operationId": "public_procurement__contracts",
        "summary": "Contracts",
        "description": "Returns contracts, newest signing date first: the award each implements, its status, value, period and the buyer and supplier on it.\n\nReference: https://dataminal.com/nigeria/procurement?tab=api",
        "parameters": [
          {
            "name": "year",
            "in": "query",
            "required": false,
            "description": "Restrict to one release year. Coverage currently runs from 2021 to 2026.",
            "schema": {
              "type": "integer"
            },
            "example": 2024
          },
          {
            "name": "supplier",
            "in": "query",
            "required": false,
            "description": "Supplier key. Matches supplier_key.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "buyer",
            "in": "query",
            "required": false,
            "description": "Buying entity key, e.g. federal_ministry_of_health. Matches buyer_key.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum rows to return. Defaults to 100, capped at 2000.",
            "schema": {
              "type": "integer"
            },
            "example": 3
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "count": 3,
                  "data": [
                    {
                      "ocid": "ocds-hs8gzz-0000000001",
                      "release_year": 2024,
                      "contract_id": "CON-0000000001",
                      "award_id": "AWD-0000000001",
                      "status": "active",
                      "date_signed": "2024-10-21",
                      "value_ngn": 176250000,
                      "period_start": "2024-11-01",
                      "period_end": "2025-04-30",
                      "buyer_name": "Federal Ministry of Health",
                      "supplier_name": "Progressive Educational Services Ltd"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/procurement/suppliers": {
      "get": {
        "tags": [
          "Public procurement"
        ],
        "operationId": "public_procurement__suppliers",
        "summary": "Suppliers",
        "description": "Returns the supplier registry ranked by award value: awards and contracts held, what they are worth, how many buyers the supplier worked with and how many raw spellings the portal used for it.\n\nReference: https://dataminal.com/nigeria/procurement?tab=api",
        "parameters": [
          {
            "name": "year",
            "in": "query",
            "required": false,
            "description": "Restrict to one release year. Coverage currently runs from 2021 to 2026.",
            "schema": {
              "type": "integer"
            },
            "example": 2024
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum rows to return. Defaults to 100, capped at 2000.",
            "schema": {
              "type": "integer"
            },
            "example": 3
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "count": 3,
                  "data": [
                    {
                      "release_year": 2024,
                      "supplier_key": "progressive_educational_services",
                      "supplier_name": "Progressive Educational Services Ltd",
                      "supplier_id": "NG-CAC-RC-000000",
                      "name_variants": 2,
                      "award_count": 14,
                      "contract_count": 12,
                      "award_value_ngn": 2410000000,
                      "contract_value_ngn": 2280000000,
                      "buyer_count": 5,
                      "first_award_date": "2024-02-11",
                      "last_award_date": "2024-12-04"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/procurement/entities": {
      "get": {
        "tags": [
          "Public procurement"
        ],
        "operationId": "public_procurement__entities",
        "summary": "Buying entities",
        "description": "Returns the buying-entity registry ranked by award value: processes run, tenders, awards and contracts issued, and how many suppliers were engaged.\n\nReference: https://dataminal.com/nigeria/procurement?tab=api",
        "parameters": [
          {
            "name": "year",
            "in": "query",
            "required": false,
            "description": "Restrict to one release year. Coverage currently runs from 2021 to 2026.",
            "schema": {
              "type": "integer"
            },
            "example": 2024
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum rows to return. Defaults to 100, capped at 2000.",
            "schema": {
              "type": "integer"
            },
            "example": 3
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "count": 3,
                  "data": [
                    {
                      "release_year": 2024,
                      "buyer_key": "federal_ministry_of_health",
                      "buyer_name": "Federal Ministry of Health",
                      "buyer_id": "NG-BPP-BPP-NOC-0000",
                      "process_count": 812,
                      "tender_count": 268,
                      "award_count": 241,
                      "contract_count": 233,
                      "budget_amount_ngn": 96400000000,
                      "award_value_ngn": 88200000000,
                      "contract_value_ngn": 86050000000,
                      "supplier_count": 154
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/procurement/releases": {
      "get": {
        "tags": [
          "Public procurement"
        ],
        "operationId": "public_procurement__releases",
        "summary": "Releases",
        "description": "Returns every year file ingested, newest first: what it covers, how many rows it produced in each table, its hashes and where it was fetched from.\n\nReference: https://dataminal.com/nigeria/procurement?tab=api",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum rows to return. Defaults to 24, capped at 100.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "count": 6,
                  "data": [
                    {
                      "release_id": "bpp-ocds-2024-9f21c4d8",
                      "release_year": 2024,
                      "title": "NOCOPO compiled releases, 2024",
                      "source_format": "jsonl.gz",
                      "retrieved_at": "2026-08-04T02:14:11Z",
                      "record_count": 52722,
                      "process_count": 52722,
                      "tender_count": 9184,
                      "award_count": 9021,
                      "contract_count": 8842,
                      "supplier_count": 5310,
                      "entity_count": 421,
                      "first_release_date": "2024-01-03",
                      "last_release_date": "2024-12-31",
                      "warning_count": 0
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/procurement/activity": {
      "get": {
        "tags": [
          "Public procurement"
        ],
        "operationId": "public_procurement__activity",
        "summary": "Activity by year",
        "description": "Award counts and values by year.\n\nReference: https://dataminal.com/nigeria/procurement?tab=api",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/mining/latest": {
      "get": {
        "tags": [
          "Solid minerals"
        ],
        "operationId": "solid_minerals__latest",
        "summary": "Latest audit cycle",
        "description": "Returns the headline row of the newest cycle ingested: the quantity and royalty it reports, how many companies, minerals and states it covers, and how its totals compare with the audit's own.\n\nReference: https://dataminal.com/nigeria/mining?tab=api",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "count": 1,
                  "data": [
                    {
                      "year": 2023,
                      "audit_cycle": "2023",
                      "publication_date": "2024-10-30",
                      "publication_date_basis": "official_report_date",
                      "company_count": 255,
                      "mineral_count": 54,
                      "state_count": 37,
                      "production_rows": 1892,
                      "total_quantity_mt": 74310522,
                      "total_royalty_ngn": 12840500000,
                      "entity_quantity_mt": 68204118,
                      "other_operator_quantity_mt": 6106404,
                      "quantity_reconciles": true,
                      "implausible_rows": 0
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/mining/production": {
      "get": {
        "tags": [
          "Solid minerals"
        ],
        "operationId": "solid_minerals__production",
        "summary": "Production and royalty",
        "description": "Returns production rows for a cycle: quantity in metric tonnes and the royalty paid, per company, state and mineral. Filter by mineral, state, company or reporting scope.\n\nReference: https://dataminal.com/nigeria/mining?tab=api",
        "parameters": [
          {
            "name": "year",
            "in": "query",
            "required": false,
            "description": "Restrict to one audit cycle, e.g. 2023.",
            "schema": {
              "type": "integer"
            },
            "example": 2023
          },
          {
            "name": "mineral",
            "in": "query",
            "required": false,
            "description": "Mineral key such as granite_aggregate, limestone, gold.",
            "schema": {
              "type": "string"
            },
            "example": "limestone"
          },
          {
            "name": "state",
            "in": "query",
            "required": false,
            "description": "State key such as ogun, kogi, nasarawa.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "company",
            "in": "query",
            "required": false,
            "description": "Company key. Matches company_key.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "scope",
            "in": "query",
            "required": false,
            "description": "audited_entity or other_operators.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum rows to return. Defaults to 200, capped at 5000.",
            "schema": {
              "type": "integer"
            },
            "example": 3
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "count": 3,
                  "data": [
                    {
                      "year": 2023,
                      "company": "Example Mining Company Limited",
                      "company_key": "example_mining_company",
                      "state": "Ogun",
                      "state_key": "ogun",
                      "mineral": "Limestone",
                      "mineral_key": "limestone",
                      "mineral_group": "industrial",
                      "reporting_scope": "audited_entity",
                      "quantity_mt": 1842300,
                      "royalty_ngn": 184230000,
                      "unit": "metric tonnes",
                      "implausible": false,
                      "royalty_per_mt_ngn": 100
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/mining/minerals": {
      "get": {
        "tags": [
          "Solid minerals"
        ],
        "operationId": "solid_minerals__minerals",
        "summary": "Totals by mineral",
        "description": "Returns one row per mineral for a cycle: the quantity reported, the royalty paid on it, and how many companies and states reported it.\n\nReference: https://dataminal.com/nigeria/mining?tab=api",
        "parameters": [
          {
            "name": "year",
            "in": "query",
            "required": false,
            "description": "Restrict to one audit cycle, e.g. 2023.",
            "schema": {
              "type": "integer"
            },
            "example": 2023
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "count": 54,
                  "data": [
                    {
                      "year": 2023,
                      "mineral": "Granite Aggregate",
                      "mineral_key": "granite_aggregate",
                      "mineral_group": "construction",
                      "quantity_mt": 41820430,
                      "royalty_ngn": 4182043000,
                      "company_count": 118,
                      "state_count": 24,
                      "row_count": 142
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/mining/states": {
      "get": {
        "tags": [
          "Solid minerals"
        ],
        "operationId": "solid_minerals__states",
        "summary": "Totals by state",
        "description": "Returns one row per state of operation for a cycle: the quantity reported, the royalty paid, and how many companies and minerals it covers. Production reported for unnamed operators is included and counted separately.\n\nReference: https://dataminal.com/nigeria/mining?tab=api",
        "parameters": [
          {
            "name": "year",
            "in": "query",
            "required": false,
            "description": "Restrict to one audit cycle, e.g. 2023.",
            "schema": {
              "type": "integer"
            },
            "example": 2023
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "count": 37,
                  "data": [
                    {
                      "year": 2023,
                      "state": "Ogun",
                      "state_key": "ogun",
                      "quantity_mt": 18420310,
                      "royalty_ngn": 1842031000,
                      "company_count": 34,
                      "mineral_count": 12,
                      "entity_quantity_mt": 17204110,
                      "other_operator_quantity_mt": 1216200,
                      "row_count": 88
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/mining/companies": {
      "get": {
        "tags": [
          "Solid minerals"
        ],
        "operationId": "solid_minerals__companies",
        "summary": "Company totals",
        "description": "Returns one row per named company and state for a cycle, ranked by quantity reported, with royalty, mineral and state counts, and the total the workbook prints for that row.\n\nReference: https://dataminal.com/nigeria/mining?tab=api",
        "parameters": [
          {
            "name": "year",
            "in": "query",
            "required": false,
            "description": "Restrict to one audit cycle, e.g. 2023.",
            "schema": {
              "type": "integer"
            },
            "example": 2023
          },
          {
            "name": "company",
            "in": "query",
            "required": false,
            "description": "Company key. Matches company_key.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "state",
            "in": "query",
            "required": false,
            "description": "State key such as ogun, kogi or nasarawa.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum rows to return. Defaults to 100, capped at 2000.",
            "schema": {
              "type": "integer"
            },
            "example": 3
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "count": 3,
                  "data": [
                    {
                      "year": 2023,
                      "company": "Example Mining Company Limited",
                      "company_key": "example_mining_company",
                      "state": "Ogun",
                      "row_count": 6,
                      "mineral_count": 4,
                      "state_count": 1,
                      "quantity_mt": 11142300,
                      "royalty_ngn": 1114230000,
                      "reported_total_quantity_mt": 11142300,
                      "implausible_rows": 0
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/mining/releases": {
      "get": {
        "tags": [
          "Solid minerals"
        ],
        "operationId": "solid_minerals__releases",
        "summary": "Releases",
        "description": "Returns every audit cycle ingested, newest first: the appendix it was read from, the rows it produced, the reconciliation against the audit's own totals, and its hashes.\n\nReference: https://dataminal.com/nigeria/mining?tab=api",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum rows to return. Defaults to 24, capped at 100.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "count": 2,
                  "data": [
                    {
                      "release_id": "neiti-sma-2023",
                      "year": 2023,
                      "title": "APPENDIX 19 - Production by State and Company",
                      "audit_cycle": "2023",
                      "source_format": "xlsx",
                      "sheet_name": "2023",
                      "publication_date": "2024-10-30",
                      "publication_date_basis": "official_report_date",
                      "company_rows": 560,
                      "production_rows": 1892,
                      "company_count": 255,
                      "mineral_count": 54,
                      "total_quantity_mt": 74310522,
                      "published_total_quantity_mt": 74310522,
                      "reconciled_against": "grand_total",
                      "reconcile_gap_pct": 0,
                      "quantity_reconciles": true,
                      "warning_count": 0
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/states/fiscal/latest": {
      "get": {
        "tags": [
          "State fiscal"
        ],
        "operationId": "state_fiscal__latest",
        "summary": "Latest year",
        "description": "Returns one summary row per state for the newest year the dataset carries, ranked by revenue. The year is resolved inside the query, so every row in the response is from the same year and the ranking cannot mix periods.\n\nReference: https://dataminal.com/nigeria/state-fiscal?tab=api",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "count": 37,
                  "data": [
                    {
                      "year": 2024,
                      "state": "Lagos",
                      "state_key": "lagos",
                      "igr_total_ngn": 1078000000000,
                      "igr_growth_yoy_pct": 23.4,
                      "igr_rank": 1,
                      "igr_source_agency": "National Bureau of Statistics",
                      "igr_source_release": "nbs-igr-2024",
                      "faac_total_ngn": 402100000000,
                      "faac_months_covered": 5,
                      "faac_year_complete": false,
                      "total_revenue_ngn": 1078000000000,
                      "total_revenue_basis": "igr_only",
                      "igr_share_of_revenue_pct": 100,
                      "faac_dependence_pct": null,
                      "metric_basis": "igr_only",
                      "currency": "NGN",
                      "publication_date": "2025-08-21"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/states/fiscal/history": {
      "get": {
        "tags": [
          "State fiscal"
        ],
        "operationId": "state_fiscal__history",
        "summary": "History",
        "description": "Returns summary rows across the whole series, newest year first. Without parameters it returns every state-year; pass a state for that state's own history, or from and to for a window of years.\n\nReference: https://dataminal.com/nigeria/state-fiscal?tab=api",
        "parameters": [
          {
            "name": "state",
            "in": "query",
            "required": false,
            "description": "State key such as lagos, kano or akwa_ibom.",
            "schema": {
              "type": "string"
            },
            "example": "kano"
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "description": "First year to include.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "description": "Last year to include.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum rows to return. Defaults to 500, capped at 5000.",
            "schema": {
              "type": "integer"
            },
            "example": 3
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "count": 3,
                  "data": [
                    {
                      "year": 2024,
                      "state": "Kano",
                      "state_key": "kano",
                      "igr_total_ngn": 75400000000,
                      "igr_growth_yoy_pct": 31.2,
                      "igr_rank": 8,
                      "faac_months_covered": 5,
                      "faac_year_complete": false,
                      "faac_dependence_pct": null,
                      "metric_basis": "igr_only",
                      "publication_date": "2025-08-21"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/states/fiscal/igr": {
      "get": {
        "tags": [
          "State fiscal"
        ],
        "operationId": "state_fiscal__igr",
        "summary": "Internally generated revenue",
        "description": "The wide table: one row per state and year with every category the source publishes beside the totals. For 2019, 2020 and 2021 the category columns are null — the sheet states that no breakdown by tax type is published — and the coarse tax_revenue_ngn and other_revenue_ngn split carries those years instead.\n\nReference: https://dataminal.com/nigeria/state-fiscal?tab=api",
        "parameters": [
          {
            "name": "state",
            "in": "query",
            "required": false,
            "description": "State key such as lagos, kano or akwa_ibom.",
            "schema": {
              "type": "string"
            },
            "example": "lagos"
          },
          {
            "name": "year",
            "in": "query",
            "required": false,
            "description": "Restrict to one calendar year, e.g. 2024.",
            "schema": {
              "type": "integer"
            },
            "example": 2024
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum rows to return. Defaults to 500, capped at 5000.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "count": 1,
                  "data": [
                    {
                      "year": 2024,
                      "state": "Lagos",
                      "state_key": "lagos",
                      "state_name_source": "LAGOS",
                      "paye_ngn": 612000000000,
                      "direct_assessment_ngn": 41300000000,
                      "road_taxes_ngn": 18700000000,
                      "stamp_duties_ngn": 9400000000,
                      "capital_gains_tax_ngn": 3100000000,
                      "withholding_tax_ngn": 87600000000,
                      "other_taxes_ngn": 52800000000,
                      "lga_revenue_ngn": 21500000000,
                      "mda_revenue_ngn": 231600000000,
                      "tax_revenue_ngn": null,
                      "other_revenue_ngn": null,
                      "total_tax_ngn": 846400000000,
                      "total_igr_ngn": 1078000000000,
                      "published_total_ngn": 1078000000000,
                      "has_category_breakdown": true,
                      "category_count": 9,
                      "reconciles": true,
                      "currency": "NGN",
                      "unit": "naira"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/states/fiscal/sources": {
      "get": {
        "tags": [
          "State fiscal"
        ],
        "operationId": "state_fiscal__sources",
        "summary": "Revenue sources",
        "description": "The same revenue in long form, one row per category, with each category's share of the state's total for that year. A category the source does not publish for a year is absent from the response rather than returned as zero, so the coarse years simply return fewer rows.\n\nReference: https://dataminal.com/nigeria/state-fiscal?tab=api",
        "parameters": [
          {
            "name": "state",
            "in": "query",
            "required": false,
            "description": "State key such as lagos, kano or akwa_ibom.",
            "schema": {
              "type": "string"
            },
            "example": "lagos"
          },
          {
            "name": "year",
            "in": "query",
            "required": false,
            "description": "Restrict to one calendar year, e.g. 2024.",
            "schema": {
              "type": "integer"
            },
            "example": 2024
          },
          {
            "name": "category",
            "in": "query",
            "required": false,
            "description": "Category key such as paye, withholding_tax, mda_revenue, or tax_revenue and others in the coarse years.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum rows to return. Defaults to 1000, capped at 5000.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "count": 9,
                  "data": [
                    {
                      "year": 2024,
                      "state": "Lagos",
                      "state_key": "lagos",
                      "category": "Pay As You Earn",
                      "category_key": "paye",
                      "category_kind": "tax",
                      "amount_ngn": 612000000000,
                      "share_of_total_pct": 56.77,
                      "currency": "NGN",
                      "source_release": "nbs-igr-2024",
                      "publication_date": "2025-08-21"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/states/fiscal/summary": {
      "get": {
        "tags": [
          "State fiscal"
        ],
        "operationId": "state_fiscal__summary",
        "summary": "Fiscal summary",
        "description": "Derived metrics per state and year, each carrying the basis it was computed on. faac_dependence_pct is null wherever the year's FAAC months are incomplete; faac_months_covered says how many months exist.\n\nReference: https://dataminal.com/nigeria/state-fiscal?tab=api",
        "parameters": [
          {
            "name": "state",
            "in": "query",
            "required": false,
            "description": "State key such as lagos, kano or akwa_ibom.",
            "schema": {
              "type": "string"
            },
            "example": "lagos"
          },
          {
            "name": "year",
            "in": "query",
            "required": false,
            "description": "Restrict to one calendar year, e.g. 2024.",
            "schema": {
              "type": "integer"
            },
            "example": 2024
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum rows to return. Defaults to 500, capped at 5000.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "count": 1,
                  "data": [
                    {
                      "year": 2024,
                      "state": "Lagos",
                      "state_key": "lagos",
                      "igr_total_ngn": 1078000000000,
                      "igr_growth_yoy_pct": 23.4,
                      "igr_rank": 1,
                      "igr_source_agency": "National Bureau of Statistics",
                      "igr_source_release": "nbs-igr-2024",
                      "faac_total_ngn": 402100000000,
                      "faac_months_covered": 5,
                      "faac_year_complete": false,
                      "total_revenue_ngn": 1078000000000,
                      "total_revenue_basis": "igr_only",
                      "igr_share_of_revenue_pct": 100,
                      "faac_dependence_pct": null,
                      "metric_basis": "igr_only",
                      "currency": "NGN",
                      "publication_date": "2025-08-21"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/states/fiscal/releases": {
      "get": {
        "tags": [
          "State fiscal"
        ],
        "operationId": "state_fiscal__releases",
        "summary": "Releases",
        "description": "Returns every year ingested, newest first: the sheet it was read from, the layout the parser matched, whether the parsed figures agree with the sheet's own totals, any cell the workbook published unreadably, and the notes the sheet carries.\n\nReference: https://dataminal.com/nigeria/state-fiscal?tab=api",
        "parameters": [
          {
            "name": "year",
            "in": "query",
            "required": false,
            "description": "Restrict to one calendar year, e.g. 2024.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum rows to return. Defaults to 24, capped at 100.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "count": 6,
                  "data": [
                    {
                      "release_id": "nbs-igr-2023",
                      "year": 2023,
                      "title": "Internally Generated Revenue at State Level (2023)",
                      "catalog_id": 170,
                      "layout_version": "igr_detailed_v1",
                      "sheet_name": "2023",
                      "state_count": 37,
                      "row_count": 37,
                      "category_row_count": 333,
                      "has_category_breakdown": true,
                      "total_igr_ngn": 2430000000000,
                      "published_total_ngn": null,
                      "reconciles": true,
                      "reconcile_gap_pct": 0,
                      "unreadable_cells": 2,
                      "warning_count": 0,
                      "source_notes": "Two published column totals render as an Excel overflow marker; the state rows are intact.",
                      "publication_date": "2024-09-04"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/states/{state}/fiscal": {
      "get": {
        "tags": [
          "State fiscal"
        ],
        "operationId": "state_fiscal__profile",
        "summary": "One state's profile",
        "description": "Returns one state's summary rows, newest year first, with the state's canonical name and key alongside them. The state key is a path segment; a key the dataset does not carry returns HTTP 404 rather than an empty list that would read as a state with no revenue.\n\nReference: https://dataminal.com/nigeria/state-fiscal?tab=api",
        "parameters": [
          {
            "name": "state",
            "in": "path",
            "required": true,
            "description": "State key such as lagos, kano or akwa_ibom.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "state": "Lagos",
                  "state_key": "lagos",
                  "count": 6,
                  "data": [
                    {
                      "year": 2024,
                      "state": "Lagos",
                      "state_key": "lagos",
                      "igr_total_ngn": 1078000000000,
                      "igr_growth_yoy_pct": 23.4,
                      "igr_rank": 1,
                      "igr_source_agency": "National Bureau of Statistics",
                      "igr_source_release": "nbs-igr-2024",
                      "faac_total_ngn": 402100000000,
                      "faac_months_covered": 5,
                      "faac_year_complete": false,
                      "total_revenue_ngn": 1078000000000,
                      "total_revenue_basis": "igr_only",
                      "igr_share_of_revenue_pct": 100,
                      "faac_dependence_pct": null,
                      "metric_basis": "igr_only",
                      "currency": "NGN",
                      "publication_date": "2025-08-21"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/states/fiscal/periodic": {
      "get": {
        "tags": [
          "State fiscal"
        ],
        "operationId": "state_fiscal__periodic",
        "summary": "Half-year and quarterly revenue",
        "description": "Sub-annual internally generated revenue as published (the publisher stopped after 2021-Q2).\n\nReference: https://dataminal.com/nigeria/state-fiscal?tab=api",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/exchange-rate/latest": {
      "get": {
        "tags": [
          "Exchange rate"
        ],
        "operationId": "exchange_rate__latest",
        "summary": "Latest rate",
        "description": "The newest published official rate for a currency (the US dollar by default, or every currency with currency=all), with the newest NFEM row beside it. The date is the CBN's, so a rate dated yesterday is yesterday's rate; the response never claims today.\n\nReference: https://dataminal.com/nigeria/exchange-rate?tab=api",
        "parameters": [
          {
            "name": "currency",
            "in": "query",
            "required": false,
            "description": "Currency code (USD by default): USD, GBP, EUR, JPY, CHF, CNY, SAR, DKK, ZAR, AED, XDR, CFA, WAUA, or all.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "count": 1,
                  "data": [
                    {
                      "rate_date": "2026-09-10",
                      "currency_code": "USD",
                      "currency_name": "US dollar",
                      "rate_type": "cbn_official",
                      "buying_rate": 1327.2154,
                      "central_rate": 1327.7154,
                      "selling_rate": 1328.2154,
                      "market_regime": "nfem_efems",
                      "previous_rate_date": "2026-09-09",
                      "previous_central_rate": 1328.7129,
                      "change_1d": -0.9975,
                      "change_1d_pct": -0.0751,
                      "change_1w_pct": 0.115,
                      "change_1m_pct": -2.74,
                      "change_ytd_pct": -7.49,
                      "change_yoy_pct": -11.8,
                      "volatility_30d_pct": 0.31,
                      "quality_flags": null,
                      "has_quality_flag": false,
                      "publication_date": "2026-09-10",
                      "publication_date_basis": "official_rate_date"
                    }
                  ],
                  "nfem": {
                    "rate_date": "2026-09-10",
                    "closing_rate": 1329.5,
                    "high_rate": 1335,
                    "low_rate": 1322,
                    "weighted_average_rate": 1328.4,
                    "deals_count": 251,
                    "turnover_usd": 612000000
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/exchange-rate/history": {
      "get": {
        "tags": [
          "Exchange rate"
        ],
        "operationId": "exchange_rate__history",
        "summary": "Daily history",
        "description": "Daily official rates, newest first, for one currency or all, optionally between two dates. Every row carries the derived changes, the regime and its quality flags.\n\nReference: https://dataminal.com/nigeria/exchange-rate?tab=api",
        "parameters": [
          {
            "name": "currency",
            "in": "query",
            "required": false,
            "description": "Currency code (USD by default): USD, GBP, EUR, JPY, CHF, CNY, SAR, DKK, ZAR, AED, XDR, CFA, WAUA, or all.",
            "schema": {
              "type": "string"
            },
            "example": "USD"
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "description": "First rate date to include, YYYY-MM-DD.",
            "schema": {
              "type": "string",
              "format": "date"
            },
            "example": "2026-09-01"
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "description": "Last rate date to include, YYYY-MM-DD.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum rows to return (default 400, maximum 10000).",
            "schema": {
              "type": "integer"
            },
            "example": 5
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "count": 5,
                  "data": [
                    {
                      "rate_date": "2026-09-10",
                      "currency_code": "USD",
                      "currency_name": "US dollar",
                      "rate_type": "cbn_official",
                      "buying_rate": 1327.2154,
                      "central_rate": 1327.7154,
                      "selling_rate": 1328.2154,
                      "market_regime": "nfem_efems",
                      "previous_rate_date": "2026-09-09",
                      "previous_central_rate": 1328.7129,
                      "change_1d": -0.9975,
                      "change_1d_pct": -0.0751,
                      "change_1w_pct": 0.115,
                      "change_1m_pct": -2.74,
                      "change_ytd_pct": -7.49,
                      "change_yoy_pct": -11.8,
                      "volatility_30d_pct": 0.31,
                      "quality_flags": null,
                      "has_quality_flag": false,
                      "publication_date": "2026-09-10",
                      "publication_date_basis": "official_rate_date"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/exchange-rate/monthly": {
      "get": {
        "tags": [
          "Exchange rate"
        ],
        "operationId": "exchange_rate__monthly",
        "summary": "Monthly open, close, high, low",
        "description": "Monthly figures computed from the daily official series: open, close, high, low and average, observations against business days, and the change of the close month on month and year on year.\n\nReference: https://dataminal.com/nigeria/exchange-rate?tab=api",
        "parameters": [
          {
            "name": "currency",
            "in": "query",
            "required": false,
            "description": "Currency code (USD by default): USD, GBP, EUR, JPY, CHF, CNY, SAR, DKK, ZAR, AED, XDR, CFA, WAUA, or all.",
            "schema": {
              "type": "string"
            },
            "example": "USD"
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "description": "First month to include, YYYY-MM.",
            "schema": {
              "type": "string"
            },
            "example": "2026-01"
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "description": "Last month to include, YYYY-MM.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum rows to return (default 120, maximum 5000).",
            "schema": {
              "type": "integer"
            },
            "example": 3
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "count": 3,
                  "data": [
                    {
                      "month": "2026-08",
                      "currency_code": "USD",
                      "open_rate": 1364.33,
                      "close_rate": 1332.44,
                      "high_rate": 1365.19,
                      "low_rate": 1332.44,
                      "average_rate": 1347.2,
                      "observations": 20,
                      "excluded_suspect_observations": 0,
                      "expected_business_days": 21,
                      "month_complete": true,
                      "change_mom_pct": -2.58,
                      "change_yoy_pct": -13.1,
                      "market_regime": "nfem_efems"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/exchange-rate/currencies": {
      "get": {
        "tags": [
          "Exchange rate"
        ],
        "operationId": "exchange_rate__currencies",
        "summary": "Quoted currencies",
        "description": "One row per currency the CBN has quoted: its code and name, the first and last rate date, the observations and the newest central rate.\n\nReference: https://dataminal.com/nigeria/exchange-rate?tab=api",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "count": 13,
                  "data": [
                    {
                      "currency_code": "USD",
                      "currency_name": "US dollar",
                      "iso_4217": "USD",
                      "first_rate_date": "2001-12-10",
                      "last_rate_date": "2026-09-10",
                      "observations": 6055,
                      "latest_central_rate": 1327.7154,
                      "flagged_rows": 21
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/exchange-rate/regimes": {
      "get": {
        "tags": [
          "Exchange rate"
        ],
        "operationId": "exchange_rate__regimes",
        "summary": "Regimes",
        "description": "The eight regimes the official rate has been set under, in date order, with what the dollar did over each.\n\nReference: https://dataminal.com/nigeria/exchange-rate?tab=api",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "count": 8,
                  "data": [
                    {
                      "regime_key": "unified_nafem",
                      "regime_name": "Unified market, willing buyer willing seller (I&E window, later NAFEM)",
                      "start_date": "2023-06-14",
                      "end_date": "2024-12-01",
                      "is_current": false,
                      "usd_first_central_rate": 632.27,
                      "usd_last_central_rate": 1663.4,
                      "usd_change_over_regime_pct": 163.1
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/exchange-rate/nfem": {
      "get": {
        "tags": [
          "Exchange rate"
        ],
        "operationId": "exchange_rate__nfem",
        "summary": "NFEM series",
        "description": "The Nigerian Foreign Exchange Market series for the US dollar, newest first: close, high, low, weighted and simple average, deals and turnover, from 2 December 2024.\n\nReference: https://dataminal.com/nigeria/exchange-rate?tab=api",
        "parameters": [
          {
            "name": "from",
            "in": "query",
            "required": false,
            "description": "First date to include, YYYY-MM-DD.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "description": "Last date to include, YYYY-MM-DD.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum rows to return (default 400, maximum 10000).",
            "schema": {
              "type": "integer"
            },
            "example": 3
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "count": 3,
                  "data": [
                    {
                      "rate_date": "2026-09-10",
                      "closing_rate": 1329.5,
                      "high_rate": 1335,
                      "low_rate": 1322,
                      "weighted_average_rate": 1328.4,
                      "simple_average_rate": 1328.7,
                      "deals_count": 251,
                      "interbank_deals_count": 62,
                      "turnover_usd": 612000000,
                      "change_1d_pct": -0.34
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/exchange-rate/releases": {
      "get": {
        "tags": [
          "Exchange rate"
        ],
        "operationId": "exchange_rate__releases",
        "summary": "Sync runs",
        "description": "The dataset's release log, newest run first: what the CBN served, whether it changed, what validation found and how many partitions were written.\n\nReference: https://dataminal.com/nigeria/exchange-rate?tab=api",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum rows to return (default 30, maximum 500).",
            "schema": {
              "type": "integer"
            },
            "example": 2
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "count": 2,
                  "data": [
                    {
                      "run_id": "5e1f...",
                      "retrieval_date": "2026-09-10",
                      "trigger_type": "scheduled",
                      "status": "updated",
                      "official_record_count": 62074,
                      "official_last_date": "2026-09-10",
                      "official_changed": true,
                      "latest_usd_rate_date": "2026-09-10",
                      "latest_usd_central_rate": 1327.7154,
                      "source_staleness_business_days": 0,
                      "daily_rows": 61946,
                      "partitions_written": 3
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/trade/latest": {
      "get": {
        "tags": [
          "Foreign trade"
        ],
        "operationId": "foreign_trade__latest",
        "summary": "Latest quarter",
        "description": "The newest quarter's headline figures in the newest publication, the newest full year beside it, and the edition they came from.\n\nReference: https://dataminal.com/nigeria/trade?tab=api",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "count": 1,
                  "data": [
                    {
                      "period_type": "quarter",
                      "period": "2026-Q2",
                      "year": 2026,
                      "quarter": 2,
                      "period_start": "2026-04-01",
                      "period_end": "2026-06-30",
                      "is_reference_period": true,
                      "imports_ngn": 14424012321730.7,
                      "exports_ngn": 27020876899302.1,
                      "balance_ngn": 12596864577571.4,
                      "total_trade_ngn": 41444889221032.8,
                      "crude_oil_exports_ngn": 12914330272753.9,
                      "domestic_exports_ngn": 26913198343536.3,
                      "re_exports_ngn": 107678555765.9,
                      "reconciles_total": true,
                      "reconciles_balance": true,
                      "source_unit": "naira_million",
                      "source_release": "nbs-trade-2026-q2",
                      "publication_date": "2026-09-10",
                      "publication_date_basis": "retrieval_date"
                    }
                  ],
                  "annual": {
                    "period": "2025",
                    "imports_ngn": 66346929181647.5,
                    "exports_ngn": 85126202840542.3
                  },
                  "release": {
                    "release_id": "nbs-trade-2026-q2",
                    "period": "2026-Q2",
                    "publication_date": "2026-09-10"
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/trade/history": {
      "get": {
        "tags": [
          "Foreign trade"
        ],
        "operationId": "foreign_trade__history",
        "summary": "History",
        "description": "The headline series by period type, newest first. By default the newest publication of each period; vintage=all returns every edition's figure for it.\n\nReference: https://dataminal.com/nigeria/trade?tab=api",
        "parameters": [
          {
            "name": "period_type",
            "in": "query",
            "required": false,
            "description": "quarter (default), month, year or ytd.",
            "schema": {
              "type": "string"
            },
            "example": "year"
          },
          {
            "name": "year",
            "in": "query",
            "required": false,
            "description": "Restrict to one calendar year.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "description": "First year to include.",
            "schema": {
              "type": "integer"
            },
            "example": 2020
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "description": "Last year to include.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "vintage",
            "in": "query",
            "required": false,
            "description": "latest (default) or all.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum rows to return (default 200, maximum 5000).",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "count": 6,
                  "period_type": "year",
                  "data": [
                    {
                      "period_type": "quarter",
                      "period": "2026-Q2",
                      "year": 2026,
                      "quarter": 2,
                      "period_start": "2026-04-01",
                      "period_end": "2026-06-30",
                      "is_reference_period": true,
                      "imports_ngn": 14424012321730.7,
                      "exports_ngn": 27020876899302.1,
                      "balance_ngn": 12596864577571.4,
                      "total_trade_ngn": 41444889221032.8,
                      "crude_oil_exports_ngn": 12914330272753.9,
                      "domestic_exports_ngn": 26913198343536.3,
                      "re_exports_ngn": 107678555765.9,
                      "reconciles_total": true,
                      "reconciles_balance": true,
                      "source_unit": "naira_million",
                      "source_release": "nbs-trade-2026-q2",
                      "publication_date": "2026-09-10",
                      "publication_date_basis": "retrieval_date"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/trade/products": {
      "get": {
        "tags": [
          "Foreign trade"
        ],
        "operationId": "foreign_trade__products",
        "summary": "Top products",
        "description": "The ranked products of a quarter by flow and scope, newest publication.\n\nReference: https://dataminal.com/nigeria/trade?tab=api",
        "parameters": [
          {
            "name": "period",
            "in": "query",
            "required": false,
            "description": "A quarter such as 2026-Q2. Defaults to the newest edition's quarter.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "flow",
            "in": "query",
            "required": false,
            "description": "import or export.",
            "schema": {
              "type": "string"
            },
            "example": "export"
          },
          {
            "name": "scope",
            "in": "query",
            "required": false,
            "description": "world, africa, west_africa, ecowas or sector.",
            "schema": {
              "type": "string"
            },
            "example": "world"
          },
          {
            "name": "sector",
            "in": "query",
            "required": false,
            "description": "agricultural, solid_minerals, manufactured or raw_material (with scope=sector).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum rows to return (default 200, maximum 5000).",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "count": 15,
                  "period": "2026-Q2",
                  "data": [
                    {
                      "period": "2026-Q2",
                      "flow": "export",
                      "scope": "world",
                      "rank": 1,
                      "hs_code": "2709000000",
                      "hs_chapter": "27",
                      "product_description": "Petroleum oils and oils obtained from bituminous minerals, crude.",
                      "value_ngn": 12914330272753.87,
                      "share_pct": 47.79,
                      "share_basis": "% share of World Export",
                      "source_unit": "naira",
                      "source_release": "nbs-trade-2026-q2"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/trade/partners": {
      "get": {
        "tags": [
          "Foreign trade"
        ],
        "operationId": "foreign_trade__partners",
        "summary": "Trading partners",
        "description": "The top ten partners of a quarter by flow and scope (world by default), or with scope=region_series the region and selected-country series by period.\n\nReference: https://dataminal.com/nigeria/trade?tab=api",
        "parameters": [
          {
            "name": "period",
            "in": "query",
            "required": false,
            "description": "A quarter such as 2026-Q2. Defaults to the newest edition's quarter.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "flow",
            "in": "query",
            "required": false,
            "description": "import or export.",
            "schema": {
              "type": "string"
            },
            "example": "export"
          },
          {
            "name": "scope",
            "in": "query",
            "required": false,
            "description": "world (default), africa, west_africa or region_series.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "kind",
            "in": "query",
            "required": false,
            "description": "country, region, bloc, residual or world.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "period_type",
            "in": "query",
            "required": false,
            "description": "For the series: year, quarter, month or ytd.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "partner",
            "in": "query",
            "required": false,
            "description": "One partner by name.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "description": "First year to include (series).",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "description": "Last year to include (series).",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum rows to return (default 200, maximum 10000).",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "count": 10,
                  "period": "2026-Q2",
                  "scope": "world",
                  "data": [
                    {
                      "period": "2026-Q2",
                      "flow": "export",
                      "scope": "world",
                      "partner_kind": "country",
                      "partner": "India",
                      "partner_code": "IN",
                      "rank": 1,
                      "value_ngn": 3289581030371.25,
                      "crude_oil_value_ngn": 1046383232387.02,
                      "non_crude_oil_value_ngn": 2243197797984.23,
                      "share_pct": 12.17,
                      "source_release": "nbs-trade-2026-q2"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/trade/ports": {
      "get": {
        "tags": [
          "Foreign trade"
        ],
        "operationId": "foreign_trade__ports",
        "summary": "Ports",
        "description": "The top ten ports of a quarter by flow.\n\nReference: https://dataminal.com/nigeria/trade?tab=api",
        "parameters": [
          {
            "name": "period",
            "in": "query",
            "required": false,
            "description": "A quarter such as 2026-Q2. Defaults to the newest edition's quarter.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "flow",
            "in": "query",
            "required": false,
            "description": "import or export.",
            "schema": {
              "type": "string"
            },
            "example": "import"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum rows to return (default 100, maximum 2000).",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "count": 10,
                  "period": "2026-Q2",
                  "data": [
                    {
                      "period": "2026-Q2",
                      "flow": "import",
                      "rank": 1,
                      "port_code": "01AP",
                      "port_name": "APAPA PORT",
                      "value_ngn": 6455806177420.46,
                      "share_pct": 44.76
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/trade/transport": {
      "get": {
        "tags": [
          "Foreign trade"
        ],
        "operationId": "foreign_trade__transport",
        "summary": "Mode of transport",
        "description": "Trade by mode of transport for a quarter and its months, by flow. Without a period, the newest edition's rows.\n\nReference: https://dataminal.com/nigeria/trade?tab=api",
        "parameters": [
          {
            "name": "period",
            "in": "query",
            "required": false,
            "description": "A quarter such as 2026-Q2. Defaults to the newest edition's quarter.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "flow",
            "in": "query",
            "required": false,
            "description": "domestic_export, re_export, export or import.",
            "schema": {
              "type": "string"
            },
            "example": "export"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum rows to return (default 200, maximum 5000).",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "count": 20,
                  "period": null,
                  "data": [
                    {
                      "period": "2026-Q2",
                      "period_type": "quarter",
                      "flow": "export",
                      "mode": "maritime",
                      "value_ngn": 26747093693132.44,
                      "share_pct": 98.99
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/trade/classifications": {
      "get": {
        "tags": [
          "Foreign trade"
        ],
        "operationId": "foreign_trade__classifications",
        "summary": "Classifications",
        "description": "Trade by classification system, newest publication of each period: the NBS sector grouping by default, or HS section, SITC section or broad economic category.\n\nReference: https://dataminal.com/nigeria/trade?tab=api",
        "parameters": [
          {
            "name": "system",
            "in": "query",
            "required": false,
            "description": "sector (default), hs_section, sitc_section or bec.",
            "schema": {
              "type": "string"
            },
            "example": "sector"
          },
          {
            "name": "flow",
            "in": "query",
            "required": false,
            "description": "import, export or total_trade.",
            "schema": {
              "type": "string"
            },
            "example": "export"
          },
          {
            "name": "period",
            "in": "query",
            "required": false,
            "description": "One period, e.g. 2025 or 2026-Q1.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "period_type",
            "in": "query",
            "required": false,
            "description": "year, quarter, month or ytd.",
            "schema": {
              "type": "string"
            },
            "example": "year"
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "description": "First year to include.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "description": "Last year to include.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum rows to return (default 500, maximum 10000).",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "count": 42,
                  "system": "sector",
                  "period": null,
                  "data": [
                    {
                      "period": "2025",
                      "period_type": "year",
                      "flow": "export",
                      "classification_system": "sector",
                      "category_code": "crude_oil",
                      "category": "Crude oil",
                      "value_ngn": 47429653830000
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/trade/releases": {
      "get": {
        "tags": [
          "Foreign trade"
        ],
        "operationId": "foreign_trade__releases",
        "summary": "Releases",
        "description": "One row per edition ingested, newest first.\n\nReference: https://dataminal.com/nigeria/trade?tab=api",
        "parameters": [
          {
            "name": "year",
            "in": "query",
            "required": false,
            "description": "Restrict to one reference year.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum rows to return (default 50, maximum 200).",
            "schema": {
              "type": "integer"
            },
            "example": 2
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "count": 2,
                  "data": [
                    {
                      "release_id": "nbs-trade-2026-q2",
                      "period": "2026-Q2",
                      "source_surface": "catalog",
                      "layout_generation": "g4-2024",
                      "tables_parsed": "table1,table8,products,...",
                      "summary_first_period": "2020",
                      "summary_last_period": "2026-YTD-06",
                      "reconciles": true,
                      "publication_date": "2026-09-10",
                      "publication_date_basis": "retrieval_date"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/labour/latest": {
      "get": {
        "tags": [
          "Labour market"
        ],
        "operationId": "labour_market__latest",
        "summary": "Latest period",
        "description": "Every national headline indicator for the newest period NBS has published, on one methodology.\n\nReference: https://dataminal.com/nigeria/labour-market?tab=api",
        "parameters": [
          {
            "name": "methodology",
            "in": "query",
            "required": false,
            "description": "nlfs_icls19 (the current survey) or lfs_icls13 (the survey it replaced). Defaults to the methodology the requested periods belong to; a range that crosses the 2023 break returns the current series and a methodology_break block explaining what was withheld.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "frequency",
            "in": "query",
            "required": false,
            "description": "quarterly (default) or annual.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "period": "2024Q2",
                  "methodology": "nlfs_icls19",
                  "count": 19,
                  "data": [
                    {
                      "period": "2024Q2",
                      "period_type": "quarter",
                      "geography_type": "national",
                      "geography_code": "nigeria",
                      "geography_name": "Nigeria",
                      "sex": null,
                      "age_group": null,
                      "residence": null,
                      "education": null,
                      "disability": null,
                      "metric": "unemployment_rate",
                      "metric_label": "Unemployment rate",
                      "value_type": "rate",
                      "unit": "per cent",
                      "denominator": "labour force",
                      "methodology_version": "nlfs_icls19",
                      "value": 4.3,
                      "source_release": "nbs-nlfs-2024q2",
                      "source_page": 25,
                      "source_table": "Annex A: labour market indicators by sex and residence"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/labour/history": {
      "get": {
        "tags": [
          "Labour market"
        ],
        "operationId": "labour_market__history",
        "summary": "History",
        "description": "One indicator over time, pinned to one methodology and one cut. A dimension you leave out returns the figure that is NOT cut by it, which is the national both-sexes figure, rather than every value of it.\n\nReference: https://dataminal.com/nigeria/labour-market?tab=api",
        "parameters": [
          {
            "name": "metric",
            "in": "query",
            "required": false,
            "description": "Indicator key. Defaults to unemployment_rate. See /nigeria/labour/metrics.",
            "schema": {
              "type": "string"
            },
            "example": "unemployment_rate"
          },
          {
            "name": "methodology",
            "in": "query",
            "required": false,
            "description": "nlfs_icls19 (the current survey) or lfs_icls13 (the survey it replaced). Defaults to the methodology the requested periods belong to; a range that crosses the 2023 break returns the current series and a methodology_break block explaining what was withheld.",
            "schema": {
              "type": "string"
            },
            "example": "nlfs_icls19"
          },
          {
            "name": "start_period",
            "in": "query",
            "required": false,
            "description": "YYYY or YYYYQn.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "end_period",
            "in": "query",
            "required": false,
            "description": "YYYY or YYYYQn.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "frequency",
            "in": "query",
            "required": false,
            "description": "quarterly or annual.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sex",
            "in": "query",
            "required": false,
            "description": "male or female. Omit for the both-sexes figure.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "age_group",
            "in": "query",
            "required": false,
            "description": "15-24, 25-34, 35-44, 45-54, 45-55, 55-64, 65+ or 15-34.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "residence",
            "in": "query",
            "required": false,
            "description": "urban or rural.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "education",
            "in": "query",
            "required": false,
            "description": "The education level key, e.g. post_secondary.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "disability",
            "in": "query",
            "required": false,
            "description": "no_disability or disabled.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum rows, up to 20000.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "count": 6,
                  "methodology": "nlfs_icls19",
                  "data": [
                    {
                      "period": "2024Q2",
                      "period_type": "quarter",
                      "geography_type": "national",
                      "geography_code": "nigeria",
                      "geography_name": "Nigeria",
                      "sex": null,
                      "age_group": null,
                      "residence": null,
                      "education": null,
                      "disability": null,
                      "metric": "unemployment_rate",
                      "metric_label": "Unemployment rate",
                      "value_type": "rate",
                      "unit": "per cent",
                      "denominator": "labour force",
                      "methodology_version": "nlfs_icls19",
                      "value": 4.3,
                      "source_release": "nbs-nlfs-2024q2",
                      "source_page": 25,
                      "source_table": "Annex A: labour market indicators by sex and residence"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/labour/breakdown": {
      "get": {
        "tags": [
          "Labour market"
        ],
        "operationId": "labour_market__breakdown",
        "summary": "Breakdown",
        "description": "One indicator across every value of one dimension, for one period. The other dimensions are held at their uncut value, so the rows sum to a population rather than overlapping.\n\nReference: https://dataminal.com/nigeria/labour-market?tab=api",
        "parameters": [
          {
            "name": "dimension",
            "in": "query",
            "required": false,
            "description": "sex, age_group, residence, education or disability.",
            "schema": {
              "type": "string"
            },
            "example": "sex"
          },
          {
            "name": "metric",
            "in": "query",
            "required": false,
            "description": "Indicator key. Defaults to unemployment_rate.",
            "schema": {
              "type": "string"
            },
            "example": "unemployment_rate"
          },
          {
            "name": "period",
            "in": "query",
            "required": false,
            "description": "YYYY or YYYYQn. Defaults to every period held.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "methodology",
            "in": "query",
            "required": false,
            "description": "nlfs_icls19 (the current survey) or lfs_icls13 (the survey it replaced). Defaults to the methodology the requested periods belong to; a range that crosses the 2023 break returns the current series and a methodology_break block explaining what was withheld.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "dimension": "sex",
                  "metric": "unemployment_rate",
                  "count": 2,
                  "data": [
                    {
                      "period": "2024Q2",
                      "period_type": "quarter",
                      "geography_type": "national",
                      "geography_code": "nigeria",
                      "geography_name": "Nigeria",
                      "sex": null,
                      "age_group": null,
                      "residence": null,
                      "education": null,
                      "disability": null,
                      "metric": "unemployment_rate",
                      "metric_label": "Unemployment rate",
                      "value_type": "rate",
                      "unit": "per cent",
                      "denominator": "labour force",
                      "methodology_version": "nlfs_icls19",
                      "value": 4.3,
                      "source_release": "nbs-nlfs-2024q2",
                      "source_page": 25,
                      "source_table": "Annex A: labour market indicators by sex and residence"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/labour/states": {
      "get": {
        "tags": [
          "Labour market"
        ],
        "operationId": "labour_market__states",
        "summary": "By state",
        "description": "One indicator across the 36 states and the FCT. State estimates are annual under the current survey; NBS publishes national figures quarterly and state figures once a year.\n\nReference: https://dataminal.com/nigeria/labour-market?tab=api",
        "parameters": [
          {
            "name": "metric",
            "in": "query",
            "required": false,
            "description": "Indicator key. Defaults to unemployment_rate.",
            "schema": {
              "type": "string"
            },
            "example": "unemployment_rate"
          },
          {
            "name": "period",
            "in": "query",
            "required": false,
            "description": "YYYY or YYYYQn. Defaults to the newest state period.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sex",
            "in": "query",
            "required": false,
            "description": "male or female, where the source publishes it.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "methodology",
            "in": "query",
            "required": false,
            "description": "nlfs_icls19 (the current survey) or lfs_icls13 (the survey it replaced). Defaults to the methodology the requested periods belong to; a range that crosses the 2023 break returns the current series and a methodology_break block explaining what was withheld.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "metric": "unemployment_rate",
                  "count": 37,
                  "data": [
                    {
                      "period": "2024Q2",
                      "period_type": "quarter",
                      "geography_type": "national",
                      "geography_code": "nigeria",
                      "geography_name": "Nigeria",
                      "sex": null,
                      "age_group": null,
                      "residence": null,
                      "education": null,
                      "disability": null,
                      "metric": "unemployment_rate",
                      "metric_label": "Unemployment rate",
                      "value_type": "rate",
                      "unit": "per cent",
                      "denominator": "labour force",
                      "methodology_version": "nlfs_icls19",
                      "value": 4.3,
                      "source_release": "nbs-nlfs-2024q2",
                      "source_page": 25,
                      "source_table": "Annex A: labour market indicators by sex and residence"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/labour/zones": {
      "get": {
        "tags": [
          "Labour market"
        ],
        "operationId": "labour_market__zones",
        "summary": "By geopolitical zone",
        "description": "One indicator averaged over the states of each zone. NBS publishes no zone estimate, so this is Dataminal's unweighted mean of its states and says so; it is not a population-weighted zone rate.\n\nReference: https://dataminal.com/nigeria/labour-market?tab=api",
        "parameters": [
          {
            "name": "metric",
            "in": "query",
            "required": false,
            "description": "Indicator key. Defaults to unemployment_rate.",
            "schema": {
              "type": "string"
            },
            "example": "unemployment_rate"
          },
          {
            "name": "period",
            "in": "query",
            "required": false,
            "description": "YYYY or YYYYQn.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "methodology",
            "in": "query",
            "required": false,
            "description": "nlfs_icls19 (the current survey) or lfs_icls13 (the survey it replaced). Defaults to the methodology the requested periods belong to; a range that crosses the 2023 break returns the current series and a methodology_break block explaining what was withheld.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "derived_by": "dataminal",
                  "formula": "unweighted mean of the states in each zone",
                  "count": 6,
                  "data": [
                    {
                      "zone": "south_east",
                      "value": 8.8,
                      "states": 5
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/labour/changes": {
      "get": {
        "tags": [
          "Labour market"
        ],
        "operationId": "labour_market__changes",
        "summary": "Change",
        "description": "Change in one indicator against an earlier quarter. Dataminal's arithmetic on NBS's published levels, computed inside one methodology only, so no change spans the 2023 break.\n\nReference: https://dataminal.com/nigeria/labour-market?tab=api",
        "parameters": [
          {
            "name": "metric",
            "in": "query",
            "required": false,
            "description": "Indicator key. Defaults to unemployment_rate.",
            "schema": {
              "type": "string"
            },
            "example": "unemployment_rate"
          },
          {
            "name": "lag",
            "in": "query",
            "required": false,
            "description": "Quarters back to compare with. Defaults to 1.",
            "schema": {
              "type": "integer"
            },
            "example": 4
          },
          {
            "name": "methodology",
            "in": "query",
            "required": false,
            "description": "nlfs_icls19 (the current survey) or lfs_icls13 (the survey it replaced). Defaults to the methodology the requested periods belong to; a range that crosses the 2023 break returns the current series and a methodology_break block explaining what was withheld.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sex",
            "in": "query",
            "required": false,
            "description": "male or female. Omit for the both-sexes figure.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "age_group",
            "in": "query",
            "required": false,
            "description": "15-24, 25-34, 35-44, 45-54, 45-55, 55-64, 65+ or 15-34.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "residence",
            "in": "query",
            "required": false,
            "description": "urban or rural.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "education",
            "in": "query",
            "required": false,
            "description": "The education level key, e.g. post_secondary.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "disability",
            "in": "query",
            "required": false,
            "description": "no_disability or disabled.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "derived_by": "dataminal",
                  "formula": "value minus the value 4 quarter(s) earlier, within one methodology",
                  "count": 2,
                  "data": [
                    {
                      "period": "2024Q2",
                      "value": 4.3,
                      "previous_period": "2023Q2",
                      "previous_value": 4.2,
                      "change": 0.1
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/labour/methodologies": {
      "get": {
        "tags": [
          "Labour market"
        ],
        "operationId": "labour_market__methodologies",
        "summary": "Methodologies",
        "description": "The 2023 break, as NBS describes it: its own item-by-item comparison of the two surveys, the periods each covers, and the statement that no bridge between them exists. Read this before comparing anything across 2023.\n\nReference: https://dataminal.com/nigeria/labour-market?tab=api",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "comparable_across": false,
                  "coverage": [
                    {
                      "methodology_version": "nlfs_icls19",
                      "first_period": "2022Q4",
                      "last_period": "2024Q2"
                    }
                  ],
                  "data": [
                    {
                      "methodology_version": "lfs_icls13",
                      "item": "Unemployed",
                      "definition": "Worked below 20 hours or did not work but searching and available in the reference week."
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/labour/metrics": {
      "get": {
        "tags": [
          "Labour market"
        ],
        "operationId": "labour_market__metrics",
        "summary": "Indicator catalogue",
        "description": "Which indicators exist, under which methodology, with the unit and the denominator each rate is a share of.\n\nReference: https://dataminal.com/nigeria/labour-market?tab=api",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "count": 34,
                  "data": [
                    {
                      "metric": "unemployment_rate",
                      "value_type": "rate",
                      "unit": "per cent",
                      "denominator": "labour force"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/labour/releases": {
      "get": {
        "tags": [
          "Labour market"
        ],
        "operationId": "labour_market__releases",
        "summary": "Releases",
        "description": "Every NBS report taken in, with its publication date, hash, page count and methodology. A report preserved but not curated says so here rather than looking like a period that published nothing.\n\nReference: https://dataminal.com/nigeria/labour-market?tab=api",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum rows, up to 2000.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "count": 19,
                  "data": [
                    {
                      "release_id": "nbs-nlfs-2024q2",
                      "payload": "report",
                      "methodology_version": "nlfs_icls19",
                      "row_count": 918
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/labour": {
      "get": {
        "tags": [
          "Labour market"
        ],
        "operationId": "labour_market__root",
        "summary": "Default view",
        "description": "The dataset's default rows: the same as one of its named routes (history or latest). Prefer the named routes, which are described in full.\n\nReference: https://dataminal.com/nigeria/labour-market?tab=api",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/telecom/latest": {
      "get": {
        "tags": [
          "Telecommunications"
        ],
        "operationId": "telecommunications__latest",
        "summary": "Latest month",
        "description": "Every national headline figure for the newest month NCC has published.\n\nReference: https://dataminal.com/nigeria/telecommunications?tab=api",
        "parameters": [
          {
            "name": "period",
            "in": "query",
            "required": false,
            "description": "YYYY-MM. Omit for the newest.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "period": "2026-07",
                  "count": 6,
                  "data": [
                    {
                      "period": "2026-07",
                      "period_type": "month",
                      "metric": "active_subscriptions",
                      "metric_label": "Active telephony subscriptions",
                      "value_type": "count",
                      "unit": "subscriptions",
                      "value": 195108814,
                      "operator_id": null,
                      "service_type": "all",
                      "is_total": false,
                      "source_table": "SUBSTELM",
                      "source_vintage": "approved-it-upload-sheet-july-2026",
                      "publication_date": "2026-09-09"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/telecom/history": {
      "get": {
        "tags": [
          "Telecommunications"
        ],
        "operationId": "telecommunications__history",
        "summary": "History",
        "description": "One metric over time. A dimension you leave out returns the figure that is NOT cut by it: omitting `operator` gives the national total, not every operator as well.\n\nReference: https://dataminal.com/nigeria/telecommunications?tab=api",
        "parameters": [
          {
            "name": "metric",
            "in": "query",
            "required": false,
            "description": "Metric key. See /nigeria/telecom/metrics for the list, units and coverage.",
            "schema": {
              "type": "string"
            },
            "example": "broadband_penetration"
          },
          {
            "name": "period",
            "in": "query",
            "required": false,
            "description": "YYYY, YYYY-MM or YYYY-Qn.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "start_period",
            "in": "query",
            "required": false,
            "description": "YYYY, YYYY-MM or YYYY-Qn.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "end_period",
            "in": "query",
            "required": false,
            "description": "YYYY, YYYY-MM or YYYY-Qn.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "frequency",
            "in": "query",
            "required": false,
            "description": "month, quarter or year.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "operator",
            "in": "query",
            "required": false,
            "description": "Operator id, e.g. mtn, airtel, globacom, t2.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "service",
            "in": "query",
            "required": false,
            "description": "gsm, fixed, voip, isp or all.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "technology",
            "in": "query",
            "required": false,
            "description": "mobile_gsm, fixed, isp, voip, wired, wireless.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "generation",
            "in": "query",
            "required": false,
            "description": "2G, 3G, 4G or 5G.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Default 600, maximum 20000.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/telecom/operators": {
      "get": {
        "tags": [
          "Telecommunications"
        ],
        "operationId": "telecommunications__operators",
        "summary": "Operators",
        "description": "Every operator's figure for one metric and period, with the share of the published total that Dataminal computes from it.\n\nReference: https://dataminal.com/nigeria/telecommunications?tab=api",
        "parameters": [
          {
            "name": "metric",
            "in": "query",
            "required": false,
            "description": "Metric key. See /nigeria/telecom/metrics for the list, units and coverage.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "period",
            "in": "query",
            "required": false,
            "description": "YYYY-MM. Omit for the newest.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "service",
            "in": "query",
            "required": false,
            "description": "gsm (default for subscriber metrics), fixed, voip.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "period": "2026-07",
                  "service": "gsm",
                  "count": 5,
                  "data": [
                    {
                      "operator_id": "mtn",
                      "operator_name": "MTN Nigeria",
                      "operator_brand": "MTN",
                      "source_operator_label": "MTN",
                      "value": 100859578,
                      "share_of_total_pct": 51.76,
                      "share_is_dataminal_derived": true
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/telecom/breakdown": {
      "get": {
        "tags": [
          "Telecommunications"
        ],
        "operationId": "telecommunications__breakdown",
        "summary": "Breakdown",
        "description": "One metric across every value of one dimension, for one period. Defaults to the newest period the cut exists for.\n\nReference: https://dataminal.com/nigeria/telecommunications?tab=api",
        "parameters": [
          {
            "name": "dimension",
            "in": "query",
            "required": false,
            "description": "operator (default), technology, generation or service.",
            "schema": {
              "type": "string"
            },
            "example": "generation"
          },
          {
            "name": "metric",
            "in": "query",
            "required": false,
            "description": "Metric key. See /nigeria/telecom/metrics for the list, units and coverage.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "period",
            "in": "query",
            "required": false,
            "description": "YYYY-MM. Omit for the newest.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/telecom/changes": {
      "get": {
        "tags": [
          "Telecommunications"
        ],
        "operationId": "telecommunications__changes",
        "summary": "Changes",
        "description": "Change in one metric against an earlier month. The lag counts MONTHS, not rows, so a month NCC did not publish stays a gap rather than shortening the window.\n\nReference: https://dataminal.com/nigeria/telecommunications?tab=api",
        "parameters": [
          {
            "name": "metric",
            "in": "query",
            "required": false,
            "description": "Metric key. See /nigeria/telecom/metrics for the list, units and coverage.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "lag",
            "in": "query",
            "required": false,
            "description": "Months back. Default 12, maximum 240.",
            "schema": {
              "type": "integer"
            },
            "example": 12
          },
          {
            "name": "operator",
            "in": "query",
            "required": false,
            "description": "Operator id.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Default 400, maximum 5000.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "lag_months": 12,
                  "count": 158,
                  "data": [
                    {
                      "period": "2026-07",
                      "value": 195108814,
                      "previous_period": "2025-07",
                      "previous_value": 169328686,
                      "change": 25780128,
                      "change_pct": 15.22
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/telecom/revisions": {
      "get": {
        "tags": [
          "Telecommunications"
        ],
        "operationId": "telecommunications__revisions",
        "summary": "Revisions",
        "description": "Figures NCC has restated since Dataminal first read them, with the value each one replaced. This endpoint exists because NCC republishes its whole history every month and the files disagree.\n\nReference: https://dataminal.com/nigeria/telecommunications?tab=api",
        "parameters": [
          {
            "name": "metric",
            "in": "query",
            "required": false,
            "description": "Metric key. See /nigeria/telecom/metrics for the list, units and coverage.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "period",
            "in": "query",
            "required": false,
            "description": "YYYY, YYYY-MM or YYYY-Qn.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "start_period",
            "in": "query",
            "required": false,
            "description": "YYYY, YYYY-MM or YYYY-Qn.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "end_period",
            "in": "query",
            "required": false,
            "description": "YYYY, YYYY-MM or YYYY-Qn.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Default 200, maximum 5000.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "count": 200,
                  "data": [
                    {
                      "period": "2024-10",
                      "metric": "active_voice_subscriptions",
                      "operator_id": "inq_digital",
                      "previous_value": 7851,
                      "value": 7846,
                      "change": -5,
                      "source_vintage": "industry-stats-main-1",
                      "publication_date": "2026-09-03"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/telecom/metrics": {
      "get": {
        "tags": [
          "Telecommunications"
        ],
        "operationId": "telecommunications__metrics",
        "summary": "Metrics",
        "description": "Which metrics exist, with their units, value types, grains and coverage.\n\nReference: https://dataminal.com/nigeria/telecommunications?tab=api",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "count": 13,
                  "data": [
                    {
                      "metric": "broadband_penetration",
                      "metric_label": "Broadband penetration",
                      "value_type": "rate",
                      "unit": "per cent",
                      "first_period": "2017-01",
                      "last_period": "2026-07",
                      "observations": 115
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/telecom/operator-registry": {
      "get": {
        "tags": [
          "Telecommunications"
        ],
        "operationId": "telecommunications__operator_registry",
        "summary": "Operator registry",
        "description": "Operator identities and their brand history. NCC applies an operator's current label to its whole back series; this is how a month published as 9mobile and now labelled T2 resolves to one operator.\n\nReference: https://dataminal.com/nigeria/telecommunications?tab=api",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "count": 17,
                  "data": [
                    {
                      "operator_id": "t2",
                      "operator_name": "T2 (formerly 9mobile)",
                      "brand_name": "9mobile",
                      "brand_first_period": null,
                      "brand_last_period": "2025-08",
                      "source_labels": "9 mobile, 9mobile, emts, etisalat, t2"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/telecom/methodologies": {
      "get": {
        "tags": [
          "Telecommunications"
        ],
        "operationId": "telecommunications__methodologies",
        "summary": "Methodologies",
        "description": "The breaks, PER METRIC. Teledensity has four population denominators, changing in 2006, March 2019 and September 2023; broadband penetration has two, changing in September 2023; active subscriptions break at the May 2024 NIN-SIM disconnection; and the GDP share breaks where NBS rebased. Metrics not listed here run clean.\n\nReference: https://dataminal.com/nigeria/telecommunications?tab=api",
        "parameters": [
          {
            "name": "metric",
            "in": "query",
            "required": false,
            "description": "Metric key. See /nigeria/telecom/metrics for the list, units and coverage.",
            "schema": {
              "type": "string"
            },
            "example": "teledensity"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "count": 7,
                  "data": [
                    {
                      "break_id": "teledensity_population_190m",
                      "metric": "teledensity",
                      "break_period": "2019-03",
                      "break_kind": "denominator",
                      "severity": "blocking",
                      "title": "Teledensity population base moved to 190.9 million"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/telecom/releases": {
      "get": {
        "tags": [
          "Telecommunications"
        ],
        "operationId": "telecommunications__releases",
        "summary": "Releases",
        "description": "Every NCC file taken in, with its publication date, hash, period coverage and whether it parsed.\n\nReference: https://dataminal.com/nigeria/telecommunications?tab=api",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Default 100, maximum 2000.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "count": 41,
                  "data": [
                    {
                      "vintage_id": "approved-it-upload-sheet-july-2026",
                      "filename": "Approved-IT-Upload-sheet-July-2026.csv",
                      "publication_date": "2026-09-09",
                      "is_current": true,
                      "first_period": "2002",
                      "last_period": "2026-07",
                      "observations_written": 47
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/telecom": {
      "get": {
        "tags": [
          "Telecommunications"
        ],
        "operationId": "telecommunications__root",
        "summary": "Default view",
        "description": "The dataset's default rows: the same as one of its named routes (history or latest). Prefer the named routes, which are described in full.\n\nReference: https://dataminal.com/nigeria/telecommunications?tab=api",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/capital/latest": {
      "get": {
        "tags": [
          "Capital importation"
        ],
        "operationId": "capital_importation__latest",
        "summary": "Latest quarter",
        "description": "The newest quarter NBS has published: the headline and the three investment types, each with its change on the quarter before and on the same quarter a year earlier.\n\nReference: https://dataminal.com/nigeria/capital-importation?tab=api",
        "parameters": [
          {
            "name": "period",
            "in": "query",
            "required": false,
            "description": "YYYY-Qn. Omit for the newest.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "period": "2026-Q1",
                  "compared_with": {
                    "previous_quarter": "2025-Q4",
                    "year_earlier": "2025-Q1"
                  },
                  "count": 4,
                  "data": [
                    {
                      "period": "2026-Q1",
                      "period_type": "quarter",
                      "dimension": "total",
                      "investment_type": null,
                      "investment_subtype": null,
                      "category_id": null,
                      "category_name": null,
                      "is_total": true,
                      "metric": "capital_importation",
                      "value": 10371.90029435,
                      "unit": "usd_million",
                      "currency": "USD",
                      "source_unit": "usd_million",
                      "source_release": "2026Q1-catalog-1417",
                      "publication_date": "2026-06-03",
                      "source_sheet": "Table 1 Cap Impt by Type",
                      "source_row_label": "TOTAL",
                      "quality_flag": null
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/capital/history": {
      "get": {
        "tags": [
          "Capital importation"
        ],
        "operationId": "capital_importation__history",
        "summary": "History",
        "description": "One series over time. The default is the headline; `dimension` with `category` narrows it to one sector, country, state or bank.\n\nReference: https://dataminal.com/nigeria/capital-importation?tab=api",
        "parameters": [
          {
            "name": "dimension",
            "in": "query",
            "required": false,
            "description": "total (default), investment_type, sector, country, destination or bank.",
            "schema": {
              "type": "string"
            },
            "example": "investment_type"
          },
          {
            "name": "frequency",
            "in": "query",
            "required": false,
            "description": "quarter (default), year or month. Always pinned: the workbooks carry all three side by side and a year is the sum of its quarters.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "period",
            "in": "query",
            "required": false,
            "description": "One period: YYYY-Qn, YYYY or YYYY-MM.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "description": "Earliest period, inclusive.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "description": "Latest period, inclusive.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "category",
            "in": "query",
            "required": false,
            "description": "Category id, e.g. banking, united_kingdom, lagos, access.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "type",
            "in": "query",
            "required": false,
            "description": "fdi, portfolio or other_investment.",
            "schema": {
              "type": "string"
            },
            "example": "portfolio"
          },
          {
            "name": "subtype",
            "in": "query",
            "required": false,
            "description": "equity, bonds, loans, money_market_instruments and so on.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Default 400, maximum 20000.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/capital/types": {
      "get": {
        "tags": [
          "Capital importation"
        ],
        "operationId": "capital_importation__types",
        "summary": "By investment type",
        "description": "FDI, portfolio and other investment for one quarter, with each one's share of the headline. Subtypes are excluded unless asked for, because the types and their subtypes are in one table and summing both double-counts.\n\nReference: https://dataminal.com/nigeria/capital-importation?tab=api",
        "parameters": [
          {
            "name": "period",
            "in": "query",
            "required": false,
            "description": "YYYY-Qn. Omit for the newest.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "frequency",
            "in": "query",
            "required": false,
            "description": "quarter (default), year or month. Always pinned: the workbooks carry all three side by side and a year is the sum of its quarters.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/capital/sectors": {
      "get": {
        "tags": [
          "Capital importation"
        ],
        "operationId": "capital_importation__sectors",
        "summary": "By sector",
        "description": "Every sector NBS lists for a quarter, largest first. Portfolio equity is filed under `shares`, which is why it is usually the largest line.\n\nReference: https://dataminal.com/nigeria/capital-importation?tab=api",
        "parameters": [
          {
            "name": "period",
            "in": "query",
            "required": false,
            "description": "YYYY-Qn. Omit for the newest.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Default 300, maximum 2000.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/capital/countries": {
      "get": {
        "tags": [
          "Capital importation"
        ],
        "operationId": "capital_importation__countries",
        "summary": "By country of origin",
        "description": "Where NBS records the money as coming from, which is where the transaction originated rather than where the owner is.\n\nReference: https://dataminal.com/nigeria/capital-importation?tab=api",
        "parameters": [
          {
            "name": "period",
            "in": "query",
            "required": false,
            "description": "YYYY-Qn. Omit for the newest.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Default 300, maximum 2000.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/capital/states": {
      "get": {
        "tags": [
          "Capital importation"
        ],
        "operationId": "capital_importation__states",
        "summary": "By destination state",
        "description": "The state the investment was recorded against. THIS SERIES HAS ENDED: NBS published it in every edition up to Q1 2025 and in none since, and there is no figure for 2018-Q3 or 2018-Q4 in any edition.\n\nReference: https://dataminal.com/nigeria/capital-importation?tab=api",
        "parameters": [
          {
            "name": "period",
            "in": "query",
            "required": false,
            "description": "YYYY-Qn. Omit for the newest published.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/capital/banks": {
      "get": {
        "tags": [
          "Capital importation"
        ],
        "operationId": "capital_importation__banks",
        "summary": "By receiving bank",
        "description": "The bank that reported the inflow. This is the channel, not the destination. A merged bank keeps its own category: Diamond Bank's figures are Diamond Bank's.\n\nReference: https://dataminal.com/nigeria/capital-importation?tab=api",
        "parameters": [
          {
            "name": "period",
            "in": "query",
            "required": false,
            "description": "YYYY-Qn. Omit for the newest.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/capital/breakdown": {
      "get": {
        "tags": [
          "Capital importation"
        ],
        "operationId": "capital_importation__breakdown",
        "summary": "Breakdown",
        "description": "Any cut of any period, for callers that would rather pass the dimension than choose an endpoint.\n\nReference: https://dataminal.com/nigeria/capital-importation?tab=api",
        "parameters": [
          {
            "name": "dimension",
            "in": "query",
            "required": false,
            "description": "total (default), investment_type, sector, country, destination or bank.",
            "schema": {
              "type": "string"
            },
            "example": "sector"
          },
          {
            "name": "frequency",
            "in": "query",
            "required": false,
            "description": "quarter (default), year or month. Always pinned: the workbooks carry all three side by side and a year is the sum of its quarters.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "period",
            "in": "query",
            "required": false,
            "description": "YYYY-Qn. Omit for the newest.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/capital/changes": {
      "get": {
        "tags": [
          "Capital importation"
        ],
        "operationId": "capital_importation__changes",
        "summary": "Changes",
        "description": "Change in one series against an earlier period. The lag is counted in periods of the same grain, so a gap in the series stays a gap rather than being differenced across.\n\nReference: https://dataminal.com/nigeria/capital-importation?tab=api",
        "parameters": [
          {
            "name": "dimension",
            "in": "query",
            "required": false,
            "description": "total (default), investment_type, sector, country, destination or bank.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "frequency",
            "in": "query",
            "required": false,
            "description": "quarter (default), year or month. Always pinned: the workbooks carry all three side by side and a year is the sum of its quarters.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Lag in periods. Default 1, maximum 40.",
            "schema": {
              "type": "integer"
            },
            "example": 4
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/capital/revisions": {
      "get": {
        "tags": [
          "Capital importation"
        ],
        "operationId": "capital_importation__revisions",
        "summary": "Revisions",
        "description": "Figures NBS has restated. Each row carries the value it replaced. Seven of the 51 quarters have been published with more than one headline total, and 1,078 figures across the five cuts have been revised.\n\nReference: https://dataminal.com/nigeria/capital-importation?tab=api",
        "parameters": [
          {
            "name": "period",
            "in": "query",
            "required": false,
            "description": "",
            "schema": {
              "type": "string"
            },
            "example": "2018-Q4"
          },
          {
            "name": "dimension",
            "in": "query",
            "required": false,
            "description": "total (default), investment_type, sector, country, destination or bank.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Default 200, maximum 5000.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/capital/vintages": {
      "get": {
        "tags": [
          "Capital importation"
        ],
        "operationId": "capital_importation__vintages",
        "summary": "Vintages",
        "description": "Every edition's statement of one figure, oldest first. The endpoint that answers what a quarter was when it was first published and what it is now.\n\nReference: https://dataminal.com/nigeria/capital-importation?tab=api",
        "parameters": [
          {
            "name": "period",
            "in": "query",
            "required": false,
            "description": "Required. YYYY-Qn, YYYY or YYYY-MM.",
            "schema": {
              "type": "string"
            },
            "example": "2019-Q1"
          },
          {
            "name": "dimension",
            "in": "query",
            "required": false,
            "description": "total (default), investment_type, sector, country, destination or bank.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/capital/metrics": {
      "get": {
        "tags": [
          "Capital importation"
        ],
        "operationId": "capital_importation__metrics",
        "summary": "Coverage",
        "description": "What is published, at which grain, and how far each cut reaches. Coverage is not uniform: the headline runs to the newest quarter and the state series stops at 2025-Q1.\n\nReference: https://dataminal.com/nigeria/capital-importation?tab=api",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/capital/taxonomy": {
      "get": {
        "tags": [
          "Capital importation"
        ],
        "operationId": "capital_importation__taxonomy",
        "summary": "Taxonomy",
        "description": "Every label NBS has printed and what it resolves to. Several labels can resolve to one category; a merger does not.\n\nReference: https://dataminal.com/nigeria/capital-importation?tab=api",
        "parameters": [
          {
            "name": "dimension",
            "in": "query",
            "required": false,
            "description": "total (default), investment_type, sector, country, destination or bank.",
            "schema": {
              "type": "string"
            },
            "example": "bank"
          },
          {
            "name": "changed",
            "in": "query",
            "required": false,
            "description": "true returns only the labels whose change is material.",
            "schema": {
              "type": "boolean"
            },
            "example": "true"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/capital/methodologies": {
      "get": {
        "tags": [
          "Capital importation"
        ],
        "operationId": "capital_importation__methodologies",
        "summary": "Methodology notes",
        "description": "Coverage and comparability, per cut. `blocking` means the two sides are not the same measure.\n\nReference: https://dataminal.com/nigeria/capital-importation?tab=api",
        "parameters": [
          {
            "name": "dimension",
            "in": "query",
            "required": false,
            "description": "total (default), investment_type, sector, country, destination or bank.",
            "schema": {
              "type": "string"
            },
            "example": "destination"
          },
          {
            "name": "severity",
            "in": "query",
            "required": false,
            "description": "blocking, warning or reference.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/capital/releases": {
      "get": {
        "tags": [
          "Capital importation"
        ],
        "operationId": "capital_importation__releases",
        "summary": "Editions",
        "description": "The NBS editions this dataset has read, newest first, with what each one contributed and what happened to the ones that could not be read.\n\nReference: https://dataminal.com/nigeria/capital-importation?tab=api",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Default 60, maximum 500.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/capital": {
      "get": {
        "tags": [
          "Capital importation"
        ],
        "operationId": "capital_importation__root",
        "summary": "Default view",
        "description": "The dataset's default rows: the same as one of its named routes (history or latest). Prefer the named routes, which are described in full.\n\nReference: https://dataminal.com/nigeria/capital-importation?tab=api",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/balance-of-payments/latest": {
      "get": {
        "tags": [
          "Balance of payments"
        ],
        "operationId": "balance_of_payments__latest",
        "summary": "Latest quarter",
        "description": "The newest quarter's headline figures: every account's credits, debits and balances, the financial account by category, net errors and omissions, the derived overall balance and the memorandum items.\n\nReference: https://dataminal.com/nigeria/balance-of-payments?tab=api",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/balance-of-payments/series": {
      "get": {
        "tags": [
          "Balance of payments"
        ],
        "operationId": "balance_of_payments__series",
        "summary": "Series",
        "description": "Headline series over time, one row per indicator, measure and quarter, oldest first. Each figure is the newest bulletin's statement; vintage=all returns every edition's statement of it.\n\nReference: https://dataminal.com/nigeria/balance-of-payments?tab=api",
        "parameters": [
          {
            "name": "indicator",
            "in": "query",
            "required": false,
            "description": "Required. Comma-separated indicator codes, e.g. current_account_balance,goods_balance. /latest lists every code.",
            "schema": {
              "type": "string"
            },
            "example": "current_account_balance,goods_balance"
          },
          {
            "name": "measure",
            "in": "query",
            "required": false,
            "description": "credit, debit, balance, net_acquisition_of_financial_assets, net_incurrence_of_liabilities or value.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "description": "Earliest quarter, YYYY-Qn, inclusive.",
            "schema": {
              "type": "string"
            },
            "example": "2020-Q1"
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "description": "Latest quarter, YYYY-Qn, inclusive.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "vintage",
            "in": "query",
            "required": false,
            "description": "current (default, the newest bulletin's statement) or all (every edition's statement).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "include_flagged",
            "in": "query",
            "required": false,
            "description": "true brings back figures with a suspect quality flag (an accounting identity that failed, a cell that was not a number). Default false.",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Default 2000, maximum 10000.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/balance-of-payments/lines": {
      "get": {
        "tags": [
          "Balance of payments"
        ],
        "operationId": "balance_of_payments__lines",
        "summary": "Every printed line",
        "description": "Every line of the CBN's table, including the detail lines the headline series leave out, newest quarter first and in the CBN's line order.\n\nReference: https://dataminal.com/nigeria/balance-of-payments?tab=api",
        "parameters": [
          {
            "name": "section",
            "in": "query",
            "required": false,
            "description": "current_account, capital_account, financial_account, net_errors_and_omissions or memo.",
            "schema": {
              "type": "string"
            },
            "example": "current_account"
          },
          {
            "name": "code",
            "in": "query",
            "required": false,
            "description": "A BPM6 line code and the lines under it, e.g. 1.A.b for services.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "period",
            "in": "query",
            "required": false,
            "description": "One quarter, YYYY-Qn.",
            "schema": {
              "type": "string"
            },
            "example": "2026-Q1"
          },
          {
            "name": "measure",
            "in": "query",
            "required": false,
            "description": "credit, debit, balance, net_acquisition_of_financial_assets, net_incurrence_of_liabilities or value.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "description": "Earliest quarter, YYYY-Qn, inclusive.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "description": "Latest quarter, YYYY-Qn, inclusive.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "vintage",
            "in": "query",
            "required": false,
            "description": "current (default, the newest bulletin's statement) or all (every edition's statement).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "include_flagged",
            "in": "query",
            "required": false,
            "description": "true brings back figures with a suspect quality flag (an accounting identity that failed, a cell that was not a number). Default false.",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Default 1000, maximum 10000.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/balance-of-payments/revisions": {
      "get": {
        "tags": [
          "Balance of payments"
        ],
        "operationId": "balance_of_payments__revisions",
        "summary": "Revisions",
        "description": "Figures a later bulletin changed, newest bulletin first: the value before (previous_value), the value after, the difference (revision_amount) and the edition that made the change.\n\nReference: https://dataminal.com/nigeria/balance-of-payments?tab=api",
        "parameters": [
          {
            "name": "indicator",
            "in": "query",
            "required": false,
            "description": "One indicator code.",
            "schema": {
              "type": "string"
            },
            "example": "current_account_balance"
          },
          {
            "name": "release",
            "in": "query",
            "required": false,
            "description": "One edition, e.g. qsb-2026-q1.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "measure",
            "in": "query",
            "required": false,
            "description": "credit, debit, balance, net_acquisition_of_financial_assets, net_incurrence_of_liabilities or value.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "description": "Earliest quarter, YYYY-Qn, inclusive.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "description": "Latest quarter, YYYY-Qn, inclusive.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Default 500, maximum 5000.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/balance-of-payments/checks": {
      "get": {
        "tags": [
          "Balance of payments"
        ],
        "operationId": "balance_of_payments__checks",
        "summary": "Accounting checks",
        "description": "The identities each edition was checked against, per quarter: each balance equals credits less debits, the accounts add up, and the net position equals assets less liabilities. Tolerance 0.05.\n\nReference: https://dataminal.com/nigeria/balance-of-payments?tab=api",
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "required": false,
            "description": "pass, fail or not_applicable.",
            "schema": {
              "type": "string"
            },
            "example": "fail"
          },
          {
            "name": "edition",
            "in": "query",
            "required": false,
            "description": "newest (default) or all.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Default 1000, maximum 20000.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/balance-of-payments/releases": {
      "get": {
        "tags": [
          "Balance of payments"
        ],
        "operationId": "balance_of_payments__releases",
        "summary": "Bulletins read",
        "description": "Every Quarterly Statistical Bulletin edition taken in, newest first: its publication date, the quarters its tables cover, how many figures it printed, added and revised, and the checks that failed.\n\nReference: https://dataminal.com/nigeria/balance-of-payments?tab=api",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/balance-of-payments/methodologies": {
      "get": {
        "tags": [
          "Balance of payments"
        ],
        "operationId": "balance_of_payments__methodologies",
        "summary": "Methodology notes",
        "description": "Definitions and caveats, one row per topic: the source, coverage, the accounts, signs, stocks and flows, revisions, defects in the source and the checks.\n\nReference: https://dataminal.com/nigeria/balance-of-payments?tab=api",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "data": [
                    {
                      "topic": "stock_and_flow",
                      "title": "Stocks and flows",
                      "applies_to": "both",
                      "body": "..."
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/balance-of-payments": {
      "get": {
        "tags": [
          "Balance of payments"
        ],
        "operationId": "balance_of_payments__root",
        "summary": "Default view",
        "description": "The dataset's default rows: the same as one of its named routes (history or latest). Prefer the named routes, which are described in full.\n\nReference: https://dataminal.com/nigeria/balance-of-payments?tab=api",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/international-investment-position/latest": {
      "get": {
        "tags": [
          "International investment position"
        ],
        "operationId": "international_investment_position__latest",
        "summary": "Latest quarter",
        "description": "The newest quarter-end's positions: total assets and liabilities, each by category, the reserve assets by component and the net international investment position.\n\nReference: https://dataminal.com/nigeria/international-investment-position?tab=api",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/international-investment-position/series": {
      "get": {
        "tags": [
          "International investment position"
        ],
        "operationId": "international_investment_position__series",
        "summary": "Series",
        "description": "Headline series over time, one row per indicator, measure and quarter, oldest first. Each figure is the newest bulletin's statement; vintage=all returns every edition's statement of it.\n\nReference: https://dataminal.com/nigeria/international-investment-position?tab=api",
        "parameters": [
          {
            "name": "indicator",
            "in": "query",
            "required": false,
            "description": "Required. Comma-separated indicator codes, e.g. net_international_investment_position,total_assets. /latest lists every code.",
            "schema": {
              "type": "string"
            },
            "example": "net_international_investment_position,total_assets,total_liabilities"
          },
          {
            "name": "measure",
            "in": "query",
            "required": false,
            "description": "position (the only measure in this table).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "description": "Earliest quarter, YYYY-Qn, inclusive.",
            "schema": {
              "type": "string"
            },
            "example": "2015-Q1"
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "description": "Latest quarter, YYYY-Qn, inclusive.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "vintage",
            "in": "query",
            "required": false,
            "description": "current (default, the newest bulletin's statement) or all (every edition's statement).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "include_flagged",
            "in": "query",
            "required": false,
            "description": "true brings back figures with a suspect quality flag (an accounting identity that failed, a cell that was not a number). Default false.",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Default 2000, maximum 10000.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/international-investment-position/lines": {
      "get": {
        "tags": [
          "International investment position"
        ],
        "operationId": "international_investment_position__lines",
        "summary": "Every printed line",
        "description": "Every line of the CBN's table, including the detail lines the headline series leave out, newest quarter first and in the CBN's line order.\n\nReference: https://dataminal.com/nigeria/international-investment-position?tab=api",
        "parameters": [
          {
            "name": "section",
            "in": "query",
            "required": false,
            "description": "assets, liabilities or net.",
            "schema": {
              "type": "string"
            },
            "example": "liabilities"
          },
          {
            "name": "code",
            "in": "query",
            "required": false,
            "description": "A BPM6 line code and the lines under it, e.g. 5 for reserve assets.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "period",
            "in": "query",
            "required": false,
            "description": "One quarter, YYYY-Qn.",
            "schema": {
              "type": "string"
            },
            "example": "2026-Q1"
          },
          {
            "name": "measure",
            "in": "query",
            "required": false,
            "description": "position (the only measure in this table).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "description": "Earliest quarter, YYYY-Qn, inclusive.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "description": "Latest quarter, YYYY-Qn, inclusive.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "vintage",
            "in": "query",
            "required": false,
            "description": "current (default, the newest bulletin's statement) or all (every edition's statement).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "include_flagged",
            "in": "query",
            "required": false,
            "description": "true brings back figures with a suspect quality flag (an accounting identity that failed, a cell that was not a number). Default false.",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Default 1000, maximum 10000.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/international-investment-position/revisions": {
      "get": {
        "tags": [
          "International investment position"
        ],
        "operationId": "international_investment_position__revisions",
        "summary": "Revisions",
        "description": "Figures a later bulletin changed, newest bulletin first: the value before (previous_value), the value after, the difference (revision_amount) and the edition that made the change.\n\nReference: https://dataminal.com/nigeria/international-investment-position?tab=api",
        "parameters": [
          {
            "name": "indicator",
            "in": "query",
            "required": false,
            "description": "One indicator code.",
            "schema": {
              "type": "string"
            },
            "example": "net_international_investment_position"
          },
          {
            "name": "release",
            "in": "query",
            "required": false,
            "description": "One edition, e.g. qsb-2026-q1.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "measure",
            "in": "query",
            "required": false,
            "description": "position (the only measure in this table).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "description": "Earliest quarter, YYYY-Qn, inclusive.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "description": "Latest quarter, YYYY-Qn, inclusive.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Default 500, maximum 5000.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/international-investment-position/checks": {
      "get": {
        "tags": [
          "International investment position"
        ],
        "operationId": "international_investment_position__checks",
        "summary": "Accounting checks",
        "description": "The identities each edition was checked against, per quarter: each balance equals credits less debits, the accounts add up, and the net position equals assets less liabilities. Tolerance 0.05.\n\nReference: https://dataminal.com/nigeria/international-investment-position?tab=api",
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "required": false,
            "description": "pass, fail or not_applicable.",
            "schema": {
              "type": "string"
            },
            "example": "fail"
          },
          {
            "name": "edition",
            "in": "query",
            "required": false,
            "description": "newest (default) or all.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Default 1000, maximum 20000.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/international-investment-position/releases": {
      "get": {
        "tags": [
          "International investment position"
        ],
        "operationId": "international_investment_position__releases",
        "summary": "Bulletins read",
        "description": "Every Quarterly Statistical Bulletin edition taken in, newest first: its publication date, the quarters its tables cover, how many figures it printed, added and revised, and the checks that failed.\n\nReference: https://dataminal.com/nigeria/international-investment-position?tab=api",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/international-investment-position/methodologies": {
      "get": {
        "tags": [
          "International investment position"
        ],
        "operationId": "international_investment_position__methodologies",
        "summary": "Methodology notes",
        "description": "Definitions and caveats, one row per topic: the source, coverage, the accounts, signs, stocks and flows, revisions, defects in the source and the checks.\n\nReference: https://dataminal.com/nigeria/international-investment-position?tab=api",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "data": [
                    {
                      "topic": "stock_and_flow",
                      "title": "Stocks and flows",
                      "applies_to": "both",
                      "body": "..."
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/international-investment-position": {
      "get": {
        "tags": [
          "International investment position"
        ],
        "operationId": "international_investment_position__root",
        "summary": "Default view",
        "description": "The dataset's default rows: the same as one of its named routes (history or latest). Prefer the named routes, which are described in full.\n\nReference: https://dataminal.com/nigeria/international-investment-position?tab=api",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/pension-assets/latest": {
      "get": {
        "tags": [
          "Pension assets"
        ],
        "operationId": "pension_assets__latest",
        "summary": "Latest month",
        "description": "The newest month: the industry's allocation by asset class (fund_type total, parents and children) in data, the month in period, and one row per fund type with its net asset value in fund_totals.\n\nReference: https://dataminal.com/nigeria/pension-assets?tab=api",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/pension-assets/allocations": {
      "get": {
        "tags": [
          "Pension assets"
        ],
        "operationId": "pension_assets__allocations",
        "summary": "Allocations",
        "description": "Asset-class rows over time, oldest month first and in the report's printed order within a month. Sum level=top rows only: a child row is already inside its parent.\n\nReference: https://dataminal.com/nigeria/pension-assets?tab=api",
        "parameters": [
          {
            "name": "fund_type",
            "in": "query",
            "required": false,
            "description": "Comma-separated fund types, e.g. total,aes,cpfa. Default total; all returns every fund type.",
            "schema": {
              "type": "string"
            },
            "example": "total"
          },
          {
            "name": "asset_class",
            "in": "query",
            "required": false,
            "description": "Comma-separated asset classes, e.g. fgn_securities,domestic_equities.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "level",
            "in": "query",
            "required": false,
            "description": "top, child or all (default).",
            "schema": {
              "type": "string"
            },
            "example": "top"
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "description": "Earliest month, YYYY-MM, inclusive.",
            "schema": {
              "type": "string"
            },
            "example": "2022-01"
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "description": "Latest month, YYYY-MM, inclusive.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "version",
            "in": "query",
            "required": false,
            "description": "current (default, the newest upload of each month's report) or all (every upload read).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "include_flagged",
            "in": "query",
            "required": false,
            "description": "true brings back rows with a suspect quality flag (a column that does not add up). Default false.",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Default 2000, maximum 6000 from the site.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/pension-assets/fund-totals": {
      "get": {
        "tags": [
          "Pension assets"
        ],
        "operationId": "pension_assets__fund_totals",
        "summary": "Fund totals",
        "description": "Net asset value per fund type per month, oldest first, with the growth PenCom prints, the US dollar value where printed and, on fund_type total from January 2020, the number of retirement savings accounts.\n\nReference: https://dataminal.com/nigeria/pension-assets?tab=api",
        "parameters": [
          {
            "name": "fund_type",
            "in": "query",
            "required": false,
            "description": "Comma-separated fund types, e.g. total. Default every fund type.",
            "schema": {
              "type": "string"
            },
            "example": "total"
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "description": "Earliest month, YYYY-MM, inclusive.",
            "schema": {
              "type": "string"
            },
            "example": "2020-01"
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "description": "Latest month, YYYY-MM, inclusive.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "version",
            "in": "query",
            "required": false,
            "description": "current (default, the newest upload of each month's report) or all (every upload read).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "include_flagged",
            "in": "query",
            "required": false,
            "description": "true brings back rows with a suspect quality flag (a column that does not add up). Default false.",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Default 2000, maximum 3000 from the site.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/pension-assets/documents": {
      "get": {
        "tags": [
          "Pension assets"
        ],
        "operationId": "pension_assets__documents",
        "summary": "Reports read",
        "description": "Every report file read, newest month first: its PenCom link, upload date, version, whether it is the current upload of its month, its layout, its status (data, duplicate or quarantined) and how many checks it failed.\n\nReference: https://dataminal.com/nigeria/pension-assets?tab=api",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/pension-assets/checks": {
      "get": {
        "tags": [
          "Pension assets"
        ],
        "operationId": "pension_assets__checks",
        "summary": "Arithmetic checks",
        "description": "The checks each report was put through, newest month first: the top rows add up to the net asset value, children to their parent, the funds to the total, the printed growth to the change in value, and a month's value against the next report's restatement of it.\n\nReference: https://dataminal.com/nigeria/pension-assets?tab=api",
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "required": false,
            "description": "pass, fail or not_applicable.",
            "schema": {
              "type": "string"
            },
            "example": "fail"
          },
          {
            "name": "period",
            "in": "query",
            "required": false,
            "description": "One month, YYYY-MM.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "version",
            "in": "query",
            "required": false,
            "description": "current (default) or all.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Default 1000, maximum 20000.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/pension-assets/methodologies": {
      "get": {
        "tags": [
          "Pension assets"
        ],
        "operationId": "pension_assets__methodologies",
        "summary": "Methodology notes",
        "description": "Definitions and caveats, one row per topic: the source, fund types and the July 2018 break, asset classes, allocation shares, re-uploads, RSA membership, defects in the source and gaps.\n\nReference: https://dataminal.com/nigeria/pension-assets?tab=api",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "data": [
                    {
                      "topic": "fund_types",
                      "title": "Fund types and the July 2018 break",
                      "body": "..."
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/pension-assets": {
      "get": {
        "tags": [
          "Pension assets"
        ],
        "operationId": "pension_assets__root",
        "summary": "Default view",
        "description": "The dataset's default rows: the same as one of its named routes (history or latest). Prefer the named routes, which are described in full.\n\nReference: https://dataminal.com/nigeria/pension-assets?tab=api",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/mutual-funds/latest": {
      "get": {
        "tags": [
          "Mutual funds"
        ],
        "operationId": "mutual_funds__latest",
        "summary": "Latest month",
        "description": "The newest month (or period=YYYY-MM): every fund, largest NAV first, and a headline with the total NAV, the number of funds and each class's total.\n\nReference: https://dataminal.com/nigeria/mutual-funds?tab=api",
        "parameters": [
          {
            "name": "period",
            "in": "query",
            "required": false,
            "description": "A month, YYYY-MM. Default the newest.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "fund_class",
            "in": "query",
            "required": false,
            "description": "Comma-separated classes: money_market, equity, bond_fixed_income, dollar, real_estate, balanced, ethical, shariah, specialised, etf.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum rows (default 300).",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/mutual-funds/funds": {
      "get": {
        "tags": [
          "Mutual funds"
        ],
        "operationId": "mutual_funds__funds",
        "summary": "Funds",
        "description": "One row per fund: its newest name and every name the SEC printed, its manager and class, its first and last month, whether the newest workbook lists it, and its newest NAV, NAV per unit, unitholders and 12-month changes.\n\nReference: https://dataminal.com/nigeria/mutual-funds?tab=api",
        "parameters": [
          {
            "name": "fund_class",
            "in": "query",
            "required": false,
            "description": "Comma-separated classes: money_market, equity, bond_fixed_income, dollar, real_estate, balanced, ethical, shariah, specialised, etf.",
            "schema": {
              "type": "string"
            },
            "example": "money_market"
          },
          {
            "name": "manager",
            "in": "query",
            "required": false,
            "description": "Comma-separated manager_ids.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "fund",
            "in": "query",
            "required": false,
            "description": "Comma-separated fund_ids.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "listed",
            "in": "query",
            "required": false,
            "description": "true: funds in the newest month only; false: funds no longer listed.",
            "schema": {
              "type": "boolean"
            },
            "example": "true"
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "description": "Words of a fund's name, e.g. stanbic money market.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/mutual-funds/history": {
      "get": {
        "tags": [
          "Mutual funds"
        ],
        "operationId": "mutual_funds__history",
        "summary": "History",
        "description": "Fund-months over time, one row per fund and month, oldest first. Name up to 20 funds with fund=, or a group with fund_class= or manager=.\n\nReference: https://dataminal.com/nigeria/mutual-funds?tab=api",
        "parameters": [
          {
            "name": "fund",
            "in": "query",
            "required": false,
            "description": "Comma-separated fund_ids (up to 20).",
            "schema": {
              "type": "string"
            },
            "example": "stanbic-ibtc-money-market-fund"
          },
          {
            "name": "fund_class",
            "in": "query",
            "required": false,
            "description": "Comma-separated classes: money_market, equity, bond_fixed_income, dollar, real_estate, balanced, ethical, shariah, specialised, etf.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "manager",
            "in": "query",
            "required": false,
            "description": "Comma-separated manager_ids.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "description": "Earliest month, YYYY-MM, inclusive.",
            "schema": {
              "type": "string"
            },
            "example": "2024-01"
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "description": "Latest month, YYYY-MM, inclusive.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum rows (default 5,000, at most 20,000).",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/mutual-funds/classes": {
      "get": {
        "tags": [
          "Mutual funds"
        ],
        "operationId": "mutual_funds__classes",
        "summary": "Classes",
        "description": "NAV, fund count, unitholders, income and expenses by fund class and month, with class all for every fund and the SEC's own Sub Total beside our sum. basis=as_filed (default) follows the SEC's classes month by month; basis=current files every month of a fund under its newest class.\n\nReference: https://dataminal.com/nigeria/mutual-funds?tab=api",
        "parameters": [
          {
            "name": "basis",
            "in": "query",
            "required": false,
            "description": "as_filed (default) or current.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "fund_class",
            "in": "query",
            "required": false,
            "description": "Comma-separated classes, or all.",
            "schema": {
              "type": "string"
            },
            "example": "all,money_market"
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "description": "Earliest month, YYYY-MM, inclusive.",
            "schema": {
              "type": "string"
            },
            "example": "2025-01"
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "description": "Latest month, YYYY-MM, inclusive.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/mutual-funds/managers": {
      "get": {
        "tags": [
          "Mutual funds"
        ],
        "operationId": "mutual_funds__managers",
        "summary": "Managers",
        "description": "NAV, fund count and share of all funds by fund manager: every manager in one month (default the newest, or period=), or the months of the managers named with manager=. Derived sums of the funds as printed.\n\nReference: https://dataminal.com/nigeria/mutual-funds?tab=api",
        "parameters": [
          {
            "name": "manager",
            "in": "query",
            "required": false,
            "description": "Comma-separated manager_ids; returns their months.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "period",
            "in": "query",
            "required": false,
            "description": "A month, YYYY-MM, when no manager is named.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "description": "Earliest month, YYYY-MM, inclusive.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "description": "Latest month, YYYY-MM, inclusive.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "dataset": "nigeria_mutual_funds",
                  "source": "Securities and Exchange Commission, Nigeria: monthly update on registered collective investment schemes",
                  "unit": "naira (ratios as fractions; derived changes and shares in per cent)",
                  "note": "Every registered mutual fund (collective investment scheme) the SEC Nigeria lists ...",
                  "period": "2026-09",
                  "data": [
                    {
                      "period": "2026-09",
                      "manager_id": "stanbic-ibtc-asset-management",
                      "manager_name": "Stanbic IBTC Asset Mgt. Limited",
                      "fund_count": 14,
                      "nav": 4084700000000,
                      "share_of_total_pct": 41.75,
                      "unitholders": 524675,
                      "fund_classes": "money_market,dollar,equity,..."
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/mutual-funds/checks": {
      "get": {
        "tags": [
          "Mutual funds"
        ],
        "operationId": "mutual_funds__checks",
        "summary": "Checks",
        "description": "Per month: the funds' sum against the SEC's Grand Total and each Sub Total (naming the fund a Sub Total leaves out, where one explains it), units times NAV per unit against NAV, and rows the parser skipped.\n\nReference: https://dataminal.com/nigeria/mutual-funds?tab=api",
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "required": false,
            "description": "pass, differs or info.",
            "schema": {
              "type": "string"
            },
            "example": "differs"
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "description": "Earliest month, YYYY-MM, inclusive.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "description": "Latest month, YYYY-MM, inclusive.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "dataset": "nigeria_mutual_funds",
                  "source": "Securities and Exchange Commission, Nigeria: monthly update on registered collective investment schemes",
                  "unit": "naira (ratios as fractions; derived changes and shares in per cent)",
                  "note": "Every registered mutual fund (collective investment scheme) the SEC Nigeria lists ...",
                  "data": [
                    {
                      "period": "2024-01",
                      "check_name": "class_subtotal",
                      "subject": "REAL ESTATE FUNDS",
                      "status": "differs",
                      "expected": 97676603718.22,
                      "observed": 99868482300.6,
                      "difference": 2191878582.38,
                      "detail": "the SEC's Sub Total leaves out Housing Solution Fund"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/mutual-funds/releases": {
      "get": {
        "tags": [
          "Mutual funds"
        ],
        "operationId": "mutual_funds__releases",
        "summary": "Releases",
        "description": "Every workbook read: the month, the SEC's posting date, the number of funds, the total NAV, the SEC's Grand Total and the exchange rate it printed.\n\nReference: https://dataminal.com/nigeria/mutual-funds?tab=api",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/mutual-funds/methodologies": {
      "get": {
        "tags": [
          "Mutual funds"
        ],
        "operationId": "mutual_funds__methodologies",
        "summary": "Methodologies",
        "description": "Definitions and caveats: the source, units, fund identity, classes, derived figures and the SEC's totals.\n\nReference: https://dataminal.com/nigeria/mutual-funds?tab=api",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "dataset": "nigeria_mutual_funds",
                  "source": "Securities and Exchange Commission, Nigeria: monthly update on registered collective investment schemes",
                  "unit": "naira (ratios as fractions; derived changes and shares in per cent)",
                  "note": "Every registered mutual fund (collective investment scheme) the SEC Nigeria lists ...",
                  "data": [
                    {
                      "topic": "identity",
                      "text": "The SEC prints no fund identifier. ..."
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/mutual-funds": {
      "get": {
        "tags": [
          "Mutual funds"
        ],
        "operationId": "mutual_funds__root",
        "summary": "Default view",
        "description": "The dataset's default rows: the same as one of its named routes (history or latest). Prefer the named routes, which are described in full.\n\nReference: https://dataminal.com/nigeria/mutual-funds?tab=api",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/insurance/latest": {
      "get": {
        "tags": [
          "Insurance"
        ],
        "operationId": "insurance__latest",
        "summary": "Latest quarter",
        "description": "The newest quarter (or period=YYYY-Qn): every figure by measure and class, and a headline with gross and net premium, claims (year to date and the quarter alone), retention and total assets.\n\nReference: https://dataminal.com/nigeria/insurance?tab=api",
        "parameters": [
          {
            "name": "period",
            "in": "query",
            "required": false,
            "description": "A quarter, YYYY-Qn. Default the newest.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/insurance/series": {
      "get": {
        "tags": [
          "Insurance"
        ],
        "operationId": "insurance__series",
        "summary": "Series",
        "description": "One or more measures over time, oldest first. value is year to date as NAICOM prints it; quarter_value is the quarter alone (derived). Classes change: marine_aviation and life carry is_derived where Dataminal summed them.\n\nReference: https://dataminal.com/nigeria/insurance?tab=api",
        "parameters": [
          {
            "name": "measure",
            "in": "query",
            "required": false,
            "description": "Required, comma-separated: gross_premium, net_premium, gross_claims, net_claims, retention_pct, settlement_pct, net_loss_ratio_pct, insurers_loss_ratio_100, total_assets.",
            "schema": {
              "type": "string"
            },
            "example": "gross_premium"
          },
          {
            "name": "class",
            "in": "query",
            "required": false,
            "description": "Comma-separated classes, e.g. total,life,motor. Default every class.",
            "schema": {
              "type": "string"
            },
            "example": "total"
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "description": "Earliest quarter, YYYY-Qn, inclusive.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "description": "Latest quarter, YYYY-Qn, inclusive.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/insurance/checks": {
      "get": {
        "tags": [
          "Insurance"
        ],
        "operationId": "insurance__checks",
        "summary": "Checks",
        "description": "Per bulletin: the classes against the printed total, assets against their parts, tables NAICOM printed only as a chart, and cells withheld as misprints.\n\nReference: https://dataminal.com/nigeria/insurance?tab=api",
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "required": false,
            "description": "pass, differs or info.",
            "schema": {
              "type": "string"
            },
            "example": "info"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "dataset": "nigeria_insurance",
                  "source": "National Insurance Commission (NAICOM): Bulletin of the Insurance Market Performance (quarterly)",
                  "unit": "naira billion (year to date as printed); ratios in per cent; insurers as counts",
                  "note": "Nigeria's insurance industry by class of business, quarterly from Q1 2021 ...",
                  "data": [
                    {
                      "period": "2026-Q2",
                      "check_name": "cell_withheld",
                      "status": "info",
                      "detail": "Table 3 row 2: Life printed as the non-life subtotal (181.3); withheld"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/insurance/releases": {
      "get": {
        "tags": [
          "Insurance"
        ],
        "operationId": "insurance__releases",
        "summary": "Releases",
        "description": "Every bulletin read: quarter, upload date (27 July 2026 for the re-uploaded archive), figures read and the year-to-date gross premium.\n\nReference: https://dataminal.com/nigeria/insurance?tab=api",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/insurance/methodologies": {
      "get": {
        "tags": [
          "Insurance"
        ],
        "operationId": "insurance__methodologies",
        "summary": "Methodologies",
        "description": "Definitions and caveats: the year-to-date basis, class changes, units, tables not read and misprints.\n\nReference: https://dataminal.com/nigeria/insurance?tab=api",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "dataset": "nigeria_insurance",
                  "source": "National Insurance Commission (NAICOM): Bulletin of the Insurance Market Performance (quarterly)",
                  "unit": "naira billion (year to date as printed); ratios in per cent; insurers as counts",
                  "note": "Nigeria's insurance industry by class of business, quarterly from Q1 2021 ...",
                  "data": [
                    {
                      "topic": "year_to_date",
                      "text": "Premiums and claims are cumulative for the year to date ..."
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/insurance": {
      "get": {
        "tags": [
          "Insurance"
        ],
        "operationId": "insurance__root",
        "summary": "Default view",
        "description": "The dataset's default rows: the same as one of its named routes (history or latest). Prefer the named routes, which are described in full.\n\nReference: https://dataminal.com/nigeria/insurance?tab=api",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/power-sector/latest": {
      "get": {
        "tags": [
          "DisCo performance"
        ],
        "operationId": "disco_performance__latest",
        "summary": "Latest quarter",
        "description": "The newest quarter (or period=YYYY-Qn): every DisCo's figures, and a headline of the industry row's ATC&C loss, efficiencies, revenue and energy.\n\nReference: https://dataminal.com/nigeria/power-sector?tab=api",
        "parameters": [
          {
            "name": "period",
            "in": "query",
            "required": false,
            "description": "A quarter, YYYY-Qn. Default the newest.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/power-sector/series": {
      "get": {
        "tags": [
          "DisCo performance"
        ],
        "operationId": "disco_performance__series",
        "summary": "Series",
        "description": "One or more measures over time, oldest first. value is the quarter's latest print; first_printed_value its own report's. disco=all is the industry row.\n\nReference: https://dataminal.com/nigeria/power-sector?tab=api",
        "parameters": [
          {
            "name": "measure",
            "in": "query",
            "required": false,
            "description": "Required, comma-separated: atcc_loss_pct, atcc_target_pct, collection_efficiency_pct, billing_efficiency_pct, billing_efficiency_naira_pct, revenue_billed_bn, revenue_collected_bn, energy_received_gwh, energy_billed_gwh, energy_received_value_bn, offtake_mwh_per_hour, available_pcc_mwh_per_hour, offtake_performance_pct.",
            "schema": {
              "type": "string"
            },
            "example": "atcc_loss_pct"
          },
          {
            "name": "disco",
            "in": "query",
            "required": false,
            "description": "Comma-separated DisCos, e.g. ikeja,eko,all. Default every DisCo and the industry row.",
            "schema": {
              "type": "string"
            },
            "example": "all"
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "description": "Earliest quarter, YYYY-Qn, inclusive.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "description": "Latest quarter, YYYY-Qn, inclusive.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/power-sector/checks": {
      "get": {
        "tags": [
          "DisCo performance"
        ],
        "operationId": "disco_performance__checks",
        "summary": "Checks",
        "description": "Per quarter: restatements by the next report, collected over billed and billed over received against the printed efficiencies, the ATC&C loss against 1 - billing x collection efficiency, and tables not read.\n\nReference: https://dataminal.com/nigeria/power-sector?tab=api",
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "required": false,
            "description": "pass, differs or info.",
            "schema": {
              "type": "string"
            },
            "example": "differs"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/power-sector/releases": {
      "get": {
        "tags": [
          "DisCo performance"
        ],
        "operationId": "disco_performance__releases",
        "summary": "Releases",
        "description": "Every quarterly report read: quarter, posted date, figures read and the industry ATC&C loss where the report prints it.\n\nReference: https://dataminal.com/nigeria/power-sector?tab=api",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/power-sector/methodologies": {
      "get": {
        "tags": [
          "DisCo performance"
        ],
        "operationId": "disco_performance__methodologies",
        "summary": "Methodologies",
        "description": "Definitions and caveats: the latest-print rule, the unpublished quarter, ATC&C, the 2025 change to billing efficiency, units.\n\nReference: https://dataminal.com/nigeria/power-sector?tab=api",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "dataset": "nigeria_power_sector",
                  "source": "Nigerian Electricity Regulatory Commission (NERC): quarterly reports",
                  "unit": "per cent for losses and efficiencies; GWh; naira billion; MWh/h for offtake",
                  "note": "The commercial performance of Nigeria's eleven electricity distribution companies ...",
                  "data": [
                    {
                      "topic": "latest_print",
                      "text": "Each report prints the previous quarter beside its own, and NERC restates ..."
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/power-sector": {
      "get": {
        "tags": [
          "DisCo performance"
        ],
        "operationId": "disco_performance__root",
        "summary": "Default view",
        "description": "The dataset's default rows: the same as one of its named routes (history or latest). Prefer the named routes, which are described in full.\n\nReference: https://dataminal.com/nigeria/power-sector?tab=api",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/government-finance/latest": {
      "get": {
        "tags": [
          "Government finance"
        ],
        "operationId": "government_finance__latest",
        "summary": "Newest period of every table",
        "description": "For each table and frequency, every named line of its newest period, in the CBN's line order. table narrows it to one table.\n\nReference: https://dataminal.com/nigeria/government-finance?tab=api",
        "parameters": [
          {
            "name": "table",
            "in": "query",
            "required": false,
            "description": "One table: federally_collected, fgn_monthly, fgn_quarterly, states_quarterly, lgs_quarterly, fgn_annual, fgn_recurrent, fgn_capital, states_annual, lgs_annual or faac_annual.",
            "schema": {
              "type": "string"
            },
            "example": "fgn_annual"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/government-finance/series": {
      "get": {
        "tags": [
          "Government finance"
        ],
        "operationId": "government_finance__series",
        "summary": "Series",
        "description": "Named series over time, oldest first, one row per indicator, frequency and period. Pass table as well as indicator: the same code (fgn_retained_revenue, total_expenditure) exists in more than one table, and the tables are on different bases.\n\nReference: https://dataminal.com/nigeria/government-finance?tab=api",
        "parameters": [
          {
            "name": "indicator",
            "in": "query",
            "required": false,
            "description": "Required. Comma-separated indicator codes, e.g. overall_balance,overall_balance_pct_gdp. /indicators lists every code.",
            "schema": {
              "type": "string"
            },
            "example": "overall_balance,overall_balance_pct_gdp"
          },
          {
            "name": "table",
            "in": "query",
            "required": false,
            "description": "One table: federally_collected, fgn_monthly, fgn_quarterly, states_quarterly, lgs_quarterly, fgn_annual, fgn_recurrent, fgn_capital, states_annual, lgs_annual or faac_annual.",
            "schema": {
              "type": "string"
            },
            "example": "fgn_annual"
          },
          {
            "name": "frequency",
            "in": "query",
            "required": false,
            "description": "monthly, quarterly or annual. The quarterly tables print a year's total beside its quarters.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "government_level",
            "in": "query",
            "required": false,
            "description": "federal, federation, state_aggregate or local_aggregate.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "category",
            "in": "query",
            "required": false,
            "description": "revenue, expenditure, balance, financing, allocation, deduction or memo.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "description": "Earliest period, inclusive: YYYY, YYYY-Qn or YYYY-MM.",
            "schema": {
              "type": "string"
            },
            "example": "2000"
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "description": "Latest period, inclusive: YYYY, YYYY-Qn or YYYY-MM.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "vintage",
            "in": "query",
            "required": false,
            "description": "current (default, the newest edition's statement of each figure) or all (every edition's statement).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "include_flagged",
            "in": "query",
            "required": false,
            "description": "true brings back figures with a suspect quality flag (a cell that was not a number, a period printed twice with two values, a unit scale in doubt). Default false.",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Default 2000, maximum 20000 (5000 from the site).",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/government-finance/lines": {
      "get": {
        "tags": [
          "Government finance"
        ],
        "operationId": "government_finance__lines",
        "summary": "Every printed line",
        "description": "Every line of one table as the CBN printed it, newest period first and in the CBN's line order (line_order), including lines that are not one of the named series (line_key line:...). parent_code names the line each sits inside.\n\nReference: https://dataminal.com/nigeria/government-finance?tab=api",
        "parameters": [
          {
            "name": "table",
            "in": "query",
            "required": false,
            "description": "Required. One table: federally_collected, fgn_monthly, fgn_quarterly, states_quarterly, lgs_quarterly, fgn_annual, fgn_recurrent, fgn_capital, states_annual, lgs_annual or faac_annual.",
            "schema": {
              "type": "string"
            },
            "example": "federally_collected"
          },
          {
            "name": "period",
            "in": "query",
            "required": false,
            "description": "One period: YYYY, YYYY-Qn or YYYY-MM. Pass frequency with a year on a quarterly table.",
            "schema": {
              "type": "string"
            },
            "example": "2024-12"
          },
          {
            "name": "line",
            "in": "query",
            "required": false,
            "description": "One line key, e.g. customs_revenue or line:others_transfer_to_non_oil_excess_revenue_account.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "frequency",
            "in": "query",
            "required": false,
            "description": "monthly, quarterly or annual. The quarterly tables print a year's total beside its quarters.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "government_level",
            "in": "query",
            "required": false,
            "description": "federal, federation, state_aggregate or local_aggregate.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "category",
            "in": "query",
            "required": false,
            "description": "revenue, expenditure, balance, financing, allocation, deduction or memo.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "description": "Earliest period, inclusive: YYYY, YYYY-Qn or YYYY-MM.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "description": "Latest period, inclusive: YYYY, YYYY-Qn or YYYY-MM.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "vintage",
            "in": "query",
            "required": false,
            "description": "current (default, the newest edition's statement of each figure) or all (every edition's statement).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "include_flagged",
            "in": "query",
            "required": false,
            "description": "true brings back figures with a suspect quality flag (a cell that was not a number, a period printed twice with two values, a unit scale in doubt). Default false.",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Default 2000, maximum 20000 (2000 from the site).",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/government-finance/indicators": {
      "get": {
        "tags": [
          "Government finance"
        ],
        "operationId": "government_finance__indicators",
        "summary": "Indicator catalogue",
        "description": "Every named series, one row per table, government level, indicator and frequency, with its unit, the number of periods and the first and last period.\n\nReference: https://dataminal.com/nigeria/government-finance?tab=api",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/government-finance/revisions": {
      "get": {
        "tags": [
          "Government finance"
        ],
        "operationId": "government_finance__revisions",
        "summary": "Revisions",
        "description": "Figures a later edition changed (revision_status revised) or redefined (the CBN changed what the line covers, recorded in definition_basis), newest edition first and the largest changes first: the value before (previous_value), after (value) and the difference (revision_amount).\n\nReference: https://dataminal.com/nigeria/government-finance?tab=api",
        "parameters": [
          {
            "name": "table",
            "in": "query",
            "required": false,
            "description": "One table: federally_collected, fgn_monthly, fgn_quarterly, states_quarterly, lgs_quarterly, fgn_annual, fgn_recurrent, fgn_capital, states_annual, lgs_annual or faac_annual.",
            "schema": {
              "type": "string"
            },
            "example": "fgn_monthly"
          },
          {
            "name": "indicator",
            "in": "query",
            "required": false,
            "description": "One indicator code.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "release",
            "in": "query",
            "required": false,
            "description": "One edition, e.g. qsb-2024-q4 or asb-public-finance-2023.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "frequency",
            "in": "query",
            "required": false,
            "description": "monthly, quarterly or annual. The quarterly tables print a year's total beside its quarters.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "government_level",
            "in": "query",
            "required": false,
            "description": "federal, federation, state_aggregate or local_aggregate.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "category",
            "in": "query",
            "required": false,
            "description": "revenue, expenditure, balance, financing, allocation, deduction or memo.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "description": "Earliest period, inclusive: YYYY, YYYY-Qn or YYYY-MM.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "description": "Latest period, inclusive: YYYY, YYYY-Qn or YYYY-MM.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Default 500, maximum 5000 (500 from the site).",
            "schema": {
              "type": "integer"
            },
            "example": 50
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/government-finance/checks": {
      "get": {
        "tags": [
          "Government finance"
        ],
        "operationId": "government_finance__checks",
        "summary": "Accounting checks",
        "description": "The identities each edition was checked against, period by period: totals against their parts, balances against revenue less expenditure, years against their months or quarters, financing against the deficit. A failure flags the total identity_not_satisfied and removes nothing.\n\nReference: https://dataminal.com/nigeria/government-finance?tab=api",
        "parameters": [
          {
            "name": "table",
            "in": "query",
            "required": false,
            "description": "One table: federally_collected, fgn_monthly, fgn_quarterly, states_quarterly, lgs_quarterly, fgn_annual, fgn_recurrent, fgn_capital, states_annual, lgs_annual or faac_annual.",
            "schema": {
              "type": "string"
            },
            "example": "federally_collected"
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "description": "pass, fail or not_applicable.",
            "schema": {
              "type": "string"
            },
            "example": "fail"
          },
          {
            "name": "edition",
            "in": "query",
            "required": false,
            "description": "newest (default, each period's newest edition) or all.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "include_informational",
            "in": "query",
            "required": false,
            "description": "true adds the checks that are recorded but never flag a figure (the parts of the oil and non-oil sections, % of GDP against the GDP printed). Default false.",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Default 1000, maximum 20000.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/government-finance/releases": {
      "get": {
        "tags": [
          "Government finance"
        ],
        "operationId": "government_finance__releases",
        "summary": "Bulletin editions read",
        "description": "Every Quarterly and Annual Statistical Bulletin edition taken in, newest first: its CBN link and listing date, whether it carried the government finance tables (status data or no_fiscal_tables), which tables it printed, the periods they cover, and how many figures it added and revised.\n\nReference: https://dataminal.com/nigeria/government-finance?tab=api",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/government-finance/methodologies": {
      "get": {
        "tags": [
          "Government finance"
        ],
        "operationId": "government_finance__methodologies",
        "summary": "Methodology notes",
        "description": "Definitions and caveats, one row per topic: the source, units, tiers of government, the two federal accounts, balances and financing, vintages, defects in the source, the checks and the end of the tables.\n\nReference: https://dataminal.com/nigeria/government-finance?tab=api",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "data": [
                    {
                      "topic": "two_federal_accounts",
                      "title": "Two statements of the federal accounts: never splice them",
                      "applies_to": "fgn_annual",
                      "body": "..."
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/government-finance": {
      "get": {
        "tags": [
          "Government finance"
        ],
        "operationId": "government_finance__root",
        "summary": "Default view",
        "description": "The dataset's default rows: the same as one of its named routes (history or latest). Prefer the named routes, which are described in full.\n\nReference: https://dataminal.com/nigeria/government-finance?tab=api",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/interest-rates/latest": {
      "get": {
        "tags": [
          "Interest rates"
        ],
        "operationId": "interest_rates__latest",
        "summary": "Latest month",
        "description": "The newest month of every monthly rate the bulletin still prints, one row per rate. A rate whose newest month the bulletin left as n.a. returns the newest month it printed, so check each row's period. The newest month of all is in period.\n\nReference: https://dataminal.com/nigeria/interest-rates?tab=api",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/interest-rates/series": {
      "get": {
        "tags": [
          "Interest rates"
        ],
        "operationId": "interest_rates__series",
        "summary": "Rates over time",
        "description": "One or more rates over time, oldest period first within each rate. Every row is the current statement of that rate for that period; a month the bulletin printed as n.a. comes back with value null.\n\nReference: https://dataminal.com/nigeria/interest-rates?tab=api",
        "parameters": [
          {
            "name": "indicator",
            "in": "query",
            "required": false,
            "description": "Required. Comma-separated rate codes, e.g. mpr,standing_deposit_facility_rate,standing_lending_facility_rate. /indicators lists them.",
            "schema": {
              "type": "string"
            },
            "example": "mpr,standing_deposit_facility_rate,standing_lending_facility_rate"
          },
          {
            "name": "frequency",
            "in": "query",
            "required": false,
            "description": "monthly (default), quarterly or annual. Quarterly and annual figures come from the Annual Statistical Bulletin.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "category",
            "in": "query",
            "required": false,
            "description": "policy, money_market, treasury, deposit or lending.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "description": "Earliest period, inclusive: YYYY, YYYY-Qn or YYYY-MM.",
            "schema": {
              "type": "string"
            },
            "example": "2024-01"
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "description": "Latest period, inclusive: YYYY, YYYY-Qn or YYYY-MM.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "vintage",
            "in": "query",
            "required": false,
            "description": "current (default) or all (every edition's statement of each figure).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "include_flagged",
            "in": "query",
            "required": false,
            "description": "true brings back flagged statements (outside the band, a 0.00 for an unpublished month, a policy-rate misprint). Default false.",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Default 5000, maximum 20000; 5000 from the site.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/interest-rates/spreads": {
      "get": {
        "tags": [
          "Interest rates"
        ],
        "operationId": "interest_rates__spreads",
        "summary": "Spreads",
        "description": "Differences between two of the CBN's current rates of the same month, in percentage points, derived on read and labelled is_derived. A spread is Dataminal's arithmetic, never a CBN figure; a month where either rate is missing has no row.\n\nReference: https://dataminal.com/nigeria/interest-rates?tab=api",
        "parameters": [
          {
            "name": "spread",
            "in": "query",
            "required": false,
            "description": "Comma-separated, default all: prime_lending_less_mpr, maximum_lending_less_mpr, interbank_call_less_mpr, open_buy_back_less_mpr, treasury_bill_91d_less_mpr, maximum_lending_less_savings, prime_lending_less_deposit_12m, treasury_bill_364d_less_91d, policy_corridor_width.",
            "schema": {
              "type": "string"
            },
            "example": "prime_lending_less_mpr"
          },
          {
            "name": "frequency",
            "in": "query",
            "required": false,
            "description": "monthly (default), quarterly or annual. Quarterly and annual figures come from the Annual Statistical Bulletin.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "description": "Earliest period, inclusive: YYYY, YYYY-Qn or YYYY-MM.",
            "schema": {
              "type": "string"
            },
            "example": "2024-01"
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "description": "Latest period, inclusive: YYYY, YYYY-Qn or YYYY-MM.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "include_flagged",
            "in": "query",
            "required": false,
            "description": "true brings back flagged statements (outside the band, a 0.00 for an unpublished month, a policy-rate misprint). Default false.",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "dataset": "nigeria_interest_rates",
                  "source": "Central Bank of Nigeria, Quarterly and Annual Statistical Bulletins (money market and bank rates)",
                  "unit": "per cent per annum (spreads in percentage points)",
                  "note": "The CBN's money market, treasury, deposit and lending rates ... Read /methodologies first.",
                  "data": [
                    {
                      "period": "2026-03",
                      "spread_code": "prime_lending_less_mpr",
                      "spread_name": "Prime lending rate less the MPR",
                      "value": -7.209785,
                      "unit": "percentage points",
                      "minuend": "prime_lending_rate",
                      "minuend_value": 19.290214560836137,
                      "subtrahend": "mpr",
                      "subtrahend_value": 26.5,
                      "is_derived": true,
                      "derivation": "prime_lending_rate - mpr, the current statements of the same month",
                      "release_ids": [
                        "qsb-2026-q1"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/interest-rates/indicators": {
      "get": {
        "tags": [
          "Interest rates"
        ],
        "operationId": "interest_rates__indicators",
        "summary": "Rate catalogue",
        "description": "Every rate at every frequency it is published at: its category, tenor, measure basis, the number of periods, the first and last period, and its twin in Nigeria Monetary where there is one (canonical_dataset, canonical_indicator_id).\n\nReference: https://dataminal.com/nigeria/interest-rates?tab=api",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "data": [
                    {
                      "indicator_code": "mpr",
                      "indicator_name": "Monetary Policy Rate",
                      "category": "policy",
                      "measure_basis": "end_period",
                      "frequency": "monthly",
                      "canonical_dataset": "nigeria_monetary",
                      "canonical_indicator_id": "mpr_monthly",
                      "observations": 315,
                      "first_period": "2000-01",
                      "last_period": "2026-03"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/interest-rates/revisions": {
      "get": {
        "tags": [
          "Interest rates"
        ],
        "operationId": "interest_rates__revisions",
        "summary": "Revisions",
        "description": "Statements a later bulletin edition changed, newest edition first and the largest change first within it. previous_value is the earlier statement and revision_amount the change in percentage points.\n\nReference: https://dataminal.com/nigeria/interest-rates?tab=api",
        "parameters": [
          {
            "name": "indicator",
            "in": "query",
            "required": false,
            "description": "One rate code.",
            "schema": {
              "type": "string"
            },
            "example": "treasury_bill_91d"
          },
          {
            "name": "release",
            "in": "query",
            "required": false,
            "description": "An edition, e.g. qsb-2026-q1 or asb-2025.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "frequency",
            "in": "query",
            "required": false,
            "description": "monthly, quarterly or annual. Default every frequency.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "category",
            "in": "query",
            "required": false,
            "description": "policy, money_market, treasury, deposit or lending.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "description": "Earliest period, inclusive: YYYY, YYYY-Qn or YYYY-MM.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "description": "Latest period, inclusive: YYYY, YYYY-Qn or YYYY-MM.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "include_flagged",
            "in": "query",
            "required": false,
            "description": "true brings back flagged statements (outside the band, a 0.00 for an unpublished month, a policy-rate misprint). Default false.",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Default 500, maximum 5000; 500 from the site.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/interest-rates/checks": {
      "get": {
        "tags": [
          "Interest rates"
        ],
        "operationId": "interest_rates__checks",
        "summary": "Checks",
        "description": "The checks each edition was put through: the MPR inside its corridor each month, an annual policy rate equal to its fourth quarter, and an annual average within its quarters' range.\n\nReference: https://dataminal.com/nigeria/interest-rates?tab=api",
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "required": false,
            "description": "pass, fail or not_applicable.",
            "schema": {
              "type": "string"
            },
            "example": "fail"
          },
          {
            "name": "edition",
            "in": "query",
            "required": false,
            "description": "newest (default, the newest edition's checks) or all.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Default 1000, maximum 20000.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "data": [
                    {
                      "check_id": "0ba77ac242a44def47da",
                      "release_id": "qsb-2026-q1",
                      "period": "2026-03",
                      "check_name": "corridor",
                      "status": "pass",
                      "expected": null,
                      "actual": 26.5,
                      "detail": "standing deposit facility 22.0 <= MPR 26.5 <= standing lending facility 27.0",
                      "is_newest_edition": true
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/interest-rates/releases": {
      "get": {
        "tags": [
          "Interest rates"
        ],
        "operationId": "interest_rates__releases",
        "summary": "Editions read",
        "description": "Every bulletin edition read, newest first: its title, its CBN link, the date the CBN listed it, the periods it covers, how many figures it printed, how many were new or revised, and the checks it failed.\n\nReference: https://dataminal.com/nigeria/interest-rates?tab=api",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/interest-rates/methodologies": {
      "get": {
        "tags": [
          "Interest rates"
        ],
        "operationId": "interest_rates__methodologies",
        "summary": "Methodology notes",
        "description": "Definitions and caveats, one row per topic: the source tables, the rates, end of period or average, coverage and lag, the overlap with Nigeria Monetary, NIBOR, overnight rates above 100 per cent, policy-rate misprints, spreads and revisions.\n\nReference: https://dataminal.com/nigeria/interest-rates?tab=api",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "data": [
                    {
                      "topic": "basis",
                      "title": "End of period or average",
                      "body": "measure_basis says what a figure is ..."
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/interest-rates": {
      "get": {
        "tags": [
          "Interest rates"
        ],
        "operationId": "interest_rates__root",
        "summary": "Default view",
        "description": "The dataset's default rows: the same as one of its named routes (history or latest). Prefer the named routes, which are described in full.\n\nReference: https://dataminal.com/nigeria/interest-rates?tab=api",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/population/latest": {
      "get": {
        "tags": [
          "Population"
        ],
        "operationId": "population__latest",
        "summary": "Latest year",
        "description": "Nigeria and the 36 states and the FCT for the newest year a publication prints the states, largest first, with the year in year. The same as the dataset's base route.\n\nReference: https://dataminal.com/nigeria/population?tab=api",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/population/states": {
      "get": {
        "tags": [
          "Population"
        ],
        "operationId": "population__states",
        "summary": "States for one year",
        "description": "The 36 states and the FCT, with Nigeria's total, for one year: 2012 to 2020 or 2023. No publication prints the states for 2021 or 2022. For 2012 to 2015 the newest publication that prints the states is older than the one behind Nigeria's current total, so the states do not add up to it.\n\nReference: https://dataminal.com/nigeria/population?tab=api",
        "parameters": [
          {
            "name": "year",
            "in": "query",
            "required": false,
            "description": "The year. Default: the newest year with state figures.",
            "schema": {
              "type": "integer"
            },
            "example": 2020
          },
          {
            "name": "sex",
            "in": "query",
            "required": false,
            "description": "total (default), male or female.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "vintage",
            "in": "query",
            "required": false,
            "description": "current (default, the newest publication's figure for each year), all (every publication's), or one publication, e.g. nbs-dsb-2020, to compare years inside one projection.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "estimate_type",
            "in": "query",
            "required": false,
            "description": "census, official_projection or derived.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "include_flagged",
            "in": "query",
            "required": false,
            "description": "true brings back rows flagged duplicate_figure_conflict (two printings of one figure that disagree). Default false.",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/population/series": {
      "get": {
        "tags": [
          "Population"
        ],
        "operationId": "population__series",
        "summary": "Series for one place",
        "description": "One place over time, oldest year first: a measure, a sex and an age group. With vintage=all every publication's figure is returned, one row each, so a restatement shows as two values for one year. vintage_break marks a current row whose year before comes from another projection: growth across it is a change of projection, not of population.\n\nReference: https://dataminal.com/nigeria/population?tab=api",
        "parameters": [
          {
            "name": "geography",
            "in": "query",
            "required": false,
            "description": "Required. nigeria, or a state key such as lagos, akwa_ibom or fct (state is accepted as an alias).",
            "schema": {
              "type": "string"
            },
            "example": "lagos"
          },
          {
            "name": "measure",
            "in": "query",
            "required": false,
            "description": "population (default), sex_ratio, population_growth_rate, total_dependency_ratio, youth_dependency_ratio or old_age_dependency_ratio; the vital rates also read here, though /vital-rates is the route for them.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sex",
            "in": "query",
            "required": false,
            "description": "total (default), male or female.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "age_group",
            "in": "query",
            "required": false,
            "description": "all (default), a single age (17), a group (15-19) or an open group (80+).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "description": "Earliest year, inclusive, e.g. 2016.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "description": "Latest year, inclusive.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "vintage",
            "in": "query",
            "required": false,
            "description": "current (default, the newest publication's figure for each year), all (every publication's), or one publication, e.g. nbs-dsb-2020, to compare years inside one projection.",
            "schema": {
              "type": "string"
            },
            "example": "all"
          },
          {
            "name": "estimate_type",
            "in": "query",
            "required": false,
            "description": "census, official_projection or derived.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "include_flagged",
            "in": "query",
            "required": false,
            "description": "true brings back rows flagged duplicate_figure_conflict (two printings of one figure that disagree). Default false.",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Default 500, maximum 5000 (500 from the site).",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/population/age-structure": {
      "get": {
        "tags": [
          "Population"
        ],
        "operationId": "population__age_structure",
        "summary": "Age structure",
        "description": "Nigeria's population by age and sex for one year, 2018 to 2023. five_year returns the five-year groups the publication prints (to 80+ to 2022, to 85+ in 2023) and the 65+ Dataminal sums from them; broad returns 0-14, 15-64 and 65+; single returns single years of age (2018 to 2022). Where a table prints no total by age, the total is male + female and estimate_type is derived.\n\nReference: https://dataminal.com/nigeria/population?tab=api",
        "parameters": [
          {
            "name": "year",
            "in": "query",
            "required": false,
            "description": "Required. The year, e.g. 2023.",
            "schema": {
              "type": "integer"
            },
            "example": 2023
          },
          {
            "name": "granularity",
            "in": "query",
            "required": false,
            "description": "five_year (default), broad or single.",
            "schema": {
              "type": "string"
            },
            "example": "broad"
          },
          {
            "name": "sex",
            "in": "query",
            "required": false,
            "description": "total, male or female. Default: all three.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "vintage",
            "in": "query",
            "required": false,
            "description": "current (default, the newest publication's figure for each year), all (every publication's), or one publication, e.g. nbs-dsb-2020, to compare years inside one projection.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/population/vital-rates": {
      "get": {
        "tags": [
          "Population"
        ],
        "operationId": "population__vital_rates",
        "summary": "Vital rates",
        "description": "The states' crude birth and death rates (per 1,000 population), total fertility (births per woman), infant mortality (per 1,000 live births) and life expectancy at birth (years, by sex; also for Nigeria), 2015 to 2022, as the Commission projects them. Many states share identical life expectancies: the Commission assigns them by group.\n\nReference: https://dataminal.com/nigeria/population?tab=api",
        "parameters": [
          {
            "name": "measure",
            "in": "query",
            "required": false,
            "description": "crude_birth_rate, crude_death_rate, total_fertility_rate, infant_mortality_rate or life_expectancy_at_birth. Default: all five.",
            "schema": {
              "type": "string"
            },
            "example": "crude_birth_rate"
          },
          {
            "name": "geography",
            "in": "query",
            "required": false,
            "description": "nigeria or a state key.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "year",
            "in": "query",
            "required": false,
            "description": "One year, 2015 to 2022.",
            "schema": {
              "type": "integer"
            },
            "example": 2022
          },
          {
            "name": "sex",
            "in": "query",
            "required": false,
            "description": "total, male or female (life expectancy is by sex).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "vintage",
            "in": "query",
            "required": false,
            "description": "current (default, the newest publication's figure for each year), all (every publication's), or one publication, e.g. nbs-dsb-2020, to compare years inside one projection.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Default 2000, maximum 5000.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/population/denominator": {
      "get": {
        "tags": [
          "Population"
        ],
        "operationId": "population__denominator",
        "summary": "Per-capita denominator",
        "description": "The population to divide by for a per-capita figure: the same place and year, from the current publication. A year no publication prints for that place is refused (an empty data array, match none, and the nearest earlier year) unless allow_nearest=true, which returns the nearest earlier year with match nearest_earlier, year_gap and a caveat to carry with the figure.\n\nReference: https://dataminal.com/nigeria/population?tab=api",
        "parameters": [
          {
            "name": "geography",
            "in": "query",
            "required": false,
            "description": "Required. nigeria or a state key.",
            "schema": {
              "type": "string"
            },
            "example": "lagos"
          },
          {
            "name": "year",
            "in": "query",
            "required": false,
            "description": "Required. The year of the figure being divided.",
            "schema": {
              "type": "integer"
            },
            "example": 2023
          },
          {
            "name": "sex",
            "in": "query",
            "required": false,
            "description": "total (default), male or female.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "allow_nearest",
            "in": "query",
            "required": false,
            "description": "true accepts the nearest earlier year when the year asked for is not printed. Default false.",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/population/checks": {
      "get": {
        "tags": [
          "Population"
        ],
        "operationId": "population__checks",
        "summary": "Arithmetic checks",
        "description": "The checks each publication was put through, per year: male + female against the total, the states against the national total printed with them, the age groups against the total, all 37 states present, and two tables of one publication against each other. A failure is recorded and flags the figure (informational); nothing is corrected.\n\nReference: https://dataminal.com/nigeria/population?tab=api",
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "required": false,
            "description": "pass, fail or not_applicable.",
            "schema": {
              "type": "string"
            },
            "example": "fail"
          },
          {
            "name": "vintage",
            "in": "query",
            "required": false,
            "description": "One publication, e.g. nbs-dsb-2020.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/population/releases": {
      "get": {
        "tags": [
          "Population"
        ],
        "operationId": "population__releases",
        "summary": "Publications read",
        "description": "Every publication read, newest first, each a vintage: its NBS link, posting date and the basis of that date, the years it prints, how many figures were read from it and how many checks it failed.\n\nReference: https://dataminal.com/nigeria/population?tab=api",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/population/methodologies": {
      "get": {
        "tags": [
          "Population"
        ],
        "operationId": "population__methodologies",
        "summary": "Methodology notes",
        "description": "Definitions and caveats, one row per topic: census, projection and derived figures; vintages and the rebasing; coverage; per-capita figures; vital rates; the checks; defects in the source; where the figures come from.\n\nReference: https://dataminal.com/nigeria/population?tab=api",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "data": [
                    {
                      "topic": "vintages",
                      "title": "Vintages: the projections were rebased",
                      "body": "..."
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/population": {
      "get": {
        "tags": [
          "Population"
        ],
        "operationId": "population__root",
        "summary": "Default view",
        "description": "The dataset's default rows: the same as one of its named routes (history or latest). Prefer the named routes, which are described in full.\n\nReference: https://dataminal.com/nigeria/population?tab=api",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/banking-credit/latest": {
      "get": {
        "tags": [
          "Banking and credit"
        ],
        "operationId": "banking_and_credit__latest",
        "summary": "Latest",
        "description": "The headline figures, each at its newest period: banks' total sectoral credit with its month and year changes, total assets, loans, deposits, the foreign-currency share of deposits (Dataminal-derived), the latest liquidity and loan-to-deposit ratios and the latest daily liquidity.\n\nReference: https://dataminal.com/nigeria/banking-credit?tab=api",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/banking-credit/history": {
      "get": {
        "tags": [
          "Banking and credit"
        ],
        "operationId": "banking_and_credit__history",
        "summary": "History",
        "description": "One series over time, newest statement of each period, with Dataminal-derived changes: per cent for stocks, percentage points for ratios. Name a metric from /metrics, a sector, or a balance-sheet line.\n\nReference: https://dataminal.com/nigeria/banking-credit?tab=api",
        "parameters": [
          {
            "name": "metric",
            "in": "query",
            "required": false,
            "description": "e.g. dmb_credit_total, credit_agriculture, total_assets, deposits_in_broad_money, liquidity_ratio, liquidity_opening_balance.",
            "schema": {
              "type": "string"
            },
            "example": "dmb_credit_total"
          },
          {
            "name": "sector",
            "in": "query",
            "required": false,
            "description": "A sector id; with classification=cbn_sectoral_2007 for January 2007 to January 2015.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "line",
            "in": "query",
            "required": false,
            "description": "A balance-sheet line_id from /balance-sheet.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "description": "Same grain as the series: YYYY-MM, YYYY-Qn, YYYY or YYYY-MM-DD.",
            "schema": {
              "type": "string"
            },
            "example": "2021-01"
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "description": "Same grain as the series.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Default 600 (5000 for daily), maximum 20000.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/banking-credit/sectors": {
      "get": {
        "tags": [
          "Banking and credit"
        ],
        "operationId": "banking_and_credit__sectors",
        "summary": "Credit by sector",
        "description": "Every sector in one month, with its share of the CBN's own total and its change on a year. From September 2025 the columns sum to more than the total; the response says so.\n\nReference: https://dataminal.com/nigeria/banking-credit?tab=api",
        "parameters": [
          {
            "name": "period",
            "in": "query",
            "required": false,
            "description": "YYYY-MM. Omit for the newest.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "classification",
            "in": "query",
            "required": false,
            "description": "cbn_sectoral_2015 (default) or cbn_sectoral_2007.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/banking-credit/balance-sheet": {
      "get": {
        "tags": [
          "Banking and credit"
        ],
        "operationId": "banking_and_credit__balance_sheet",
        "summary": "Balance sheet",
        "description": "Commercial and merchant banks' 2SR balance sheet for one month. Aggregate lines by default (they add up); detail=true adds every line (detail lines can nest and must not be summed).\n\nReference: https://dataminal.com/nigeria/banking-credit?tab=api",
        "parameters": [
          {
            "name": "period",
            "in": "query",
            "required": false,
            "description": "YYYY-MM. Omit for the newest.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "side",
            "in": "query",
            "required": false,
            "description": "assets or liabilities.",
            "schema": {
              "type": "string"
            },
            "example": "liabilities"
          },
          {
            "name": "detail",
            "in": "query",
            "required": false,
            "description": "true for every line.",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/banking-credit/ratios": {
      "get": {
        "tags": [
          "Banking and credit"
        ],
        "operationId": "banking_and_credit__ratios",
        "summary": "Ratios",
        "description": "The banking system's actual liquidity ratio and loan-to-deposit ratio, and the prescribed maximum loan-to-deposit ratio, in per cent. A year's figure is the average of its four quarter-ends where quarters are printed.\n\nReference: https://dataminal.com/nigeria/banking-credit?tab=api",
        "parameters": [
          {
            "name": "frequency",
            "in": "query",
            "required": false,
            "description": "quarter (default) or year.",
            "schema": {
              "type": "string"
            },
            "example": "year"
          },
          {
            "name": "ratio",
            "in": "query",
            "required": false,
            "description": "liquidity_ratio or loan_to_deposit_ratio.",
            "schema": {
              "type": "string"
            },
            "example": "loan_to_deposit_ratio"
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "description": "YYYY-Qn or YYYY.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/banking-credit/liquidity": {
      "get": {
        "tags": [
          "Banking and credit"
        ],
        "operationId": "banking_and_credit__liquidity",
        "summary": "Daily liquidity",
        "description": "The CBN's daily banking-liquidity statement in naira million: banks' opening balance at the CBN (a balance) and the day's operations. Defaults to the last 120 days.\n\nReference: https://dataminal.com/nigeria/banking-credit?tab=api",
        "parameters": [
          {
            "name": "item",
            "in": "query",
            "required": false,
            "description": "e.g. opening_balance, standing_deposit_facility, omo_sales.",
            "schema": {
              "type": "string"
            },
            "example": "opening_balance"
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "description": "YYYY-MM-DD.",
            "schema": {
              "type": "string"
            },
            "example": "2026-01-01"
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "description": "YYYY-MM-DD.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/banking-credit/revisions": {
      "get": {
        "tags": [
          "Banking and credit"
        ],
        "operationId": "banking_and_credit__revisions",
        "summary": "Revisions",
        "description": "Figures a later CBN statement changed, with the value each replaced.\n\nReference: https://dataminal.com/nigeria/banking-credit?tab=api",
        "parameters": [
          {
            "name": "table",
            "in": "query",
            "required": false,
            "description": "sectoral_credit (default), balance_sheet, ratios or liquidity.",
            "schema": {
              "type": "string"
            },
            "example": "balance_sheet"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Default 200, maximum 5000.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/banking-credit/metrics": {
      "get": {
        "tags": [
          "Banking and credit"
        ],
        "operationId": "banking_and_credit__metrics",
        "summary": "Metrics",
        "description": "Every named metric with its unit, measure kind (stock, ratio, balance, daily flow), frequency and coverage.\n\nReference: https://dataminal.com/nigeria/banking-credit?tab=api",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/banking-credit/methodologies": {
      "get": {
        "tags": [
          "Banking and credit"
        ],
        "operationId": "banking_and_credit__methodologies",
        "summary": "Methodology notes",
        "description": "The breaks, definitions and gaps to know before comparing or summing figures.\n\nReference: https://dataminal.com/nigeria/banking-credit?tab=api",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/banking-credit/releases": {
      "get": {
        "tags": [
          "Banking and credit"
        ],
        "operationId": "banking_and_credit__releases",
        "summary": "Editions read",
        "description": "The CBN bulletin editions read, with what each contributed.\n\nReference: https://dataminal.com/nigeria/banking-credit?tab=api",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Default 100.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/banking-credit/download": {
      "get": {
        "tags": [
          "Banking and credit"
        ],
        "operationId": "banking_and_credit__download",
        "summary": "Whole-dataset file",
        "description": "A link, valid for five minutes, to one whole-dataset file. For signed-in readers (5 downloads a day, shared with CSVs from the site) and API keys (20 a day on a Developer key). Files: nigeria-banking-credit.xlsx, sectoral-credit.csv, balance-sheet.csv, ratios.csv, liquidity.csv, downloads.json.\n\nReference: https://dataminal.com/nigeria/banking-credit?tab=api",
        "parameters": [
          {
            "name": "file",
            "in": "query",
            "required": true,
            "description": "One of: nigeria-banking-credit.xlsx, sectoral-credit.csv, balance-sheet.csv, ratios.csv, liquidity.csv, downloads.json.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/banking-credit": {
      "get": {
        "tags": [
          "Banking and credit"
        ],
        "operationId": "banking_and_credit__root",
        "summary": "Default view",
        "description": "The dataset's default rows: the same as one of its named routes (history or latest). Prefer the named routes, which are described in full.\n\nReference: https://dataminal.com/nigeria/banking-credit?tab=api",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/private-capital/latest": {
      "get": {
        "tags": [
          "Private equity and infrastructure funds"
        ],
        "operationId": "private_equity_and_infrastructure_funds__latest",
        "summary": "Latest",
        "description": "The newest SEC quarter: which quarter it is and when the SEC uploaded it, how many funds (combined lines counted as their funds) overall and by type, naira totals of each measure with quarter and year changes, target sizes per currency, the five largest funds, funds that entered or left in the last four quarters, and manager concentration.\n\nReference: https://dataminal.com/nigeria/private-capital?tab=api",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/private-capital/funds": {
      "get": {
        "tags": [
          "Private equity and infrastructure funds"
        ],
        "operationId": "private_equity_and_infrastructure_funds__funds",
        "summary": "Funds",
        "description": "Every fund in one quarter (default the newest), one row per fund with its naira measures, target size and currency, manager and quality flags, largest committed capital first. Paged with limit and offset.\n\nReference: https://dataminal.com/nigeria/private-capital?tab=api",
        "parameters": [
          {
            "name": "quarter",
            "in": "query",
            "required": false,
            "description": "YYYY-Qn, e.g. 2024-Q2. Omit for the newest.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "fund_type",
            "in": "query",
            "required": false,
            "description": "private_equity or infrastructure.",
            "schema": {
              "type": "string"
            },
            "example": "infrastructure"
          },
          {
            "name": "manager",
            "in": "query",
            "required": false,
            "description": "Part of a manager's name.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "fund",
            "in": "query",
            "required": false,
            "description": "A fund_id or part of its name.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "currency",
            "in": "query",
            "required": false,
            "description": "NGN or USD: the currency of the fund's target size.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Default 100, maximum 500.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "description": "Rows to skip.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/private-capital/history": {
      "get": {
        "tags": [
          "Private equity and infrastructure funds"
        ],
        "operationId": "private_equity_and_infrastructure_funds__history",
        "summary": "History",
        "description": "One series by quarter: fund_count (with private equity and infrastructure), new_funds, removed_funds, or a naira measure summed over funds (or for one fund with fund=). Changes are Dataminal's, against the previous quarter and the same quarter a year earlier.\n\nReference: https://dataminal.com/nigeria/private-capital?tab=api",
        "parameters": [
          {
            "name": "metric",
            "in": "query",
            "required": false,
            "description": "fund_count, new_funds, committed_capital, drawdown, investments_value, other_assets, total_aum, total_income, target_size ...",
            "schema": {
              "type": "string"
            },
            "example": "committed_capital"
          },
          {
            "name": "fund",
            "in": "query",
            "required": false,
            "description": "A fund_id, for one fund's series.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "fund_type",
            "in": "query",
            "required": false,
            "description": "private_equity or infrastructure.",
            "schema": {
              "type": "string"
            },
            "example": "infrastructure"
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "description": "YYYY-Qn.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "description": "YYYY-Qn.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/private-capital/managers": {
      "get": {
        "tags": [
          "Private equity and infrastructure funds"
        ],
        "operationId": "private_equity_and_infrastructure_funds__managers",
        "summary": "Managers",
        "description": "Fund managers in one quarter with the number of funds each runs, their naira total and share, and concentration measures.\n\nReference: https://dataminal.com/nigeria/private-capital?tab=api",
        "parameters": [
          {
            "name": "quarter",
            "in": "query",
            "required": false,
            "description": "YYYY-Qn. Omit for the newest.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "metric",
            "in": "query",
            "required": false,
            "description": "committed_capital (default), drawdown, investments_value, other_assets or total_aum.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/private-capital/changes": {
      "get": {
        "tags": [
          "Private equity and infrastructure funds"
        ],
        "operationId": "private_equity_and_infrastructure_funds__changes",
        "summary": "Changes",
        "description": "Funds that entered or left the SEC's list, and changes of manager, type, target size or registration date, quarter by quarter.\n\nReference: https://dataminal.com/nigeria/private-capital?tab=api",
        "parameters": [
          {
            "name": "type",
            "in": "query",
            "required": false,
            "description": "new_fund, removed_fund, manager_change, ...",
            "schema": {
              "type": "string"
            },
            "example": "new_fund"
          },
          {
            "name": "fund",
            "in": "query",
            "required": false,
            "description": "A fund_id.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "description": "YYYY-Qn.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/private-capital/metrics": {
      "get": {
        "tags": [
          "Private equity and infrastructure funds"
        ],
        "operationId": "private_equity_and_infrastructure_funds__metrics",
        "summary": "Metrics",
        "description": "Every measure with its unit, kind (stock, year to date, stated target, count), coverage and how it may be added.\n\nReference: https://dataminal.com/nigeria/private-capital?tab=api",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/private-capital/releases": {
      "get": {
        "tags": [
          "Private equity and infrastructure funds"
        ],
        "operationId": "private_equity_and_infrastructure_funds__releases",
        "summary": "Releases",
        "description": "Every SEC workbook read: the date the SEC lists, the day it uploaded the file, its hash, status and quality counts.\n\nReference: https://dataminal.com/nigeria/private-capital?tab=api",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Default 100.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/private-capital/restatements": {
      "get": {
        "tags": [
          "Private equity and infrastructure funds"
        ],
        "operationId": "private_equity_and_infrastructure_funds__restatements",
        "summary": "Restatements",
        "description": "Figures a later SEC workbook printed differently for an earlier quarter. The quarter's own workbook is what Dataminal serves.\n\nReference: https://dataminal.com/nigeria/private-capital?tab=api",
        "parameters": [
          {
            "name": "fund",
            "in": "query",
            "required": false,
            "description": "A fund_id.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/private-capital/methodologies": {
      "get": {
        "tags": [
          "Private equity and infrastructure funds"
        ],
        "operationId": "private_equity_and_infrastructure_funds__methodologies",
        "summary": "Methodology notes",
        "description": "Definitions, breaks and gaps to read before comparing quarters or adding across currencies.\n\nReference: https://dataminal.com/nigeria/private-capital?tab=api",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/private-capital/download": {
      "get": {
        "tags": [
          "Private equity and infrastructure funds"
        ],
        "operationId": "private_equity_and_infrastructure_funds__download",
        "summary": "Whole-dataset file",
        "description": "A link, valid for five minutes, to one whole-dataset file. For signed-in readers (5 downloads a day, shared with CSVs from the site) and API keys (20 a day on a Developer key). Files: nigeria-private-capital.xlsx, latest-funds.csv, fund-quarters.csv, funds.csv, changes.csv, releases.csv, downloads.json.\n\nReference: https://dataminal.com/nigeria/private-capital?tab=api",
        "parameters": [
          {
            "name": "file",
            "in": "query",
            "required": true,
            "description": "One of: nigeria-private-capital.xlsx, latest-funds.csv, fund-quarters.csv, funds.csv, changes.csv, releases.csv, downloads.json.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/private-capital": {
      "get": {
        "tags": [
          "Private equity and infrastructure funds"
        ],
        "operationId": "private_equity_and_infrastructure_funds__root",
        "summary": "Default view",
        "description": "The dataset's default rows: the same as one of its named routes (history or latest). Prefer the named routes, which are described in full.\n\nReference: https://dataminal.com/nigeria/private-capital?tab=api",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/fixed-income/latest": {
      "get": {
        "tags": [
          "Fixed income"
        ],
        "operationId": "fixed_income__latest",
        "summary": "Latest auctions",
        "description": "The newest auction of each family: every tenor of the latest Treasury bill auction, the latest OMO day and the latest DMO bond auction, each line as the publisher reported it.\n\nReference: https://dataminal.com/nigeria/fixed-income?tab=api",
        "parameters": [
          {
            "name": "instrument",
            "in": "query",
            "required": false,
            "description": "ntb, omo_bill, fgn_bond, nigerian_treasury_bond or cbn_certificate. Omit for ntb, omo_bill and fgn_bond together.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/fixed-income/rates": {
      "get": {
        "tags": [
          "Fixed income"
        ],
        "operationId": "fixed_income__rates",
        "summary": "Stop rates",
        "description": "One benchmark's stop rate at every auction, newest first. Treasury bills need a tenor of 91, 182 or 364 days; a bond tenor is its original tenor in years, not its time to maturity.\n\nReference: https://dataminal.com/nigeria/fixed-income?tab=api",
        "parameters": [
          {
            "name": "instrument",
            "in": "query",
            "required": false,
            "description": "ntb (default), omo_bill or fgn_bond.",
            "schema": {
              "type": "string"
            },
            "example": "ntb"
          },
          {
            "name": "tenor",
            "in": "query",
            "required": false,
            "description": "Required for ntb: 91, 182 or 364. For fgn_bond, the original tenor in years.",
            "schema": {
              "type": "integer"
            },
            "example": 91
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "description": "Earliest auction date, YYYY-MM-DD, inclusive.",
            "schema": {
              "type": "string"
            },
            "example": "2025-01-01"
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "description": "Latest auction date, YYYY-MM-DD, inclusive.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "include_flagged",
            "in": "query",
            "required": false,
            "description": "true brings back rows with a suspect quality flag. Default false.",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Default 500, maximum 5000.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/fixed-income/auctions": {
      "get": {
        "tags": [
          "Fixed income"
        ],
        "operationId": "fixed_income__auctions",
        "summary": "Auction lines",
        "description": "Every auction line, filtered. One row is one security at one auction. `vintage=all` returns every stored version of a line, the CBN's cross-check of a DMO bond line and any copy the CBN typed in twice.\n\nReference: https://dataminal.com/nigeria/fixed-income?tab=api",
        "parameters": [
          {
            "name": "instrument",
            "in": "query",
            "required": false,
            "description": "ntb, omo_bill, fgn_bond, nigerian_treasury_bond or cbn_certificate.",
            "schema": {
              "type": "string"
            },
            "example": "fgn_bond"
          },
          {
            "name": "operation",
            "in": "query",
            "required": false,
            "description": "primary_auction, open_market_operation or unstated.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "source",
            "in": "query",
            "required": false,
            "description": "cbn or dmo.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "description": "Earliest auction date, YYYY-MM-DD, inclusive.",
            "schema": {
              "type": "string"
            },
            "example": "2026-01-01"
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "description": "Latest auction date, YYYY-MM-DD, inclusive.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "tenor_days",
            "in": "query",
            "required": false,
            "description": "An exact tenor in days.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "tenor_min",
            "in": "query",
            "required": false,
            "description": "Shortest tenor in days.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "tenor_max",
            "in": "query",
            "required": false,
            "description": "Longest tenor in days.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "tenor_years",
            "in": "query",
            "required": false,
            "description": "A bond's original tenor in years.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "security_id",
            "in": "query",
            "required": false,
            "description": "e.g. fgn-2036-09-16-16.79 or ntb-2026-12-24.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "include_flagged",
            "in": "query",
            "required": false,
            "description": "true brings back rows with a suspect quality flag. Default false.",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "vintage",
            "in": "query",
            "required": false,
            "description": "default (one row per line) or all.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "order",
            "in": "query",
            "required": false,
            "description": "desc (default) or asc, by auction date.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Default 200, maximum 5000.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/fixed-income/summary": {
      "get": {
        "tags": [
          "Fixed income"
        ],
        "operationId": "fixed_income__summary",
        "summary": "Monthly and yearly summary",
        "description": "Offered, bid for and sold, with the bid-to-offer ratio and the stop rate weighted by what each line sold, per instrument per month or year. Every `_derived` figure is Dataminal's arithmetic, and suspect rows are never counted.\n\nReference: https://dataminal.com/nigeria/fixed-income?tab=api",
        "parameters": [
          {
            "name": "frequency",
            "in": "query",
            "required": false,
            "description": "month (default) or year.",
            "schema": {
              "type": "string"
            },
            "example": "month"
          },
          {
            "name": "instrument",
            "in": "query",
            "required": false,
            "description": "ntb, omo_bill, fgn_bond, nigerian_treasury_bond or cbn_certificate.",
            "schema": {
              "type": "string"
            },
            "example": "fgn_bond"
          },
          {
            "name": "operation",
            "in": "query",
            "required": false,
            "description": "primary_auction, open_market_operation or unstated.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "description": "Earliest auction date, YYYY-MM-DD, inclusive.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "description": "Latest auction date, YYYY-MM-DD, inclusive.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Default 300, maximum 5000.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/fixed-income/securities": {
      "get": {
        "tags": [
          "Fixed income"
        ],
        "operationId": "fixed_income__securities",
        "summary": "FGN bonds",
        "description": "One row per FGN bond the DMO has auctioned, identified by maturity and coupon because no ISIN is published: how often it has been sold, when it was first and last auctioned, and its stop rates.\n\nReference: https://dataminal.com/nigeria/fixed-income?tab=api",
        "parameters": [
          {
            "name": "from",
            "in": "query",
            "required": false,
            "description": "Earliest auction date, YYYY-MM-DD, inclusive.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "description": "Latest auction date, YYYY-MM-DD, inclusive.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Default 200, maximum 1000.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "dataset": "nigeria_fixed_income",
                  "source": "Central Bank of Nigeria (bills, OMO, CBN certificates); Debt Management Office (FGN bonds)",
                  "unit": "naira million; rates in per cent",
                  "data": [
                    {
                      "security_id": "fgn-2036-09-16-16.79",
                      "security_name": "16.79% FGN SEP 2036",
                      "coupon_rate": 16.79,
                      "maturity_date": "2036-09-16",
                      "auctions": 1,
                      "first_auction_date": "2026-09-14",
                      "last_auction_date": "2026-09-14",
                      "first_auction_issue_type": "new_issue",
                      "last_marginal_rate": 16.79,
                      "lowest_marginal_rate": 16.79,
                      "highest_marginal_rate": 16.79
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/fixed-income/revisions": {
      "get": {
        "tags": [
          "Fixed income"
        ],
        "operationId": "fixed_income__revisions",
        "summary": "Revisions",
        "description": "Every version of each record a publisher has changed since Dataminal first read it. The CBN corrects records in place without notice; each version is what the feed said from `first_seen_at` until `superseded_at`.\n\nReference: https://dataminal.com/nigeria/fixed-income?tab=api",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Default 100, maximum 2000.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/fixed-income/reconciliation": {
      "get": {
        "tags": [
          "Fixed income"
        ],
        "operationId": "fixed_income__reconciliation",
        "summary": "CBN against DMO",
        "description": "Where the CBN and the DMO both report an FGN bond auction, each figure compared. The DMO's line is the default; the CBN's is kept as a cross-check.\n\nReference: https://dataminal.com/nigeria/fixed-income?tab=api",
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "required": false,
            "description": "match, mismatch, cbn_missing, dmo_missing or not_comparable.",
            "schema": {
              "type": "string"
            },
            "example": "mismatch"
          },
          {
            "name": "field",
            "in": "query",
            "required": false,
            "description": "amount_offered, amount_subscribed, amount_allotted or marginal_rate.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Default 200, maximum 5000.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/fixed-income/quality": {
      "get": {
        "tags": [
          "Fixed income"
        ],
        "operationId": "fixed_income__quality",
        "summary": "Quality flags",
        "description": "How many default rows carry each quality code, by instrument, and whether the code is suspect. A suspect code takes a row out of default reads and every aggregate.\n\nReference: https://dataminal.com/nigeria/fixed-income?tab=api",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/fixed-income/releases": {
      "get": {
        "tags": [
          "Fixed income"
        ],
        "operationId": "fixed_income__releases",
        "summary": "Releases",
        "description": "Every snapshot of the CBN's feed and every DMO document taken in, newest first, with what each contributed and what happened to the ones that could not be read.\n\nReference: https://dataminal.com/nigeria/fixed-income?tab=api",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Default 300, maximum 2000.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/fixed-income/methodologies": {
      "get": {
        "tags": [
          "Fixed income"
        ],
        "operationId": "fixed_income__methodologies",
        "summary": "Methodology notes",
        "description": "Definitions and caveats, one row per topic: what is auctioned, who publishes what, what a stop rate and an allotment are, the CBN's units, revisions and known gaps.\n\nReference: https://dataminal.com/nigeria/fixed-income?tab=api",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "count": 14,
                  "data": [
                    {
                      "topic": "marginal_rate",
                      "title": "Marginal (stop) rate",
                      "applies_to": "all",
                      "body": "The rate at which the auction cleared ..."
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/fixed-income": {
      "get": {
        "tags": [
          "Fixed income"
        ],
        "operationId": "fixed_income__root",
        "summary": "Default view",
        "description": "The dataset's default rows: the same as one of its named routes (history or latest). Prefer the named routes, which are described in full.\n\nReference: https://dataminal.com/nigeria/fixed-income?tab=api",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/monetary/latest": {
      "get": {
        "tags": [
          "Monetary"
        ],
        "operationId": "monetary__latest",
        "summary": "Where policy stands now",
        "description": "The newest observation of the five headline series and the MPC decision in force, so one request answers reserves, the policy rate, the Cash Reserve Ratio, the Liquidity Ratio and broad money.\n\nReference: https://dataminal.com/nigeria/monetary?tab=api",
        "parameters": [
          {
            "name": "indicator",
            "in": "query",
            "required": false,
            "description": "One indicator id, such as external_reserves_gross, mpr_monthly or money_supply_m3.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "category",
            "in": "query",
            "required": false,
            "description": "external_reserves, policy_rate, interest_rate, money_supply or credit.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "count": 5,
                  "data": [
                    {
                      "indicator_id": "external_reserves_gross",
                      "indicator_name": "External reserves, gross",
                      "indicator_category": "external_reserves",
                      "period": "2026-09-10",
                      "frequency": "daily",
                      "value": 54410031673.72,
                      "unit": "US dollars",
                      "value_quality": "ok",
                      "change_pct_period": 0.125,
                      "change_yoy_pct": 30.72,
                      "source_series_name": "Gross External Reserves"
                    }
                  ],
                  "policy": {
                    "decision_date": "2026-07-21",
                    "meeting_number": 306,
                    "mpr_pct": 26.5,
                    "mpr_direction": "held",
                    "crr_deposit_money_banks_in_force_pct": 45,
                    "crr_merchant_banks_in_force_pct": 16,
                    "crr_public_sector_non_tsa_in_force_pct": 75,
                    "liquidity_ratio_in_force_pct": 30,
                    "liquidity_ratio_restated": false,
                    "mpr_decision_source": "Retain the Monetary Policy Rate at 26.5 per cent."
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/monetary/history": {
      "get": {
        "tags": [
          "Monetary"
        ],
        "operationId": "monetary__history",
        "summary": "Any series over time",
        "description": "Observations newest first. Name an indicator: without one the response mixes every series and is hard to read. Units differ by series and are never converted.\n\nReference: https://dataminal.com/nigeria/monetary?tab=api",
        "parameters": [
          {
            "name": "indicator",
            "in": "query",
            "required": false,
            "description": "One indicator id, such as external_reserves_gross, mpr_monthly or money_supply_m3.",
            "schema": {
              "type": "string"
            },
            "example": "mpr_monthly"
          },
          {
            "name": "category",
            "in": "query",
            "required": false,
            "description": "external_reserves, policy_rate, interest_rate, money_supply or credit.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "frequency",
            "in": "query",
            "required": false,
            "description": "daily or monthly.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "year",
            "in": "query",
            "required": false,
            "description": "Calendar year of the period, e.g. 2026.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "start_date",
            "in": "query",
            "required": false,
            "description": "Earliest period end, YYYY-MM-DD.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "end_date",
            "in": "query",
            "required": false,
            "description": "Latest period end, YYYY-MM-DD.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum rows. Defaults to 500.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "count": 2,
                  "data": [
                    {
                      "indicator_id": "mpr_monthly",
                      "period": "2026-07",
                      "period_end": "2026-07-31",
                      "frequency": "monthly",
                      "value": 26.5,
                      "unit": "per cent",
                      "value_quality": "ok",
                      "previous_value": 26.5,
                      "change_period": 0,
                      "change_yoy_pct": -3.64
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/monetary/reserves": {
      "get": {
        "tags": [
          "Monetary"
        ],
        "operationId": "monetary__reserves",
        "summary": "External reserves",
        "description": "The gross, liquid and blocked balances the CBN publishes each business day, in US dollars, from April 2006.\n\nReference: https://dataminal.com/nigeria/monetary?tab=api",
        "parameters": [
          {
            "name": "year",
            "in": "query",
            "required": false,
            "description": "Calendar year of the period, e.g. 2026.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "start_date",
            "in": "query",
            "required": false,
            "description": "Earliest period end, YYYY-MM-DD.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "end_date",
            "in": "query",
            "required": false,
            "description": "Latest period end, YYYY-MM-DD.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum rows. Defaults to 500.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "count": 3,
                  "data": [
                    {
                      "indicator_id": "external_reserves_gross",
                      "period": "2026-09-10",
                      "value": 54410031673.72,
                      "unit": "US dollars",
                      "change_pct_period": 0.125,
                      "change_yoy_pct": 30.72,
                      "value_quality": "ok"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/monetary/policy-rate": {
      "get": {
        "tags": [
          "Monetary"
        ],
        "operationId": "monetary__policy_rate",
        "summary": "Monetary Policy Committee decisions",
        "description": "Every meeting since September 2015 with the rate it set, the change in basis points, how long that rate stood, and the reserve requirement and liquidity ratio in force afterwards. The _pct columns carry only what a meeting stated; the _in_force_pct columns carry what stood after it.\n\nReference: https://dataminal.com/nigeria/monetary?tab=api",
        "parameters": [
          {
            "name": "year",
            "in": "query",
            "required": false,
            "description": "Calendar year of the period, e.g. 2026.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "start_date",
            "in": "query",
            "required": false,
            "description": "Earliest period end, YYYY-MM-DD.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "end_date",
            "in": "query",
            "required": false,
            "description": "Latest period end, YYYY-MM-DD.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum rows. Defaults to 500.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "count": 60,
                  "data": [
                    {
                      "decision_id": "mpc-306",
                      "meeting_number": 306,
                      "decision_date": "2026-07-21",
                      "mpr_pct": 26.5,
                      "previous_mpr_pct": 26.5,
                      "mpr_change_bps": 0,
                      "mpr_direction": "held",
                      "days_at_rate": null,
                      "is_current": true,
                      "crr_deposit_money_banks_pct": 45,
                      "liquidity_ratio_pct": null,
                      "liquidity_ratio_in_force_pct": 30,
                      "liquidity_ratio_restated": false,
                      "mpr_decision_source": "Retain the Monetary Policy Rate at 26.5 per cent."
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/monetary/indicators": {
      "get": {
        "tags": [
          "Monetary"
        ],
        "operationId": "monetary__indicators",
        "summary": "The series catalogue",
        "description": "Every indicator with its category, frequency, unit, the CBN series it comes from and how far its history runs. Use it to find an indicator id.\n\nReference: https://dataminal.com/nigeria/monetary?tab=api",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "count": 23,
                  "data": [
                    {
                      "indicator_id": "external_reserves_gross",
                      "indicator_name": "External reserves, gross",
                      "indicator_category": "external_reserves",
                      "frequency": "daily",
                      "unit": "US dollars",
                      "source_series_name": "Gross External Reserves",
                      "observations": 4881,
                      "observations_with_value": 4881,
                      "first_period": "2006-04-03",
                      "last_period": "2026-09-10"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/monetary/releases": {
      "get": {
        "tags": [
          "Monetary"
        ],
        "operationId": "monetary__releases",
        "summary": "Capture history",
        "description": "One row per CBN source in each capture, with its hash, how many rows were read and curated, and whether the capture validated.\n\nReference: https://dataminal.com/nigeria/monetary?tab=api",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum rows. Defaults to 500.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "count": 5,
                  "data": [
                    {
                      "capture_id": "20260912T082812Z",
                      "source_key": "reserves",
                      "reference_id": "CBN-API-GetAllReserves",
                      "rows_seen": 4910,
                      "rows_curated": 14643,
                      "rows_skipped": 13,
                      "first_period": "2006-04-03",
                      "last_period": "2026-09-10",
                      "validation_status": "validated with warnings"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/debt/latest": {
      "get": {
        "tags": [
          "Public debt"
        ],
        "operationId": "public_debt__latest",
        "summary": "Latest total public debt",
        "description": "The newest quarterly debt portfolio: external and domestic debt, the federal and state split where the release carries one, in both US dollars and naira at the CBN rate the DMO names, with shares and growth.\n\nReference: https://dataminal.com/nigeria/debt?tab=api",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "count": 1,
                  "data": [
                    {
                      "period": "2026-Q1",
                      "year": 2026,
                      "quarter": 1,
                      "as_at_date": "2026-03-31",
                      "external_total_usd": 51904080000,
                      "external_total_ngn": 71950245400000,
                      "domestic_total_ngn": 87401336040000,
                      "domestic_fgn_ngn": 82877621730000,
                      "domestic_states_ngn": 4523714310000,
                      "total_usd": 114954400000,
                      "total_ngn": 159351581440000,
                      "external_share_pct": 45.15,
                      "domestic_share_pct": 54.85,
                      "growth_qoq_pct": 0.047,
                      "growth_yoy_pct": 6.669,
                      "exchange_rate_ngn_per_usd": 1386.2156,
                      "includes_states_domestic": true,
                      "states_domestic_as_at": null,
                      "source_release": "dmo-6002",
                      "publication_date": "2026-06-30"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/debt/history": {
      "get": {
        "tags": [
          "Public debt"
        ],
        "operationId": "public_debt__history",
        "summary": "Quarterly history",
        "description": "The total public debt series, newest first, from December 2012. Rows before December 2013 exclude the states' domestic debt and say so in includes_states_domestic.\n\nReference: https://dataminal.com/nigeria/debt?tab=api",
        "parameters": [
          {
            "name": "year",
            "in": "query",
            "required": false,
            "description": "Calendar year of the reference date, e.g. 2025.",
            "schema": {
              "type": "integer"
            },
            "example": 2025
          },
          {
            "name": "quarter",
            "in": "query",
            "required": false,
            "description": "1 to 4, with year.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "period",
            "in": "query",
            "required": false,
            "description": "One reference quarter, YYYY-Qn, e.g. 2025-Q4.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum rows, 1 to 5000. Defaults to 200.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "count": 4,
                  "data": [
                    {
                      "period": "2025-Q4",
                      "as_at_date": "2025-12-31",
                      "total_ngn": 159276069180000,
                      "total_usd": 110973890000,
                      "external_total_usd": 51856030000,
                      "domestic_total_ngn": 84884576500000,
                      "external_share_pct": 46.73,
                      "growth_yoy_pct": 10.1,
                      "includes_states_domestic": true,
                      "source_release": "dmo-5818"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/debt/federal/domestic": {
      "get": {
        "tags": [
          "Public debt"
        ],
        "operationId": "public_debt__federal_domestic",
        "summary": "Federal domestic debt",
        "description": "The Federal Government's domestic debt stock per quarter in naira (the total of the instrument table), from June 2010, with quarter-on-quarter and year-on-year growth.\n\nReference: https://dataminal.com/nigeria/debt?tab=api",
        "parameters": [
          {
            "name": "year",
            "in": "query",
            "required": false,
            "description": "Calendar year of the reference date, e.g. 2025.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "period",
            "in": "query",
            "required": false,
            "description": "One reference quarter, YYYY-Qn, e.g. 2025-Q4.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum rows, 1 to 5000. Defaults to 200.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "count": 2,
                  "data": [
                    {
                      "period": "2026-Q1",
                      "as_at_date": "2026-03-31",
                      "amount_ngn": 82877621730226.6,
                      "growth_qoq_pct": 2.97,
                      "growth_yoy_pct": 10.67,
                      "source_release": "dmo-5998"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/debt/federal/external": {
      "get": {
        "tags": [
          "Public debt"
        ],
        "operationId": "public_debt__federal_external",
        "summary": "Federal external debt",
        "description": "The Federal Government's external debt stock in US dollars, taken from the FGN row of the states' external publication, half-yearly from December 2006, with its creditor-category split.\n\nReference: https://dataminal.com/nigeria/debt?tab=api",
        "parameters": [
          {
            "name": "year",
            "in": "query",
            "required": false,
            "description": "Calendar year of the reference date, e.g. 2025.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum rows, 1 to 5000. Defaults to 200.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "count": 2,
                  "data": [
                    {
                      "period": "2025-Q4",
                      "as_at_date": "2025-12-31",
                      "amount_usd": 46171117711.75,
                      "growth_yoy_pct": 12.67,
                      "source_release": "dmo-5817"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/debt/instruments": {
      "get": {
        "tags": [
          "Public debt"
        ],
        "operationId": "public_debt__instruments",
        "summary": "Federal domestic debt by instrument",
        "description": "Every instrument in the Federal Government's domestic debt for one quarter, the latest by default, in naira. Rows flagged is_subitem break down the row above them (naira bonds, dollar bonds and securitised Ways and Means under FGN bonds); only top-level rows add up to the total.\n\nReference: https://dataminal.com/nigeria/debt?tab=api",
        "parameters": [
          {
            "name": "year",
            "in": "query",
            "required": false,
            "description": "Calendar year of the reference date, e.g. 2025.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "quarter",
            "in": "query",
            "required": false,
            "description": "1 to 4, with year.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "period",
            "in": "query",
            "required": false,
            "description": "One reference quarter, YYYY-Qn, e.g. 2025-Q4.",
            "schema": {
              "type": "string"
            },
            "example": "2026-Q1"
          },
          {
            "name": "instrument",
            "in": "query",
            "required": false,
            "description": "One instrument key, such as fgn_bonds or treasury_bills.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum rows, 1 to 5000. Defaults to 200.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "count": 12,
                  "data": [
                    {
                      "period": "2026-Q1",
                      "instrument_key": "fgn_bonds",
                      "instrument_source": "FGN Bonds",
                      "amount_ngn": 63454497436110,
                      "share_pct_source": 76.56,
                      "is_subitem": false,
                      "parent_instrument_key": null
                    },
                    {
                      "period": "2026-Q1",
                      "instrument_key": "securitised_ways_and_means",
                      "instrument_source": "FGN Securitized Ways & Means",
                      "amount_ngn": 22719000000000,
                      "is_subitem": true,
                      "parent_instrument_key": "fgn_bonds"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/debt/creditors": {
      "get": {
        "tags": [
          "Public debt"
        ],
        "operationId": "public_debt__creditors",
        "summary": "External debt by creditor",
        "description": "Nigeria's external debt by creditor for one quarter, the latest by default, in US dollars, grouped by creditor type. This is national external debt: the federal government and the states together.\n\nReference: https://dataminal.com/nigeria/debt?tab=api",
        "parameters": [
          {
            "name": "year",
            "in": "query",
            "required": false,
            "description": "Calendar year of the reference date, e.g. 2025.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "quarter",
            "in": "query",
            "required": false,
            "description": "1 to 4, with year.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "period",
            "in": "query",
            "required": false,
            "description": "One reference quarter, YYYY-Qn, e.g. 2025-Q4.",
            "schema": {
              "type": "string"
            },
            "example": "2026-Q1"
          },
          {
            "name": "creditor",
            "in": "query",
            "required": false,
            "description": "One creditor key, such as ida, china_exim or eurobonds.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum rows, 1 to 5000. Defaults to 200.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "count": 20,
                  "data": [
                    {
                      "period": "2026-Q1",
                      "creditor_type": "multilateral",
                      "creditor_key": "ida",
                      "creditor_source": "International Development Association",
                      "creditor_group_source": "MULTILATERAL",
                      "amount_usd": 18390090000,
                      "source_release": "dmo-5999"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/debt/states": {
      "get": {
        "tags": [
          "Public debt"
        ],
        "operationId": "public_debt__states",
        "summary": "State debt",
        "description": "Every state and the FCT for one reference period, the newest by default, ranked by debt. Domestic debt is naira; pass domestic_external=external for the half-yearly dollar figures. Add state= to follow one state, or use the path endpoint below.\n\nReference: https://dataminal.com/nigeria/debt?tab=api",
        "parameters": [
          {
            "name": "domestic_external",
            "in": "query",
            "required": false,
            "description": "domestic (default, naira) or external (US dollars).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "year",
            "in": "query",
            "required": false,
            "description": "Calendar year of the reference date, e.g. 2025.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "quarter",
            "in": "query",
            "required": false,
            "description": "1 to 4, with year.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "period",
            "in": "query",
            "required": false,
            "description": "One reference quarter, YYYY-Qn, e.g. 2025-Q4.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "state",
            "in": "query",
            "required": false,
            "description": "State key, e.g. lagos, akwa_ibom, fct.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum rows, 1 to 5000. Defaults to 200.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "count": 37,
                  "data": [
                    {
                      "period": "2026-Q1",
                      "as_at_date": "2026-03-31",
                      "state": "Lagos",
                      "state_key": "lagos",
                      "domestic_debt_ngn": 1205048391804.5,
                      "figure_as_at": "2026-03-31",
                      "figure_date_uncertain": false,
                      "growth_qoq_pct": -1.18,
                      "growth_yoy_pct": 37.87,
                      "source_release": "dmo-6001"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/debt/states/{state}": {
      "get": {
        "tags": [
          "Public debt"
        ],
        "operationId": "public_debt__state_profile",
        "summary": "One state's debt history",
        "description": "A single state's debt stock over time, newest first. The state key is a path segment; domestic_external switches between the naira domestic series and the dollar external series.\n\nReference: https://dataminal.com/nigeria/debt?tab=api",
        "parameters": [
          {
            "name": "domestic_external",
            "in": "query",
            "required": false,
            "description": "domestic (default, naira) or external (US dollars).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "year",
            "in": "query",
            "required": false,
            "description": "Calendar year of the reference date, e.g. 2025.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum rows, 1 to 5000. Defaults to 200.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "state",
            "in": "path",
            "required": true,
            "description": "The state.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "count": 38,
                  "data": [
                    {
                      "period": "2026-Q1",
                      "state": "Lagos",
                      "state_key": "lagos",
                      "domestic_debt_ngn": 1205048391804.5,
                      "growth_yoy_pct": 37.87,
                      "source_release": "dmo-6001"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/debt/states/ratios": {
      "get": {
        "tags": [
          "Public debt"
        ],
        "operationId": "public_debt__ratios",
        "summary": "State debt against revenue (derived)",
        "description": "A Dataminal derivation: each state's December domestic debt stock against the same year's internally generated revenue, FAAC receipts and total revenue. FAAC ratios appear only where the FAAC year is complete. Domestic debt only.\n\nReference: https://dataminal.com/nigeria/debt?tab=api",
        "parameters": [
          {
            "name": "year",
            "in": "query",
            "required": false,
            "description": "Calendar year of the reference date, e.g. 2025.",
            "schema": {
              "type": "integer"
            },
            "example": 2024
          },
          {
            "name": "state",
            "in": "query",
            "required": false,
            "description": "State key, e.g. lagos, akwa_ibom, fct.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum rows, 1 to 5000. Defaults to 200.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "count": 37,
                  "is_derived": true,
                  "methodology": "December domestic debt stock divided by same-year annual revenue, in NGN.",
                  "data": [
                    {
                      "year": 2024,
                      "period": "2024-Q4",
                      "state": "Benue",
                      "state_key": "benue",
                      "domestic_debt_ngn": 122575619594.08,
                      "igr_total_ngn": 20434000000,
                      "domestic_debt_to_igr": 5.998,
                      "domestic_debt_to_faac": null,
                      "domestic_debt_to_total_revenue": null
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/debt/releases": {
      "get": {
        "tags": [
          "Public debt"
        ],
        "operationId": "public_debt__releases",
        "summary": "Release history",
        "description": "Every DMO document Dataminal has ingested: the series it belongs to, its reference period, the listing publication date, the original file, whether it validated, and whether it is the selected revision for its period.\n\nReference: https://dataminal.com/nigeria/debt?tab=api",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum rows, 1 to 5000. Defaults to 200.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "count": 269,
                  "data": [
                    {
                      "series": "summary",
                      "doc_id": 6002,
                      "period": "2026-Q1",
                      "publication_date": "2026-06-30",
                      "source_file": "Nigeria's Total Public Debt as at March 31, 2026.pdf",
                      "validation_status": "validated",
                      "is_selected": true,
                      "rows_loaded": 1,
                      "reconciliation_status": "passed"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/debt/federal": {
      "get": {
        "tags": [
          "Public debt"
        ],
        "operationId": "public_debt__federal",
        "summary": "Federal debt",
        "description": "Federal government debt, domestic and external together.\n\nReference: https://dataminal.com/nigeria/debt?tab=api",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/elections/catalog": {
      "get": {
        "tags": [
          "Elections"
        ],
        "operationId": "elections__catalog",
        "summary": "Catalog",
        "description": "What the domain holds: its six datasets with row counts per table, coverage (elections held and scheduled, states, LGAs, wards, polling units, constituencies, candidacies, parties, results, register and sheet rows), freshness, reconciliation status and the sources read. Metadata, open without a key.\n\nReference: https://dataminal.com/developers#elections",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "title": "Nigeria Elections",
                  "datasets": [
                    {
                      "id": "nigeria-election-calendar",
                      "rows": {
                        "elections": 1094
                      }
                    }
                  ],
                  "coverage": {
                    "elections": 1094,
                    "states": 37,
                    "lgas": 774,
                    "wards": 8809
                  },
                  "freshness": {
                    "latest_retrieval": "2026-09-28T04:43:28Z"
                  },
                  "sources": [
                    {
                      "name": "INEC website",
                      "url": "https://inecnigeria.org"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/elections/list": {
      "get": {
        "tags": [
          "Elections"
        ],
        "operationId": "elections__list",
        "summary": "Elections",
        "description": "One row per contest: an office, a constituency and a cycle or date, with its status as INEC's calendar and results portal record it. Newest first.\n\nReference: https://dataminal.com/developers#elections",
        "parameters": [
          {
            "name": "year",
            "in": "query",
            "required": false,
            "description": "Cycle year, e.g. 2023.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "office",
            "in": "query",
            "required": false,
            "description": "pres, gov, sen, reps, sha, chair or cllr.",
            "schema": {
              "type": "string"
            },
            "example": "gov"
          },
          {
            "name": "state",
            "in": "query",
            "required": false,
            "description": "Dataminal state key: lagos, akwa_ibom, fct.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "kind",
            "in": "query",
            "required": false,
            "description": "general, off_cycle, bye, bye_or_rerun or area_council.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "description": "SCHEDULED, HELD, POSTPONED, CANCELLED or UNKNOWN.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "constituency",
            "in": "query",
            "required": false,
            "description": "Constituency id, e.g. sd-la-68.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "election_id",
            "in": "query",
            "required": false,
            "description": "One election, e.g. 2023-gov-lagos.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Rows per page. Always send one; each route caps it.",
            "schema": {
              "type": "integer"
            },
            "example": 50
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "description": "Rows to skip. Page forward with the response's paging.next_offset, which is null on the last page.",
            "schema": {
              "type": "integer"
            },
            "example": 0
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "dataset": "nigeria_elections",
                  "source": "Independent National Electoral Commission",
                  "note": "Official records published by INEC ...",
                  "count": 1,
                  "data": [
                    {
                      "election_id": "2023-gov-lagos",
                      "office": "gov",
                      "office_label": "Governorship",
                      "election_kind": "general",
                      "cycle_year": 2023,
                      "constituency_type": "state",
                      "state_id": "lagos",
                      "scheduled_date": "2023-03-18",
                      "actual_date": "2023-03-18",
                      "status": "HELD",
                      "source_url": "https://www.inecelectionresults.ng/elections/..."
                    }
                  ],
                  "paging": {
                    "limit": 50,
                    "offset": 0,
                    "next_offset": 50
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/elections/calendar": {
      "get": {
        "tags": [
          "Elections"
        ],
        "operationId": "elections__calendar",
        "summary": "Calendar",
        "description": "INEC's election calendar. Each row is one revision of one event; by default only the current revision. Pass history=true for every revision, with the one each superseded and what changed.\n\nReference: https://dataminal.com/developers#elections",
        "parameters": [
          {
            "name": "history",
            "in": "query",
            "required": false,
            "description": "true for every revision, including superseded ones.",
            "schema": {
              "type": "boolean"
            },
            "example": "true"
          },
          {
            "name": "election_id",
            "in": "query",
            "required": false,
            "description": "Events linked to one election.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "group",
            "in": "query",
            "required": false,
            "description": "Election group id, e.g. 2027-general-national.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Rows per page. Always send one; each route caps it.",
            "schema": {
              "type": "integer"
            },
            "example": 100
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "description": "Rows to skip. Page forward with the response's paging.next_offset, which is null on the last page.",
            "schema": {
              "type": "integer"
            },
            "example": 0
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "dataset": "nigeria_elections",
                  "source": "Independent National Electoral Commission",
                  "note": "Official records published by INEC ...",
                  "count": 1,
                  "data": [
                    {
                      "event_id": "cal-delta-udu-state-constituency-bye-election",
                      "revision_number": 2,
                      "is_current": true,
                      "title_as_published": "DELTA (Udu State Constituency) Bye-Election",
                      "start_date": "2026-09-19",
                      "status_as_published": "Concluded",
                      "change_summary": "status Upcoming -> Concluded",
                      "supersedes_revision_id": "cal-delta-udu-state-constituency-bye-election@r1"
                    }
                  ],
                  "paging": {
                    "limit": 50,
                    "offset": 0,
                    "next_offset": 50
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/elections/parties": {
      "get": {
        "tags": [
          "Elections"
        ],
        "operationId": "elections__parties",
        "summary": "Parties",
        "description": "INEC's current party register and every party seen in an official source, with the acronyms and names each appears under.\n\nReference: https://dataminal.com/developers#elections",
        "parameters": [
          {
            "name": "on_register",
            "in": "query",
            "required": false,
            "description": "true for parties on INEC's current register only.",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "acronym",
            "in": "query",
            "required": false,
            "description": "One party by acronym, as INEC prints it.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "include_aliases",
            "in": "query",
            "required": false,
            "description": "true to add an aliases array: every name and acronym, with how it was resolved.",
            "schema": {
              "type": "boolean"
            },
            "example": "true"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "dataset": "nigeria_elections",
                  "source": "Independent National Electoral Commission",
                  "note": "Official records published by INEC ...",
                  "count": 1,
                  "data": [
                    {
                      "party_id": "accord-a",
                      "party_name": "Accord",
                      "party_acronym": "A",
                      "on_current_register": true,
                      "registration_date_status": "NOT_PUBLISHED",
                      "source_url": "https://inecnigeria.org/parties"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/elections/candidates": {
      "get": {
        "tags": [
          "Elections"
        ],
        "operationId": "elections__candidates",
        "summary": "Candidates",
        "description": "Nomination records from INEC's published candidate lists: name, party, office, constituency, gender and published age. By default only the list in effect (effective=true). Disability status and qualifications are not captured.\n\nReference: https://dataminal.com/developers#elections",
        "parameters": [
          {
            "name": "cycle",
            "in": "query",
            "required": false,
            "description": "Election cycle, e.g. 2023.",
            "schema": {
              "type": "integer"
            },
            "example": 2023
          },
          {
            "name": "office",
            "in": "query",
            "required": false,
            "description": "pres, gov, sen, reps or sha.",
            "schema": {
              "type": "string"
            },
            "example": "sen"
          },
          {
            "name": "state",
            "in": "query",
            "required": false,
            "description": "Dataminal state key: lagos, akwa_ibom, fct.",
            "schema": {
              "type": "string"
            },
            "example": "lagos"
          },
          {
            "name": "constituency",
            "in": "query",
            "required": false,
            "description": "Constituency id.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "party",
            "in": "query",
            "required": false,
            "description": "Party acronym as published, or party id.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "gender",
            "in": "query",
            "required": false,
            "description": "M or F, as INEC publishes it.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "description": "Part of a name, as printed.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "election_id",
            "in": "query",
            "required": false,
            "description": "One election.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "effective",
            "in": "query",
            "required": false,
            "description": "false to include superseded list versions.",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Rows per page. Always send one; each route caps it.",
            "schema": {
              "type": "integer"
            },
            "example": 50
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "description": "Rows to skip. Page forward with the response's paging.next_offset, which is null on the last page.",
            "schema": {
              "type": "integer"
            },
            "example": 0
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/elections/geography": {
      "get": {
        "tags": [
          "Elections"
        ],
        "operationId": "elections__geography",
        "summary": "Electoral geography",
        "description": "States, LGAs and wards with INEC's codes, their zones and constituencies, from the latest register snapshot unless a snapshot is named.\n\nReference: https://dataminal.com/developers#elections",
        "parameters": [
          {
            "name": "level",
            "in": "query",
            "required": false,
            "description": "state (default), lga or ward.",
            "schema": {
              "type": "string"
            },
            "example": "lga"
          },
          {
            "name": "state",
            "in": "query",
            "required": false,
            "description": "Dataminal state key: lagos, akwa_ibom, fct.",
            "schema": {
              "type": "string"
            },
            "example": "lagos"
          },
          {
            "name": "lga",
            "in": "query",
            "required": false,
            "description": "LGA id, e.g. lga-24-01, for its wards.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "snapshot",
            "in": "query",
            "required": false,
            "description": "A register snapshot id instead of the latest.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Rows per page. Always send one; each route caps it.",
            "schema": {
              "type": "integer"
            },
            "example": 100
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "description": "Rows to skip. Page forward with the response's paging.next_offset, which is null on the last page.",
            "schema": {
              "type": "integer"
            },
            "example": 0
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "dataset": "nigeria_elections",
                  "source": "Independent National Electoral Commission",
                  "note": "Official records published by INEC ...",
                  "count": 1,
                  "data": [
                    {
                      "unit_id": "lga-24-01",
                      "unit_type": "lga",
                      "name": "Agege",
                      "inec_code": "24-01",
                      "state_id": "lagos",
                      "zone": "south_west",
                      "ward_count": 11,
                      "snapshot_id": "irev:2023-pres-nigeria"
                    }
                  ],
                  "paging": {
                    "limit": 50,
                    "offset": 0,
                    "next_offset": 50
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/elections/constituencies": {
      "get": {
        "tags": [
          "Elections"
        ],
        "operationId": "elections__constituencies",
        "summary": "Constituencies",
        "description": "Senatorial districts, federal and state constituencies with INEC's codes and member LGAs, for the latest cycle unless one is named.\n\nReference: https://dataminal.com/developers#elections",
        "parameters": [
          {
            "name": "type",
            "in": "query",
            "required": false,
            "description": "senatorial_district, federal_constituency or state_constituency.",
            "schema": {
              "type": "string"
            },
            "example": "senatorial_district"
          },
          {
            "name": "state",
            "in": "query",
            "required": false,
            "description": "Dataminal state key: lagos, akwa_ibom, fct.",
            "schema": {
              "type": "string"
            },
            "example": "lagos"
          },
          {
            "name": "cycle",
            "in": "query",
            "required": false,
            "description": "Effective cycle, e.g. 2023.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "constituency",
            "in": "query",
            "required": false,
            "description": "One constituency id.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Rows per page. Always send one; each route caps it.",
            "schema": {
              "type": "integer"
            },
            "example": 50
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "description": "Rows to skip. Page forward with the response's paging.next_offset, which is null on the last page.",
            "schema": {
              "type": "integer"
            },
            "example": 0
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "dataset": "nigeria_elections",
                  "source": "Independent National Electoral Commission",
                  "note": "Official records published by INEC ...",
                  "count": 1,
                  "data": [
                    {
                      "constituency_id": "sd-la-68",
                      "constituency_type": "senatorial_district",
                      "name": "Lagos Central",
                      "code_as_published": "sd/070/la",
                      "member_lga_ids": "lga-24-05|lga-24-08|lga-24-14",
                      "effective_cycle": 2023
                    }
                  ],
                  "paging": {
                    "limit": 50,
                    "offset": 0,
                    "next_offset": 50
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/elections/polling-units": {
      "get": {
        "tags": [
          "Elections"
        ],
        "operationId": "elections__polling_units",
        "summary": "Polling units",
        "description": "The polling-unit register with INEC's delimitation codes, served a state at a time: a state, LGA, ward or polling unit is required, and a request without one is refused.\n\nReference: https://dataminal.com/developers#elections",
        "parameters": [
          {
            "name": "state",
            "in": "query",
            "required": false,
            "description": "Required unless lga, ward or polling_unit is given.",
            "schema": {
              "type": "string"
            },
            "example": "abia"
          },
          {
            "name": "lga",
            "in": "query",
            "required": false,
            "description": "LGA id, e.g. lga-24-01.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "ward",
            "in": "query",
            "required": false,
            "description": "Ward id, e.g. ward-24-01-02.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "polling_unit",
            "in": "query",
            "required": false,
            "description": "One unit, e.g. pu-24-01-02-003.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "description": "Part of a polling-unit name.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "snapshot",
            "in": "query",
            "required": false,
            "description": "A register snapshot id instead of the latest.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Rows per page. Always send one; each route caps it.",
            "schema": {
              "type": "integer"
            },
            "example": 50
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "description": "Rows to skip. Page forward with the response's paging.next_offset, which is null on the last page.",
            "schema": {
              "type": "integer"
            },
            "example": 0
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "dataset": "nigeria_elections",
                  "source": "Independent National Electoral Commission",
                  "note": "Official records published by INEC ...",
                  "count": 1,
                  "data": [
                    {
                      "polling_unit_id": "pu-01-01-01-001",
                      "polling_unit_code": "01-01-01-001",
                      "name": "RAILWAY QUARTERS - RAILWAY QUARTERS I",
                      "state_id": "abia",
                      "lga_id": "lga-01-01",
                      "ward_id": "ward-01-01-01",
                      "coordinate_status": "NOT_COLLECTED",
                      "status": "ACTIVE"
                    }
                  ],
                  "paging": {
                    "limit": 50,
                    "offset": 0,
                    "next_offset": 50
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/elections/register": {
      "get": {
        "tags": [
          "Elections"
        ],
        "operationId": "elections__register",
        "summary": "Voter register",
        "description": "Registered voters and PVC collection, per release and level. Without a release or election, the national and state rows. Rows built by adding up a polling-unit register carry is_dataminal_derived.\n\nReference: https://dataminal.com/developers#elections",
        "parameters": [
          {
            "name": "release",
            "in": "query",
            "required": false,
            "description": "Register release id, e.g. register-2026-osun-gov-pu.",
            "schema": {
              "type": "string"
            },
            "example": "register-2026-osun-gov-pu"
          },
          {
            "name": "election_id",
            "in": "query",
            "required": false,
            "description": "The election a register was published for.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cycle",
            "in": "query",
            "required": false,
            "description": "Election cycle.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "level",
            "in": "query",
            "required": false,
            "description": "national, state, lga, ward or polling_unit.",
            "schema": {
              "type": "string"
            },
            "example": "polling_unit"
          },
          {
            "name": "state",
            "in": "query",
            "required": false,
            "description": "Dataminal state key: lagos, akwa_ibom, fct.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "lga",
            "in": "query",
            "required": false,
            "description": "LGA id.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "ward",
            "in": "query",
            "required": false,
            "description": "Ward id.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "polling_unit",
            "in": "query",
            "required": false,
            "description": "Polling-unit id.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Rows per page. Always send one; each route caps it.",
            "schema": {
              "type": "integer"
            },
            "example": 50
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "description": "Rows to skip. Page forward with the response's paging.next_offset, which is null on the last page.",
            "schema": {
              "type": "integer"
            },
            "example": 0
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/elections/results": {
      "get": {
        "tags": [
          "Elections"
        ],
        "operationId": "elections__results",
        "summary": "Results",
        "description": "Votes per party or candidate, as INEC declared them, per election and geography.\n\nReference: https://dataminal.com/developers#elections",
        "parameters": [
          {
            "name": "election_id",
            "in": "query",
            "required": false,
            "description": "e.g. 2023-pres-nigeria.",
            "schema": {
              "type": "string"
            },
            "example": "2023-pres-nigeria"
          },
          {
            "name": "level",
            "in": "query",
            "required": false,
            "description": "national, state, lga, ward or polling_unit.",
            "schema": {
              "type": "string"
            },
            "example": "national"
          },
          {
            "name": "state",
            "in": "query",
            "required": false,
            "description": "Dataminal state key: lagos, akwa_ibom, fct.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "party",
            "in": "query",
            "required": false,
            "description": "Party acronym as published, or party id.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Rows per page. Always send one; each route caps it.",
            "schema": {
              "type": "integer"
            },
            "example": 50
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "description": "Rows to skip. Page forward with the response's paging.next_offset, which is null on the last page.",
            "schema": {
              "type": "integer"
            },
            "example": 0
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/elections/results/summary": {
      "get": {
        "tags": [
          "Elections"
        ],
        "operationId": "elections__results_summary",
        "summary": "Result summaries",
        "description": "Registered and accredited voters, votes cast, valid and rejected votes, and INEC's own published turnout with the label INEC printed beside it, as declared. The label is kept as printed; read the turnout methodology note before relying on it.\n\nReference: https://dataminal.com/developers#elections",
        "parameters": [
          {
            "name": "election_id",
            "in": "query",
            "required": false,
            "description": "e.g. 2019-pres-nigeria.",
            "schema": {
              "type": "string"
            },
            "example": "2019-pres-nigeria"
          },
          {
            "name": "level",
            "in": "query",
            "required": false,
            "description": "national, state or lower.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "state",
            "in": "query",
            "required": false,
            "description": "Dataminal state key: lagos, akwa_ibom, fct.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Rows per page. Always send one; each route caps it.",
            "schema": {
              "type": "integer"
            },
            "example": 50
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "description": "Rows to skip. Page forward with the response's paging.next_offset, which is null on the last page.",
            "schema": {
              "type": "integer"
            },
            "example": 0
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "dataset": "nigeria_elections",
                  "source": "Independent National Electoral Commission",
                  "note": "Official records published by INEC ...",
                  "count": 1,
                  "data": [
                    {
                      "election_id": "2019-pres-nigeria",
                      "level": "national",
                      "registered_voters": 84004084,
                      "registered_voters_as_collated": 82344107,
                      "accredited_voters": 29364209,
                      "published_turnout_pct": 35.66,
                      "published_turnout_basis": "..."
                    }
                  ],
                  "paging": {
                    "limit": 50,
                    "offset": 0,
                    "next_offset": 50
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/elections/vote-share": {
      "get": {
        "tags": [
          "Elections"
        ],
        "operationId": "elections__vote_share",
        "summary": "Vote share (calculated)",
        "description": "Each party's share of the valid votes, per geography. Calculated by Dataminal from INEC's declared figures; every row carries is_dataminal_derived and its source rows. Listed by party, not ranked; order=votes asks for descending votes.\n\nReference: https://dataminal.com/developers#elections",
        "parameters": [
          {
            "name": "election_id",
            "in": "query",
            "required": false,
            "description": "Required.",
            "schema": {
              "type": "string"
            },
            "example": "2023-pres-nigeria"
          },
          {
            "name": "level",
            "in": "query",
            "required": false,
            "description": "national, state or lower.",
            "schema": {
              "type": "string"
            },
            "example": "national"
          },
          {
            "name": "state",
            "in": "query",
            "required": false,
            "description": "Dataminal state key: lagos, akwa_ibom, fct.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "order",
            "in": "query",
            "required": false,
            "description": "party (default) or votes.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/elections/declarations": {
      "get": {
        "tags": [
          "Elections"
        ],
        "operationId": "elections__declarations",
        "summary": "Declarations",
        "description": "The party INEC returned in each constituency, as tabulated in its post-election report. Later tribunal and court judgments are not applied; a re-run appears as its own election.\n\nReference: https://dataminal.com/developers#elections",
        "parameters": [
          {
            "name": "cycle",
            "in": "query",
            "required": false,
            "description": "e.g. 2019.",
            "schema": {
              "type": "integer"
            },
            "example": 2019
          },
          {
            "name": "office",
            "in": "query",
            "required": false,
            "description": "gov, sen, reps or sha.",
            "schema": {
              "type": "string"
            },
            "example": "sen"
          },
          {
            "name": "state",
            "in": "query",
            "required": false,
            "description": "Dataminal state key: lagos, akwa_ibom, fct.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "party",
            "in": "query",
            "required": false,
            "description": "Party acronym as published, or party id.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "constituency",
            "in": "query",
            "required": false,
            "description": "Constituency id.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Rows per page. Always send one; each route caps it.",
            "schema": {
              "type": "integer"
            },
            "example": 50
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "description": "Rows to skip. Page forward with the response's paging.next_offset, which is null on the last page.",
            "schema": {
              "type": "integer"
            },
            "example": 0
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "dataset": "nigeria_elections",
                  "source": "Independent National Electoral Commission",
                  "note": "Official records published by INEC ...",
                  "count": 1,
                  "data": [
                    {
                      "election_id": "2019-sen-sd-ab-111",
                      "cycle_year": 2019,
                      "office": "sen",
                      "constituency_id": "sd-ab-111",
                      "winning_party_acronym_as_published": "...",
                      "elected_candidate_name_as_published": "...",
                      "declaration_status": "..."
                    }
                  ],
                  "paging": {
                    "limit": 50,
                    "offset": 0,
                    "next_offset": 50
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/elections/turnout": {
      "get": {
        "tags": [
          "Elections"
        ],
        "operationId": "elections__turnout",
        "summary": "Turnout (calculated)",
        "description": "Turnout, accreditation, rejection and valid-vote rates on one definition for every election, calculated by Dataminal from INEC's declared figures, with INEC's own published turnout and its printed label beside them. INEC's 2019 and 2023 published figures divide by different registers and are not comparable.\n\nReference: https://dataminal.com/developers#elections",
        "parameters": [
          {
            "name": "election_id",
            "in": "query",
            "required": false,
            "description": "e.g. 2023-pres-nigeria.",
            "schema": {
              "type": "string"
            },
            "example": "2023-pres-nigeria"
          },
          {
            "name": "level",
            "in": "query",
            "required": false,
            "description": "national or state.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "state",
            "in": "query",
            "required": false,
            "description": "Dataminal state key: lagos, akwa_ibom, fct.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cycle",
            "in": "query",
            "required": false,
            "description": "Every election of a cycle.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Rows per page. Always send one; each route caps it.",
            "schema": {
              "type": "integer"
            },
            "example": 50
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "description": "Rows to skip. Page forward with the response's paging.next_offset, which is null on the last page.",
            "schema": {
              "type": "integer"
            },
            "example": 0
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/elections/reporting": {
      "get": {
        "tags": [
          "Elections"
        ],
        "operationId": "elections__reporting",
        "summary": "Result sheet reporting",
        "description": "Whether INEC's results portal holds a polling unit's result sheet (Form EC8A), when it was uploaded and whether it was replaced. No votes: a missing sheet is NOT_AVAILABLE_ON_PORTAL, never zero. For the nationwide election, polling-unit rows need a state.\n\nReference: https://dataminal.com/developers#elections",
        "parameters": [
          {
            "name": "election_id",
            "in": "query",
            "required": false,
            "description": "Required.",
            "schema": {
              "type": "string"
            },
            "example": "2023-pres-nigeria"
          },
          {
            "name": "level",
            "in": "query",
            "required": false,
            "description": "polling_unit (default) or ward.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "state",
            "in": "query",
            "required": false,
            "description": "Required for polling-unit rows of 2023-pres-nigeria.",
            "schema": {
              "type": "string"
            },
            "example": "abia"
          },
          {
            "name": "lga",
            "in": "query",
            "required": false,
            "description": "LGA id.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "ward",
            "in": "query",
            "required": false,
            "description": "Ward id.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "description": "AVAILABLE or NOT_AVAILABLE_ON_PORTAL.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "replaced",
            "in": "query",
            "required": false,
            "description": "true for units whose sheet was replaced.",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Rows per page. Always send one; each route caps it.",
            "schema": {
              "type": "integer"
            },
            "example": 50
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "description": "Rows to skip. Page forward with the response's paging.next_offset, which is null on the last page.",
            "schema": {
              "type": "integer"
            },
            "example": 0
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "dataset": "nigeria_elections",
                  "source": "Independent National Electoral Commission",
                  "note": "Official records published by INEC ...",
                  "count": 1,
                  "data": [
                    {
                      "polling_unit_id": "pu-01-01-01-001",
                      "result_available": true,
                      "document_status": "AVAILABLE",
                      "result_form_type": "EC8A",
                      "first_upload_at": "2024-04-04T12:14:35.287Z",
                      "replaced_document_count": 0,
                      "ocr_status": "NOT_ATTEMPTED"
                    }
                  ],
                  "paging": {
                    "limit": 50,
                    "offset": 0,
                    "next_offset": 50
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/elections/reporting/summary": {
      "get": {
        "tags": [
          "Elections"
        ],
        "operationId": "elections__reporting_summary",
        "summary": "Sheet completeness (calculated)",
        "description": "Polling units with a sheet on the portal, per state, LGA or ward, as a share of the units the portal lists. Calculated by Dataminal. It measures publication on the portal, not voting.\n\nReference: https://dataminal.com/developers#elections",
        "parameters": [
          {
            "name": "election_id",
            "in": "query",
            "required": false,
            "description": "Required.",
            "schema": {
              "type": "string"
            },
            "example": "2023-pres-nigeria"
          },
          {
            "name": "by",
            "in": "query",
            "required": false,
            "description": "state (default), lga or ward.",
            "schema": {
              "type": "string"
            },
            "example": "state"
          },
          {
            "name": "state",
            "in": "query",
            "required": false,
            "description": "Dataminal state key: lagos, akwa_ibom, fct.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "dataset": "nigeria_elections",
                  "source": "Independent National Electoral Commission",
                  "note": "Official records published by INEC ...",
                  "count": 1,
                  "data": [
                    {
                      "election_id": "2023-pres-nigeria",
                      "geography_id": "abia",
                      "polling_units_expected": 4062,
                      "sheets_available": 3634,
                      "sheets_available_pct": 89.46,
                      "is_dataminal_derived": true
                    }
                  ],
                  "derived": true,
                  "method": "..."
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/elections/releases": {
      "get": {
        "tags": [
          "Elections"
        ],
        "operationId": "elections__releases",
        "summary": "Releases",
        "description": "Every source document, portal crawl and site snapshot taken in: its INEC URL, the Internet Archive capture read when INEC no longer serves it, hash, publication date and parse status.\n\nReference: https://dataminal.com/developers#elections",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Default 500.",
            "schema": {
              "type": "integer"
            },
            "example": 100
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "dataset": "nigeria_elections",
                  "source": "Independent National Electoral Commission",
                  "note": "Official records published by INEC ...",
                  "count": 1,
                  "data": [
                    {
                      "release_id": "doc-054d0dacf676d322",
                      "title": "Report of the 2019 General Election",
                      "document_kind": "general_election_report",
                      "url": "https://inecnigeria.org/documents/...",
                      "archive_url": null,
                      "publication_date": "2020-08",
                      "parse_status": "NOT_PARSED"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/elections/methodologies": {
      "get": {
        "tags": [
          "Elections"
        ],
        "operationId": "elections__methodologies",
        "summary": "Methodologies",
        "description": "Definitions and breaks to read before comparing figures: the 2021 polling-unit rebuild, the change in what INEC's published turnout measures, where the state-level presidential figures come from, and what a result sheet is.\n\nReference: https://dataminal.com/developers#elections",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "dataset": "nigeria_elections",
                  "source": "Independent National Electoral Commission",
                  "note": "Official records published by INEC ...",
                  "count": 1,
                  "data": [
                    {
                      "note_id": "turnout_definition_changed_2023",
                      "topic": "turnout",
                      "severity": "blocking",
                      "title": "INEC's published turnout measures a different thing in 2019 and 2023"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/elections/quality": {
      "get": {
        "tags": [
          "Elections"
        ],
        "operationId": "elections__quality",
        "summary": "Quality checks",
        "description": "Every reconciliation check comparing two figures (a declared total against the sum of its rows, a constituency's published polling-unit count against the register), with its status. A failed check is recorded, never corrected.\n\nReference: https://dataminal.com/developers#elections",
        "parameters": [
          {
            "name": "table",
            "in": "query",
            "required": false,
            "description": "Table name, e.g. constituencies.",
            "schema": {
              "type": "string"
            },
            "example": "constituencies"
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "description": "MATCHED, MINOR_DIFFERENCE, SOURCE_CONFLICT, INCOMPLETE or NOT_CHECKED.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "election_id",
            "in": "query",
            "required": false,
            "description": "Checks for one election.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Rows per page. Always send one; each route caps it.",
            "schema": {
              "type": "integer"
            },
            "example": 50
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "description": "Rows to skip. Page forward with the response's paging.next_offset, which is null on the last page.",
            "schema": {
              "type": "integer"
            },
            "example": 0
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "dataset": "nigeria_elections",
                  "source": "Independent National Electoral Commission",
                  "note": "Official records published by INEC ...",
                  "count": 1,
                  "data": [
                    {
                      "check_id": "...",
                      "table_name": "constituencies",
                      "status": "NOT_CHECKED",
                      "expected_value": null,
                      "observed_value": 1021,
                      "expected_source": "INEC Report of the 2023 General Election, results annexure",
                      "observed_source": "INEC results portal ward register, counted by Dataminal"
                    }
                  ],
                  "paging": {
                    "limit": 50,
                    "offset": 0,
                    "next_offset": 50
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/elections": {
      "get": {
        "tags": [
          "Elections"
        ],
        "operationId": "elections__index",
        "summary": "Elections index",
        "description": "The election routes and what each serves.\n\nReference: https://dataminal.com/developers#elections",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/elections/coverage": {
      "get": {
        "tags": [
          "Elections"
        ],
        "operationId": "elections__coverage",
        "summary": "Coverage",
        "description": "Offices, kinds, levels and cycles the domain covers, with the words each answers to.\n\nReference: https://dataminal.com/developers#elections",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/state-enrichment": {
      "get": {
        "tags": [
          "State Enrichment"
        ],
        "operationId": "state_enrichment__index",
        "summary": "State Enrichment index",
        "description": "The eight datasets, their paths and parameters, freshness and coverage.\n\nReference: https://dataminal.com/nigeria/state-enrichment",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/state-enrichment/status": {
      "get": {
        "tags": [
          "State Enrichment"
        ],
        "operationId": "state_enrichment__status",
        "summary": "Freshness",
        "description": "Each dataset's freshness.\n\nReference: https://dataminal.com/nigeria/state-enrichment",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/states/{state}/indicators": {
      "get": {
        "tags": [
          "State Enrichment"
        ],
        "operationId": "state_enrichment__state_indicators",
        "summary": "One state's indicators",
        "description": "One state's newest figure in each dataset beside the national figure.\n\nReference: https://dataminal.com/nigeria/state-enrichment",
        "parameters": [
          {
            "name": "state",
            "in": "path",
            "required": true,
            "description": "The state.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/state-inflation/latest": {
      "get": {
        "tags": [
          "State Enrichment"
        ],
        "operationId": "state_enrichment__state_inflation_latest",
        "summary": "State inflation: latest",
        "description": "The newest period.\n\nReference: https://dataminal.com/nigeria/state-enrichment",
        "parameters": [
          {
            "name": "category",
            "in": "query",
            "required": false,
            "description": "all_items or food.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "state",
            "in": "query",
            "required": false,
            "description": "State key.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "zone",
            "in": "query",
            "required": false,
            "description": "Zone key.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "period",
            "in": "query",
            "required": false,
            "description": "Month as YYYY-MM. Defaults to the newest.",
            "schema": {
              "type": "string",
              "pattern": "^\\d{4}-\\d{2}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/state-inflation": {
      "get": {
        "tags": [
          "State Enrichment"
        ],
        "operationId": "state_enrichment__state_inflation",
        "summary": "State inflation: latest",
        "description": "Same as /nigeria/state-inflation/latest.\n\nReference: https://dataminal.com/nigeria/state-enrichment",
        "parameters": [
          {
            "name": "category",
            "in": "query",
            "required": false,
            "description": "all_items or food.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "state",
            "in": "query",
            "required": false,
            "description": "State key.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "zone",
            "in": "query",
            "required": false,
            "description": "Zone key.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "period",
            "in": "query",
            "required": false,
            "description": "Month as YYYY-MM. Defaults to the newest.",
            "schema": {
              "type": "string",
              "pattern": "^\\d{4}-\\d{2}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/state-inflation/history": {
      "get": {
        "tags": [
          "State Enrichment"
        ],
        "operationId": "state_enrichment__state_inflation_history",
        "summary": "State inflation: history",
        "description": "The series, newest first.\n\nReference: https://dataminal.com/nigeria/state-enrichment",
        "parameters": [
          {
            "name": "state",
            "in": "query",
            "required": false,
            "description": "State key.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "zone",
            "in": "query",
            "required": false,
            "description": "Zone key.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "category",
            "in": "query",
            "required": false,
            "description": "all_items or food.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "base",
            "in": "query",
            "required": false,
            "description": "Index base: 2024 or 2009-11.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "description": "First month, YYYY-MM.",
            "schema": {
              "type": "string",
              "pattern": "^\\d{4}-\\d{2}$"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "description": "Last month, YYYY-MM.",
            "schema": {
              "type": "string",
              "pattern": "^\\d{4}-\\d{2}$"
            }
          },
          {
            "name": "vintage",
            "in": "query",
            "required": false,
            "description": "A release vintage.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/state-inflation/releases": {
      "get": {
        "tags": [
          "State Enrichment"
        ],
        "operationId": "state_enrichment__state_inflation_releases",
        "summary": "Releases",
        "description": "NBS files read: status, layout, rows, quality counts, publication date.\n\nReference: https://dataminal.com/nigeria/state-enrichment",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum rows.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "description": "Rows to skip.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/state-inflation/methodologies": {
      "get": {
        "tags": [
          "State Enrichment"
        ],
        "operationId": "state_enrichment__state_inflation_methodologies",
        "summary": "Method notes",
        "description": "Method, coverage and comparability notes.\n\nReference: https://dataminal.com/nigeria/state-enrichment",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/state-inflation/quality": {
      "get": {
        "tags": [
          "State Enrichment"
        ],
        "operationId": "state_enrichment__state_inflation_quality",
        "summary": "Quality checks",
        "description": "Check results with a summary by check.\n\nReference: https://dataminal.com/nigeria/state-enrichment",
        "parameters": [
          {
            "name": "severity",
            "in": "query",
            "required": false,
            "description": "Filter by severity.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/state-inflation/coverage": {
      "get": {
        "tags": [
          "State Enrichment"
        ],
        "operationId": "state_enrichment__state_inflation_coverage",
        "summary": "Coverage",
        "description": "Freshness assessment and the build summary.\n\nReference: https://dataminal.com/nigeria/state-enrichment",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/food-prices/latest": {
      "get": {
        "tags": [
          "State Enrichment"
        ],
        "operationId": "state_enrichment__food_prices_latest",
        "summary": "Food prices: latest",
        "description": "The newest period.\n\nReference: https://dataminal.com/nigeria/state-enrichment",
        "parameters": [
          {
            "name": "item",
            "in": "query",
            "required": false,
            "description": "Item id, see /nigeria/food-prices/items.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "group",
            "in": "query",
            "required": false,
            "description": "Food group.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "kind",
            "in": "query",
            "required": false,
            "description": "average, state_highest, state_lowest or all.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "geography",
            "in": "query",
            "required": false,
            "description": "national, zone, state or all.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "state",
            "in": "query",
            "required": false,
            "description": "State key, for example lagos.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "zone",
            "in": "query",
            "required": false,
            "description": "Geopolitical zone key.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "period",
            "in": "query",
            "required": false,
            "description": "Month as YYYY-MM. Defaults to the newest.",
            "schema": {
              "type": "string",
              "pattern": "^\\d{4}-\\d{2}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/food-prices": {
      "get": {
        "tags": [
          "State Enrichment"
        ],
        "operationId": "state_enrichment__food_prices",
        "summary": "Food prices: latest",
        "description": "Same as /nigeria/food-prices/latest.\n\nReference: https://dataminal.com/nigeria/state-enrichment",
        "parameters": [
          {
            "name": "item",
            "in": "query",
            "required": false,
            "description": "Item id, see /nigeria/food-prices/items.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "group",
            "in": "query",
            "required": false,
            "description": "Food group.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "kind",
            "in": "query",
            "required": false,
            "description": "average, state_highest, state_lowest or all.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "geography",
            "in": "query",
            "required": false,
            "description": "national, zone, state or all.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "state",
            "in": "query",
            "required": false,
            "description": "State key, for example lagos.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "zone",
            "in": "query",
            "required": false,
            "description": "Geopolitical zone key.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "period",
            "in": "query",
            "required": false,
            "description": "Month as YYYY-MM. Defaults to the newest.",
            "schema": {
              "type": "string",
              "pattern": "^\\d{4}-\\d{2}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/food-prices/history": {
      "get": {
        "tags": [
          "State Enrichment"
        ],
        "operationId": "state_enrichment__food_prices_history",
        "summary": "Food prices: history",
        "description": "The series, newest first.\n\nReference: https://dataminal.com/nigeria/state-enrichment",
        "parameters": [
          {
            "name": "item",
            "in": "query",
            "required": false,
            "description": "Item id.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "group",
            "in": "query",
            "required": false,
            "description": "Food group.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "kind",
            "in": "query",
            "required": false,
            "description": "average, state_highest, state_lowest or all.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "geography",
            "in": "query",
            "required": false,
            "description": "national, zone, state or all.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "state",
            "in": "query",
            "required": false,
            "description": "State key, for example lagos.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "zone",
            "in": "query",
            "required": false,
            "description": "Geopolitical zone key.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "description": "First month, YYYY-MM.",
            "schema": {
              "type": "string",
              "pattern": "^\\d{4}-\\d{2}$"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "description": "Last month, YYYY-MM.",
            "schema": {
              "type": "string",
              "pattern": "^\\d{4}-\\d{2}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/food-prices/items": {
      "get": {
        "tags": [
          "State Enrichment"
        ],
        "operationId": "state_enrichment__food_prices_items",
        "summary": "Food items",
        "description": "The item registry: id, name, group, unit, months and states covered.\n\nReference: https://dataminal.com/nigeria/state-enrichment",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/food-prices/releases": {
      "get": {
        "tags": [
          "State Enrichment"
        ],
        "operationId": "state_enrichment__food_prices_releases",
        "summary": "Releases",
        "description": "NBS files read: status, layout, rows, quality counts, publication date.\n\nReference: https://dataminal.com/nigeria/state-enrichment",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum rows.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "description": "Rows to skip.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/food-prices/methodologies": {
      "get": {
        "tags": [
          "State Enrichment"
        ],
        "operationId": "state_enrichment__food_prices_methodologies",
        "summary": "Method notes",
        "description": "Method, coverage and comparability notes.\n\nReference: https://dataminal.com/nigeria/state-enrichment",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/food-prices/quality": {
      "get": {
        "tags": [
          "State Enrichment"
        ],
        "operationId": "state_enrichment__food_prices_quality",
        "summary": "Quality checks",
        "description": "Check results with a summary by check.\n\nReference: https://dataminal.com/nigeria/state-enrichment",
        "parameters": [
          {
            "name": "severity",
            "in": "query",
            "required": false,
            "description": "Filter by severity.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/food-prices/coverage": {
      "get": {
        "tags": [
          "State Enrichment"
        ],
        "operationId": "state_enrichment__food_prices_coverage",
        "summary": "Coverage",
        "description": "Freshness assessment and the build summary.\n\nReference: https://dataminal.com/nigeria/state-enrichment",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/fuel-prices/latest": {
      "get": {
        "tags": [
          "State Enrichment"
        ],
        "operationId": "state_enrichment__fuel_prices_latest",
        "summary": "Fuel prices: latest",
        "description": "The newest period.\n\nReference: https://dataminal.com/nigeria/state-enrichment",
        "parameters": [
          {
            "name": "product",
            "in": "query",
            "required": false,
            "description": "pms, diesel or kerosene; all three when absent.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "unit",
            "in": "query",
            "required": false,
            "description": "litre (default) or gallon.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "geography",
            "in": "query",
            "required": false,
            "description": "national, zone, state or all.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "state",
            "in": "query",
            "required": false,
            "description": "State key, for example lagos.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "zone",
            "in": "query",
            "required": false,
            "description": "Geopolitical zone key.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "period",
            "in": "query",
            "required": false,
            "description": "Month as YYYY-MM. Defaults to the newest.",
            "schema": {
              "type": "string",
              "pattern": "^\\d{4}-\\d{2}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/fuel-prices": {
      "get": {
        "tags": [
          "State Enrichment"
        ],
        "operationId": "state_enrichment__fuel_prices",
        "summary": "Fuel prices: latest",
        "description": "Same as /nigeria/fuel-prices/latest.\n\nReference: https://dataminal.com/nigeria/state-enrichment",
        "parameters": [
          {
            "name": "product",
            "in": "query",
            "required": false,
            "description": "pms, diesel or kerosene; all three when absent.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "unit",
            "in": "query",
            "required": false,
            "description": "litre (default) or gallon.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "geography",
            "in": "query",
            "required": false,
            "description": "national, zone, state or all.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "state",
            "in": "query",
            "required": false,
            "description": "State key, for example lagos.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "zone",
            "in": "query",
            "required": false,
            "description": "Geopolitical zone key.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "period",
            "in": "query",
            "required": false,
            "description": "Month as YYYY-MM. Defaults to the newest.",
            "schema": {
              "type": "string",
              "pattern": "^\\d{4}-\\d{2}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/fuel-prices/history": {
      "get": {
        "tags": [
          "State Enrichment"
        ],
        "operationId": "state_enrichment__fuel_prices_history",
        "summary": "Fuel prices: history",
        "description": "The series, newest first.\n\nReference: https://dataminal.com/nigeria/state-enrichment",
        "parameters": [
          {
            "name": "product",
            "in": "query",
            "required": false,
            "description": "pms (default), diesel or kerosene.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "unit",
            "in": "query",
            "required": false,
            "description": "litre or gallon.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "geography",
            "in": "query",
            "required": false,
            "description": "national, zone, state or all.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "state",
            "in": "query",
            "required": false,
            "description": "State key, for example lagos.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "zone",
            "in": "query",
            "required": false,
            "description": "Geopolitical zone key.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "description": "First month, YYYY-MM.",
            "schema": {
              "type": "string",
              "pattern": "^\\d{4}-\\d{2}$"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "description": "Last month, YYYY-MM.",
            "schema": {
              "type": "string",
              "pattern": "^\\d{4}-\\d{2}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/fuel-prices/releases": {
      "get": {
        "tags": [
          "State Enrichment"
        ],
        "operationId": "state_enrichment__fuel_prices_releases",
        "summary": "Releases",
        "description": "NBS files read: status, layout, rows, quality counts, publication date.\n\nReference: https://dataminal.com/nigeria/state-enrichment",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum rows.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "description": "Rows to skip.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/fuel-prices/methodologies": {
      "get": {
        "tags": [
          "State Enrichment"
        ],
        "operationId": "state_enrichment__fuel_prices_methodologies",
        "summary": "Method notes",
        "description": "Method, coverage and comparability notes.\n\nReference: https://dataminal.com/nigeria/state-enrichment",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/fuel-prices/quality": {
      "get": {
        "tags": [
          "State Enrichment"
        ],
        "operationId": "state_enrichment__fuel_prices_quality",
        "summary": "Quality checks",
        "description": "Check results with a summary by check.\n\nReference: https://dataminal.com/nigeria/state-enrichment",
        "parameters": [
          {
            "name": "severity",
            "in": "query",
            "required": false,
            "description": "Filter by severity.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/fuel-prices/coverage": {
      "get": {
        "tags": [
          "State Enrichment"
        ],
        "operationId": "state_enrichment__fuel_prices_coverage",
        "summary": "Coverage",
        "description": "Freshness assessment and the build summary.\n\nReference: https://dataminal.com/nigeria/state-enrichment",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/transport-fares/latest": {
      "get": {
        "tags": [
          "State Enrichment"
        ],
        "operationId": "state_enrichment__transport_fares_latest",
        "summary": "Transport fares: latest",
        "description": "The newest period.\n\nReference: https://dataminal.com/nigeria/state-enrichment",
        "parameters": [
          {
            "name": "mode",
            "in": "query",
            "required": false,
            "description": "Mode, see /nigeria/transport-fares/modes.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "geography",
            "in": "query",
            "required": false,
            "description": "national, zone, state or all.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "state",
            "in": "query",
            "required": false,
            "description": "State key, for example lagos.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "zone",
            "in": "query",
            "required": false,
            "description": "Geopolitical zone key.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "period",
            "in": "query",
            "required": false,
            "description": "Month as YYYY-MM. Defaults to the newest.",
            "schema": {
              "type": "string",
              "pattern": "^\\d{4}-\\d{2}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/transport-fares": {
      "get": {
        "tags": [
          "State Enrichment"
        ],
        "operationId": "state_enrichment__transport_fares",
        "summary": "Transport fares: latest",
        "description": "Same as /nigeria/transport-fares/latest.\n\nReference: https://dataminal.com/nigeria/state-enrichment",
        "parameters": [
          {
            "name": "mode",
            "in": "query",
            "required": false,
            "description": "Mode, see /nigeria/transport-fares/modes.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "geography",
            "in": "query",
            "required": false,
            "description": "national, zone, state or all.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "state",
            "in": "query",
            "required": false,
            "description": "State key, for example lagos.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "zone",
            "in": "query",
            "required": false,
            "description": "Geopolitical zone key.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "period",
            "in": "query",
            "required": false,
            "description": "Month as YYYY-MM. Defaults to the newest.",
            "schema": {
              "type": "string",
              "pattern": "^\\d{4}-\\d{2}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/transport-fares/history": {
      "get": {
        "tags": [
          "State Enrichment"
        ],
        "operationId": "state_enrichment__transport_fares_history",
        "summary": "Transport fares: history",
        "description": "The series, newest first.\n\nReference: https://dataminal.com/nigeria/state-enrichment",
        "parameters": [
          {
            "name": "mode",
            "in": "query",
            "required": false,
            "description": "Mode.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "geography",
            "in": "query",
            "required": false,
            "description": "national, zone, state or all.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "state",
            "in": "query",
            "required": false,
            "description": "State key, for example lagos.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "zone",
            "in": "query",
            "required": false,
            "description": "Geopolitical zone key.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "description": "First month, YYYY-MM.",
            "schema": {
              "type": "string",
              "pattern": "^\\d{4}-\\d{2}$"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "description": "Last month, YYYY-MM.",
            "schema": {
              "type": "string",
              "pattern": "^\\d{4}-\\d{2}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/transport-fares/modes": {
      "get": {
        "tags": [
          "State Enrichment"
        ],
        "operationId": "state_enrichment__transport_fares_modes",
        "summary": "Transport modes",
        "description": "Modes with names, fare basis and months covered.\n\nReference: https://dataminal.com/nigeria/state-enrichment",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/transport-fares/releases": {
      "get": {
        "tags": [
          "State Enrichment"
        ],
        "operationId": "state_enrichment__transport_fares_releases",
        "summary": "Releases",
        "description": "NBS files read: status, layout, rows, quality counts, publication date.\n\nReference: https://dataminal.com/nigeria/state-enrichment",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum rows.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "description": "Rows to skip.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/transport-fares/methodologies": {
      "get": {
        "tags": [
          "State Enrichment"
        ],
        "operationId": "state_enrichment__transport_fares_methodologies",
        "summary": "Method notes",
        "description": "Method, coverage and comparability notes.\n\nReference: https://dataminal.com/nigeria/state-enrichment",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/transport-fares/quality": {
      "get": {
        "tags": [
          "State Enrichment"
        ],
        "operationId": "state_enrichment__transport_fares_quality",
        "summary": "Quality checks",
        "description": "Check results with a summary by check.\n\nReference: https://dataminal.com/nigeria/state-enrichment",
        "parameters": [
          {
            "name": "severity",
            "in": "query",
            "required": false,
            "description": "Filter by severity.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/transport-fares/coverage": {
      "get": {
        "tags": [
          "State Enrichment"
        ],
        "operationId": "state_enrichment__transport_fares_coverage",
        "summary": "Coverage",
        "description": "Freshness assessment and the build summary.\n\nReference: https://dataminal.com/nigeria/state-enrichment",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/healthy-diet-cost/latest": {
      "get": {
        "tags": [
          "State Enrichment"
        ],
        "operationId": "state_enrichment__healthy_diet_cost_latest",
        "summary": "Cost of a healthy diet: latest",
        "description": "The newest period.\n\nReference: https://dataminal.com/nigeria/state-enrichment",
        "parameters": [
          {
            "name": "area",
            "in": "query",
            "required": false,
            "description": "all (default), urban, rural or any.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "component",
            "in": "query",
            "required": false,
            "description": "total (default), a food group, or any.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "geography",
            "in": "query",
            "required": false,
            "description": "national, zone, state or all.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "state",
            "in": "query",
            "required": false,
            "description": "State key, for example lagos.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "zone",
            "in": "query",
            "required": false,
            "description": "Geopolitical zone key.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "period",
            "in": "query",
            "required": false,
            "description": "Month as YYYY-MM. Defaults to the newest.",
            "schema": {
              "type": "string",
              "pattern": "^\\d{4}-\\d{2}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/healthy-diet-cost": {
      "get": {
        "tags": [
          "State Enrichment"
        ],
        "operationId": "state_enrichment__healthy_diet_cost",
        "summary": "Cost of a healthy diet: latest",
        "description": "Same as /nigeria/healthy-diet-cost/latest.\n\nReference: https://dataminal.com/nigeria/state-enrichment",
        "parameters": [
          {
            "name": "area",
            "in": "query",
            "required": false,
            "description": "all (default), urban, rural or any.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "component",
            "in": "query",
            "required": false,
            "description": "total (default), a food group, or any.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "geography",
            "in": "query",
            "required": false,
            "description": "national, zone, state or all.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "state",
            "in": "query",
            "required": false,
            "description": "State key, for example lagos.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "zone",
            "in": "query",
            "required": false,
            "description": "Geopolitical zone key.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "period",
            "in": "query",
            "required": false,
            "description": "Month as YYYY-MM. Defaults to the newest.",
            "schema": {
              "type": "string",
              "pattern": "^\\d{4}-\\d{2}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/healthy-diet-cost/history": {
      "get": {
        "tags": [
          "State Enrichment"
        ],
        "operationId": "state_enrichment__healthy_diet_cost_history",
        "summary": "Cost of a healthy diet: history",
        "description": "The series, newest first.\n\nReference: https://dataminal.com/nigeria/state-enrichment",
        "parameters": [
          {
            "name": "area",
            "in": "query",
            "required": false,
            "description": "all, urban, rural or any.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "component",
            "in": "query",
            "required": false,
            "description": "total, a food group, or any.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "geography",
            "in": "query",
            "required": false,
            "description": "national, zone, state or all.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "state",
            "in": "query",
            "required": false,
            "description": "State key, for example lagos.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "zone",
            "in": "query",
            "required": false,
            "description": "Geopolitical zone key.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "description": "First month, YYYY-MM.",
            "schema": {
              "type": "string",
              "pattern": "^\\d{4}-\\d{2}$"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "description": "Last month, YYYY-MM.",
            "schema": {
              "type": "string",
              "pattern": "^\\d{4}-\\d{2}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/healthy-diet-cost/releases": {
      "get": {
        "tags": [
          "State Enrichment"
        ],
        "operationId": "state_enrichment__healthy_diet_cost_releases",
        "summary": "Releases",
        "description": "NBS files read: status, layout, rows, quality counts, publication date.\n\nReference: https://dataminal.com/nigeria/state-enrichment",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum rows.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "description": "Rows to skip.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/healthy-diet-cost/methodologies": {
      "get": {
        "tags": [
          "State Enrichment"
        ],
        "operationId": "state_enrichment__healthy_diet_cost_methodologies",
        "summary": "Method notes",
        "description": "Method, coverage and comparability notes.\n\nReference: https://dataminal.com/nigeria/state-enrichment",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/healthy-diet-cost/quality": {
      "get": {
        "tags": [
          "State Enrichment"
        ],
        "operationId": "state_enrichment__healthy_diet_cost_quality",
        "summary": "Quality checks",
        "description": "Check results with a summary by check.\n\nReference: https://dataminal.com/nigeria/state-enrichment",
        "parameters": [
          {
            "name": "severity",
            "in": "query",
            "required": false,
            "description": "Filter by severity.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/healthy-diet-cost/coverage": {
      "get": {
        "tags": [
          "State Enrichment"
        ],
        "operationId": "state_enrichment__healthy_diet_cost_coverage",
        "summary": "Coverage",
        "description": "Freshness assessment and the build summary.\n\nReference: https://dataminal.com/nigeria/state-enrichment",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/state-capital-importation/latest": {
      "get": {
        "tags": [
          "State Enrichment"
        ],
        "operationId": "state_enrichment__state_capital_importation_latest",
        "summary": "Capital importation by state: latest",
        "description": "The newest period.\n\nReference: https://dataminal.com/nigeria/state-enrichment",
        "parameters": [
          {
            "name": "period",
            "in": "query",
            "required": false,
            "description": "Quarter as YYYY-Qn. Defaults to the newest with a state table.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/state-capital-importation": {
      "get": {
        "tags": [
          "State Enrichment"
        ],
        "operationId": "state_enrichment__state_capital_importation",
        "summary": "Capital importation by state: latest",
        "description": "Same as /nigeria/state-capital-importation/latest.\n\nReference: https://dataminal.com/nigeria/state-enrichment",
        "parameters": [
          {
            "name": "period",
            "in": "query",
            "required": false,
            "description": "Quarter as YYYY-Qn. Defaults to the newest with a state table.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/state-capital-importation/history": {
      "get": {
        "tags": [
          "State Enrichment"
        ],
        "operationId": "state_enrichment__state_capital_importation_history",
        "summary": "Capital importation by state: history",
        "description": "The series, newest first.\n\nReference: https://dataminal.com/nigeria/state-enrichment",
        "parameters": [
          {
            "name": "state",
            "in": "query",
            "required": false,
            "description": "State key.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "description": "Reporting status.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "description": "First quarter, YYYY-Qn.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "description": "Last quarter, YYYY-Qn.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/state-capital-importation/releases": {
      "get": {
        "tags": [
          "State Enrichment"
        ],
        "operationId": "state_enrichment__state_capital_importation_releases",
        "summary": "Releases",
        "description": "NBS files read: status, layout, rows, quality counts, publication date.\n\nReference: https://dataminal.com/nigeria/state-enrichment",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum rows.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "description": "Rows to skip.",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/state-capital-importation/methodologies": {
      "get": {
        "tags": [
          "State Enrichment"
        ],
        "operationId": "state_enrichment__state_capital_importation_methodologies",
        "summary": "Method notes",
        "description": "Method, coverage and comparability notes.\n\nReference: https://dataminal.com/nigeria/state-enrichment",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/state-capital-importation/quality": {
      "get": {
        "tags": [
          "State Enrichment"
        ],
        "operationId": "state_enrichment__state_capital_importation_quality",
        "summary": "Quality checks",
        "description": "Check results with a summary by check.\n\nReference: https://dataminal.com/nigeria/state-enrichment",
        "parameters": [
          {
            "name": "severity",
            "in": "query",
            "required": false,
            "description": "Filter by severity.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/state-capital-importation/coverage": {
      "get": {
        "tags": [
          "State Enrichment"
        ],
        "operationId": "state_enrichment__state_capital_importation_coverage",
        "summary": "Coverage",
        "description": "Freshness assessment and the build summary.\n\nReference: https://dataminal.com/nigeria/state-enrichment",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    },
    "/nigeria/context/leaders": {
      "get": {
        "tags": [
          "Context"
        ],
        "operationId": "context__api",
        "summary": "Leaders in office",
        "description": "Nigeria's national leadership since independence, oldest first: one row per tenure with the office as published, a normalised office and government type, tenure dates, succession and the source. Filter by year or date to resolve who led Nigeria then.\n\nReference: https://dataminal.com/nigeria/context/leaders",
        "parameters": [
          {
            "name": "year",
            "in": "query",
            "required": false,
            "description": "Every tenure overlapping the calendar year, e.g. 1985 returns both leaders of that year.",
            "schema": {
              "type": "integer"
            },
            "example": 1985
          },
          {
            "name": "date",
            "in": "query",
            "required": false,
            "description": "The tenure covering one day, YYYY-MM-DD.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "office",
            "in": "query",
            "required": false,
            "description": "prime_minister, president, military_head_of_state or interim_head_of_state.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "government_type",
            "in": "query",
            "required": false,
            "description": "civilian, military or transitional.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "is_current",
            "in": "query",
            "required": false,
            "description": "true for the sitting leader only.",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rows"
                },
                "example": {
                  "count": 2,
                  "data": [
                    {
                      "leader_id": "buhari_1983",
                      "sequence": 8,
                      "person_key": "muhammadu_buhari",
                      "leader_name": "Muhammadu Buhari",
                      "leader_name_source": "Maj. Gen. Muhammadu Buhari",
                      "office": "Head of State (Military Government)",
                      "office_normalized": "military_head_of_state",
                      "government_type": "military",
                      "start_date": "1983-12-31",
                      "end_date": "1985-08-27",
                      "is_current": false,
                      "tenure_days": 605,
                      "party": null,
                      "vice_president_or_deputy": null,
                      "republic": null,
                      "predecessor": "shagari_1979",
                      "successor": "babangida_1985",
                      "source_agency": "State House, Presidency of the Federal Republic of Nigeria",
                      "source_url": "https://statehouse.gov.ng/past-heads-of-state-and-presidents/",
                      "last_verified_at": "2026-09-11T21:15:41Z",
                      "notes": null
                    },
                    {
                      "leader_id": "babangida_1985",
                      "...": "..."
                    }
                  ],
                  "filters": {
                    "year": 1985,
                    "date": null,
                    "office": null,
                    "government_type": null,
                    "is_current": null
                  },
                  "coverage": {
                    "start": "1960-10-01",
                    "end": "sitting leader"
                  },
                  "source": {
                    "agency": "State House, Presidency of the Federal Republic of Nigeria",
                    "url": "https://statehouse.gov.ng/past-heads-of-state-and-presidents/",
                    "curated_at": "2026-09-11T21:15:41Z",
                    "verified_at": "2026-09-11T21:15:41Z",
                    "verification_status": "verified"
                  },
                  "note": "Tenure dates as published by the State House. A leader's tenure is context for a period, not an explanation of what an indicator did during it."
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "ApiKey": {
        "type": "apiKey",
        "in": "header",
        "name": "X-Api-Key",
        "description": "Request a key at dataminal.com: Settings, API access."
      }
    },
    "schemas": {
      "Rows": {
        "type": "object",
        "properties": {
          "count": {
            "type": "integer"
          },
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": true
            }
          },
          "access": {
            "type": "object",
            "description": "Present when rows were limited: a sample, a cap, or a history window.",
            "additionalProperties": true
          }
        },
        "additionalProperties": true
      },
      "Error": {
        "type": "object",
        "required": [
          "error"
        ],
        "properties": {
          "error": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "docs": {
            "type": "string"
          }
        }
      }
    },
    "responses": {
      "Error": {
        "description": "An error with a message saying what to change. 429 carries Retry-After.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      }
    }
  }
}
