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://www.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/

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:

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:

Values: , , Testing, , Multilib-Testing, ,

Example: https://archlinux.org/packages/search/json/?q=cursor&repo=Community&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:

Values: , ,

Example: https://archlinux.org/packages/search/json/?q=cursor&arch=any&arch=x86_64

Maintainer

Parameter:

Example: https://archlinux.org/packages/search/json/?repo=Community&maintainer=orphan

Packager

Parameter:

Flagged

Parameter: flagged

Values: ,

Example: https://archlinux.org/packages/search/json/?arch=x86_64&flagged=Flagged

gollark: For example, if you buy stock in "GTech Stores", you'd expect to get dividends if I sell anything. But nobody has actually designed a mechanism for company krist accounts, paying dividends automatically, calculating profit, accounting and all that.
gollark: I think a key issue is that there's not really any mechanism for accounting and paying out profit.
gollark: <@356209633313947648> Stock exchanges have been, well, started on before, never really finished.
gollark: It would be complex to do, but extremely cool.
gollark: The neural interface could presumably detect which computer it's looking at with lots of weird raytracey stuff, and then you could ask that computer to stream its terminal to you.

See also

This article is issued from Archlinux. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.