The Debian package directory provides a simple API to search for package releases. For instance this query results can be accessed as JSON at https://sources.debian.net/api/src/libtry-tiny-perl/. Is there a similar API for http://packages.ubuntu.com/?
|
|
As commented by muru, everything in Ubuntu is on Launchpad. Launchpad's API can also be used to search for package releases. To give an example:
To get API response as JSON, use curl:
Package releases can be queried with query parameter
The API documentation is a bit complicated, even with the official API client launchpadlib so it took me some time to find out. The Ubuntu version of a package release is given in field |
||||
|
|