Skip to main content
All providers

data.tg.ch

Open data portalsCH

data.tg.ch

OpenDataSoft open data portal data.tg.ch (467 datasets); example dataset: Forstkreise.

Capabilities (4)

GET /v1/data/data-tg-ch/dataset1 credit

One dataset's full metadata: title, description, theme, publisher, licence, record count and the complete field list with types and labels.

id
GET /v1/data/data-tg-ch/datasets1 credit

Search over the portal's catalogue: matching datasets with id, title, description, theme, publisher and the fields each dataset exposes, plus the total match count.

where?order_by?offset?select?refine?lang?
GET /v1/data/data-tg-ch/facets1 credit

Facet value counts for one dataset: the distinct values of each faceted field with how many records carry them.

idfacet?refine?
GET /v1/data/data-tg-ch/records1 credit

A page of up to 100 records from one dataset as JSON objects keyed by field name, with the total record count for the query.

idselect?where?order_by?group_by?refine?offset?

Response example

The shape of data from data-tg-ch/dataset (Dataset metadata). A sample, not live data.

Example truncated, full shape in JSON from the API.

JSON
{
  "visibility": "domain",
  "fields": [],
  "dataset_id": "forstkreise",
  "dataset_uid": "da_45iryl",
  "has_records": false,
  "features": [],
  "attachments": [],
  "alternative_exports": [],
  "data_visible": true,
  "metas": {
    "default": {
      "title": "Forstkreise",
      "title_de": "Forstkreise",
      "title_en": "Forstkreise",
      "title_fr": "Forstkreise",
      "description": "Verwaltungseinheit, dem Forstamt unterstellt; besteht aus mehreren Forstrevieren; wird geleitet durch einen Kreisforstingenieur.",
      "description_de": "Verwaltungseinheit, dem Forstamt unterstellt; besteht aus mehreren Forstrevieren; wird geleitet durch einen Kreisforstingenieur.",
      "description_en": "Verwaltungseinheit, dem Forstamt unterstellt; besteht aus mehreren Forstrevieren; wird geleitet durch einen Kreisforstingenieur.",
      "description_fr": "Verwaltungseinheit, dem Forstamt unterstellt; besteht aus mehreren Forstrevieren; wird geleitet durch einen Kreisforstingenieur.",
      "theme": [
        "Landwirtschaft, Fischerei, Forstwirtschaft und Nahrungsmittel",
        "Umwelt"
      ],
      "theme_de": [
        "Landwirtschaft, Fischerei, Forstwirtschaft und Nahrungsmittel",
        "Umwelt"
      ],
      "theme_en": [
        "Agriculture, fisheries, forestry and food",
        "Environment"
      ],
      "theme_fr": [
        "Agriculture, pêche, sylviculture et alimentation",
        "Environnement"
      ],
      "keyword": [
        "geodaten",
        "fauna",
        "flora",
        "wald",
        "forstwirtschaft"
      ],
      "keyword_de": [
        "geodaten",
        "fauna",
        "flora",
        "wald",
        "forstwirtschaft"
      ],
      "keyword_en": [
        "geodaten",
        "fauna",
        "flora",
        "wald",
        "forstwirtschaft"
      ],
      "keyword_fr": [
        "geodaten",
        "fauna",
        "flora",
        "wald",
        "forstwirtschaft"
      ],
      "license": "CC By 4.0",
      "license_de": "CC By 4.0",
      "license_en": "CC By 4.0",
      "license_fr": "CC By 4.0",
      "license_url": null,
      "license_url_de": null,
      "license_url_en": null,
      "license_url_fr": null,
      "language": "de",
      "modified": "2026-07-28T05:05:48+00:00",
      "publisher": "Kanton Thurgau, Forstamt",
      "publisher_de": "Kanton Thurgau, Forstamt",
      "publisher_en": "Kanton Thurgau, Forstamt",
      "publisher_fr": "Kanton Thurgau, Forstamt",
      "references": "https://map.geo.tg.ch/apps/mf-geoadmin3/?lang=de&topic=ech&layers=forstreviere_kreise",
      "attributions": [
        "https://ows.geo.tg.ch/geofy_access_proxy/forstreviere?service=WMS&version=1.3.0&request=GetCapabilities, https://ows.geo.tg.ch/geofy_access_proxy/forstreviere?service=WFS&version=2.0.0&request=GetCapabilities"
      ],
      "update_frequency": null,
      "bbox": null,
      "data_processed": null,
      "federated": false,
      "geographic_reference": [
        "ch_40_20"
      ],
      "geographic_reference_auto": null,
      "geometry_types": null,
      "metadata_languages": [
        "de"
      ],
      "metadata_processed": "2026-10-23T18:00:29.137000+00:00",
      "modified_updates_on_data_change": false,
      "modified_updates_on_metadata_change": false,
      "parent_domain": null,
      "records_count": 0,
      "shared_catalog": null,
      "source_dataset": null,
      "source_domain": null,
      "source_domain_address": null,
      "source_domain_title": null,
      "territory": [
        "Thurgau"
      ],
      "timezone": "Europe/Zurich"
    },
    "custom": {
      "tags": null
    },
    "dcat": {
      "accessRights": null,
      "accrualperiodicity": "unregelmässig",
      "conforms_to": null,
      "contact_email": null,
      "contact_name": null,
      "contributor": null,
      "created": "1993-07-01",
      "creator": null,
      "dataquality": null,
      "granularity": null,
      "issued": null,
      "publisher_type": null,
      "

Ask with this source

A prompt for your agent that names this source and how to call it through the crw MCP.

  • Dataset metadata

    Use data.tg.ch (data-tg-ch) from fastCRW Pergamon, capability "Dataset metadata" (dataset). You have a dataset id and need its schema, licence or record count before querying it. Example options: id=forstkreise. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "data-tg-ch" and capability "dataset". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>

  • Dataset search

    Use data.tg.ch (data-tg-ch) from fastCRW Pergamon, capability "Dataset search" (datasets). You want to find datasets on this portal by keyword or theme and do not know a dataset id. Example options: where=theme='Transport', order_by=modified desc, offset=0. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "data-tg-ch" and capability "datasets". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>

  • Dataset facets

    Use data.tg.ch (data-tg-ch) from fastCRW Pergamon, capability "Dataset facets" (facets). You want to know the value distribution of a dataset's categorical fields without downloading rows. Example options: id=forstkreise. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "data-tg-ch" and capability "facets". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>

  • Dataset records

    Use data.tg.ch (data-tg-ch) from fastCRW Pergamon, capability "Dataset records" (records). You want the actual rows of a dataset, optionally filtered, sorted, grouped or narrowed to selected fields. Example options: id=forstkreise, select=count(*) as n, where=1=1. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "data-tg-ch" and capability "records". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>

Licence

Datasets on this portal declare the licence "CC By 4.0". Licence is attached per dataset by its publisher; the portal states no separate API licence. Quoted from the dataset metadata returned by the catalogue API.

https://data.tg.ch/

Attribution

Display this wherever you show the data. It arrives on every response as provenance.attribution_text.

Source: data.tg.ch (Kanton Thurgau, Forstamt).

Cache: up to 3600s