query_dataset
Fetch live rows from an India Open Government Data dataset by resource ID, with optional field filters, selected columns, and pagination. Use it to retrieve specific records from a known dataset.
Instructions
Pull actual rows from a data.gov.in dataset, optionally filtered.
Fetches live data using the user's API key. limit is capped at 100 rows
per call (the upstream maximum); page through larger result sets with
offset. If a call returns zero rows but a positive total, you have paged
past the end.
IMPORTANT: filter field names are case-sensitive and must match a field id
from get_dataset_info exactly. If a filter returns nothing unexpectedly, check
the capitalisation of the field name first.
Args: resource_id: The dataset UUID (from search_datasets or the portal). filters: Optional {field_id: value} pairs, e.g. {"city": "Delhi"}. fields: Optional list of field ids to return (projection). Omit for all. limit: Rows to return, 1-100 (default 10). offset: Row offset for pagination (default 0).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| fields | No | ||
| offset | No | ||
| filters | No | ||
| resource_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |