Official repositories web interface
This article provides documentation for the web interface through which it is possible to query the official repositories and obtain results in JSON format.
Package information
Base URL: https://archlinux.org/packages/
Details
Syntax: /repository/architecture/package/json/
Example: https://archlinux.org/packages/core/x86_64/coreutils/json/
Files
Syntax: /repository/architecture/package/files/json/
Example: https://archlinux.org/packages/core/x86_64/coreutils/files/json/
Package search
The interface supports the same query parameters as the HTML search form, except for sort
.
Base URL: https://www.archlinux.org/packages/search/json/
Name or description
Parameter: q
Example: https://archlinux.org/packages/search/json/?q=pacman
Exact name
Parameter: name
Example: https://archlinux.org/packages/search/json/?name=coreutils
Description
Parameter: desc
Example: https://archlinux.org/packages/search/json/?desc=pacman
Repository
It is possible to use this parameter more than once in order to search in more than one repository (but note that omitting it altogether will search in all repositories).
Parameter: repo
Values: Core
, Core-Testing
, Extra
, Extra-Testing
, Multilib
, Multilib-Testing
.
Example: https://archlinux.org/packages/search/json/?q=cursor&repo=Core&repo=Extra
Architecture
It is possible to use this parameter more than once in order to search for more than one architecture (but note that omitting it altogether will search for all architectures).
Parameter: arch
Values: any
, x86_64
Example: https://archlinux.org/packages/search/json/?q=cursor&arch=any&arch=x86_64
Maintainer
Parameter: maintainer
Example: https://archlinux.org/packages/search/json/?repo=Extra&maintainer=orphan
Packager
Parameter: packager
Flagged
Parameter: flagged
Values: Flagged
, Not+Flagged
Example: https://archlinux.org/packages/search/json/?arch=x86_64&flagged=Flagged
See also
- Forum thread
- Initial feature request: FS#13026
- Kittypack: A silly little tool to poke archlinux.org/packages for info