{
  "openapi": "3.0.1",
  "info": {
    "title": "Eurostat & ECB Statistics: Inflation, Jobs, GDP, EUR FX",
    "description": "Eurostat and ECB open statistics as clean flat rows: inflation, unemployment, GDP, debt, population and euro exchange rates. Presets, country and period filters, latest-value mode and delta mode for revisions.",
    "version": "1.0",
    "x-build-id": "puBrARR7B8sLdhE5R"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/datacrate~eurostat-ecb-statistics-feed/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-datacrate-eurostat-ecb-statistics-feed",
        "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/datacrate~eurostat-ecb-statistics-feed/runs": {
      "post": {
        "operationId": "runs-sync-datacrate-eurostat-ecb-statistics-feed",
        "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/datacrate~eurostat-ecb-statistics-feed/run-sync": {
      "post": {
        "operationId": "run-sync-datacrate-eurostat-ecb-statistics-feed",
        "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": {
          "preset": {
            "title": "Indicator preset",
            "enum": [
              "hicp-inflation",
              "unemployment-rate",
              "youth-unemployment",
              "gdp-growth",
              "industrial-production",
              "government-debt",
              "population",
              "ecb-eur-usd-daily",
              "ecb-eur-gbp-daily",
              "ecb-eur-jpy-daily",
              "ecb-eur-chf-daily",
              "ecb-fx-major-daily",
              "ecb-fx-major-monthly"
            ],
            "type": "string",
            "description": "Ready-made indicators. Ignored when 'Custom Eurostat dataset code' is set. ECB presets return euro reference exchange rates.",
            "default": "hicp-inflation"
          },
          "countries": {
            "title": "Countries / areas (Eurostat)",
            "type": "array",
            "description": "Eurostat geo codes, e.g. DE, FR, IT, ES, PL, EU27_2020, EA21 (euro area; the HICP dataset uses EA). Leave empty for the preset's default set (euro area, Germany, France, Italy, Spain).",
            "items": {
              "type": "string"
            }
          },
          "currencies": {
            "title": "Currencies (ECB presets)",
            "type": "array",
            "description": "Optional override for ECB presets: ISO currency codes quoted per 1 euro, e.g. USD, GBP, JPY, SEK, PLN.",
            "items": {
              "type": "string"
            }
          },
          "fxFrequency": {
            "title": "Exchange rate frequency (ECB presets)",
            "enum": [
              "",
              "D",
              "M",
              "A"
            ],
            "type": "string",
            "description": "Optional override: D = daily reference rate, M = monthly average, A = annual average.",
            "default": ""
          },
          "dataset": {
            "title": "Custom Eurostat dataset code",
            "type": "string",
            "description": "Optional. Any Eurostat dataset code, e.g. nrg_pc_204 or ei_bsco_m. Pair it with 'Dimension filters' so the response stays small. Overrides the preset."
          },
          "filters": {
            "title": "Dimension filters (custom dataset or preset overrides)",
            "type": "object",
            "description": "Eurostat dimension codes to keep, e.g. {\"unit\": \"PC_ACT\", \"sex\": [\"M\", \"F\"]}. Values can be a string or a list."
          },
          "lastNPeriods": {
            "title": "Latest N time periods",
            "minimum": 1,
            "maximum": 400,
            "type": "integer",
            "description": "How many most recent periods to fetch per series (ignored when 'From period' is set).",
            "default": 5
          },
          "sinceTimePeriod": {
            "title": "From period",
            "type": "string",
            "description": "Optional start: 2024, 2024-06, 2024-Q2 or (ECB daily) 2024-06-15."
          },
          "untilTimePeriod": {
            "title": "Until period",
            "type": "string",
            "description": "Optional end, same formats."
          },
          "latestOnly": {
            "title": "Latest value only",
            "type": "boolean",
            "description": "Return only the newest available value for each country or currency.",
            "default": false
          },
          "maxItems": {
            "title": "Max rows",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "Upper bound on rows (and on cost).",
            "default": 25
          },
          "onlyNewSinceLastRun": {
            "title": "Delta mode (new or revised values only)",
            "type": "boolean",
            "description": "Skip observations already returned with the same value by an earlier run with the same state name. Revised values are returned again with the previous value. The first run sets the baseline.",
            "default": false
          },
          "stateKey": {
            "title": "State name (delta mode)",
            "type": "string",
            "description": "Use different names to keep separate watchlists.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}