Search Packages
GEThttps://search.devbox.sh/v2/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
q stringrequired
Search query.
Responses
- 200
- 400
- 404
OK
- application/json
- Schema
- Example (from schema)
Schema
query string
The search query sent to the /v2/search
endpoint
total_results integer
The total number of results for the search query
results
object[]
{
"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
- csharp
- curl
- dart
- go
- http
- java
- javascript
- kotlin
- c
- nodejs
- objective-c
- ocaml
- php
- powershell
- python
- r
- ruby
- rust
- shell
- swift
- HTTPCLIENT
- RESTSHARP
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://search.devbox.sh/v2/search");
request.Headers.Add("Accept", "application/json");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
ResponseClear