{
  "openapi": "3.0.1",
  "info": {
    "title": "EU Statistics API: Eurostat + ECB Series, Flat JSON",
    "description": "Eurostat datasets and ECB exchange rates / SDMX series as flat rows, one per observation: dimension labels, period, value, status flags, unit, update date. Search the catalogue, filter by country and period. Official open APIs, unofficial tool, no personal data.",
    "version": "0.1",
    "x-build-id": "Rv16gIxfpmnZM7yMi"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/shadow-tools~eu-statistics-eurostat-ecb/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-shadow-tools-eu-statistics-eurostat-ecb",
        "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/shadow-tools~eu-statistics-eurostat-ecb/runs": {
      "post": {
        "operationId": "runs-sync-shadow-tools-eu-statistics-eurostat-ecb",
        "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/shadow-tools~eu-statistics-eurostat-ecb/run-sync": {
      "post": {
        "operationId": "run-sync-shadow-tools-eu-statistics-eurostat-ecb",
        "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": [
              "getSeries",
              "searchDatasets",
              "ecbRates"
            ],
            "type": "string",
            "description": "Pick one. \"searchDatasets\" = use first when you do not know the dataset code: keyword -> code, title, last update, period covered. \"getSeries\" = use to read observations of a Eurostat dataset (give dataset + filters + period) or of an ECB series (source ecb, dataset + seriesKey). \"ecbRates\" = use for euro foreign exchange reference rates (ECB), by currency and period. Allowed values: getSeries, searchDatasets, ecbRates. Default: getSeries.",
            "default": "getSeries"
          },
          "source": {
            "title": "Source",
            "enum": [
              "eurostat",
              "ecb",
              "all"
            ],
            "type": "string",
            "description": "Which provider, e.g. \"eurostat\". Allowed values: eurostat, ecb, all. In searchDatasets: all (default) searches both catalogues. In getSeries: eurostat (default) or ecb (then dataset + seriesKey are required). Ignored in ecbRates."
          },
          "query": {
            "title": "Search keywords (searchDatasets)",
            "type": "string",
            "description": "Keywords, e.g. \"unemployment rate\" or \"HICP inflation\" or a code prefix like \"une_\". English; every word must appear in the dataset title or code. Used only in searchDatasets mode."
          },
          "dataset": {
            "title": "Dataset / dataflow code (getSeries)",
            "type": "string",
            "description": "Eurostat dataset code, e.g. \"une_rt_m\" (monthly unemployment), \"nama_10_gdp\" (GDP), \"prc_hicp_manr\" (inflation); or, with source ecb, the ECB dataflow id, e.g. \"ICP\". Find codes with mode searchDatasets. Required in getSeries unless the whole input is empty."
          },
          "geo": {
            "title": "Countries / geo codes (Eurostat)",
            "maxItems": 100,
            "type": "array",
            "description": "Eurostat geo codes as a list, e.g. [\"FR\", \"DE\"] or [\"EU27_2020\"] for the EU aggregate (Greece is \"EL\"). Shortcut for filters.geo. Only EU, EFTA, EU-candidate countries and aggregates are delivered (Eurostat reuse conditions). Empty = all countries of the dataset.",
            "items": {
              "type": "string"
            }
          },
          "unit": {
            "title": "Unit codes (Eurostat)",
            "maxItems": 20,
            "type": "array",
            "description": "Eurostat unit codes as a list, e.g. [\"PC_ACT\"] (percent of active population), [\"CP_MEUR\"] (current prices, million euro). Shortcut for filters.unit. Empty = all units of the dataset.",
            "items": {
              "type": "string"
            }
          },
          "filters": {
            "title": "Other dimension filters (Eurostat)",
            "type": "object",
            "description": "JSON object mapping a dimension code to a value or a list of values, e.g. {\"sex\": \"T\", \"age\": \"TOTAL\", \"s_adj\": \"SA\"}. Any dimension of the dataset can be filtered (the output columns show the dimension codes). Several values in a list match any of them. Leave empty for no filter on other dimensions (more rows)."
          },
          "seriesKey": {
            "title": "ECB series key (source ecb)",
            "type": "string",
            "description": "SDMX series key of the ECB dataflow: dimension values separated by dots, \"+\" for several values, empty part = all, e.g. \"M.U2.N.000000.4.ANR\" for the dataflow ICP. Required when source is ecb in getSeries; for exchange rates use mode ecbRates instead."
          },
          "currency": {
            "title": "Currencies (ecbRates)",
            "maxItems": 40,
            "type": "array",
            "description": "3-letter ISO currency codes quoted against the euro, as a list, e.g. [\"USD\", \"GBP\", \"JPY\"]. Used only in ecbRates mode. Empty = every currency the ECB publishes (about 30). Rates are for information only, not for transactions.",
            "items": {
              "type": "string"
            }
          },
          "startPeriod": {
            "title": "Start period",
            "type": "string",
            "description": "First period to return, e.g. \"2025\", \"2025-Q3\", \"2025-10\" or \"2025-10-31\" (match the frequency of the data). Do not combine with lastPeriods."
          },
          "endPeriod": {
            "title": "End period",
            "type": "string",
            "description": "Last period to return, same format as startPeriod, e.g. \"2025-12\". Empty = up to the latest published. Do not combine with lastPeriods."
          },
          "lastPeriods": {
            "title": "Last N periods",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Return only the latest N periods (months, quarters or years according to the data), an integer between 1 and 1000, e.g. 12. Counted per dataset (Eurostat) or per series (ECB); the very latest period can be empty when not yet published. In ecbRates the default is 1 (latest day). Do not combine with startPeriod/endPeriod."
          },
          "sortOrder": {
            "title": "Sort order of periods",
            "enum": [
              "newest-first",
              "oldest-first"
            ],
            "type": "string",
            "description": "Order of periods inside each series, e.g. \"newest-first\". Allowed values: newest-first (default; the latest values are kept when maxResults cuts the list), oldest-first.",
            "default": "newest-first"
          },
          "maxResults": {
            "title": "Maximum rows",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Maximum number of rows returned (observations, or catalogue entries in searchDatasets), an integer between 1 and 100000, e.g. 20. Each row is one billed event. Large datasets are refused with a message asking for filters. Default: 20.",
            "default": 20
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}