{#
Copyright (C) 2015 The Debsources developers You can query all information available in Debian Sources, and get a JSON
object which allows you to navigate packages and source files
programmaticaly. Note: wherever a specific version number is required, you can use
the string "latest" instead to get redirected to the most recent version of
the package.
You can search files by SHA-256 sum:
{{ url_prefix }}/api/sha256/?checksum=sha256&package=packagename&suite=jessie
Specifying a package name or a suite is optional.
The URL for a path search is:
{{ url_prefix }}/api/file/packagename/version/path
Both package name and version are required parameters.
See example
The URL for a batch (many files) search is:
{{ url_prefix }}/api/sha256/
The API accepts an HTTP POST request. The data must be form-encoded, repeating
the checksum parameter for multiple values.
For example, if you are using python requests to create the POST request then
the dictionnary containing the values should have the following structure:
Copyright
The JSON result will be pretty-printed, unless the
X-Requested-With HTTP header is set to XmlHttpRequest.Search
File search
example
Path search
Batch search
{
"checksums": [SUM1, SUM2, SUM3, ...],
"package": PACKAGE,
"suite": SUITE
}
Package and suite parameters are optional.
{{ url_prefix }}/api/list example
{{ url_prefix }}/api/prefix/prefix example
Check service status and retrieve last update timestamp: {{ url_prefix }}/api/ping/ example