{
  "openapi": "3.0.1",
  "info": {
    "title": "Eurostat Scraper",
    "description": "Scrape Eurostat, the EU's official statistics: GDP, population, inflation, unemployment, trade and 7,500+ datasets and tables for every EU country and region, filtered by country, unit and year, one tidy row per value with labels and status flags. Search the catalogue by keyword. No API key.",
    "version": "1.0",
    "x-build-id": "BEvaP8JFniDJsAXKy"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/anyxsolutions~eurostat-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-anyxsolutions-eurostat-scraper",
        "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/anyxsolutions~eurostat-scraper/runs": {
      "post": {
        "operationId": "runs-sync-anyxsolutions-eurostat-scraper",
        "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/anyxsolutions~eurostat-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-anyxsolutions-eurostat-scraper",
        "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": {
          "startUrls": {
            "title": "Eurostat dataset URLs",
            "type": "array",
            "description": "Eurostat data browser pages of a dataset or table, for example https://ec.europa.eu/eurostat/databrowser/view/nama_10_gdp/default/table?lang=en (GDP). Product pages (…/databrowser/product/page/NAMA_10_GDP) work too.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "datasetCodes": {
            "title": "Dataset codes",
            "type": "array",
            "description": "Eurostat dataset or table codes, one per line, for example nama_10_gdp (GDP), une_rt_m (monthly unemployment), prc_hicp_manr (inflation), demo_pjan (population by age and sex) or tps00001 (population). The code is in every data browser address.",
            "items": {
              "type": "string"
            }
          },
          "searchTerms": {
            "title": "Search the catalogue",
            "type": "array",
            "description": "Keywords to find datasets and tables, one search per line, for example unemployment rate or house prices. Returns one row per matching dataset with its code, title, last update, period covered and size, instead of data.",
            "items": {
              "type": "string"
            }
          },
          "geo": {
            "title": "Countries and regions",
            "type": "array",
            "description": "Eurostat geo codes, one per line, for example DE, FR, EL (Greece), EU27_2020 (the EU) or EA20 (the euro area); regional datasets take NUTS codes such as DE11. Leave empty for every country and region.",
            "items": {
              "type": "string"
            }
          },
          "filters": {
            "title": "Dimension filters",
            "type": "object",
            "description": "Codes to keep per dimension, for example {\"unit\": \"CP_MEUR\", \"na_item\": [\"B1GQ\"], \"sex\": \"T\"}. Keys are the dimension codes shown in every row's dimensions field; values are one code or a list. Leave empty to get every code."
          },
          "timeFrom": {
            "title": "From period",
            "type": "string",
            "description": "Only return periods from this one on, written as Eurostat writes them, for example 2015, 2020-Q1 or 2023-01. Leave empty to start at the first period on record."
          },
          "timeTo": {
            "title": "To period",
            "type": "string",
            "description": "Only return periods up to this one, for example 2024; a year also takes in its quarters and months. Leave empty to end at the latest period."
          },
          "lastTimePeriods": {
            "title": "Latest periods only",
            "minimum": 1,
            "type": "integer",
            "description": "Return only the latest N periods of each dataset, for example 1 for a snapshot of the newest figures. Combines with From period and To period."
          },
          "skipEmptyValues": {
            "title": "Skip observations without a value",
            "type": "boolean",
            "description": "Leave out rows Eurostat lists with only a status flag and no number, such as confidential (c) or not available values.",
            "default": false
          },
          "onlyCommercialReuse": {
            "title": "Only data licensed for commercial reuse",
            "type": "boolean",
            "description": "Leave out rows for countries outside the EU, EFTA and the EU candidate countries (for example the United States or Japan). Eurostat's copyright notice allows commercial reuse of its data except for those countries.",
            "default": true
          },
          "maxItems": {
            "title": "Maximum rows per source",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of rows to return per URL, dataset code or search. Leave empty for every row; whole datasets can hold millions."
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Proxy settings. Eurostat data is public and needs no proxy.",
            "default": {
              "useApifyProxy": false
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}