Search for packages
Search the catalog(s) under the given criteria for matching packages.
Required Query Parameters:
- system: The system architecture to search for (e.g., x86_64-linux)
Optional Query Parameters:
- search_term: The search term to filter packages by
- catalogs: Comma separated list of catalog names to search; defaults to all catalogs. Note: when searching base catalog, search_term is required.
- page: Page number for pagination (default: 0)
- pageSize: Page size for pagination (default: 10) Returns:
- PackageSearchResult: A list of PackageInfoSearch items and total count
Query parameters
Response
A list of matching packages
Example response
{
"items": [
{
"attr_path": "foo.bar.curl",
"catalog": "nixpkgs",
"description": "A very nice Item",
"name": "curl",
"pkg_path": "foo.bar.curl",
"pname": "curl",
"stabilities": [
"stable",
"unstable"
],
"system": "x86_64-linux",
"version": "1.0"
}
],
"total_count": 1
}Changes
Changed in 14 of the 53 revisions of this API.341031
- ▲
the
//response's property type changed fromobjectto no type for statusresponse-property-type-changed
- ▲
removed the required property
///from the response with the statusresponse-required-property-removed
- ●
for the
queryrequest parameterpage, the min was set to0.00request-parameter-min-set
- ●
for the
queryrequest parameterpageSize, the min was set to0.00request-parameter-min-set
- ●
removed the optional property
///from the response with the statusresponse-optional-property-removed
- ●
removed the optional property
///from the response with the statusresponse-optional-property-removed
- ○
added to the
//response propertyallOflist for the response statusresponse-property-all-of-added
- ▲
- ▲
for the
queryrequest parametersearch_term, the minLength was increased from0to2request-parameter-min-length-increased
- ●
for the
queryrequest parametersearch_term, the maxLength was set to200request-parameter-max-length-set
- ○
removed the pattern
[a-zA-Z0-9\-\.\\@%_,]{2,200}from thequeryrequest parametersearch_termrequest-parameter-pattern-removed
- ▲
- ○
added the optional property
//to the response with the statusresponse-optional-property-added
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ○
the endpoint scheme security
HTTPBasicwas added to the APIapi-security-added
This revision also has 7 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ▲
for the
queryrequest parametercatalogs, default valuenixpkgswas removedrequest-parameter-default-value-removed
- ○
the
queryrequest parametersearch_termbecame optionalrequest-parameter-became-optional
- ▲
- ○
added the required property
//to the response with the statusresponse-required-property-added
- ○
- ○
the endpoint scheme security
HTTPBearerwas added to the APIapi-security-added
- ○
added the required property
//to the response with the statusresponse-required-property-added
- ○
added the required property
//to the response with the statusresponse-required-property-added
- ○
- ●
added the new
invalidenum value to the//response property for the response statusresponse-property-enum-value-added
- ○
added the new enum value
invalidto thequeryrequest parametersystemrequest-parameter-enum-value-added
This revision also has 2 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ●
- ●
changed the pattern of the
queryrequest parametersearch_termfrom[a-zA-Z0-9\-\._,]{2,200}to[a-zA-Z0-9\-\.\\@%_,]{2,200}request-parameter-pattern-changed
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ●
- ▲
removed the required property
//from the response with the statusresponse-required-property-removed
- ▲
removed the required property
//from the response with the statusresponse-required-property-removed
- ▲
removed the required property
//from the response with the statusresponse-required-property-removed
- ▲
removed the required property
//from the response with the statusresponse-required-property-removed
- ▲
removed the required property
//from the response with the statusresponse-required-property-removed
- ▲
removed the required property
//from the response with the statusresponse-required-property-removed
- ▲
removed the required property
//from the response with the statusresponse-required-property-removed
- ▲
removed the required property
//from the response with the statusresponse-required-property-removed
This revision also has 8 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲