Search Packages
GET/search
Search Packages. This endpoint allows you to search for packages in the Nixpkgs repository using a search query. The response includes a list of package names along with their description. To get available versions and installables for a package, you can use this name with the /v2/pkg
endpoint.
Request
Query Parameters
Search query.
Responses
- 200
- 400
- 404
OK
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
The search query sent to the /v2/search
endpoint
The total number of results for the search query
results
object[]
A list of SearchResults that match the query. This array will be empty if no results were found.
The name of the package that matched the search query
A short description of the package
The last time this package was updated in the Nixpkgs repo
{
"query": "string",
"total_results": 0,
"results": [
{
"name": "string",
"summary": "string",
"last_updated": "string"
}
]
}
Bad Request: empty search query (set a ?q=<query> query parameter)
Not Found