GET /datastore/query/{datasetId}/{index}

cms.gov:cms-provider-data-api

Summary: Query Dataset Data
Operation ID: queryDataset
Auth: none

Alternative path for querying dataset records with additional filtering and sorting capabilities. Returns the same data as the other query endpoint but supports more advanced parameters like `conditions` for filtering, `sort` for ordering results, and standard pagination. Use this when you need to filter records by specific field values or sort results before returning them.

Original spec description

Query data from a specific dataset. Returns the actual data records with optional filtering and pagination.

Usage Tips

- The `conditions` parameter accepts JSON-formatted filter conditions - `sort` parameter format: `fieldname` or `fieldname direction` (e.g., 'facility_name asc') - Dataset IDs are case-sensitive - Returns 404 if dataset doesn't exist or index is invalid

Parameters (6)

conditions (string, query, optional)

Filter conditions in JSON format

datasetId (string, path, required)

Unique identifier for the dataset

index (integer, path, required, default: 0)

Resource index (typically 0 for the primary resource)

limit (integer, query, optional, default: 500)

Maximum number of records to return

Constraints: {'maximum': 10000}

offset (integer, query, optional, default: 0)

Number of records to skip for pagination

sort (string, query, optional)

Sort field and direction

Examples (1)

TitleTypeURLAction
Query Dataset Data openapi-spec https://data.cms.gov/provider-data/api/1/datastore/query/23ew-n7w9/{index}

No probe data for this endpoint yet.