Sign inTry it

Search open datasets on Aragón Open Data.

Searches the Aragón Open Data open-data portal (CKAN) like its dataset search: title, description, publishing organisation, tags, formats, last update and link. Up to 20 datasets per call, best match first.

Health unavailableRead-only, no login
Site
Aragón Open Data, Spain
Version
v1
Runs, last 7 days
Unavailable
sha256
037ad65f9031…
Try it nowRuns on Wield's servers. No key, no install.
Try:

Run it with your agent

after installing Wield

Ask in plain words. Your agent finds this recipe and calls it:

“Search open datasets on Aragón Open Data.”

Read-only: it changes nothing on the site. No login needed.

{
  "tool": "run",
  "arguments": {
    "recipe_id": "opendata.aragon.es/search-open-data",
    "params": {
      "query": "Dato estadístico"
    }
  }
}

Requests

sent from your browser, in order
  1. 1GET/api/3/action/package_search?q&rowsCKAN's package_search action, the API the portal's own dataset search uses.

Parameters

from your agent
querystringrequiredWords to search datasets for, e.g. 'Dato estadístico'

Returns

to your agent
datasetsobject[]description, formats, modified, organization, tags, title, url
querystring
totalinteger

Where it can send

  • opendata.aragon.es

Anything else is blocked by the extension.

Reads from your session

Nothing. Your browser attaches the site's cookies by itself.

Used only in requests to the addresses on the left. Never sent to wield.run or your agent.

Checks

a run passes when
  • length(output.datasets) > `0`
  • length(output.datasets[?starts_with(url, 'https://opendata.aragon.es/dataset/')]) == length(output.datasets)

Raw recipe

Served as canonical JSON from /api/v1/recipes/opendata.aragon.es/search-open-data, so its sha256 matches the ETag and the index.

Check it yourself
curl -s https://wield.run/api/v1/recipes/opendata.aragon.es/search-open-data | shasum -a 256
# 037ad65f9031e30ed23785923e613250e08eef007d66d8b200f930ad5e9c431c
opendata.aragon.es/search-open-data.json, v1
{
  "description": "Searches the Aragón Open Data open-data portal (CKAN) like its dataset search: title, description, publishing organisation, tags, formats, last update and link. Up to 20 datasets per call, best match first.",
  "effect": "read",
  "id": "opendata.aragon.es/search-open-data",
  "keywords": [
    "aragón open data",
    "opendata.aragon.es",
    "open data",
    "datasets",
    "data portal",
    "government data",
    "statistics",
    "ckan",
    "Dato estadístico",
    "Aragón",
    "Enseñanza",
    "Alumnos",
    "Educación",
    "Profesores"
  ],
  "output": {
    "schema": {
      "properties": {
        "datasets": {
          "items": {
            "properties": {
              "description": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "formats": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "modified": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "organization": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "tags": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "title": {
                "type": "string"
              },
              "url": {
                "type": "string"
              }
            },
            "required": [
              "title",
              "url"
            ],
            "type": "object"
          },
          "type": "array"
        },
        "query": {
          "type": "string"
        },
        "total": {
          "type": [
            "integer",
            "null"
          ]
        }
      },
      "required": [
        "query",
        "datasets"
      ],
      "type": "object"
    },
    "value": "{query: params.query, total: steps.search.count, datasets: (steps.search.results || `[]`)[?name != `null`].{title: title || name, description: notes || `null`, organization: organization.title || `null`, tags: (tags || `[]`)[:8].name, formats: (resources || `[]`)[?format != '' && format != `null`].format, modified: metadata_modified || `null`, url: join('', ['https://opendata.aragon.es/dataset/', name])}}"
  },
  "params": {
    "additionalProperties": false,
    "properties": {
      "query": {
        "description": "Words to search datasets for, e.g. 'Dato estadístico'",
        "maxLength": 200,
        "minLength": 2,
        "type": "string"
      }
    },
    "required": [
      "query"
    ],
    "type": "object"
  },
  "provenance": {
    "method": "har",
    "notes": "CKAN's documented read API, the one the portal's own dataset search calls. Verified live with the portal's three most used tags. About: Aragón Open Data provides data held by the Spanish region of Aragón. It is published by the Aragón government and went live in February 2013.",
    "recorded_at": "2026-11-08T17:38:31.399Z",
    "recorded_by": "wield-forge family ckan (CKAN API template)"
  },
  "requires_login": false,
  "schema": "https://wield.run/schema/recipe/v1.json",
  "site": {
    "country": "ES",
    "id": "opendata.aragon.es",
    "language": "es",
    "name": "Aragón Open Data",
    "origin": "https://opendata.aragon.es",
    "origins": [
      "https://opendata.aragon.es"
    ]
  },
  "steps": [
    {
      "description": "CKAN's package_search action, the API the portal's own dataset search uses.",
      "expect": {
        "assert": "body.success == `true`",
        "content_type": "json",
        "status": [
          200
        ]
      },
      "extract": {
        "json": {
          "count": "result.count",
          "results": "result.results"
        }
      },
      "id": "search",
      "request": {
        "headers": {
          "Accept": "application/json"
        },
        "method": "GET",
        "query": {
          "q": "{{params.query}}",
          "rows": "20"
        },
        "url": "/api/3/action/package_search"
      }
    }
  ],
  "task": "Search open datasets on Aragón Open Data",
  "tos": {
    "notes": "Not reviewed. Public open-data catalogue; one API search per call. Dataset licences vary: check each dataset's licence.",
    "reviewed": false
  },
  "verify": {
    "checks": [
      "length(output.datasets) > `0`",
      "length(output.datasets[?starts_with(url, 'https://opendata.aragon.es/dataset/')]) == length(output.datasets)"
    ],
    "example_params": {
      "query": "Dato estadístico"
    },
    "max_ms": 8000
  },
  "version": 1
}