Difference between revisions of "Official repositories web interface"

From ArchWiki
Jump to navigation Jump to search
m (Updated example url for the files api for the Official repositories web interface to use "x86_64" as architecture instead of "i686".)
m (Adjusted AurJson link to new nomenclature)
Line 5: Line 5:
{{Related articles start}}
{{Related articles start}}
{{Related|Aurweb RPC interface}}
{{Related articles end}}
{{Related articles end}}

Revision as of 17:35, 3 July 2018

Tango-view-fullscreen.pngThis article or section needs expansion.Tango-view-fullscreen.png

Reason: This API does not have any other documentation: if you have knowledge of Django, please help adding any missing functionalities by looking at the source code. (Discuss in Talk: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/


Syntax: /repository/architecture/package/json

Example: https://www.archlinux.org/packages/core/x86_64/coreutils/json/


Syntax: /repository/architecture/package/files/json

Example: https://www.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://www.archlinux.org/packages/search/json/?q=pacman

Exact name

Parameter: name

Example: https://www.archlinux.org/packages/search/json/?name=coreutils


Parameter: desc

Example: https://www.archlinux.org/packages/search/json/?desc=pacman


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, Extra, Testing, Multilib, Multilib-Testing, Community, Community-Testing

Example: https://www.archlinux.org/packages/search/json/?q=cursor&repo=Community&repo=Extra


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, i686, x86_64

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


Parameter: maintainer

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


Parameter: packager


Parameter: flagged

Values: Flagged, Not+Flagged

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

See also