{
  "openapi": "3.0.1",
  "info": {
    "title": "World Bank & Eurostat API: GDP, Inflation, Unemployment",
    "description": "GDP, inflation, unemployment, population and 1,400+ official indicators from World Bank and Eurostat: one row per country and year, YoY change, rank, CSV table. No API key, no login. MCP-ready for AI agents. Pay per result, errors and empty values free. $0.30 per 1,000 datapoints",
    "version": "0.1",
    "x-build-id": "Lc5H8OSo8GzdLr6kx"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/actose~world-bank-eurostat-indicators/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-actose-world-bank-eurostat-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/actose~world-bank-eurostat-indicators/runs": {
      "post": {
        "operationId": "runs-sync-actose-world-bank-eurostat-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/actose~world-bank-eurostat-indicators/run-sync": {
      "post": {
        "operationId": "run-sync-actose-world-bank-eurostat-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": {
          "worldBankIndicators": {
            "title": "World Bank indicator codes",
            "type": "array",
            "description": "World Bank indicator codes (WDI and other World Bank sources), e.g. NY.GDP.PCAP.CD (GDP per capita, current US$), FP.CPI.TOTL.ZG (inflation), SL.UEM.TOTL.ZS (unemployment), SP.POP.TOTL (population). Find codes on data.worldbank.org: the code is in the indicator page URL.",
            "items": {
              "type": "string"
            }
          },
          "eurostatDatasets": {
            "title": "Eurostat datasets (code?filters)",
            "type": "array",
            "description": "Eurostat dataset code, optionally followed by dimension filters like in the Eurostat API: une_rt_a?age=Y15-74&sex=T&unit=PC_ACT (unemployment rate), prc_hicp_ainr?coicop18=TOTAL&unit=RCH_A_AVG (HICP inflation), nama_10_pc?na_item=B1GQ&unit=CP_EUR_HAB (GDP per capita in EUR). Countries and years come from the fields below. Without filters, every combination of the other dimensions is returned (and charged), so filter large datasets.",
            "items": {
              "type": "string"
            }
          },
          "presets": {
            "title": "Presets (common indicators)",
            "uniqueItems": true,
            "type": "array",
            "description": "Ready-made shortcuts added to the lists above: the most requested macroeconomic series from both sources.",
            "items": {
              "type": "string",
              "enum": [
                "wb:gdp",
                "wb:gdpPerCapita",
                "wb:gdpPerCapitaPpp",
                "wb:gdpGrowth",
                "wb:inflation",
                "wb:unemployment",
                "wb:population",
                "wb:lifeExpectancy",
                "wb:exportsPctGdp",
                "wb:governmentDebtPctGdp",
                "wb:co2PerCapita",
                "eurostat:gdpPerCapita",
                "eurostat:gdpGrowth",
                "eurostat:inflationHicp",
                "eurostat:unemploymentRate",
                "eurostat:population",
                "eurostat:governmentDebtPctGdp"
              ],
              "enumTitles": [
                "World Bank – GDP (current US$)",
                "World Bank – GDP per capita (current US$)",
                "World Bank – GDP per capita, PPP (current international $)",
                "World Bank – GDP growth (annual %)",
                "World Bank – Inflation, consumer prices (annual %)",
                "World Bank – Unemployment (% of labor force, ILO)",
                "World Bank – Population, total",
                "World Bank – Life expectancy at birth",
                "World Bank – Exports of goods and services (% of GDP)",
                "World Bank – Central government debt (% of GDP)",
                "World Bank – CO2 emissions per capita",
                "Eurostat – GDP per capita (EUR, current prices)",
                "Eurostat – Real GDP growth (%)",
                "Eurostat – HICP inflation (annual average rate)",
                "Eurostat – Unemployment rate 15-74 (%)",
                "Eurostat – Population on 1 January",
                "Eurostat – General government gross debt (% of GDP)"
              ]
            }
          },
          "countries": {
            "title": "Countries",
            "type": "array",
            "description": "ISO country codes, 2 or 3 letters (FR, DEU, US, JP...). World Bank aggregates work too (EUU = European Union, WLD = World, OED = OECD) and Eurostat aggregates (EU27_2020, EA20). Greece and the UK are converted automatically for Eurostat (EL, UK). Use \"all\" for every country and aggregate.",
            "items": {
              "type": "string"
            }
          },
          "startYear": {
            "title": "Start year",
            "minimum": 1950,
            "maximum": 2100,
            "type": "integer",
            "description": "First year to return. Default: 10 years ago."
          },
          "endYear": {
            "title": "End year",
            "minimum": 1950,
            "maximum": 2100,
            "type": "integer",
            "description": "Last year to return. Default: current year (the latest available year is returned)."
          },
          "mostRecentValues": {
            "title": "Only the N most recent periods",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "If set (e.g. 1), ignores the years above and returns only the N latest periods published for each indicator. Handy for dashboards that only need the latest value."
          },
          "skipEmptyValues": {
            "title": "Skip empty values",
            "type": "boolean",
            "description": "Do not return (nor charge) country-years with no published value.",
            "default": true
          },
          "includeAggregates": {
            "title": "Include regional aggregates",
            "type": "boolean",
            "description": "Keep regional and income-group aggregates (World, Euro area, OECD...) in the results. Mostly useful with \"all\" countries.",
            "default": true
          },
          "onlyNew": {
            "title": "Only new or revised datapoints (scheduled runs)",
            "type": "boolean",
            "description": "Returns only datapoints not delivered by previous runs, plus revised values (flagged isRevision). The memory is kept in the named key-value store 'world-bank-eurostat-indicators-state'. Ideal for a weekly schedule that alerts you when a new year is published.",
            "default": false
          },
          "comparisonTable": {
            "title": "Build comparison tables (CSV + Markdown)",
            "type": "boolean",
            "description": "Also saves a wide table (countries x years) per indicator in the key-value store: comparison.csv and comparison.md (ready for spreadsheets and LLM prompts). Free.",
            "default": true
          },
          "maxResults": {
            "title": "Maximum datapoints",
            "minimum": 0,
            "type": "integer",
            "description": "Stops after this many datapoints (0 = no limit). Keeps cost under control with \"all\" countries.",
            "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
                  },
                  "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}