-
Notifications
You must be signed in to change notification settings - Fork 0
/
api.php-action=import&interwikisource=meta&interwikipage=Help-ParserFunctions&namespace=100&fullhistory=&token=123ABC.htm
2359 lines (2156 loc) · 191 KB
/
api.php-action=import&interwikisource=meta&interwikipage=Help-ParserFunctions&namespace=100&fullhistory=&token=123ABC.htm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE HTML>
<html>
<head><meta http-equiv=Content-Type content='text/html; charset=utf-8'>
<title>MediaWiki API</title>
</head>
<body>
<pre>
<span style="color:blue;"><?xml version="1.0"?></span>
<span style="color:blue;"><api></span>
<span style="color:blue;"><error code="unknown_interwikisource" info="Unrecognized value for parameter &#039;interwikisource&#039;: meta" xml:space="preserve"></span>
<b>**********************************************************************************************************</b>
<b>** **</b>
<b>** This is an auto-generated MediaWiki API documentation page **</b>
<b>** **</b>
<b>** Documentation and Examples: **</b>
<b>** <a href="javascript:if(confirm(%27https://www.mediawiki.org/wiki/API \n\nThis file was not retrieved by Teleport Pro, because it is addressed using an unsupported protocol (e.g., gopher). \n\nDo you want to open it from the server?%27))window.location=%27https://www.mediawiki.org/wiki/API%27" tppabs="https://www.mediawiki.org/wiki/API">https://www.mediawiki.org/wiki/API</a> **</b>
<b>** **</b>
<b>**********************************************************************************************************</b>
Status: All features shown on this page should be working, but the API
is still in active development, and may change at any time.
Make sure to monitor our mailing list for any updates
Erroneous requests: When erroneous requests are sent to the API, a HTTP header will be sent
with the key "MediaWiki-API-Error" and then both the value of the
header and the error code sent back will be set to the same value
In the case of an invalid action being passed, these will have a value
of "unknown_action"
For more information see <a href="javascript:if(confirm(%27https://www.mediawiki.org/wiki/API:Errors_and_warnings \n\nThis file was not retrieved by Teleport Pro, because it is addressed using an unsupported protocol (e.g., gopher). \n\nDo you want to open it from the server?%27))window.location=%27https://www.mediawiki.org/wiki/API:Errors_and_warnings%27" tppabs="https://www.mediawiki.org/wiki/API:Errors_and_warnings">https://www.mediawiki.org/wiki/API:Errors_and_warnings</a>
Documentation: <a href="javascript:if(confirm(%27https://www.mediawiki.org/wiki/API:Main_page \n\nThis file was not retrieved by Teleport Pro, because it is addressed using an unsupported protocol (e.g., gopher). \n\nDo you want to open it from the server?%27))window.location=%27https://www.mediawiki.org/wiki/API:Main_page%27" tppabs="https://www.mediawiki.org/wiki/API:Main_page">https://www.mediawiki.org/wiki/API:Main_page</a>
FAQ <a href="javascript:if(confirm(%27https://www.mediawiki.org/wiki/API:FAQ \n\nThis file was not retrieved by Teleport Pro, because it is addressed using an unsupported protocol (e.g., gopher). \n\nDo you want to open it from the server?%27))window.location=%27https://www.mediawiki.org/wiki/API:FAQ%27" tppabs="https://www.mediawiki.org/wiki/API:FAQ">https://www.mediawiki.org/wiki/API:FAQ</a>
Mailing list: <a href="javascript:if(confirm(%27https://lists.wikimedia.org/mailman/listinfo/mediawiki-api \n\nThis file was not retrieved by Teleport Pro, because it is addressed using an unsupported protocol (e.g., gopher). \n\nDo you want to open it from the server?%27))window.location=%27https://lists.wikimedia.org/mailman/listinfo/mediawiki-api%27" tppabs="https://lists.wikimedia.org/mailman/listinfo/mediawiki-api">https://lists.wikimedia.org/mailman/listinfo/mediawiki-api</a>
Api Announcements: <a href="javascript:if(confirm(%27https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce \n\nThis file was not retrieved by Teleport Pro, because it is addressed using an unsupported protocol (e.g., gopher). \n\nDo you want to open it from the server?%27))window.location=%27https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce%27" tppabs="https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce">https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce</a>
Bugs & Requests: <a href="javascript:if(confirm(%27https://bugzilla.wikimedia.org/buglist.cgi?component=API&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&order=bugs.delta_ts \n\nThis file was not retrieved by Teleport Pro, because it is addressed using an unsupported protocol (e.g., gopher). \n\nDo you want to open it from the server?%27))window.location=%27https://bugzilla.wikimedia.org/buglist.cgi?component=API&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&order=bugs.delta_ts%27" tppabs="https://bugzilla.wikimedia.org/buglist.cgi?component=API&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&order=bugs.delta_ts">https://bugzilla.wikimedia.org/buglist.cgi?component=API&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&order=bugs.delta_ts</a>
Parameters:
format - The format of the output
One value: json, jsonfm, php, phpfm, wddx, wddxfm, xml, xmlfm, yaml, yamlfm, rawfm, txt, txtfm, dbg, dbgfm,
dump, dumpfm
Default: xmlfm
action - What action you would like to perform. See below for module help
One value: login, logout, query, expandtemplates, parse, opensearch, feedcontributions, feedwatchlist, help,
paraminfo, rsd, compare, purge, rollback, delete, undelete, protect, block, unblock, move, edit,
upload, filerevert, emailuser, watch, patrol, import, userrights
Default: help
version - When showing help, include version for each module
maxlag - Maximum lag can be used when MediaWiki is installed on a database replicated cluster.
To save actions causing any more site replication lag, this parameter can make the client
wait until the replication lag is less than the specified value.
In case of a replag error, a HTTP 503 error is returned, with the message like
"Waiting for <b><i>$host: $</i></b>lag seconds lagged\n".
See <a href="javascript:if(confirm(%27https://www.mediawiki.org/wiki/Manual:Maxlag_parameter \n\nThis file was not retrieved by Teleport Pro, because it is addressed using an unsupported protocol (e.g., gopher). \n\nDo you want to open it from the server?%27))window.location=%27https://www.mediawiki.org/wiki/Manual:Maxlag_parameter%27" tppabs="https://www.mediawiki.org/wiki/Manual:Maxlag_parameter">https://www.mediawiki.org/wiki/Manual:Maxlag_parameter</a> for more information
smaxage - Set the s-maxage header to this many seconds. Errors are never cached
Default: 0
maxage - Set the max-age header to this many seconds. Errors are never cached
Default: 0
requestid - Request ID to distinguish requests. This will just be output back to you
servedby - Include the hostname that served the request in the results. Unconditionally shown on error
<b>*** *** *** *** *** *** *** *** *** *** *** *** *** *** Modules *** *** *** *** *** *** *** *** *** *** *** *** *** ***</b>
<b>* action=login (lg) *</b>
Log in and get the authentication tokens.
In the event of a successful log-in, a cookie will be attached
to your session. In the event of a failed log-in, you will not
be able to attempt another log-in through this method for 5 seconds.
This is to prevent password guessing by automated password crackers
This module only accepts POST requests
Parameters:
lgname - User Name
lgpassword - Password
lgdomain - Domain (optional)
lgtoken - Login token obtained in first request
Example:
<a href="api.php-action=login&lgname=user&lgpassword=password.htm" tppabs="http://www.ncic.ac.cn/~tgm/api.php?action=login&lgname=user&lgpassword=password">api.php?action=login&lgname=user&lgpassword=password</a>
Help page:
<a href="javascript:if(confirm(%27https://www.mediawiki.org/wiki/API:Login \n\nThis file was not retrieved by Teleport Pro, because it is addressed using an unsupported protocol (e.g., gopher). \n\nDo you want to open it from the server?%27))window.location=%27https://www.mediawiki.org/wiki/API:Login%27" tppabs="https://www.mediawiki.org/wiki/API:Login">https://www.mediawiki.org/wiki/API:Login</a>
<b>* action=logout *</b>
Log out and clear session data
Example:
Log the current user out:
<a href="api.php-action=logout.htm" tppabs="http://www.ncic.ac.cn/~tgm/api.php?action=logout">api.php?action=logout</a>
Help page:
<a href="javascript:if(confirm(%27https://www.mediawiki.org/wiki/API:Logout \n\nThis file was not retrieved by Teleport Pro, because it is addressed using an unsupported protocol (e.g., gopher). \n\nDo you want to open it from the server?%27))window.location=%27https://www.mediawiki.org/wiki/API:Logout%27" tppabs="https://www.mediawiki.org/wiki/API:Logout">https://www.mediawiki.org/wiki/API:Logout</a>
<b>* action=query *</b>
Query API module allows applications to get needed pieces of data from the MediaWiki databases,
and is loosely based on the old query.php interface.
All data modifications will first have to use query to acquire a token to prevent abuse from malicious sites
This module requires read rights
Parameters:
titles - A list of titles to work on
pageids - A list of page IDs to work on
Maximum number of values 50 (500 for bots)
revids - A list of revision IDs to work on
Maximum number of values 50 (500 for bots)
prop - Which properties to get for the titles/revisions/pageids. Module help is available below
Values (separate with '|'): info, revisions, links, iwlinks, langlinks, images, imageinfo, stashimageinfo, templates,
categories, extlinks, categoryinfo, duplicatefiles, pageprops
list - Which lists to get. Module help is available below
Values (separate with '|'): allimages, allpages, alllinks, allcategories, allusers, backlinks, blocks, categorymembers,
deletedrevs, embeddedin, filearchive, imageusage, iwbacklinks, langbacklinks, logevents,
recentchanges, search, tags, usercontribs, watchlist, watchlistraw, exturlusage, users, random,
protectedtitles, querypage
meta - Which metadata to get about the site. Module help is available below
Values (separate with '|'): siteinfo, userinfo, allmessages
generator - Use the output of a list as the input for other prop/list/meta items
NOTE: generator parameter names must be prefixed with a 'g', see examples
One value: links, images, templates, categories, duplicatefiles, allimages, allpages, alllinks, allcategories,
backlinks, categorymembers, embeddedin, imageusage, iwbacklinks, langbacklinks, recentchanges,
search, watchlist, watchlistraw, exturlusage, random, protectedtitles, querypage
redirects - Automatically resolve redirects
converttitles - Convert titles to other variants if necessary. Only works if the wiki's content language supports variant conversion.
Languages that support variant conversion include gan, iu, kk, ku, shi, sr, tg, zh
indexpageids - Include an additional pageids section listing all returned page IDs
export - Export the current revisions of all given or generated pages
exportnowrap - Return the export XML without wrapping it in an XML result (same format as Special:Export). Can only be used with export
iwurl - Whether to get the full URL if the title is an interwiki link
Examples:
<a href="api.php-action=query&prop=revisions&meta=siteinfo&titles=Main Page&rvprop=user-comment.htm" tppabs="http://www.ncic.ac.cn/~tgm/api.php?action=query&prop=revisions&meta=siteinfo&titles=Main%20Page&rvprop=user|comment">api.php?action=query&prop=revisions&meta=siteinfo&titles=Main%20Page&rvprop=user|comment</a>
<a href="api.php-action=query&generator=allpages&gapprefix=API-&prop=revisions.htm" tppabs="http://www.ncic.ac.cn/~tgm/api.php?action=query&generator=allpages&gapprefix=API/&prop=revisions">api.php?action=query&generator=allpages&gapprefix=API/&prop=revisions</a>
Help pages:
<a href="javascript:if(confirm(%27https://www.mediawiki.org/wiki/API:Meta \n\nThis file was not retrieved by Teleport Pro, because it is addressed using an unsupported protocol (e.g., gopher). \n\nDo you want to open it from the server?%27))window.location=%27https://www.mediawiki.org/wiki/API:Meta%27" tppabs="https://www.mediawiki.org/wiki/API:Meta">https://www.mediawiki.org/wiki/API:Meta</a>
<a href="javascript:if(confirm(%27https://www.mediawiki.org/wiki/API:Properties \n\nThis file was not retrieved by Teleport Pro, because it is addressed using an unsupported protocol (e.g., gopher). \n\nDo you want to open it from the server?%27))window.location=%27https://www.mediawiki.org/wiki/API:Properties%27" tppabs="https://www.mediawiki.org/wiki/API:Properties">https://www.mediawiki.org/wiki/API:Properties</a>
<a href="javascript:if(confirm(%27https://www.mediawiki.org/wiki/API:Lists \n\nThis file was not retrieved by Teleport Pro, because it is addressed using an unsupported protocol (e.g., gopher). \n\nDo you want to open it from the server?%27))window.location=%27https://www.mediawiki.org/wiki/API:Lists%27" tppabs="https://www.mediawiki.org/wiki/API:Lists">https://www.mediawiki.org/wiki/API:Lists</a>
--- --- --- --- --- --- --- --- --- --- --- --- Query: Prop --- --- --- --- --- --- --- --- --- --- --- ---
<b>* prop=info (in) *</b>
Get basic page information such as namespace, title, last touched date, ...
This module requires read rights
Parameters:
inprop - Which additional properties to get:
protection - List the protection level of each page
talkid - The page ID of the talk page for each non-talk page
watched - List the watched status of each page
subjectid - The page ID of the parent page for each talk page
url - Gives a full URL to the page, and also an edit URL
readable - Whether the user can read this page
preload - Gives the text returned by EditFormPreloadText
displaytitle - Gives the way the page title is actually displayed
Values (separate with '|'): protection, talkid, watched, subjectid, url, readable, preload, displaytitle
intoken - Request a token to perform a data-modifying action on a page
Values (separate with '|'): edit, delete, protect, move, block, unblock, email, import, watch
incontinue - When more results are available, use this to continue
Examples:
<a href="api.php-action=query&prop=info&titles=Main Page.htm" tppabs="http://www.ncic.ac.cn/~tgm/api.php?action=query&prop=info&titles=Main%20Page">api.php?action=query&prop=info&titles=Main%20Page</a>
<a href="api.php-action=query&prop=info&inprop=protection&titles=Main Page.htm" tppabs="http://www.ncic.ac.cn/~tgm/api.php?action=query&prop=info&inprop=protection&titles=Main%20Page">api.php?action=query&prop=info&inprop=protection&titles=Main%20Page</a>
Help page:
<a href="javascript:if(confirm(%27https://www.mediawiki.org/wiki/API:Properties \n\nThis file was not retrieved by Teleport Pro, because it is addressed using an unsupported protocol (e.g., gopher). \n\nDo you want to open it from the server?%27))window.location=%27https://www.mediawiki.org/wiki/API:Properties#info_.2F_in%27" tppabs="https://www.mediawiki.org/wiki/API:Properties#info_.2F_in">https://www.mediawiki.org/wiki/API:Properties#info_.2F_in</a>
<b>* prop=revisions (rv) *</b>
Get revision information
May be used in several ways:
1) Get data about a set of pages (last revision), by setting titles or pageids parameter
2) Get revisions for one given page, by using titles/pageids with start/end/limit params
3) Get data about a set of revisions by setting their IDs with revids parameter
All parameters marked as (enum) may only be used with a single page (#2)
This module requires read rights
Parameters:
rvprop - Which properties to get for each revision:
ids - The ID of the revision
flags - Revision flags (minor)
timestamp - The timestamp of the revision
user - User that made the revision
userid - User id of revision creator
size - Length (bytes) of the revision
sha1 - SHA-1 (base 16) of the revision
comment - Comment by the user for revision
parsedcomment - Parsed comment by the user for the revision
content - Text of the revision
tags - Tags for the revision
Values (separate with '|'): ids, flags, timestamp, user, userid, size, sha1, comment, parsedcomment, content, tags
Default: ids|timestamp|flags|comment|user
rvlimit - Limit how many revisions will be returned (enum)
No more than 500 (5000 for bots) allowed
rvstartid - From which revision id to start enumeration (enum)
rvendid - Stop revision enumeration on this revid (enum)
rvstart - From which revision timestamp to start enumeration (enum)
rvend - Enumerate up to this timestamp (enum)
rvdir - In which direction to enumerate (enum)
newer - List oldest first. Note: rvstart has to be before rvend.
older - List newest first (default). Note: rvstart has to be later than rvend.
One value: newer, older
Default: older
rvuser - Only include revisions made by user (enum)
rvexcludeuser - Exclude revisions made by user (enum)
rvtag - Only list revisions tagged with this tag
rvexpandtemplates - Expand templates in revision content
rvgeneratexml - Generate XML parse tree for revision content
rvparse - Parse revision content. For performance reasons if this option is used, rvlimit is enforced to 1.
rvsection - Only retrieve the content of this section number
rvtoken - Which tokens to obtain for each revision
Values (separate with '|'): rollback
rvcontinue - When more results are available, use this to continue
rvdiffto - Revision ID to diff each revision to.
Use "prev", "next" and "cur" for the previous, next and current revision respectively
rvdifftotext - Text to diff each revision to. Only diffs a limited number of revisions.
Overrides rvdiffto. If rvsection is set, only that section will be diffed against this text
Examples:
Get data with content for the last revision of titles "API" and "Main Page"
<a href="api.php-action=query&prop=revisions&titles=API-Main Page&rvprop=timestamp-user-comment-content.htm" tppabs="http://www.ncic.ac.cn/~tgm/api.php?action=query&prop=revisions&titles=API|Main%20Page&rvprop=timestamp|user|comment|content">api.php?action=query&prop=revisions&titles=API|Main%20Page&rvprop=timestamp|user|comment|content</a>
Get last 5 revisions of the "Main Page"
<a href="api.php-action=query&prop=revisions&titles=Main Page&rvlimit=5&rvprop=timestamp-user-comment.htm" tppabs="http://www.ncic.ac.cn/~tgm/api.php?action=query&prop=revisions&titles=Main%20Page&rvlimit=5&rvprop=timestamp|user|comment">api.php?action=query&prop=revisions&titles=Main%20Page&rvlimit=5&rvprop=timestamp|user|comment</a>
Get first 5 revisions of the "Main Page"
<a href="api.php-action=query&prop=revisions&titles=Main Page&rvlimit=5&rvprop=timestamp-user-comment&rvdir=newer.htm" tppabs="http://www.ncic.ac.cn/~tgm/api.php?action=query&prop=revisions&titles=Main%20Page&rvlimit=5&rvprop=timestamp|user|comment&rvdir=newer">api.php?action=query&prop=revisions&titles=Main%20Page&rvlimit=5&rvprop=timestamp|user|comment&rvdir=newer</a>
Get first 5 revisions of the "Main Page" made after 2006-05-01
<a href="api.php-action=query&prop=revisions&titles=Main Page&rvlimit=5&rvprop=timestamp-user-comment&rvdir=newer&rvstart=20060501000000.htm" tppabs="http://www.ncic.ac.cn/~tgm/api.php?action=query&prop=revisions&titles=Main%20Page&rvlimit=5&rvprop=timestamp|user|comment&rvdir=newer&rvstart=20060501000000">api.php?action=query&prop=revisions&titles=Main%20Page&rvlimit=5&rvprop=timestamp|user|comment&rvdir=newer&rvstart=20060501000000</a>
Get first 5 revisions of the "Main Page" that were not made made by anonymous user "127.0.0.1"
<a href="api.php-action=query&prop=revisions&titles=Main Page&rvlimit=5&rvprop=timestamp-user-comment&rvexcludeuser=127.0.0.1.htm" tppabs="http://www.ncic.ac.cn/~tgm/api.php?action=query&prop=revisions&titles=Main%20Page&rvlimit=5&rvprop=timestamp|user|comment&rvexcludeuser=127.0.0.1">api.php?action=query&prop=revisions&titles=Main%20Page&rvlimit=5&rvprop=timestamp|user|comment&rvexcludeuser=127.0.0.1</a>
Get first 5 revisions of the "Main Page" that were made by the user "MediaWiki default"
<a href="api.php-action=query&prop=revisions&titles=Main Page&rvlimit=5&rvprop=timestamp-user-comment&rvuser=MediaWiki default.htm" tppabs="http://www.ncic.ac.cn/~tgm/api.php?action=query&prop=revisions&titles=Main%20Page&rvlimit=5&rvprop=timestamp|user|comment&rvuser=MediaWiki%20default">api.php?action=query&prop=revisions&titles=Main%20Page&rvlimit=5&rvprop=timestamp|user|comment&rvuser=MediaWiki%20default</a>
Help page:
<a href="javascript:if(confirm(%27https://www.mediawiki.org/wiki/API:Properties \n\nThis file was not retrieved by Teleport Pro, because it is addressed using an unsupported protocol (e.g., gopher). \n\nDo you want to open it from the server?%27))window.location=%27https://www.mediawiki.org/wiki/API:Properties#revisions_.2F_rv%27" tppabs="https://www.mediawiki.org/wiki/API:Properties#revisions_.2F_rv">https://www.mediawiki.org/wiki/API:Properties#revisions_.2F_rv</a>
<b>* prop=links (pl) *</b>
Returns all links from the given page(s)
This module requires read rights
Parameters:
plnamespace - Show links in this namespace(s) only
Values (separate with '|'): 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
Maximum number of values 50 (500 for bots)
pllimit - How many links to return
No more than 500 (5000 for bots) allowed
Default: 10
plcontinue - When more results are available, use this to continue
pltitles - Only list links to these titles. Useful for checking whether a certain page links to a certain title.
pldir - The direction in which to list
One value: ascending, descending
Default: ascending
Examples:
Get links from the [[Main Page]]::
<a href="api.php-action=query&prop=links&titles=Main Page.htm" tppabs="http://www.ncic.ac.cn/~tgm/api.php?action=query&prop=links&titles=Main%20Page">api.php?action=query&prop=links&titles=Main%20Page</a>
Get information about the link pages in the [[Main Page]]::
<a href="api.php-action=query&generator=links&titles=Main Page&prop=info.htm" tppabs="http://www.ncic.ac.cn/~tgm/api.php?action=query&generator=links&titles=Main%20Page&prop=info">api.php?action=query&generator=links&titles=Main%20Page&prop=info</a>
Get links from the Main Page in the User and Template namespaces::
<a href="api.php-action=query&prop=links&titles=Main Page&plnamespace=2-10.htm" tppabs="http://www.ncic.ac.cn/~tgm/api.php?action=query&prop=links&titles=Main%20Page&plnamespace=2|10">api.php?action=query&prop=links&titles=Main%20Page&plnamespace=2|10</a>
Help page:
<a href="javascript:if(confirm(%27https://www.mediawiki.org/wiki/API:Properties \n\nThis file was not retrieved by Teleport Pro, because it is addressed using an unsupported protocol (e.g., gopher). \n\nDo you want to open it from the server?%27))window.location=%27https://www.mediawiki.org/wiki/API:Properties#links_.2F_pl%27" tppabs="https://www.mediawiki.org/wiki/API:Properties#links_.2F_pl">https://www.mediawiki.org/wiki/API:Properties#links_.2F_pl</a>
Generator:
This module may be used as a generator
<b>* prop=iwlinks (iw) *</b>
Returns all interwiki links from the given page(s)
This module requires read rights
Parameters:
iwurl - Whether to get the full URL
iwlimit - How many interwiki links to return
No more than 500 (5000 for bots) allowed
Default: 10
iwcontinue - When more results are available, use this to continue
iwprefix - Prefix for the interwiki
iwtitle - Interwiki link to search for. Must be used with iwprefix
iwdir - The direction in which to list
One value: ascending, descending
Default: ascending
Example:
Get interwiki links from the [[Main Page]]:
<a href="api.php-action=query&prop=iwlinks&titles=Main Page.htm" tppabs="http://www.ncic.ac.cn/~tgm/api.php?action=query&prop=iwlinks&titles=Main%20Page">api.php?action=query&prop=iwlinks&titles=Main%20Page</a>
<b>* prop=langlinks (ll) *</b>
Returns all interlanguage links from the given page(s)
This module requires read rights
Parameters:
lllimit - How many langlinks to return
No more than 500 (5000 for bots) allowed
Default: 10
llcontinue - When more results are available, use this to continue
llurl - Whether to get the full URL
lllang - Language code
lltitle - Link to search for. Must be used with lllang
lldir - The direction in which to list
One value: ascending, descending
Default: ascending
Example:
Get interlanguage links from the [[Main Page]]:
<a href="api.php-action=query&prop=langlinks&titles=Main Page&redirects=.htm" tppabs="http://www.ncic.ac.cn/~tgm/api.php?action=query&prop=langlinks&titles=Main%20Page&redirects=">api.php?action=query&prop=langlinks&titles=Main%20Page&redirects=</a>
Help page:
<a href="javascript:if(confirm(%27https://www.mediawiki.org/wiki/API:Properties \n\nThis file was not retrieved by Teleport Pro, because it is addressed using an unsupported protocol (e.g., gopher). \n\nDo you want to open it from the server?%27))window.location=%27https://www.mediawiki.org/wiki/API:Properties#langlinks_.2F_ll%27" tppabs="https://www.mediawiki.org/wiki/API:Properties#langlinks_.2F_ll">https://www.mediawiki.org/wiki/API:Properties#langlinks_.2F_ll</a>
<b>* prop=images (im) *</b>
Returns all images contained on the given page(s)
This module requires read rights
Parameters:
imlimit - How many images to return
No more than 500 (5000 for bots) allowed
Default: 10
imcontinue - When more results are available, use this to continue
imimages - Only list these images. Useful for checking whether a certain page has a certain Image.
imdir - The direction in which to list
One value: ascending, descending
Default: ascending
Examples:
Get a list of images used in the [[Main Page]]:
<a href="api.php-action=query&prop=images&titles=Main Page.htm" tppabs="http://www.ncic.ac.cn/~tgm/api.php?action=query&prop=images&titles=Main%20Page">api.php?action=query&prop=images&titles=Main%20Page</a>
Get information about all images used in the [[Main Page]]:
<a href="api.php-action=query&generator=images&titles=Main Page&prop=info.htm" tppabs="http://www.ncic.ac.cn/~tgm/api.php?action=query&generator=images&titles=Main%20Page&prop=info">api.php?action=query&generator=images&titles=Main%20Page&prop=info</a>
Help page:
<a href="javascript:if(confirm(%27https://www.mediawiki.org/wiki/API:Properties \n\nThis file was not retrieved by Teleport Pro, because it is addressed using an unsupported protocol (e.g., gopher). \n\nDo you want to open it from the server?%27))window.location=%27https://www.mediawiki.org/wiki/API:Properties#images_.2F_im%27" tppabs="https://www.mediawiki.org/wiki/API:Properties#images_.2F_im">https://www.mediawiki.org/wiki/API:Properties#images_.2F_im</a>
Generator:
This module may be used as a generator
<b>* prop=imageinfo (ii) *</b>
Returns image information and upload history
This module requires read rights
Parameters:
iiprop - What image information to get:
timestamp - Adds timestamp for the uploaded version
user - Adds the user who uploaded the image version
userid - Add the user ID that uploaded the image version
comment - Comment on the version
parsedcomment - Parse the comment on the version
url - Gives URL to the image and the description page
size - Adds the size of the image in bytes and the height, width and page count (if applicable)
dimensions - Alias for size
sha1 - Adds SHA-1 hash for the image
mime - Adds MIME type of the image
thumbmime - Adds MIME type of the image thumbnail (requires url)
mediatype - Adds the media type of the image
metadata - Lists EXIF metadata for the version of the image
archivename - Adds the file name of the archive version for non-latest versions
bitdepth - Adds the bit depth of the version
Values (separate with '|'): timestamp, user, userid, comment, parsedcomment, url, size, dimensions, sha1, mime, thumbmime,
mediatype, metadata, archivename, bitdepth
Default: timestamp|user
iilimit - How many image revisions to return
No more than 500 (5000 for bots) allowed
Default: 1
iistart - Timestamp to start listing from
iiend - Timestamp to stop listing at
iiurlwidth - If iiprop=url is set, a URL to an image scaled to this width will be returned.
Only the current version of the image can be scaled
Default: -1
iiurlheight - Similar to iiurlwidth. Cannot be used without iiurlwidth
Default: -1
iimetadataversion - Version of metadata to use. if 'latest' is specified, use latest version.
Defaults to '1' for backwards compatibility
Default: 1
iiurlparam - A handler specific parameter string. For example, pdf's
might use 'page15-100px'. iiurlwidth must be used and be consistent with iiurlparam
Default:
iicontinue - If the query response includes a continue value, use it here to get another page of results
Examples:
<a href="api.php-action=query&titles=File-Albert Einstein Head.jpg&prop=imageinfo.htm" tppabs="http://www.ncic.ac.cn/~tgm/api.php?action=query&titles=File:Albert%20Einstein%20Head.jpg&prop=imageinfo">api.php?action=query&titles=File:Albert%20Einstein%20Head.jpg&prop=imageinfo</a>
<a href="api.php-action=query&titles=File-Test.jpg&prop=imageinfo&iilimit=50&iiend=20071231235959&iiprop=timestamp-user-url.htm" tppabs="http://www.ncic.ac.cn/~tgm/api.php?action=query&titles=File:Test.jpg&prop=imageinfo&iilimit=50&iiend=20071231235959&iiprop=timestamp|user|url">api.php?action=query&titles=File:Test.jpg&prop=imageinfo&iilimit=50&iiend=20071231235959&iiprop=timestamp|user|url</a>
Help page:
<a href="javascript:if(confirm(%27https://www.mediawiki.org/wiki/API:Properties \n\nThis file was not retrieved by Teleport Pro, because it is addressed using an unsupported protocol (e.g., gopher). \n\nDo you want to open it from the server?%27))window.location=%27https://www.mediawiki.org/wiki/API:Properties#imageinfo_.2F_ii%27" tppabs="https://www.mediawiki.org/wiki/API:Properties#imageinfo_.2F_ii">https://www.mediawiki.org/wiki/API:Properties#imageinfo_.2F_ii</a>
<b>* prop=stashimageinfo (sii) *</b>
Returns image information for stashed images
This module requires read rights
Parameters:
siifilekey - Key that identifies a previous upload that was stashed temporarily.
siisessionkey - DEPRECATED! Alias for filekey, for backward compatibility.
siiprop - What image information to get:
timestamp - Adds timestamp for the uploaded version
url - Gives URL to the image and the description page
size - Adds the size of the image in bytes and the height, width and page count (if applicable)
dimensions - Alias for size
sha1 - Adds SHA-1 hash for the image
mime - Adds MIME type of the image
thumbmime - Adds MIME type of the image thumbnail (requires url)
metadata - Lists EXIF metadata for the version of the image
bitdepth - Adds the bit depth of the version
Values (separate with '|'): timestamp, url, size, dimensions, sha1, mime, thumbmime, metadata, bitdepth
Default: timestamp|url
siiurlwidth - If siiprop=url is set, a URL to an image scaled to this width will be returned.
Default: -1
siiurlheight - Similar to siiurlwidth. Cannot be used without siiurlwidth
Default: -1
siiurlparam - A handler specific parameter string. For example, pdf's
might use 'page15-100px'. siiurlwidth must be used and be consistent with siiurlparam
Default:
Examples:
<a href="api.php-action=query&prop=stashimageinfo&siifilekey=124sd34rsdf567.htm" tppabs="http://www.ncic.ac.cn/~tgm/api.php?action=query&prop=stashimageinfo&siifilekey=124sd34rsdf567">api.php?action=query&prop=stashimageinfo&siifilekey=124sd34rsdf567</a>
<a href="api.php-action=query&prop=stashimageinfo&siifilekey=b34edoe3-bceffd4&siiurlwidth=120&siiprop=url.htm" tppabs="http://www.ncic.ac.cn/~tgm/api.php?action=query&prop=stashimageinfo&siifilekey=b34edoe3|bceffd4&siiurlwidth=120&siiprop=url">api.php?action=query&prop=stashimageinfo&siifilekey=b34edoe3|bceffd4&siiurlwidth=120&siiprop=url</a>
Help page:
<a href="javascript:if(confirm(%27https://www.mediawiki.org/wiki/API:Properties \n\nThis file was not retrieved by Teleport Pro, because it is addressed using an unsupported protocol (e.g., gopher). \n\nDo you want to open it from the server?%27))window.location=%27https://www.mediawiki.org/wiki/API:Properties#imageinfo_.2F_ii%27" tppabs="https://www.mediawiki.org/wiki/API:Properties#imageinfo_.2F_ii">https://www.mediawiki.org/wiki/API:Properties#imageinfo_.2F_ii</a>
<b>* prop=templates (tl) *</b>
Returns all templates from the given page(s)
This module requires read rights
Parameters:
tlnamespace - Show templates in this namespace(s) only
Values (separate with '|'): 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
Maximum number of values 50 (500 for bots)
tllimit - How many templates to return
No more than 500 (5000 for bots) allowed
Default: 10
tlcontinue - When more results are available, use this to continue
tltemplates - Only list these templates. Useful for checking whether a certain page uses a certain template.
tldir - The direction in which to list
One value: ascending, descending
Default: ascending
Examples:
Get templates from the [[Main Page]]::
<a href="api.php-action=query&prop=templates&titles=Main Page.htm" tppabs="http://www.ncic.ac.cn/~tgm/api.php?action=query&prop=templates&titles=Main%20Page">api.php?action=query&prop=templates&titles=Main%20Page</a>
Get information about the template pages in the [[Main Page]]::
<a href="api.php-action=query&generator=templates&titles=Main Page&prop=info.htm" tppabs="http://www.ncic.ac.cn/~tgm/api.php?action=query&generator=templates&titles=Main%20Page&prop=info">api.php?action=query&generator=templates&titles=Main%20Page&prop=info</a>
Get templates from the Main Page in the User and Template namespaces::
<a href="api.php-action=query&prop=templates&titles=Main Page&tlnamespace=2-10.htm" tppabs="http://www.ncic.ac.cn/~tgm/api.php?action=query&prop=templates&titles=Main%20Page&tlnamespace=2|10">api.php?action=query&prop=templates&titles=Main%20Page&tlnamespace=2|10</a>
Help page:
<a href="javascript:if(confirm(%27https://www.mediawiki.org/wiki/API:Properties \n\nThis file was not retrieved by Teleport Pro, because it is addressed using an unsupported protocol (e.g., gopher). \n\nDo you want to open it from the server?%27))window.location=%27https://www.mediawiki.org/wiki/API:Properties#templates_.2F_tl%27" tppabs="https://www.mediawiki.org/wiki/API:Properties#templates_.2F_tl">https://www.mediawiki.org/wiki/API:Properties#templates_.2F_tl</a>
Generator:
This module may be used as a generator
<b>* prop=categories (cl) *</b>
List all categories the page(s) belong to
This module requires read rights
Parameters:
clprop - Which additional properties to get for each category
sortkey - Adds the sortkey (hexadecimal string) and sortkey prefix (human-readable part) for the category
timestamp - Adds timestamp of when the category was added
hidden - Tags categories that are hidden with __HIDDENCAT__
Values (separate with '|'): sortkey, timestamp, hidden
clshow - Which kind of categories to show
Values (separate with '|'): hidden, !hidden
cllimit - How many categories to return
No more than 500 (5000 for bots) allowed
Default: 10
clcontinue - When more results are available, use this to continue
clcategories - Only list these categories. Useful for checking whether a certain page is in a certain category
cldir - The direction in which to list
One value: ascending, descending
Default: ascending
Examples:
Get a list of categories [[Albert Einstein]] belongs to:
<a href="api.php-action=query&prop=categories&titles=Albert Einstein.htm" tppabs="http://www.ncic.ac.cn/~tgm/api.php?action=query&prop=categories&titles=Albert%20Einstein">api.php?action=query&prop=categories&titles=Albert%20Einstein</a>
Get information about all categories used in the [[Albert Einstein]]:
<a href="api.php-action=query&generator=categories&titles=Albert Einstein&prop=info.htm" tppabs="http://www.ncic.ac.cn/~tgm/api.php?action=query&generator=categories&titles=Albert%20Einstein&prop=info">api.php?action=query&generator=categories&titles=Albert%20Einstein&prop=info</a>
Help page:
<a href="javascript:if(confirm(%27https://www.mediawiki.org/wiki/API:Properties \n\nThis file was not retrieved by Teleport Pro, because it is addressed using an unsupported protocol (e.g., gopher). \n\nDo you want to open it from the server?%27))window.location=%27https://www.mediawiki.org/wiki/API:Properties#categories_.2F_cl%27" tppabs="https://www.mediawiki.org/wiki/API:Properties#categories_.2F_cl">https://www.mediawiki.org/wiki/API:Properties#categories_.2F_cl</a>
Generator:
This module may be used as a generator
<b>* prop=extlinks (el) *</b>
Returns all external urls (not interwikies) from the given page(s)
This module requires read rights
Parameters:
ellimit - How many links to return
No more than 500 (5000 for bots) allowed
Default: 10
eloffset - When more results are available, use this to continue
elprotocol - Protocol of the url. If empty and elquery set, the protocol is http.
Leave both this and elquery empty to list all external links
Can be empty, or One value: http, https, ftp, irc, ircs, gopher, telnet, nntp, worldwind, mailto, news, svn, git, mms
Default:
elquery - Search string without protocol. Useful for checking whether a certain page contains a certain external url
Example:
Get a list of external links on the [[Main Page]]:
<a href="api.php-action=query&prop=extlinks&titles=Main Page.htm" tppabs="http://www.ncic.ac.cn/~tgm/api.php?action=query&prop=extlinks&titles=Main%20Page">api.php?action=query&prop=extlinks&titles=Main%20Page</a>
Help page:
<a href="javascript:if(confirm(%27https://www.mediawiki.org/wiki/API:Properties \n\nThis file was not retrieved by Teleport Pro, because it is addressed using an unsupported protocol (e.g., gopher). \n\nDo you want to open it from the server?%27))window.location=%27https://www.mediawiki.org/wiki/API:Properties#extlinks_.2F_el%27" tppabs="https://www.mediawiki.org/wiki/API:Properties#extlinks_.2F_el">https://www.mediawiki.org/wiki/API:Properties#extlinks_.2F_el</a>
<b>* prop=categoryinfo (ci) *</b>
Returns information about the given categories
This module requires read rights
Parameters:
cicontinue - When more results are available, use this to continue
Example:
<a href="api.php-action=query&prop=categoryinfo&titles=Category-Foo-Category-Bar.htm" tppabs="http://www.ncic.ac.cn/~tgm/api.php?action=query&prop=categoryinfo&titles=Category:Foo|Category:Bar">api.php?action=query&prop=categoryinfo&titles=Category:Foo|Category:Bar</a>
Help page:
<a href="javascript:if(confirm(%27https://www.mediawiki.org/wiki/API:Properties \n\nThis file was not retrieved by Teleport Pro, because it is addressed using an unsupported protocol (e.g., gopher). \n\nDo you want to open it from the server?%27))window.location=%27https://www.mediawiki.org/wiki/API:Properties#categoryinfo_.2F_ci%27" tppabs="https://www.mediawiki.org/wiki/API:Properties#categoryinfo_.2F_ci">https://www.mediawiki.org/wiki/API:Properties#categoryinfo_.2F_ci</a>
<b>* prop=duplicatefiles (df) *</b>
List all files that are duplicates of the given file(s)
This module requires read rights
Parameters:
dflimit - How many files to return
No more than 500 (5000 for bots) allowed
Default: 10
dfcontinue - When more results are available, use this to continue
dfdir - The direction in which to list
One value: ascending, descending
Default: ascending
Examples:
<a href="api.php-action=query&titles=File-Albert_Einstein_Head.jpg&prop=duplicatefiles.htm" tppabs="http://www.ncic.ac.cn/~tgm/api.php?action=query&titles=File:Albert_Einstein_Head.jpg&prop=duplicatefiles">api.php?action=query&titles=File:Albert_Einstein_Head.jpg&prop=duplicatefiles</a>
<a href="api.php-action=query&generator=allimages&prop=duplicatefiles.htm" tppabs="http://www.ncic.ac.cn/~tgm/api.php?action=query&generator=allimages&prop=duplicatefiles">api.php?action=query&generator=allimages&prop=duplicatefiles</a>
Help page:
<a href="javascript:if(confirm(%27https://www.mediawiki.org/wiki/API:Properties \n\nThis file was not retrieved by Teleport Pro, because it is addressed using an unsupported protocol (e.g., gopher). \n\nDo you want to open it from the server?%27))window.location=%27https://www.mediawiki.org/wiki/API:Properties#duplicatefiles_.2F_df%27" tppabs="https://www.mediawiki.org/wiki/API:Properties#duplicatefiles_.2F_df">https://www.mediawiki.org/wiki/API:Properties#duplicatefiles_.2F_df</a>
Generator:
This module may be used as a generator
<b>* prop=pageprops (pp) *</b>
Get various properties defined in the page content
This module requires read rights
Parameters:
ppcontinue - When more results are available, use this to continue
ppprop - Page prop to look on the page for. Useful for checking whether a certain page uses a certain page prop.
Example:
<a href="api.php-action=query&prop=pageprops&titles=Category-Foo.htm" tppabs="http://www.ncic.ac.cn/~tgm/api.php?action=query&prop=pageprops&titles=Category:Foo">api.php?action=query&prop=pageprops&titles=Category:Foo</a>
Help page:
<a href="javascript:if(confirm(%27https://www.mediawiki.org/wiki/API:Properties \n\nThis file was not retrieved by Teleport Pro, because it is addressed using an unsupported protocol (e.g., gopher). \n\nDo you want to open it from the server?%27))window.location=%27https://www.mediawiki.org/wiki/API:Properties#pageprops_.2F_pp%27" tppabs="https://www.mediawiki.org/wiki/API:Properties#pageprops_.2F_pp">https://www.mediawiki.org/wiki/API:Properties#pageprops_.2F_pp</a>
--- --- --- --- --- --- --- --- --- --- --- --- Query: List --- --- --- --- --- --- --- --- --- --- --- ---
<b>* list=allimages (ai) *</b>
Enumerate all images sequentially
This module requires read rights
Parameters:
aifrom - The image title to start enumerating from
aito - The image title to stop enumerating at
aiprefix - Search for all image titles that begin with this value
aiminsize - Limit to images with at least this many bytes
aimaxsize - Limit to images with at most this many bytes
ailimit - How many images in total to return
No more than 500 (5000 for bots) allowed
Default: 10
aidir - The direction in which to list
One value: ascending, descending
Default: ascending
aisha1 - SHA1 hash of image. Overrides aisha1base36
aisha1base36 - SHA1 hash of image in base 36 (used in MediaWiki)
aiprop - What image information to get:
timestamp - Adds timestamp for the uploaded version
user - Adds the user who uploaded the image version
userid - Add the user ID that uploaded the image version
comment - Comment on the version
parsedcomment - Parse the comment on the version
url - Gives URL to the image and the description page
size - Adds the size of the image in bytes and the height, width and page count (if applicable)
dimensions - Alias for size
sha1 - Adds SHA-1 hash for the image
mime - Adds MIME type of the image
thumbmime - Adds MIME type of the image thumbnail (requires url)
mediatype - Adds the media type of the image
metadata - Lists EXIF metadata for the version of the image
bitdepth - Adds the bit depth of the version
Values (separate with '|'): timestamp, user, userid, comment, parsedcomment, url, size, dimensions, sha1, mime, thumbmime,
mediatype, metadata, bitdepth
Default: timestamp|url
aimime - What MIME type to search for. e.g. image/jpeg. Disabled in Miser Mode
Examples:
Array:
<a href="api.php-action=query&list=allimages&aifrom=B.htm" tppabs="http://www.ncic.ac.cn/~tgm/api.php?action=query&list=allimages&aifrom=B">api.php?action=query&list=allimages&aifrom=B</a>
Array:
<a href="api.php-action=query&generator=allimages&gailimit=4&gaifrom=T&prop=imageinfo.htm" tppabs="http://www.ncic.ac.cn/~tgm/api.php?action=query&generator=allimages&gailimit=4&gaifrom=T&prop=imageinfo">api.php?action=query&generator=allimages&gailimit=4&gaifrom=T&prop=imageinfo</a>
Help page:
<a href="javascript:if(confirm(%27https://www.mediawiki.org/wiki/API:Allimages \n\nThis file was not retrieved by Teleport Pro, because it is addressed using an unsupported protocol (e.g., gopher). \n\nDo you want to open it from the server?%27))window.location=%27https://www.mediawiki.org/wiki/API:Allimages%27" tppabs="https://www.mediawiki.org/wiki/API:Allimages">https://www.mediawiki.org/wiki/API:Allimages</a>
Generator:
This module may be used as a generator
<b>* list=allpages (ap) *</b>
Enumerate all pages sequentially in a given namespace
This module requires read rights
Parameters:
apfrom - The page title to start enumerating from
apto - The page title to stop enumerating at
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
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, upload
apprlevel - The protection level (must be used with apprtype= parameter)
Can be empty, or Values (separate with '|'): autoconfirmed, sysop
apprfiltercascade - Filter protections based on cascadingness (ignored when apprtype isn't set)
One value: cascading, noncascading, all
Default: all
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
apfilterlanglinks - Filter based on whether a page has langlinks
One value: withlanglinks, withoutlanglinks, all
Default: all
apprexpiry - Which protection expiry to filter the page on
indefinite - Get only pages with indefinite protection expiry
definite - Get only pages with a definite (specific) protection expiry
all - Get pages with any protections expiry
One value: indefinite, definite, all
Default: all
Examples:
Array:
<a href="api.php-action=query&list=allpages&apfrom=B.htm" tppabs="http://www.ncic.ac.cn/~tgm/api.php?action=query&list=allpages&apfrom=B">api.php?action=query&list=allpages&apfrom=B</a>
Array:
<a href="api.php-action=query&generator=allpages&gaplimit=4&gapfrom=T&prop=info.htm" tppabs="http://www.ncic.ac.cn/~tgm/api.php?action=query&generator=allpages&gaplimit=4&gapfrom=T&prop=info">api.php?action=query&generator=allpages&gaplimit=4&gapfrom=T&prop=info</a>
Array:
<a href="api.php-action=query&generator=allpages&gaplimit=2&gapfilterredir=nonredirects&gapfrom=Re&prop=revisions&rvprop=content.htm" tppabs="http://www.ncic.ac.cn/~tgm/api.php?action=query&generator=allpages&gaplimit=2&gapfilterredir=nonredirects&gapfrom=Re&prop=revisions&rvprop=content">api.php?action=query&generator=allpages&gaplimit=2&gapfilterredir=nonredirects&gapfrom=Re&prop=revisions&rvprop=content</a>
Help page:
<a href="javascript:if(confirm(%27https://www.mediawiki.org/wiki/API:Allpages \n\nThis file was not retrieved by Teleport Pro, because it is addressed using an unsupported protocol (e.g., gopher). \n\nDo you want to open it from the server?%27))window.location=%27https://www.mediawiki.org/wiki/API:Allpages%27" tppabs="https://www.mediawiki.org/wiki/API:Allpages">https://www.mediawiki.org/wiki/API:Allpages</a>
Generator:
This module may be used as a generator
<b>* list=alllinks (al) *</b>
Enumerate all links that point to a given namespace
This module requires read rights
Parameters:
alcontinue - When more results are available, use this to continue
alfrom - The page title to start enumerating from
alto - The page title to stop enumerating at
alprefix - Search for all page titles that begin with this value
alunique - Only show unique links. Cannot be used with generator or alprop=ids
alprop - What pieces of information to include
ids - Adds pageid of where the link is from (Cannot be used with alunique)
title - Adds the title of the link
Values (separate with '|'): ids, title
Default: title
alnamespace - The namespace to enumerate
One value: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
Default: 0
allimit - How many total links to return
No more than 500 (5000 for bots) allowed
Default: 10
Example:
<a href="api.php-action=query&list=alllinks&alunique=&alfrom=B.htm" tppabs="http://www.ncic.ac.cn/~tgm/api.php?action=query&list=alllinks&alunique=&alfrom=B">api.php?action=query&list=alllinks&alunique=&alfrom=B</a>
Help page:
<a href="javascript:if(confirm(%27https://www.mediawiki.org/wiki/API:Alllinks \n\nThis file was not retrieved by Teleport Pro, because it is addressed using an unsupported protocol (e.g., gopher). \n\nDo you want to open it from the server?%27))window.location=%27https://www.mediawiki.org/wiki/API:Alllinks%27" tppabs="https://www.mediawiki.org/wiki/API:Alllinks">https://www.mediawiki.org/wiki/API:Alllinks</a>
Generator:
This module may be used as a generator
<b>* list=allcategories (ac) *</b>
Enumerate all categories
This module requires read rights
Parameters:
acfrom - The category to start enumerating from
acto - The category to stop enumerating at
acprefix - Search for all category titles that begin with this value
acdir - Direction to sort in
One value: ascending, descending
Default: ascending
acmin - Minimum number of category members
acmax - Maximum number of category members
aclimit - How many categories to return
No more than 500 (5000 for bots) allowed
Default: 10
acprop - Which properties to get
size - Adds number of pages in the category
hidden - Tags categories that are hidden with __HIDDENCAT__
Values (separate with '|'): size, hidden
Default:
Examples:
<a href="api.php-action=query&list=allcategories&acprop=size.htm" tppabs="http://www.ncic.ac.cn/~tgm/api.php?action=query&list=allcategories&acprop=size">api.php?action=query&list=allcategories&acprop=size</a>
<a href="api.php-action=query&generator=allcategories&gacprefix=List&prop=info.htm" tppabs="http://www.ncic.ac.cn/~tgm/api.php?action=query&generator=allcategories&gacprefix=List&prop=info">api.php?action=query&generator=allcategories&gacprefix=List&prop=info</a>
Help page:
<a href="javascript:if(confirm(%27https://www.mediawiki.org/wiki/API:Allcategories \n\nThis file was not retrieved by Teleport Pro, because it is addressed using an unsupported protocol (e.g., gopher). \n\nDo you want to open it from the server?%27))window.location=%27https://www.mediawiki.org/wiki/API:Allcategories%27" tppabs="https://www.mediawiki.org/wiki/API:Allcategories">https://www.mediawiki.org/wiki/API:Allcategories</a>
Generator:
This module may be used as a generator
<b>* list=allusers (au) *</b>
Enumerate all registered users
This module requires read rights
Parameters:
aufrom - The user name to start enumerating from
auto - The user name to stop enumerating at
auprefix - Search for all users that begin with this value
audir - Direction to sort in
One value: ascending, descending
Default: ascending
augroup - Limit users to given group name(s)
Values (separate with '|'): bot, sysop, bureaucrat
auexcludegroup - Exclude users in given group name(s)
Values (separate with '|'): bot, sysop, bureaucrat
aurights - Limit users to given right(s)
Values (separate with '|'): apihighlimits, autoconfirmed, autopatrol, bigdelete, block, blockemail, bot, browsearchive,
createaccount, createpage, createtalk, delete, deletedhistory, deletedtext, deleterevision, edit,
editinterface, editusercssjs, editusercss, edituserjs, hideuser, import, importupload,
ipblock-exempt, markbotedits, mergehistory, minoredit, move, movefile, move-rootuserpages,
move-subpages, nominornewtalk, noratelimit, override-export-depth, patrol, protect, proxyunbannable,
purge, read, reupload, reupload-shared, rollback, sendemail, siteadmin, suppressionlog,
suppressredirect, suppressrevision, unblockself, undelete, unwatchedpages, upload, upload_by_url,
userrights, userrights-interwiki, writeapi
auprop - What pieces of information to include.
blockinfo - Adds the information about a current block on the user
groups - Lists groups that the user is in. This uses more server resources and may return fewer results than the limit
implicitgroups - Lists all the groups the user is automatically in
rights - Lists rights that the user has
editcount - Adds the edit count of the user
registration - Adds the timestamp of when the user registered if available (may be blank)
Values (separate with '|'): blockinfo, groups, implicitgroups, rights, editcount, registration
aulimit - How many total user names to return
No more than 500 (5000 for bots) allowed
Default: 10
auwitheditsonly - Only list users who have made edits
auactiveusers - Only list users active in the last 30 days(s)
Example:
<a href="api.php-action=query&list=allusers&aufrom=Y.htm" tppabs="http://www.ncic.ac.cn/~tgm/api.php?action=query&list=allusers&aufrom=Y">api.php?action=query&list=allusers&aufrom=Y</a>
Help page:
<a href="javascript:if(confirm(%27https://www.mediawiki.org/wiki/API:Allusers \n\nThis file was not retrieved by Teleport Pro, because it is addressed using an unsupported protocol (e.g., gopher). \n\nDo you want to open it from the server?%27))window.location=%27https://www.mediawiki.org/wiki/API:Allusers%27" tppabs="https://www.mediawiki.org/wiki/API:Allusers">https://www.mediawiki.org/wiki/API:Allusers</a>
<b>* list=backlinks (bl) *</b>
Find all pages that link to the given page
This module requires read rights
Parameters:
bltitle - Title to search
This parameter is required
blcontinue - When more results are available, use this to continue
blnamespace - The namespace to enumerate
Values (separate with '|'): 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
Maximum number of values 50 (500 for bots)
blfilterredir - How to filter for redirects. If set to nonredirects when blredirect is enabled, this is only applied to the second level
One value: all, redirects, nonredirects
Default: all
bllimit - How many total pages to return. If blredirect is enabled, limit applies to each level separately (which means you may get up to 2 * limit results).
No more than 500 (5000 for bots) allowed
Default: 10
blredirect - If linking page is a redirect, find all pages that link to that redirect as well. Maximum limit is halved.
Examples:
<a href="api.php-action=query&list=backlinks&bltitle=Main Page.htm" tppabs="http://www.ncic.ac.cn/~tgm/api.php?action=query&list=backlinks&bltitle=Main%20Page">api.php?action=query&list=backlinks&bltitle=Main%20Page</a>
<a href="api.php-action=query&generator=backlinks&gbltitle=Main Page&prop=info.htm" tppabs="http://www.ncic.ac.cn/~tgm/api.php?action=query&generator=backlinks&gbltitle=Main%20Page&prop=info">api.php?action=query&generator=backlinks&gbltitle=Main%20Page&prop=info</a>
Help page:
<a href="javascript:if(confirm(%27https://www.mediawiki.org/wiki/API:Backlinks \n\nThis file was not retrieved by Teleport Pro, because it is addressed using an unsupported protocol (e.g., gopher). \n\nDo you want to open it from the server?%27))window.location=%27https://www.mediawiki.org/wiki/API:Backlinks%27" tppabs="https://www.mediawiki.org/wiki/API:Backlinks">https://www.mediawiki.org/wiki/API:Backlinks</a>
Generator:
This module may be used as a generator
<b>* list=blocks (bk) *</b>
List all blocked users and IP addresses
This module requires read rights
Parameters:
bkstart - The timestamp to start enumerating from
bkend - The timestamp to stop enumerating at
bkdir - In which direction to enumerate
newer - List oldest first. Note: bkstart has to be before bkend.
older - List newest first (default). Note: bkstart has to be later than bkend.
One value: newer, older
Default: older
bkids - Pipe-separated list of block IDs to list (optional)
Maximum number of values 50 (500 for bots)
bkusers - Pipe-separated list of users to search for (optional)
bkip - Get all blocks applying to this IP or CIDR range, including range blocks.
Cannot be used together with bkusers. CIDR ranges broader than /16 are not accepted
bklimit - The maximum amount of blocks to list
No more than 500 (5000 for bots) allowed
Default: 10
bkprop - Which properties to get
id - Adds the ID of the block
user - Adds the username of the blocked user
userid - Adds the user ID of the blocked user
by - Adds the username of the blocking user
byid - Adds the user ID of the blocking user
timestamp - Adds the timestamp of when the block was given
expiry - Adds the timestamp of when the block expires
reason - Adds the reason given for the block
range - Adds the range of IPs affected by the block
flags - Tags the ban with (autoblock, anononly, etc)
Values (separate with '|'): id, user, userid, by, byid, timestamp, expiry, reason, range, flags
Default: id|user|by|timestamp|expiry|reason|flags
bkshow - Show only items that meet this criteria.
For example, to see only indefinite blocks on IPs, set bkshow=ip|!temp
Values (separate with '|'): account, !account, temp, !temp, ip, !ip, range, !range
Examples:
<a href="api.php-action=query&list=blocks.htm" tppabs="http://www.ncic.ac.cn/~tgm/api.php?action=query&list=blocks">api.php?action=query&list=blocks</a>
<a href="api.php-action=query&list=blocks&bkusers=Alice-Bob.htm" tppabs="http://www.ncic.ac.cn/~tgm/api.php?action=query&list=blocks&bkusers=Alice|Bob">api.php?action=query&list=blocks&bkusers=Alice|Bob</a>
Help page:
<a href="javascript:if(confirm(%27https://www.mediawiki.org/wiki/API:Blocks \n\nThis file was not retrieved by Teleport Pro, because it is addressed using an unsupported protocol (e.g., gopher). \n\nDo you want to open it from the server?%27))window.location=%27https://www.mediawiki.org/wiki/API:Blocks%27" tppabs="https://www.mediawiki.org/wiki/API:Blocks">https://www.mediawiki.org/wiki/API:Blocks</a>
<b>* list=categorymembers (cm) *</b>
List all pages in a given category
This module requires read rights
Parameters:
cmtitle - Which category to enumerate (required). Must include Category: prefix. Cannot be used together with cmpageid
cmpageid - Page ID of the category to enumerate. Cannot be used together with cmtitle
cmprop - What pieces of information to include
ids - Adds the page ID
title - Adds the title and namespace ID of the page
sortkey - Adds the sortkey used for sorting in the category (hexadecimal string)
sortkeyprefix - Adds the sortkey prefix used for sorting in the category (human-readable part of the sortkey)
type - Adds the type that the page has been categorised as (page, subcat or file)
timestamp - Adds the timestamp of when the page was included
Values (separate with '|'): ids, title, sortkey, sortkeyprefix, type, timestamp
Default: ids|title
cmnamespace - Only include pages in these namespaces
Values (separate with '|'): 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
Maximum number of values 50 (500 for bots)
cmtype - What type of category members to include. Ignored when cmsort=timestamp is set
Values (separate with '|'): page, subcat, file
Default: page|subcat|file
cmcontinue - For large categories, give the value retured from previous query
cmlimit - The maximum number of pages to return.
No more than 500 (5000 for bots) allowed
Default: 10
cmsort - Property to sort by
One value: sortkey, timestamp
Default: sortkey
cmdir - In which direction to sort
One value: asc, desc
Default: asc
cmstart - Timestamp to start listing from. Can only be used with cmsort=timestamp
cmend - Timestamp to end listing at. Can only be used with cmsort=timestamp
cmstartsortkey - Sortkey to start listing from. Must be given in binary format. Can only be used with cmsort=sortkey
cmendsortkey - Sortkey to end listing at. Must be given in binary format. Can only be used with cmsort=sortkey
cmstartsortkeyprefix - Sortkey prefix to start listing from. Can only be used with cmsort=sortkey. Overrides cmstartsortkey
cmendsortkeyprefix - Sortkey prefix to end listing BEFORE (not at, if this value occurs it will not be included!). Can only be used with cmsort=sortkey. Overrides cmendsortkey
Examples:
Get first 10 pages in [[Category:Physics]]:
<a href="api.php-action=query&list=categorymembers&cmtitle=Category-Physics.htm" tppabs="http://www.ncic.ac.cn/~tgm/api.php?action=query&list=categorymembers&cmtitle=Category:Physics">api.php?action=query&list=categorymembers&cmtitle=Category:Physics</a>
Get page info about first 10 pages in [[Category:Physics]]:
<a href="api.php-action=query&generator=categorymembers&gcmtitle=Category-Physics&prop=info.htm" tppabs="http://www.ncic.ac.cn/~tgm/api.php?action=query&generator=categorymembers&gcmtitle=Category:Physics&prop=info">api.php?action=query&generator=categorymembers&gcmtitle=Category:Physics&prop=info</a>
Help page:
<a href="javascript:if(confirm(%27https://www.mediawiki.org/wiki/API:Categorymembers \n\nThis file was not retrieved by Teleport Pro, because it is addressed using an unsupported protocol (e.g., gopher). \n\nDo you want to open it from the server?%27))window.location=%27https://www.mediawiki.org/wiki/API:Categorymembers%27" tppabs="https://www.mediawiki.org/wiki/API:Categorymembers">https://www.mediawiki.org/wiki/API:Categorymembers</a>
Generator:
This module may be used as a generator
<b>* list=deletedrevs (dr) *</b>
List deleted revisions.
Operates in three modes:
1) List deleted revisions for the given title(s), sorted by timestamp
2) List deleted contributions for the given user, sorted by timestamp (no titles specified)
3) List all deleted revisions in the given namespace, sorted by title and timestamp (no titles specified, druser not set)
Certain parameters only apply to some modes and are ignored in others.
For instance, a parameter marked (1) only applies to mode 1 and is ignored in modes 2 and 3
This module requires read rights
Parameters:
drstart - The timestamp to start enumerating from (1,2)
drend - The timestamp to stop enumerating at (1,2)
drdir - In which direction to enumerate (1, 3)
newer - List oldest first. Note: drstart has to be before drend.
older - List newest first (default). Note: drstart has to be later than drend.
One value: newer, older
Default: older
drfrom - Start listing at this title (3)
drto - Stop listing at this title (3)
drprefix - Search for all page titles that begin with this value (3)
drcontinue - When more results are available, use this to continue (3)
drunique - List only one revision for each page (3)
druser - Only list revisions by this user
drexcludeuser - Don't list revisions by this user
drnamespace - Only list pages in this namespace (3)
One value: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
Default: 0
drlimit - The maximum amount of revisions to list
No more than 500 (5000 for bots) allowed
Default: 10
drprop - Which properties to get
revid - Adds the revision ID of the deleted revision
parentid - Adds the revision ID of the previous revision to the page
user - Adds the user who made the revision
userid - Adds the user ID whom made the revision
comment - Adds the comment of the revision
parsedcomment - Adds the parsed comment of the revision
minor - Tags if the revision is minor
len - Adds the length (bytes) of the revision
sha1 - Adds the SHA-1 (base 16) of the revision
content - Adds the content of the revision
token - Gives the edit token
Values (separate with '|'): revid, parentid, user, userid, comment, parsedcomment, minor, len, sha1, content, token
Default: user|comment
Examples:
List the last deleted revisions of Main Page and Talk:Main Page, with content (mode 1):
<a href="api.php-action=query&list=deletedrevs&titles=Main Page-Talk-Main Page&drprop=user-comment-content.htm" tppabs="http://www.ncic.ac.cn/~tgm/api.php?action=query&list=deletedrevs&titles=Main%20Page|Talk:Main%20Page&drprop=user|comment|content">api.php?action=query&list=deletedrevs&titles=Main%20Page|Talk:Main%20Page&drprop=user|comment|content</a>
List the last 50 deleted contributions by Bob (mode 2):
<a href="api.php-action=query&list=deletedrevs&druser=Bob&drlimit=50.htm" tppabs="http://www.ncic.ac.cn/~tgm/api.php?action=query&list=deletedrevs&druser=Bob&drlimit=50">api.php?action=query&list=deletedrevs&druser=Bob&drlimit=50</a>
List the first 50 deleted revisions in the main namespace (mode 3):
<a href="api.php-action=query&list=deletedrevs&drdir=newer&drlimit=50.htm" tppabs="http://www.ncic.ac.cn/~tgm/api.php?action=query&list=deletedrevs&drdir=newer&drlimit=50">api.php?action=query&list=deletedrevs&drdir=newer&drlimit=50</a>
List the first 50 deleted pages in the Talk namespace (mode 3)::
<a href="api.php-action=query&list=deletedrevs&drdir=newer&drlimit=50&drnamespace=1&drunique=.htm" tppabs="http://www.ncic.ac.cn/~tgm/api.php?action=query&list=deletedrevs&drdir=newer&drlimit=50&drnamespace=1&drunique=">api.php?action=query&list=deletedrevs&drdir=newer&drlimit=50&drnamespace=1&drunique=</a>
Help page:
<a href="javascript:if(confirm(%27https://www.mediawiki.org/wiki/API:Deletedrevs \n\nThis file was not retrieved by Teleport Pro, because it is addressed using an unsupported protocol (e.g., gopher). \n\nDo you want to open it from the server?%27))window.location=%27https://www.mediawiki.org/wiki/API:Deletedrevs%27" tppabs="https://www.mediawiki.org/wiki/API:Deletedrevs">https://www.mediawiki.org/wiki/API:Deletedrevs</a>
<b>* list=embeddedin (ei) *</b>
Find all pages that embed (transclude) the given title
This module requires read rights
Parameters:
eititle - Title to search
This parameter is required
eicontinue - When more results are available, use this to continue
einamespace - The namespace to enumerate
Values (separate with '|'): 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
Maximum number of values 50 (500 for bots)
eifilterredir - How to filter for redirects
One value: all, redirects, nonredirects
Default: all
eilimit - How many total pages to return
No more than 500 (5000 for bots) allowed
Default: 10
Examples:
<a href="api.php-action=query&list=embeddedin&eititle=Template-Stub.htm" tppabs="http://www.ncic.ac.cn/~tgm/api.php?action=query&list=embeddedin&eititle=Template:Stub">api.php?action=query&list=embeddedin&eititle=Template:Stub</a>
<a href="api.php-action=query&generator=embeddedin&geititle=Template-Stub&prop=info.htm" tppabs="http://www.ncic.ac.cn/~tgm/api.php?action=query&generator=embeddedin&geititle=Template:Stub&prop=info">api.php?action=query&generator=embeddedin&geititle=Template:Stub&prop=info</a>
Help page:
<a href="javascript:if(confirm(%27https://www.mediawiki.org/wiki/API:Embeddedin \n\nThis file was not retrieved by Teleport Pro, because it is addressed using an unsupported protocol (e.g., gopher). \n\nDo you want to open it from the server?%27))window.location=%27https://www.mediawiki.org/wiki/API:Embeddedin%27" tppabs="https://www.mediawiki.org/wiki/API:Embeddedin">https://www.mediawiki.org/wiki/API:Embeddedin</a>
Generator:
This module may be used as a generator
<b>* list=filearchive (fa) *</b>
Enumerate all deleted files sequentially
This module requires read rights
Parameters:
fafrom - The image title to start enumerating from
fato - The image title to stop enumerating at
faprefix - Search for all image titles that begin with this value
falimit - How many images to return in total
No more than 500 (5000 for bots) allowed
Default: 10
fadir - The direction in which to list
One value: ascending, descending
Default: ascending
fasha1 - SHA1 hash of image. Overrides fasha1base36. Disabled in Miser Mode
fasha1base36 - SHA1 hash of image in base 36 (used in MediaWiki). Disabled in Miser Mode
faprop - What image information to get:
sha1 - Adds SHA-1 hash for the image
timestamp - Adds timestamp for the uploaded version
user - Adds user who uploaded the image version
size - Adds the size of the image in bytes and the height, width and page count (if applicable)
dimensions - Alias for size
description - Adds description the image version
parseddescription - Parse the description on the version
mime - Adds MIME of the image
metadata - Lists EXIF metadata for the version of the image
bitdepth - Adds the bit depth of the version
Values (separate with '|'): sha1, timestamp, user, size, dimensions, description, parseddescription, mime, metadata, bitdepth
Default: timestamp
Example:
Array:
<a href="api.php-action=query&list=filearchive.htm" tppabs="http://www.ncic.ac.cn/~tgm/api.php?action=query&list=filearchive">api.php?action=query&list=filearchive</a>
<b>* list=imageusage (iu) *</b>
Find all pages that use the given image title.
This module requires read rights
Parameters:
iutitle - Title to search
This parameter is required
iucontinue - When more results are available, use this to continue
iunamespace - The namespace to enumerate
Values (separate with '|'): 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
Maximum number of values 50 (500 for bots)
iufilterredir - How to filter for redirects. If set to nonredirects when iuredirect is enabled, this is only applied to the second level
One value: all, redirects, nonredirects
Default: all
iulimit - How many total pages to return. If iuredirect is enabled, limit applies to each level separately (which means you may get up to 2 * limit results).
No more than 500 (5000 for bots) allowed
Default: 10
iuredirect - If linking page is a redirect, find all pages that link to that redirect as well. Maximum limit is halved.
Examples:
<a href="api.php-action=query&list=imageusage&iutitle=File-Albert Einstein Head.jpg.htm" tppabs="http://www.ncic.ac.cn/~tgm/api.php?action=query&list=imageusage&iutitle=File:Albert%20Einstein%20Head.jpg">api.php?action=query&list=imageusage&iutitle=File:Albert%20Einstein%20Head.jpg</a>
<a href="api.php-action=query&generator=imageusage&giutitle=File-Albert Einstein Head.jpg&prop=info.htm" tppabs="http://www.ncic.ac.cn/~tgm/api.php?action=query&generator=imageusage&giutitle=File:Albert%20Einstein%20Head.jpg&prop=info">api.php?action=query&generator=imageusage&giutitle=File:Albert%20Einstein%20Head.jpg&prop=info</a>
Help page:
<a href="javascript:if(confirm(%27https://www.mediawiki.org/wiki/API:Imageusage \n\nThis file was not retrieved by Teleport Pro, because it is addressed using an unsupported protocol (e.g., gopher). \n\nDo you want to open it from the server?%27))window.location=%27https://www.mediawiki.org/wiki/API:Imageusage%27" tppabs="https://www.mediawiki.org/wiki/API:Imageusage">https://www.mediawiki.org/wiki/API:Imageusage</a>
Generator:
This module may be used as a generator
<b>* list=iwbacklinks (iwbl) *</b>
Find all pages that link to the given interwiki link.
Can be used to find all links with a prefix, or
all links to a title (with a given prefix).
Using neither parameter is effectively "All IW Links"
This module requires read rights
Parameters:
iwblprefix - Prefix for the interwiki
iwbltitle - Interwiki link to search for. Must be used with iwblprefix
iwblcontinue - When more results are available, use this to continue
iwbllimit - How many total pages to return
No more than 500 (5000 for bots) allowed
Default: 10
iwblprop - Which properties to get
iwprefix - Adds the prefix of the interwiki
iwtitle - Adds the title of the interwiki
Values (separate with '|'): iwprefix, iwtitle
Default:
Examples:
<a href="api.php-action=query&list=iwbacklinks&iwbltitle=Test&iwblprefix=wikibooks.htm" tppabs="http://www.ncic.ac.cn/~tgm/api.php?action=query&list=iwbacklinks&iwbltitle=Test&iwblprefix=wikibooks">api.php?action=query&list=iwbacklinks&iwbltitle=Test&iwblprefix=wikibooks</a>
<a href="api.php-action=query&generator=iwbacklinks&giwbltitle=Test&iwblprefix=wikibooks&prop=info.htm" tppabs="http://www.ncic.ac.cn/~tgm/api.php?action=query&generator=iwbacklinks&giwbltitle=Test&iwblprefix=wikibooks&prop=info">api.php?action=query&generator=iwbacklinks&giwbltitle=Test&iwblprefix=wikibooks&prop=info</a>
Generator: