Skip to content
Eden Engine

Barcelona Open Data Dataset (opendata-ajuntament.barcelona.cat)

barcelonaopendatackan/get-dataset

Looks up one dataset on the Barcelona open data portal (opendata-ajuntament.barcelona.cat) by its id or URL slug and returns its full record: title, description, publisher, declared licence, tags and every resource with its format and download link. Use the id or name from a search result. Served by Eden Engine; not an official opendata-ajuntament.barcelona.cat product.

activeper callv1

Price

$0.0026 per call

You pay the price shown. If a call turns out to cost more than its quote, you pay the actual price, capped at twice the quote. No monthly minimum. Top-ups start at $5.00.

Data source

Open Data BCN (Ajuntament de Barcelona)

Source: Open Data BCN, Ajuntament de Barcelona (opendata-ajuntament.barcelona.cat). Datasets declare Creative Commons Attribution 4.0 (CC BY 4.0); credit the Ajuntament de Barcelona. Served by Eden Engine; not an official Ajuntament de Barcelona product.

Use it

Your AI assistant does the work: it finds this tool, shows you the price first, runs it, and you are charged when the run finishes. There is nothing to set up for this tool in particular.

Connect once and your AI can find and run this tool, and any other it needs.

For developers: the calls your assistant makes
agent
// 1. search: find the tool
omnial_search({ query: "what you need" })

// 2. inspect: price and input schema
omnial_inspect({ tool: "barcelonaopendatackan/get-dataset" })

// 3. learn: read the usage guide at runtime
omnial_learn({ tool: "barcelonaopendatackan/get-dataset" })

// 4. run: price the exact call first, then run it
omnial_execute({ tool: "barcelonaopendatackan/get-dataset", input: { /* see input_schema */ }, dry_run: true })
omnial_execute({ tool: "barcelonaopendatackan/get-dataset", input: { /* ... */ } })

// 5. settle: the call is charged when it finishes, nothing to do

Not connected yet? Point your MCP client at https://mcp.eden-engine.com/mcp, then copy a config for your client.

Pricing

Every charge this tool can incur.

ChargePrice
Per call
$0.0026
Updated
Oct 27, 2026

Input and output schemas

Input schema
input_schema.json
{
  "type": "object",
  "required": [
    "id"
  ],
  "properties": {
    "id": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_.-]{2,120}$",
      "description": "Dataset id or URL slug, as returned in the `id` or `name` field of a search result, for example 'poblacio_projectada'."
    }
  },
  "additionalProperties": false
}
Output schema
output_schema.json
{
  "type": "object",
  "required": [
    "id",
    "name",
    "title"
  ],
  "properties": {
    "id": {
      "type": "string",
      "description": "Dataset id."
    },
    "url": {
      "type": [
        "string",
        "null"
      ],
      "description": "Publisher's page about the dataset, when given."
    },
    "name": {
      "type": "string",
      "description": "URL slug of the dataset on the portal."
    },
    "tags": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": true
      },
      "description": "Tags, each with name and display_name."
    },
    "notes": {
      "type": [
        "string",
        "null"
      ],
      "description": "Dataset description, in the language the publisher wrote it."
    },
    "title": {
      "type": "string",
      "description": "Dataset title."
    },
    "resources": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": true
      },
      "description": "Files and endpoints of the dataset, each with url, format, name and modification times."
    },
    "license_id": {
      "type": [
        "string",
        "null"
      ],
      "description": "Licence id the publisher declared."
    },
    "license_url": {
      "type": [
        "string",
        "null"
      ],
      "description": "Licence text link, when given."
    },
    "organization": {
      "type": [
        "object",
        "null"
      ],
      "description": "Publishing body: id, name, title and description.",
      "additionalProperties": true
    },
    "license_title": {
      "type": [
        "string",
        "null"
      ],
      "description": "Licence name."
    },
    "num_resources": {
      "type": "integer",
      "description": "Number of resources."
    },
    "metadata_created": {
      "type": [
        "string",
        "null"
      ],
      "description": "Record creation time, UTC."
    },
    "metadata_modified": {
      "type": [
        "string",
        "null"
      ],
      "description": "Record last-modified time, UTC."
    }
  },
  "description": "One dataset record unwrapped from the CKAN success envelope.",
  "additionalProperties": true
}