Skip to main content
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

  • q stringrequired Search query.

Responses

  • 200
  • 400
  • 404
OK
  • application/json
  • Schema
  • Example (from schema)
  • querystring The search query sent to the /v2/search endpoint total_resultsinteger The total number of results for the search query A list of SearchResults that match the query. This array will be empty if no results were found. Array [
  • namestring The name of the package that matched the search query summarystring A short description of the package last_updatedstring 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
I