{
  "openapi": "3.0.1",
  "info": {
    "title": "MENA Economy Indicators: GDP, Inflation by Country",
    "description": "Get GDP, inflation, unemployment, population, FDI and 15 more indicators for Egypt, Saudi Arabia, UAE and 16 more MENA countries as time series. Input: countries, indicators, years. Output: one row per country and indicator. World Bank WDI data (CC BY 4.0).",
    "version": "0.1",
    "x-build-id": "hlDFLAb7rhfErztI0"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/alfhar~mena-economy-indicators/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-alfhar-mena-economy-indicators",
        "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/alfhar~mena-economy-indicators/runs": {
      "post": {
        "operationId": "runs-sync-alfhar-mena-economy-indicators",
        "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/alfhar~mena-economy-indicators/run-sync": {
      "post": {
        "operationId": "run-sync-alfhar-mena-economy-indicators",
        "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": {
          "countries": {
            "title": "Countries",
            "type": "array",
            "description": "Middle East and North Africa countries. Leave empty for all 19.",
            "items": {
              "type": "string",
              "enum": [
                "Algeria",
                "Bahrain",
                "Djibouti",
                "Egypt",
                "Iran",
                "Iraq",
                "Jordan",
                "Kuwait",
                "Lebanon",
                "Libya",
                "Morocco",
                "Oman",
                "Qatar",
                "Saudi Arabia",
                "Syria",
                "Tunisia",
                "United Arab Emirates",
                "West Bank and Gaza",
                "Yemen"
              ]
            },
            "default": [
              "Egypt",
              "Saudi Arabia",
              "United Arab Emirates",
              "Jordan"
            ]
          },
          "indicators": {
            "title": "Indicators",
            "type": "array",
            "description": "Curated World Development Indicators. One result row per country and indicator.",
            "items": {
              "type": "string",
              "enum": [
                "NY.GDP.MKTP.CD",
                "NY.GDP.PCAP.CD",
                "NY.GDP.MKTP.KD.ZG",
                "FP.CPI.TOTL.ZG",
                "SL.UEM.TOTL.ZS",
                "SP.POP.TOTL",
                "SP.POP.GROW",
                "SP.URB.TOTL.IN.ZS",
                "BX.KLT.DINV.CD.WD",
                "NE.EXP.GNFS.ZS",
                "NE.IMP.GNFS.ZS",
                "PA.NUS.FCRF",
                "FR.INR.RINR",
                "GC.DOD.TOTL.GD.ZS",
                "IT.NET.USER.ZS",
                "IT.CEL.SETS.P2",
                "SL.TLF.CACT.ZS",
                "SP.DYN.LE00.IN",
                "NV.IND.TOTL.ZS",
                "BN.CAB.XOKA.GD.ZS"
              ],
              "enumTitles": [
                "GDP (current US$) [NY.GDP.MKTP.CD]",
                "GDP per capita (current US$) [NY.GDP.PCAP.CD]",
                "GDP growth (annual %) [NY.GDP.MKTP.KD.ZG]",
                "Inflation, consumer prices (annual %) [FP.CPI.TOTL.ZG]",
                "Unemployment, total (% of labor force) [SL.UEM.TOTL.ZS]",
                "Population, total [SP.POP.TOTL]",
                "Population growth (annual %) [SP.POP.GROW]",
                "Urban population (% of total) [SP.URB.TOTL.IN.ZS]",
                "Foreign direct investment, net inflows (US$) [BX.KLT.DINV.CD.WD]",
                "Exports of goods and services (% of GDP) [NE.EXP.GNFS.ZS]",
                "Imports of goods and services (% of GDP) [NE.IMP.GNFS.ZS]",
                "Official exchange rate (LCU per US$, period average) [PA.NUS.FCRF]",
                "Real interest rate (%) [FR.INR.RINR]",
                "Central government debt (% of GDP) [GC.DOD.TOTL.GD.ZS]",
                "Individuals using the Internet (% of population) [IT.NET.USER.ZS]",
                "Mobile cellular subscriptions (per 100 people) [IT.CEL.SETS.P2]",
                "Labor force participation rate (% of population 15+) [SL.TLF.CACT.ZS]",
                "Life expectancy at birth (years) [SP.DYN.LE00.IN]",
                "Industry value added (% of GDP) [NV.IND.TOTL.ZS]",
                "Current account balance (% of GDP) [BN.CAB.XOKA.GD.ZS]"
              ]
            },
            "default": [
              "NY.GDP.MKTP.CD",
              "FP.CPI.TOTL.ZG",
              "SL.UEM.TOTL.ZS"
            ]
          },
          "customIndicators": {
            "title": "Other indicator codes",
            "type": "array",
            "description": "Any other World Development Indicators code, for example SH.XPD.CHEX.GD.ZS. Find codes at data.worldbank.org/indicator. Only the WDI database is queried.",
            "items": {
              "type": "string"
            }
          },
          "startYear": {
            "title": "Start year",
            "minimum": 1960,
            "maximum": 2100,
            "type": "integer",
            "description": "First year of the series.",
            "default": 2015
          },
          "endYear": {
            "title": "End year",
            "minimum": 1960,
            "maximum": 2100,
            "type": "integer",
            "description": "Last year of the series. Default is the current year."
          },
          "latestOnly": {
            "title": "Latest value only",
            "type": "boolean",
            "description": "Return only the most recent available year per series (the series array has one point).",
            "default": false
          },
          "maxSeries": {
            "title": "Max rows",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Stop after this many rows (one row per country and indicator).",
            "default": 100
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}