API talk:Logevents

From MediaWiki.org
Jump to navigation Jump to search

Extracting logevents which comment include some key words[edit]

I would like to get a list of articles deleted which have a comment including the string "R2" (it means "Cross-namespace redirects"). Is it possible ? I already have this query : /w/api.php?action=query&format=json&list=logevents&leprop=title%7Ctimestamp%7Ccomment&letype=delete&leaction=delete%2Fdelete&lenames/code0 But it gives me too many results... Thanks

Note for cleanup[edit]

I see a lot of fields documented by reference to other docs, like "user: Content of the log_user_text field." Noting that we could improve this page by explaining these "boring" fields. Adamw (talk) 22:04, 6 August 2018 (UTC)