List Constraints
Changed onGet a list of constraints with optional filtering by ISOs and a search term.
Returns constraints where market_id matches an item in the comma-separated isos list and constraint_name contains the search term. When sort_order is not specified and there is a search term, results are sorted by relevance (shorter constraint_names first). When sort_order is not specified, there is no search term, and include_absolute_costs is false, results are sorted by latest_seen_utc descending (most recently seen first), then market_id ascending, then constraint_name ascending. When include_absolute_costs is true and there is no search term, results are sorted by rt_absolute_cost descending with nulls last.
Use include_absolute_costs, include_timestamps, and include_dataset_metadata to opt into rt_absolute_cost/da_absolute_cost, GS timestamps, and pricing dataset metadata.
Request
- Base URLhttps://api.gridstatus.io/v1
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
When true, include rt_absolute_cost and da_absolute_cost on each constraint. Uses absolute_cost_start_time and absolute_cost_end_time when provided.
When true, include gs_created_at_utc and gs_updated_at_utc.
When true, include dataset_metadata with pricing dataset specs.
Optional lower bound for the absolute cost window. When set, include rows where time index >= absolute_cost_start_time. Only used when include_absolute_costs is true.
Optional upper bound for the absolute cost window. When set, include rows where time index < absolute_cost_end_time. Only used when include_absolute_costs is true.
API key for authentication (query)
Comma-separated list of market IDs to filter by
Filter latest_seen_utc to be on or after this timestamp
Maximum number of results to return (default: 10000)
Sort order: asc or desc. Defaults to desc when omitted.
Optional search term to filter by constraint_name
Column to sort by. Must be one of: constraint_name, market_id, earliest_seen_utc, latest_seen_utc
Headers
API key for authentication (header)
Response
Successful Response
Changes
- warning
deleted the
queryrequest parametercost_end_time - warning
deleted the
queryrequest parametercost_start_time - warning
deleted the
queryrequest parameterinclude_costs - warning
removed the optional property
//from the response with the status - warning
removed the optional property
//from the response with the status - info
added the new optional
queryrequest parameterabsolute_cost_end_time - info
added the new optional
queryrequest parameterabsolute_cost_start_time - info
added the new optional
queryrequest parameterinclude_absolute_costs - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status
- warning