How to Find a data.gov.in Resource ID

Quick summary: On data.gov.in, a Catalog groups related datasets, while each individual table or file inside that catalog has its own Resource ID (a UUID string). You need the Resource ID—not the catalog UUID—to query live records from the Data API.
Editorial note: Data Khoj is an independent platform that indexes live metadata from data.gov.in. It is not affiliated with or endorsed by the Government of India.
Diagram showing the anatomy of a Data Khoj resource URL with a human-readable slug and a unique Resource ID UUID
Figure 1: How a human-readable dataset slug and a unique Resource ID appear in Data Khoj URLs (illustrative URL pattern).

Catalog UUID vs. Resource ID

A common point of confusion when working with OGD India datasets is mixing up a Catalog UUID with a Resource ID. A single catalog can contain multiple resources—for example, separate yearly tables, state-wise files, or updated editions.

When querying the Data API, you must pass the Resource ID. Passing a catalog UUID to the records endpoint will not return table rows.

  • Catalog UUID: Identifies the parent dataset collection (/catalog/<slug>/<catalog-uuid>).
  • Resource ID: Identifies one specific table or file inside that catalog (/resource/<slug>/<resource-uuid>).

How to Locate a Resource ID in Data Khoj

Use the browser workflow below to find any live Resource ID:

  1. Go to Browse Data and search or filter by Sector or Ministry.
  2. Click a catalog to open its resources list.
  3. Look for resources marked with an API Available badge.
  4. Click View Records on that resource. The Resource ID is the UUID segment at the end of the page URL.
Comparison table between API-enabled resources and file-only resources on data.gov.in
Figure 2: Key differences between API-enabled resources and file-only resources.

Why Some Resources Cannot Be Queried via API

Not every resource on data.gov.in is backed by a structured Data API. Upstream metadata distinguishes them using the is_api_available flag: API-enabled (1) supports paginated JSON queries, filtering, and Chart Analysis, while file-only (0) points to a static downloadable document.