Endpoints
Nixhub exposes the following endpoints for searching and resolving packages:v2/search
- Search for packages by namev2/pkg
- Get details and version history for a specific packagev2/resolve
- Resolve a package name and version to a nixpkgs commit and attribute path.
Rate Limits
In order to prevent abuse, personal use of the API is subject to rate limits. API Rate limiting works as follows:- A given IP address starts with a pool of 1000 requests
- Each request decrements the pool by 1
- The pool is replenished at a rate of 5 requests per minute
429 Too Many Requests
status code.
If you have a use case that requires a higher rate limit or would like to use the API for
commercial purposes, please fill out this form to
request access.
Nixhub for Enterprise
Nixhub provides an index of publicly available packages from the Nixpkgs repository. If you’re interested in using Nixhub to index and install private packages or Flakes for your team, we’d love to chat with you. You can request a meeting with our teamVersioning
The API is versioned using av2
prefix in the URL. All v2
endpoints are considered stable and
will not change in a backwards-incompatible way. Breaking changes will be introduced in a new
version of the API, with a new version prefix.
API Reference
- Search Packages - Search for packages by name
- Get Package Details - Get details and version history for a specific package
- Resolve Package - Resolve the latest available package for a given name and version string