Jump to content

Manual:RCFeed

From mediawiki.org

This is the schema for the machine-readable Recent Changes feed. It's related to MediaWiki's internal RecentChanges object, with additional information about the wiki in which the change was made.

Properties

MediaWiki version:
1.25

Common event

id string ID of the recent change event (rc_id).
type string Type of recent change event (rc_type). Core types will be translated into strings (edit, new, log, categorize, external); other types will be shown as raw numbers.
namespace number ID of relevant namespace of affected page (rc_namespace, page_namespace). This is -1 ("Special") for log events.
title string Full page name, from Title::getPrefixedText.
comment string rc_comment
timestamp number Unix timestamp (derived from rc_timestamp).
user string rc_user_text
bot boolean rc_bot

Common server

server_url string $wgCanonicalServer
server_name string $wgServerName
server_script_path string $wgScriptPath
wiki string wfWikiID ($wgDBprefix , $wgDBname )

Edits

For type=edit and type=new. Other types of events do not have these properties.

Log events

For type=log

log_id rc_log_id
log_type rc_log_type
log_action rc_log_action
log_params mixed Property only exist if event has rc_params.
log_action_comment

Example

{
	"comment": "[[:File:Bulletins of American paleontology (1964) (20315870759).jpg]] removed from category",
	"wiki": "commonswiki",
	"server_name": "commons.wikimedia.org",
	"title": "Category:Bulletins of American paleontology",
	"timestamp": 1456759695,
	"server_script_path": "/w",
	"namespace": 14,
	"server_url": "https://commons.wikimedia.org",
	"user": "Wieralee",
	"bot": false,
	"type": "categorize",
	"id": 201307606
}
{
	"comment": "sorting image request",
	"wiki": "enwiki",
	"server_name": "en.wikipedia.org",
	"title": "Talk:Kalette",
	"timestamp": 1425392294,
	"server_script_path": "/w",
	"namespace": 1,
	"server_url": "http://en.wikipedia.org",
	"length": {
		"new": 219,
		"old": 186
	},
	"user": "Mr. Granger",
	"bot": false,
	"type": "edit",
	"id": 718374724,
	"minor": false,
	"revision": {
		"new": 649690049,
		"old": 649645633
	}
}
{
	"comment": "Bot: Removing redundant category ([[Template:Uploaded with GWToolset|Uploaded with GWToolset]])",
	"wiki": "commonswiki",
	"server_name": "commons.wikimedia.org",
	"title": "File:Interior of wheelhouse looking aft; pipes on aft wall were for heating. - Ferry TICONDEROGA, Route 7, Shelburne, Chittenden County, VT HAER VT,4-SHEL,1-66.tif",
	"timestamp": 1425392723,
	"server_script_path": "/w",
	"namespace": 6,
	"server_url": "http://commons.wikimedia.org",
	"length": {
		"new": 7278,
		"old": 7314
	},
	"user": "SteinsplitterBot",
	"bot": true,
	"patrolled": true,
	"type": "edit",
	"id": 156219030,
	"minor": true,
	"revision": {
		"new": 151956073,
		"old": 130736146
	}
}
{
	"comment": "Új oldal, tartalma: „{{letm}} #[[író]]”",
	"wiki": "huwiktionary",
	"server_name": "hu.wiktionary.org",
	"title": "rakstnieks",
	"timestamp": 1425393635,
	"server_script_path": "/w",
	"namespace": 0,
	"server_url": "http://hu.wiktionary.org",
	"length": {
		"new": 19,
		"old": null
	},
	"user": "Karesz52",
	"bot": false,
	"patrolled": false,
	"type": "new",
	"id": 1790735,
	"minor": false,
	"revision": {
		"new": 1782943,
		"old": null
	}
}

See also