GnistAI GnistAI
Log in

ILOSTAT (ILO Labour Statistics)

International Labour Organization statistics — employment, unemployment, wages, working conditions, labour force participation, child labour, and migration data for 190+ countries.

Overview   |   MCP Docs   |   API Docs   |   OpenAPI   |   Playground   |   Tutorial   |   Toolkits   |   Home
status: healthy status status healthy healthy tools: 6 tools tools 6 6 Economics

Data source: ILO (SDMX 2.1)

MCP MCP Protocol

Endpoint https://context.gnist.ai/mcp/ilostat/
claude_desktop_config.json
{
  "mcpServers": {
    "gnist-ilostat": {
      "url": "https://context.gnist.ai/mcp/ilostat/",
      "headers": {
        "Gnist-API-Key": "YOUR_API_KEY"
      }
    }
  }
}
Shell
curl -X POST "https://context.gnist.ai/mcp/ilostat/" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -H "Gnist-API-Key: YOUR_API_KEY" \
  -d '{"jsonrpc": "2.0", "method": "tools/call", "id": 1, "params": {"name": "search_datasets", "arguments": {"query": "example"}}}'

API REST API

API Root https://context.gnist.ai/rest/ilostat/

6 endpoints available:

Shell
curl "https://context.gnist.ai/rest/ilostat/search_datasets?query=example" \
  -H "Gnist-API-Key: YOUR_API_KEY"
Python
import httpx

resp = httpx.get(
    "https://context.gnist.ai/rest/ilostat/search_datasets",
    headers={"Gnist-API-Key": "YOUR_API_KEY"},
    params={
        "query": "example"
},
)
print(resp.json())

OpenAPI Spec  ·  Full API Docs

CLI Command Line

Command gc ilostat

CLI documentation will be available when the GnistAI SDK is published.

Install
pip install gnistai

Available Tools (6)

search_datasets
Search the ILOSTAT dataset catalog by keyword.
ParameterTypeRequiredDescription
querystringrequiredSearch term for ILOSTAT datasets (e.g. "unemployment", "wages", "child labour", "migration", "working poverty").
limitintegeroptionalNumber of results to return (1-50, default 20). (default: 20)
list_datasets
List available ILOSTAT datasets, optionally filtered by topic.
ParameterTypeRequiredDescription
topicanyoptionalOptional topic filter (e.g. "employment", "wages", "labour force", "migration"). Omit to list all.
limitintegeroptionalMaximum datasets to return (1-100, default 50). (default: 50)
get_dataset_structure
Get the dimension structure of an ILOSTAT dataset.
ParameterTypeRequiredDescription
dataflowstringrequiredILOSTAT dataflow identifier from search_datasets (e.g. "DF_UNE_2EAP_SEX_AGE_RT", "DF_EMP_TEMP_SEX_AGE_NB").
get_data
Fetch data from an ILOSTAT dataset.
ParameterTypeRequiredDescription
dataflowstringrequiredILOSTAT dataflow identifier (e.g. "DF_UNE_2EAP_SEX_AGE_RT"). Use search_datasets to find IDs.
countriesanyoptionalISO alpha-2/3 country codes (e.g. ["USA", "DEU", "NOR"]). Omit for all countries.
start_periodanyoptionalStart period (e.g. "2015", "2020-Q1", "2020-01").
end_periodanyoptionalEnd period (e.g. "2023", "2023-Q4", "2023-12").
dimension_filteranyoptionalAdvanced: SDMX dimension key filter (dot-separated, e.g. "USA.A.UNE_DEAP_RT.SEX_T.YGE15"). Overrides countries param. Use get_dataset_structure to find valid dimension values.
limitintegeroptionalMaximum observations to return (1-1000, default 200). (default: 200)
compare_countries
Compare data across countries for a given ILOSTAT dataset.
ParameterTypeRequiredDescription
dataflowstringrequiredILOSTAT dataflow identifier (e.g. "DF_UNE_2EAP_SEX_AGE_RT").
country_codeslist[string]requiredISO alpha-2/3 country codes to compare (e.g. ["USA", "DEU", "JPN", "NOR"]). Maximum 20.
start_periodanyoptionalStart period (e.g. "2020"). Omit for most recent data.
end_periodanyoptionalEnd period (e.g. "2023"). Omit for most recent data.
report_feedback
Report a bug, feature request, or general feedback for this data source.
ParameterTypeRequiredDescription
feedbackstringrequired
feedback_typestringoptional (default: "general")

Related