Resource Data
resource_dataFetch records from any India Open Government Data (data.gov.in) resource by its resourceId. Supports pagination, per-field filtering, field projection, and sorting. The resourceId is the UUID shown on a dataset's page on data.gov.in (and in its API URL, e.g. api.data.gov.in/resource/). Example resourceId 9ef84268-d588-465a-a308-a864a43d0070 is "Current Daily Price of Various Commodities from Various Markets (Mandi)" with fields like state, district, market, commodity, variety, grade, arrival_date, min_price, max_price, modal_price. Use resource_meta first if you do not know a resource's field ids.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sort | No | Optional sort spec mapped to sort[field]=direction, where direction is "asc" or "desc", e.g. {"modal_price":"desc"}. | |
| limit | No | Max records to return (default 10). The API caps page size; use offset to page. | |
| fields | No | Optional comma-separated list of field ids to return (projection), e.g. "state,commodity,modal_price". | |
| offset | No | Records to skip for pagination (default 0). | |
| _apiKey | Yes | data.gov.in API key | |
| filters | No | Per-field exact-match filters, mapped to filters[field]=value query params. Field ids come from the resource schema (see resource_meta), e.g. {"state":"Punjab","commodity":"Apple"}. | |
| resourceId | Yes | The dataset resource UUID from its data.gov.in page (e.g. "9ef84268-d588-465a-a308-a864a43d0070"). |