URL scheme

Search

Package search

You can simply point a package search query with the following URL: //sources.debian.net/search/query See example

A suite parameter can be given to limit search to a given suite. //sources.debian.net/search/query?suite=suite_name See example

File search

The URL for a SHAsum search is: //sources.debian.net/sha256/?checksum=sha256&package=packagename Specifying a package name is optional.

Code search

You can search within the code through tags. //sources.debian.net/ctag/?ctag=tag&package=packagename Specifying a package name is optional.

Package list

Alphabetically

//sources.debian.net/list/INT See example

By prefix

//sources.debian.net/prefix/prefix See example

A suite parameter can be given to limit listing to a given suite. //sources.debian.net/prefix/prefix?suite=suite_name See example

Package versions

You can list the different versions of a package, accessing this URL: //sources.debian.net/src/packagename See example

a suite parameter can be given to limit listing to a given suite. //sources.debian.net/src/packagename?suite=suite_name See example

Navigation within a package

You can list the files in a package or in a particular folder of a package, accessing one of these URLs: //sources.debian.net/src/packagename/version or: //sources.debian.net/api/src/packagename/latest to use automatically the latest available version of the package.
See example

//sources.debian.net/src/packagename/version/path/to/dir See example

Source code displaying

To simply display a source file: //sources.debian.net/src/packagename/version/path/to/file See example

If recognized as a text file, the source file will be syntax highlighted, automatically detecting the relevant language. Files not recognized as text files will be offered for download. It is possible to override the detected language appending ?lang=LANGUAGE to the source file URL; LANGUAGE should be one of the languages supported by highlight.js (use one of the double-quoted strings in parentheses). ?lang=none can be used to force displaying a file (as opposed to downloading it) without any syntax highlighting.

To point a specific line in a source file: //sources.debian.net/src/packagename/version/path/to/file#LINT See example

If you want to embed a source code file in e.g. an iframe, use: //sources.debian.net/embed/file/packagename/version/path/to/file#LINT

To use with options: //sources.debian.net/src/packagename/version/path/to/file?opt1=val1&opt2=val2[...]#LINT

Available options

See complete example

Infobox

You can embed an infobox about a particular version of a package (the same infobox which appears when you browse a package) using: //sources.debian.net/embed/pkginfo/packagename/version