OpenAPI specification
Full parameter and response reference for the three Tabular Data Endpoints.
curl -H "Authorization: <your-api-token>" \ "https://data.humdata.org/api/3/action/datastore_search?resource_id=<resource-id>&limit=5"HDX API token. Required for all Tabular Data Endpoint requests, including public resources.
The id or alias of the DataStore resource to describe. Required.
Successful response.
URL to the API documentation for this action.
Whether the request succeeded.
Forbidden — API token is missing or invalid. Authentication is required for all DataStore requests, including public resources.
Not Found — the resource_id does not exist in the DataStore.
Conflict — Validation Error. The request parameters or SQL were invalid (e.g. missing required parameter, non-SELECT SQL, malformed query, or wrong parameter type).
Too Many Requests — rate limit exceeded.
Internal Server Error — unexpected server-side failure.
HDX API token. Required for all Tabular Data Endpoint requests, including public resources.
The id or alias of the DataStore resource to describe. Required.
Successful response.
URL to the API documentation for this action.
Whether the request succeeded.
Forbidden — API token is missing or invalid. Authentication is required for all DataStore requests, including public resources.
Not Found — the resource_id does not exist in the DataStore.
Conflict — Validation Error. The request parameters or SQL were invalid (e.g. missing required parameter, non-SELECT SQL, malformed query, or wrong parameter type).
Too Many Requests — rate limit exceeded.
Internal Server Error — unexpected server-side failure.
HDX API token. Required for all Tabular Data Endpoint requests, including public resources.
The id or alias of the resource to search. Required.
Full-text search query. Pass a string to search across all fields, or a dictionary of {field: query} to target specific fields. Note: behavior differs subtly from filters — q uses full-text ranking while filters performs exact matching.
nullFull-text search query applied across all fields. Similar to q with a string value, but always searches all fields. Cannot be combined with q.
nullReturn only unique rows. Defaults to false.
falseTreat the q query as plain text (no special FTS operators). Set to false to use PostgreSQL tsquery syntax. Defaults to true.
trueLanguage used for full-text search stemming. Defaults to english.
englishMaximum number of rows to return. Defaults to 100.
100Number of rows to skip before returning results. Used for pagination.
nullColumns to include in the response. Pass a comma-separated string or a list. Defaults to all fields.
nullComma-separated list of fields to sort by, with optional asc/desc direction. Example: "fieldname1 asc, fieldname2 desc".
nullInclude the total number of matching rows in the response. Defaults to true.
trueWhen include_total is true and the estimated row count exceeds this threshold, CKAN returns an estimated total rather than an exact count. Set to null (default) to always return an exact count.
nullFormat for the returned records. objects returns a list of dicts, lists returns a list of lists, csv and tsv return delimited strings. Defaults to objects.
objectsPossible values: Successful response.
URL to the API documentation for this action.
Whether the request succeeded.
Forbidden — API token is missing or invalid. Authentication is required for all DataStore requests, including public resources.
Not Found — the resource_id does not exist in the DataStore.
Conflict — Validation Error. The request parameters or SQL were invalid (e.g. missing required parameter, non-SELECT SQL, malformed query, or wrong parameter type).
Too Many Requests — rate limit exceeded.
Internal Server Error — unexpected server-side failure.
HDX API token. Required for all Tabular Data Endpoint requests, including public resources.
The id or alias of the resource to search. Required.
Full-text search query. Pass a string to search across all fields, or a dictionary of {field: query} to target specific fields. Note: behavior differs subtly from filters — q uses full-text ranking while filters performs exact matching.
nullFull-text search query applied across all fields. Similar to q with a string value, but always searches all fields. Cannot be combined with q.
nullReturn only unique rows. Defaults to false.
falseTreat the q query as plain text (no special FTS operators). Set to false to use PostgreSQL tsquery syntax. Defaults to true.
trueLanguage used for full-text search stemming. Defaults to english.
englishMaximum number of rows to return. Defaults to 100.
100Number of rows to skip before returning results. Used for pagination.
nullColumns to include in the response. Pass a comma-separated string or a list. Defaults to all fields.
nullComma-separated list of fields to sort by, with optional asc/desc direction. Example: "fieldname1 asc, fieldname2 desc".
nullInclude the total number of matching rows in the response. Defaults to true.
trueWhen include_total is true and the estimated row count exceeds this threshold, CKAN returns an estimated total rather than an exact count. Set to null (default) to always return an exact count.
nullFormat for the returned records. objects returns a list of dicts, lists returns a list of lists, csv and tsv return delimited strings. Defaults to objects.
objectsPossible values: Successful response.
URL to the API documentation for this action.
Whether the request succeeded.
Forbidden — API token is missing or invalid. Authentication is required for all DataStore requests, including public resources.
Not Found — the resource_id does not exist in the DataStore.
Conflict — Validation Error. The request parameters or SQL were invalid (e.g. missing required parameter, non-SELECT SQL, malformed query, or wrong parameter type).
Too Many Requests — rate limit exceeded.
Internal Server Error — unexpected server-side failure.
HDX API token. Required for all Tabular Data Endpoint requests, including public resources.
A single SQL SELECT statement to execute against the DataStore. Required. Only SELECT statements are permitted — INSERT, UPDATE, DELETE, and DDL statements are not allowed. Table names correspond to resource IDs (e.g. SELECT * FROM "<resource_id>").
Successful response.
URL to the API documentation for this action.
Whether the request succeeded.
Forbidden — API token is missing or invalid. Authentication is required for all DataStore requests, including public resources.
Not Found — the resource_id does not exist in the DataStore.
Conflict — Validation Error. The request parameters or SQL were invalid (e.g. missing required parameter, non-SELECT SQL, malformed query, or wrong parameter type).
Too Many Requests — rate limit exceeded.
Internal Server Error — unexpected server-side failure.
HDX API token. Required for all Tabular Data Endpoint requests, including public resources.
A single SQL SELECT statement to execute against the DataStore. Required. Only SELECT statements are permitted — INSERT, UPDATE, DELETE, and DDL statements are not allowed. Table names correspond to resource IDs (e.g. SELECT * FROM "<resource_id>").
Successful response.
URL to the API documentation for this action.
Whether the request succeeded.
Forbidden — API token is missing or invalid. Authentication is required for all DataStore requests, including public resources.
Not Found — the resource_id does not exist in the DataStore.
Conflict — Validation Error. The request parameters or SQL were invalid (e.g. missing required parameter, non-SELECT SQL, malformed query, or wrong parameter type).
Too Many Requests — rate limit exceeded.
Internal Server Error — unexpected server-side failure.
Last updated
Was this helpful?
