User:SPQRobin/API

From Wikimedia Incubator
Jump to: navigation, search

Allpages[edit]

  • Parameters of http://incubator.wikimedia.org/w/api.php?list=allpages
    • &apfrom - The page title to start enumerating from.
    • &apprefix - Search for all page titles that begin with this value.
    • &apnamespace - The namespace to enumerate.
      One value: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 100, 101
      Default: 0
    • &apfilterredir - Which pages to list.
      One value: all, redirects, nonredirects
      Default: all
    • &apminsize - Limit to pages with at least this many bytes
    • &apmaxsize - Limit to pages with at most this many bytes
    • &apprtype - Limit to protected pages only
      Values (separate with '|'): edit, move
    • &apprlevel - The protection level (must be used with apprtype= parameter)
      Can be empty, or Values (separate with '|'): autoconfirmed, sysop
    • &aplimit - How many total pages to return.
      No more than 500 (5000 for bots) allowed.
      Default: 10
    • &apdir - The direction in which to list
      One value: ascending, descending
      Default: ascending

See also[edit]