get_data
Retrieve datasets, metadata, and statistics from the Chicago Data Portal. Perform operations like data filtering, catalog searches, and site analytics using specified queries and parameters.
Instructions
[City of Chicago | Data Portal] Access data and metadata to learn more about the city and its underlying information.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
datasetId | No | Dataset identifier required for the following operations: - For type=dataset-metadata: Get dataset details - For type=column-info: Get column information - For type=data-access: Specify which dataset to query (e.g., 6zsd-86xi) | |
domain | No | Optional domain (hostname only, without protocol). Used with all operation types. | |
group | No | For type=data-access only. Groups results for aggregate functions. | |
having | No | For type=data-access only. Filters for grouped results, similar to where but for grouped data. | |
limit | No | Maximum number of results to return: - For type=catalog: Limits dataset results - For type=data-access: Limits data records returned | |
offset | No | Number of results to skip for pagination: - For type=catalog: Skips dataset results - For type=data-access: Skips data records for pagination | |
order | No | For type=data-access only. Orders the results based on specified columns (e.g., "date DESC"). | |
q | No | For type=data-access only. Full text search parameter for free-text searching across the dataset. | |
query | No | Search or query string with different uses depending on operation type: - For type=catalog: Search query to filter datasets - For type=data-access: SoQL query string for complex data filtering | |
select | No | For type=data-access only. Specifies which columns to return in the result set. | |
soqlQuery | No | For type=data-access only. Optional SoQL query string for filtering data. This is an alias for the query parameter and takes precedence if both are provided. | |
type | Yes | The type of operation to perform: - catalog: List datasets with optional search - categories: List all dataset categories - tags: List all dataset tags - dataset-metadata: Get detailed metadata for a specific dataset - column-info: Get column details for a specific dataset - data-access: Access records from a dataset (with query support) - site-metrics: Get portal-wide statistics | |
where | No | For type=data-access only. Filters the rows to be returned (e.g., "magnitude > 3.0"). |