{
  "openapi": "3.0.1",
  "info": {
    "title": "World Bank — GDP & Economic Indicators",
    "description": "This tool extracts Gross Domestic Product (GDP) data along with over 30 additional economic indicators directly from the World Bank Open Data API version 2. It operates without the need for an API key, making it accessible and easy to use for anyone interested in economic analysis.",
    "version": "0.0",
    "x-build-id": "B4vrc66GbWyb6357Q"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/moving_beacon-owner1~my-actor-86/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-moving_beacon-owner1-my-actor-86",
        "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/moving_beacon-owner1~my-actor-86/runs": {
      "post": {
        "operationId": "runs-sync-moving_beacon-owner1-my-actor-86",
        "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/moving_beacon-owner1~my-actor-86/run-sync": {
      "post": {
        "operationId": "run-sync-moving_beacon-owner1-my-actor-86",
        "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",
        "required": [
          "indicators",
          "countries",
          "dateRange"
        ],
        "properties": {
          "indicators": {
            "title": "Economic Indicators",
            "type": "array",
            "description": "Select one or more World Bank indicators to fetch.",
            "items": {
              "type": "string",
              "enum": [
                "NY.GDP.MKTP.CD",
                "NY.GDP.MKTP.KD.ZG",
                "NY.GDP.PCAP.CD",
                "NY.GDP.PCAP.PP.CD",
                "NY.GNP.MKTP.CD",
                "NY.GNP.PCAP.CD",
                "FP.CPI.TOTL.ZG",
                "SL.UEM.TOTL.ZS",
                "SL.UEM.TOTL.NE.ZS",
                "NE.EXP.GNFS.ZS",
                "NE.IMP.GNFS.ZS",
                "BN.CAB.XOKA.CD",
                "GC.DOD.TOTL.GD.ZS",
                "GC.REV.XGRT.GD.ZS",
                "GC.XPN.TOTL.GD.ZS",
                "BX.KLT.DINV.CD.WD",
                "DT.DOD.DECT.CD",
                "PA.NUS.FCRF",
                "FI.RES.TOTL.CD",
                "BX.TRF.PWKR.CD.DT",
                "SP.POP.TOTL",
                "SP.POP.GROW",
                "SP.DYN.LE00.IN",
                "SE.ADT.LITR.ZS",
                "SP.DYN.TFRT.IN",
                "EN.ATM.CO2E.KT",
                "EG.USE.ELEC.KH.PC",
                "IT.NET.USER.ZS",
                "IT.CEL.SETS.P2",
                "SI.POV.DDAY",
                "SI.DST.FRST.20",
                "SI.POV.GINI"
              ],
              "enumTitles": [
                "GDP (current US$)",
                "GDP Growth (annual %)",
                "GDP Per Capita (current US$)",
                "GDP Per Capita, PPP (current intl $)",
                "GNI (current US$)",
                "GNI Per Capita (current US$)",
                "Inflation, CPI (annual %)",
                "Unemployment (% of total labor — ILO)",
                "Unemployment (% of total labor — national)",
                "Exports of Goods & Services (% of GDP)",
                "Imports of Goods & Services (% of GDP)",
                "Current Account Balance (US$)",
                "Central Govt Debt (% of GDP)",
                "Government Revenue (% of GDP)",
                "Government Expenditure (% of GDP)",
                "Foreign Direct Investment, net inflows (US$)",
                "External Debt (current US$)",
                "Official Exchange Rate (LCU per US$)",
                "Total Reserves incl. Gold (US$)",
                "Personal Remittances Received (US$)",
                "Population, Total",
                "Population Growth (annual %)",
                "Life Expectancy at Birth (years)",
                "Adult Literacy Rate (%)",
                "Fertility Rate (births per woman)",
                "CO2 Emissions (kt)",
                "Electric Power Consumption (kWh per capita)",
                "Internet Users (% of population)",
                "Mobile Subscriptions (per 100 people)",
                "Poverty Headcount at $2.15/day (%)",
                "Income Share — Lowest 20%",
                "GINI Index"
              ]
            },
            "default": [
              "NY.GDP.MKTP.CD"
            ]
          },
          "countries": {
            "title": "Countries (ISO codes)",
            "type": "string",
            "description": "Comma-separated ISO 3166-1 alpha-2 or alpha-3 country codes (e.g. US,CN,IN,DE,PK). Use 'all' for all countries.",
            "default": "US;CN;IN;DE;JP;GB;FR;BR;PK"
          },
          "dateRange": {
            "title": "Date Range (Years)",
            "type": "string",
            "description": "Year range in YYYY:YYYY format (e.g. 2000:2023). Use a single year like 2023 for one year only.",
            "default": "2015:2023"
          },
          "regionFilter": {
            "title": "Region Filter",
            "enum": [
              "none",
              "EAS",
              "ECS",
              "LCN",
              "MEA",
              "NAC",
              "SAS",
              "SSF"
            ],
            "type": "string",
            "description": "Optionally limit to a World Bank region (overrides country list if set).",
            "default": "none"
          },
          "incomeLevelFilter": {
            "title": "Income Level Filter",
            "enum": [
              "none",
              "HIC",
              "UMC",
              "LMC",
              "LIC"
            ],
            "type": "string",
            "description": "Optionally filter countries by World Bank income classification.",
            "default": "none"
          },
          "skipEmptyValues": {
            "title": "Skip Empty Values",
            "type": "boolean",
            "description": "If checked, rows where the indicator value is null/missing are excluded.",
            "default": true
          },
          "sortBy": {
            "title": "Sort By",
            "enum": [
              "year_desc",
              "year_asc",
              "country_asc",
              "value_desc",
              "value_asc"
            ],
            "type": "string",
            "description": "How to sort the output records.",
            "default": "year_desc"
          },
          "outputFormat": {
            "title": "Output Shape",
            "enum": [
              "long",
              "wide_by_year",
              "wide_by_indicator"
            ],
            "type": "string",
            "description": "How to structure the dataset rows.",
            "default": "long"
          },
          "maxResults": {
            "title": "Maximum Results",
            "minimum": 0,
            "type": "integer",
            "description": "Limit the number of records saved. 0 = no limit.",
            "default": 0
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}