suggest_datasets_v1_search_suggest_get
Retrieves autocomplete suggestions for dataset names matching a given prefix, enabling typeahead search in data portals.
Instructions
GET /v1/search/suggest (public) — Suggest Datasets — Get autocomplete suggestions for search typeahead.
Returns dataset names that start with the given prefix, for use in search input autocomplete. Only returns datasets with status='ready'.
Response:
suggestions: List of matching datasets with name, slug, provider, and pathquery: The prefix echoed back
Example:
GET /v1/search/suggest?q=con might return suggestions like
"Consumer Price Index", "Congressional Budget Data", etc.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | Yes | Prefix to match against dataset names for autocomplete | |
| limit | No | Maximum number of suggestions to return (1-10) |