??? ???? ????? ????????? API ???? ?? ??????? ???????.
????? ??????:
https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
?????? ????????
??????:
API ????????? ?? ????? ????? ??????? ??? ????? ???????? ???? ???? ?? ??? ???? ????? ???? ???? ?? ????? ?? ??? ??????? ??? ????? ??????? ?? ???????? ????? ??
??????? ???????? ?????? API ?????????
???????? ?????????.
??????? ???????:
????? ??? ????? ????? ????? ??? API? ???? ????? ??? HTTP ?? ????? "???-API-?????????"? ???? ??? ????? ???? ????? ???? ????? ??????? ??? ??? ?????? ??? ??? ??????? ????? ?? ?????????; ????
API: Errors and warnings
.
????????:
?????? ?????? ????? API ; ????
Special:ApiSandbox
.
????????:
- writeapi
- ??????? API ???????
- ?????? ??: all? ?user ? bot
- apihighlimits
- ?????? ????? ???? ?? ????????? API (????????? ?????: 500? ????????? ?????: 5000)? ????? ???? ??????????? ??????? ???? ??? ????? ?????? ?????.
- ?????? ??: bot ? sysop
????? ????????
Input to MediaWiki should be NFC-normalized UTF-8. MediaWiki may attempt to convert other input, but this may cause some operations (such as
edits
with MD5 checks) to fail.
Parameters that take multiple values are normally submitted with the values separated using the pipe character, e.g.
param=value1|value2
or
param=value1%7Cvalue2
. If a value must contain the pipe character, use U+001F (Unit Separator) as the separator
and
prefix the value with U+001F, e.g.
param=%1Fvalue1%1Fvalue2
.
Some parameter types in API requests need further explanation:
- boolean
Boolean parameters work like HTML checkboxes: if the parameter is specified, regardless of value, it is considered true. For a false value, omit the parameter entirely.
- expiry
Expiry values may be relative (e.g.
5 months
or
2 weeks
) or absolute (e.g.
2014-09-18T12:34:56Z
). For no expiry, use
infinite
,
indefinite
,
infinity
or
never
.
- timestamp
Timestamps may be specified in several formats, see
the Timestamp library input formats documented on mediawiki.org
for details. ISO 8601 date and time is recommended:
2001
-
01
-
15
T
14
:
56
:
00
Z
. Additionally, the string
now
may be used to specify the current timestamp.
????? ??????
???? ????? ??????? ??????? ???? ????? ???? API ??? ???? ??? ???? ?? ???? ???? ??? ???? ??????? ??? ???? ???? ???? API ???? ???????? ???? ?? ???? ???? ????
fruits
?????? ?? ??????? ?? ????? ????? ????
{fruit}-quantity
?????? ??? ??????? ??? ???? ???? ????? API ???? ???? 1 ?????? 5 ???? 20 ?????? ?? ????? ??? ???
fruits=apples|bananas|strawberries&apples-quantity=1&bananas-quantity=5&strawberries-quantity=20
.
????????
????? API:
- ???? ???????? (?????? ?????? ??????? ?????? 2006 - ?????? 2007)
- ???? ???? (?????? ??????? ?????? 2007-2009)
- ?????? ???????
- ?????? ???? ????
- ??? ???
- ???? ???? (?????? ??????? 2013?2020)
?????? ????? ???????? ?????????? ??????? ??mediawiki-api@lists.wikimedia.org
?? ????? ?????? ?? ??? ??
https://phabricator.wikimedia.org/
.