Eurostat Explorer
Eurostat Explorer · GPT-Aktionen
User Input API
API for search dataset code based on user input
POST /matchProcess User InputSearch dataset code based on user input
Ursprüngliches API-Schema
{
"openapi": "3.0.0",
"info": {
"title": "User Input API",
"version": "1.0.0",
"description": "API for search dataset code based on user input"
},
"servers": [
{
"url": "https://eurostat-gpts.mggis0or1.workers.dev"
}
],
"paths": {
"/match": {
"post": {
"operationId": "SearchDatasetCodeByUserInput",
"summary": "Process User Input",
"description": "Search dataset code based on user input",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"user_input": {
"type": "string"
}
},
"required": [
"user_input"
]
}
}
}
},
"responses": {
"200": {
"description": "The dataset code searched is based on user input.",
"content": {
"text/plain": {
"schema": {
"type": "string"
}
}
}
},
"400": {
"description": "Bad request, when the request body does not contain the required fields."
},
"500": {
"description": "Internal server error, when there is an error processing the request."
}
}
}
}
}
}Eurostat Statistics Data API
Provides statistical data in JSON-stat 2.0 format using REST protocol and supports English, French, or German languages.
GET /data/{datasetCode}Retrieve statistical data for a specified dataset.
Ursprüngliches API-Schema
{
"openapi": "3.1.0",
"info": {
"title": "Eurostat Statistics Data API",
"description": "Provides statistical data in JSON-stat 2.0 format using REST protocol and supports English, French, or German languages.",
"version": "1.0.0"
},
"servers": [
{
"url": "https://ec.europa.eu/eurostat/api/dissemination/statistics/1.0",
"description": "Eurostat Statistics Service"
}
],
"paths": {
"/data/{datasetCode}": {
"get": {
"summary": "Retrieve statistical data for a specified dataset.",
"operationId": "getStatisticalData",
"parameters": [
{
"name": "datasetCode",
"in": "path",
"required": true,
"description": "Unique code identifier of the queried data product (dataset or predefined extraction).",
"schema": {
"type": "string"
}
},
{
"name": "format",
"in": "query",
"description": "The format of the response data, currently only 'JSON' is supported.",
"schema": {
"type": "string",
"enum": [
"JSON"
]
}
},
{
"name": "lang",
"in": "query",
"description": "Language in which to retrieve the data. If not specified, 'EN' is the default.",
"schema": {
"type": "string"
}
},
{
"name": "time",
"in": "query",
"description": "Time period for the data.",
"schema": {
"type": "string"
}
},
{
"name": "geo",
"in": "query",
"description": "Geographical filter for the data.",
"schema": {
"type": "string"
}
},
{
"name": "sinceTimePeriod",
"in": "query",
"description": "Filters the data since the specified time period.",
"schema": {
"type": "string"
}
},
{
"name": "untilTimePeriod",
"in": "query",
"description": "Filters the data until the specified time period.",
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "Successful response with statistical data.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/StatisticalData"
}
}
}
},
"400": {
"description": "Bad request when the query is invalid."
},
"404": {
"description": "Resource not found."
},
"500": {
"description": "Internal server error."
}
}
}
}
},
"components": {
"schemas": {
"StatisticalData": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": true
}
}
}
}
}
}
}