Fetch data from a URL
fetch_dataFetch actual data from Norwegian open government datasets via download URL or API endpoint. Returns text formats (CSV, JSON, XML) with size limits; binary files return metadata only.
Instructions
Download the actual data from a distribution's downloadURL or accessURL (from get_dataset), an API endpoint (from get_api), or any http(s) data URL. Returns the content for text formats (CSV, JSON, XML, GeoJSON); large responses are truncated and binary content returns metadata only. Use this to retrieve the data itself, not just its catalogue metadata.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The http(s) URL to fetch — typically a downloadURL/accessURL from get_dataset. | |
| maxKilobytes | No | Maximum amount to download, in KB (default 256, hard cap 5000). |