MediaWiki API help
This is an auto-generated MediaWiki API documentation page.
Documentation and examples: https://www.mediawiki.org/wiki/API
meta=filerepoinfo (fri)
- This module requires read rights.
- Source: MediaWiki
- License: GPL-2.0-or-later
Return meta information about image repositories configured on the wiki.
Parameter:
- friprop
Which repository properties to get (properties available may vary on other wikis).
- apiurl
- URL to the repository API - helpful for getting image info from the host.
- canUpload
- Whether files can be uploaded to this repository, e.g. via CORS and shared authentication.
- descriptionCacheExpiry
- (no description)
- displayname
- The human-readable name of the repository wiki.
- favicon
- Repository wiki's favicon URL, from $wgFavicon.
- fetchDescription
- Whether file description pages are fetched from this repository when viewing local file description pages.
- initialCapital
- Whether file names implicitly start with a capital letter.
- local
- Whether that repository is the local one or not.
- name
- The key of the repository - used in e.g. $wgForeignFileRepos and imageinfo return values.
- rootUrl
- Root URL path for image paths.
- scriptDirUrl
- Root URL path for the repository wiki's MediaWiki installation.
- thumbUrl
- Root URL path for thumbnail paths.
- url
- Public zone URL path.
- Values (separate with | or alternative): apiurl, canUpload, descriptionCacheExpiry, displayname, favicon, fetchDescription, initialCapital, local, name, rootUrl, scriptDirUrl, thumbUrl, url
- Default: apiurl|canUpload|descriptionCacheExpiry|displayname|favicon|fetchDescription|initialCapital|local|name|rootUrl|scriptDirUrl|thumbUrl|url
Example:
- Get information about file repositories.
- api.php?action=query&meta=filerepoinfo&friprop=apiurl|name|displayname [open in sandbox]
Debug data:
[SQLBagOStuff] MainObjectStash using store ReplicatedBagOStuff
[objectcache] MainWANObjectCache using store EmptyBagOStuff
IP: 18.222.30.59
Start request GET /mediawiki/api.php?action=help&modules=query%2Bfilerepoinfo
HTTP HEADERS:
CONTENT-TYPE:
CONTENT-LENGTH: 0
USER-AGENT: Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
HOST: zero-k.info
ACCEPT-ENCODING: gzip, br, zstd, deflate
ACCEPT: */*
CONNECTION: close[localisation] LocalisationCache: using store LCStoreDB
[session] SessionManager using store SqlBagOStuff
[DBReplication] Cannot use ChronologyProtector with EmptyBagOStuff
[DBReplication] Wikimedia\Rdbms\LBFactory::getChronologyProtector: request info {
"IPAddress": "18.222.30.59",
"UserAgent": "Mozilla\/5.0 AppleWebKit\/537.36 (KHTML, like Gecko; compatible; ClaudeBot\/1.0; +claudebot@anthropic.com)",
"ChronologyProtection": false,
"ChronologyPositionIndex": 0,
"ChronologyClientId": false
}[DBConnection] Wikimedia\Rdbms\LoadBalancer::lazyLoadReplicationPositions: executed chronology callback.
[DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: connected to database 0 at 'localhost'.
[SQLBagOStuff] Connection mysql object #127 (handle id #121) will be used for SqlBagOStuff
[session] SessionBackend "osju175nkhsapmcinqemh618507li0ah" is unsaved, marking dirty in constructor
[session] SessionBackend "osju175nkhsapmcinqemh618507li0ah" save: dataDirty=1 metaDirty=1 forcePersist=0
[cookie] already deleted setcookie: "wikidb229_mw__session", "", "1715249335", "/", "", "", "1"
[cookie] already deleted setcookie: "wikidb229_mw_UserID", "", "1715249335", "/", "", "", "1"
[cookie] already deleted setcookie: "wikidb229_mw_Token", "", "1715249335", "/", "", "", "1"
[cookie] already deleted setcookie: "forceHTTPS", "", "1715249335", "/", "", "", "1"
[DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: connected to database 0 at 'localhost'.
[MessageCache] MessageCache using store SqlBagOStuff
[SQLBagOStuff] Connection mysql object #127 (handle id #121) will be used for SqlBagOStuff
[SQLBagOStuff] Connection mysql object #127 (handle id #121) will be used for SqlBagOStuff
[SQLBagOStuff] Connection mysql object #127 (handle id #121) will be used for SqlBagOStuff
[SQLBagOStuff] Connection mysql object #127 (handle id #121) will be used for SqlBagOStuff
[SQLBagOStuff] SqlBagOStuff::lock failed due to timeout for wikidb229-mw_:messages:en.
[ContentHandler] Created handler for wikitext: WikitextContentHandler
[SQLBagOStuff] Connection mysql object #127 (handle id #121) will be used for SqlBagOStuff
[SQLBagOStuff] Connection mysql object #127 (handle id #121) will be used for SqlBagOStuff
[MessageCache] MessageCache::load: Loading en... local cache is empty, global cache is expired/volatile, loading from database
ParserFactory: using preprocessor: Preprocessor_Hash
Unstubbing $wgLang on call of $wgLang::_unstub from ParserOptions->__construct
ForeignAPIRepo: HTTP GET: https://commons.wikimedia.org/w/api.php?format=json&action=query&meta=siteinfo&siprop=general
[http] * Error fetching URL: SSL certificate problem: unable to get local issuer certificate
* There was a problem during the HTTP request: 0 Error