MediaWiki API help

This is an auto-generated MediaWiki API documentation page.

Documentation and examples: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page

prop=redirects (rd)

(main | query | redirects)
  • This module requires read rights.
  • This module can be used as a generator.
  • Source: MediaWiki
  • License: GPL-2.0-or-later

Returns all redirects to the given pages.

Specific parameters:
Other general parameters are available.
rdprop

Which properties to get:

pageid
Page ID of each redirect.
title
Title of each redirect.
fragment
Fragment of each redirect, if any.
Values (separate with | or alternative): fragment, pageid, title
Default: pageid|title
rdnamespace

Only include pages in these namespaces.

Values (separate with | or alternative): 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 274, 275, 828, 829, 2300, 2301, 2302, 2303, 3002, 3003, 3004, 3005, 3006, 3007, 3008, 3009, 3020, 3021, 3022, 3023, 3026, 3027, 3028, 3029, 3030, 3031, 3032, 3033, 3036, 3037, 3040, 3041, 3042, 3043, 3044, 3045, 3046, 3047, 3048, 3049, 3052, 3053, 3054, 3055, 3056, 3057, 3060, 3061, 3062, 3063, 3066, 3067, 3068, 3069, 3072, 3073, 3074, 3075, 3078, 3079, 3080, 3081, 3084, 3085, 3086, 3087, 3088, 3089, 3090, 3091, 3092, 3093, 3094, 3095, 3116, 3117, 3118, 3119, 3126, 3127, 3128, 3129, 3130, 3131, 3138, 3139, 3140, 3141, 3142, 3143, 3144, 3145, 3146, 3147, 3148, 3149, 3150, 3151, 3158, 3159, 3162, 3163, 3164, 3165, 3166, 3167
Maximum number of values is 50 (500 for clients that are allowed higher limits).
To specify all values, use *.
rdshow

Show only items that meet these criteria:

fragment
Only show redirects with a fragment.
!fragment
Only show redirects without a fragment.
Values (separate with | or alternative): !fragment, fragment
rdlimit

How many redirects to return.

Type: integer or max
The value must be between 1 and 500.
Default: 10
rdcontinue

When more results are available, use this to continue. More detailed information on how to continue queries can be found on mediawiki.org.