Get a Package
GEThttps://search.devbox.sh/v2/pkg
Get information about a specific package in Nixpkgs. This endpoint returns a JSON object that contains information about the package, including a list of releases, platforms, and outputs.
You should use this endpoint if you know the name of the package you want to look up. If you need to search for packages, use /v2/search
. If you only need the latest version of a package, use /v2/resolve
.
Request
Query Parameters
name stringrequired
The name of the package you want to look up. Must be a valid Nixpkgs package name.
Responses
- 200
- 400
- 404
Ok
- application/json
- Schema
- Example (from schema)
Schema
namestring
The name of the package in Nixhub/Devbox
summarystring
A short description of the package
homepage_urlstring
The URL to the package's project homepage
licensestring
The software license of the package
releases
object[]
{
"name": "string",
"summary": "string",
"homepage_url": "string",
"license": "string",
"releases": [
{
"version": "string",
"last_updated": "string",
"platforms": [
{
"arch": "string",
"os": "string",
"systems": "string",
"attribute_path": "string",
"commit_hash": "string",
"date": "string",
"outputs": [
{
"name": "string",
"path": "string",
"default": true,
"nar": "string"
}
]
}
],
"platforms_summary": "string",
"outputs_summary": "string"
}
]
}
Bad Request: empty package name (set a ?name=<pkg> 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://www.jetify.com/pkg");
request.Headers.Add("Accept", "application/json");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
ResponseClear