{
  "openapi": "3.0.1",
  "info": {
    "title": "World Bank Economic Indicators API - 1,400+ Series",
    "description": "World Bank economic indicators as JSON, no API key: any of the 1,434 World Development Indicators (GDP, inflation, population, unemployment, CO2, life expectancy, electricity access, debt...) for 217 economies and regional aggregates, 1960 to the latest year. Modes: latest value with change, yearly ",
    "version": "0.1",
    "x-build-id": "qiwlg781hZIjowleg"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/martin10291~world-bank-indicators-api/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-martin10291-world-bank-indicators-api",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/martin10291~world-bank-indicators-api/runs": {
      "post": {
        "operationId": "runs-sync-martin10291-world-bank-indicators-api",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/martin10291~world-bank-indicators-api/run-sync": {
      "post": {
        "operationId": "run-sync-martin10291-world-bank-indicators-api",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "latest",
              "history",
              "rank",
              "compare",
              "search",
              "countries"
            ],
            "type": "string",
            "description": "latest = newest value per country and indicator with the change vs the year before; history = one row per country, indicator and year; rank = countries ranked by one indicator in one year; compare = growth of one indicator between two years per country (change, CAGR, min/max); search = find indicator codes by words; countries = list of economies and aggregates.",
            "default": "latest"
          },
          "countries": {
            "title": "Countries",
            "type": "array",
            "description": "ISO2 (US, DE, BG), ISO3 (USA, DEU) or English names (Germany). Aggregates work too (WLD = world, EUU = EU, HIC = high income). Up to 20. Empty = US, CN, DE, IN, BR.",
            "items": {
              "type": "string"
            }
          },
          "indicators": {
            "title": "Indicators",
            "type": "array",
            "description": "World Bank codes (NY.GDP.MKTP.CD) or plain words (gdp, inflation, population, unemployment, gdp per capita, co2 per capita, life expectancy, internet users). Up to 10; rank and compare use the first one. Use mode=search to find codes. Empty = GDP, inflation, population.",
            "items": {
              "type": "string"
            }
          },
          "fromYear": {
            "title": "From year",
            "type": "integer",
            "description": "For history and compare: first year (1960 or later). Default 20 years ago."
          },
          "toYear": {
            "title": "To year",
            "type": "integer",
            "description": "For history and compare: last year. Default the latest year."
          },
          "year": {
            "title": "Year (rank)",
            "type": "integer",
            "description": "For rank: the year to rank. Default = the latest year where at least half of the reporting countries have data."
          },
          "order": {
            "title": "Order (rank)",
            "enum": [
              "desc",
              "asc"
            ],
            "type": "string",
            "description": "For rank: desc = highest first, asc = lowest first.",
            "default": "desc"
          },
          "region": {
            "title": "Region filter (rank)",
            "type": "string",
            "description": "For rank: only countries of this World Bank region, e.g. Europe & Central Asia, Sub-Saharan Africa."
          },
          "incomeGroup": {
            "title": "Income group filter (rank)",
            "type": "string",
            "description": "For rank: only countries of this income group, e.g. High income, Lower middle income."
          },
          "includeAggregates": {
            "title": "Include aggregates (rank)",
            "type": "boolean",
            "description": "For rank and countries: also include regional/income aggregates such as World or Euro area.",
            "default": false
          },
          "query": {
            "title": "Search words",
            "type": "string",
            "description": "For search: words to find indicators, e.g. female unemployment, renewable energy, government debt."
          },
          "limit": {
            "title": "Max rows",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum rows returned. Between 1 and 5000.",
            "default": 100
          },
          "onlyNew": {
            "title": "Only new years (monitor)",
            "type": "boolean",
            "description": "Return only country/indicator/year rows not returned before for this Monitor ID. Schedule monthly to get each new World Bank year once.",
            "default": false
          },
          "monitorId": {
            "title": "Monitor ID",
            "type": "string",
            "description": "Name of the watch for only-new mode, e.g. my-dashboard. Each Monitor ID keeps its own memory.",
            "default": "default"
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}