Search dataset metadata with a Solr query and filters.
GET/package_search
- Passive: the target is not contacted
Returns matching datasets. count is the total number of matches, not the number returned. Rows default to 10, with an upper limit of 1000 unless the site changed it.
Query parameters
qSolr query
fqFilter query, such as tags:economy
rowsMaximum results to return
startResult offset
sortComma-separated field and order
Response fields · 4ShowHide
success
Whether the call worked
count
Total matches
results[]
Matching dataset records
search_facets
Facet counts when requested
curl 'https://catalog.data.gov/api/3/action/package_search'{
"help": "https://catalog.data.gov/api/3/action/help_show?name=package_search",
"success": true,
"result": {
"count": 1,
"results": [
{
"name": "example-dataset"
}
],
"search_facets": {}
}
}