미디어위키 API 도움말

이 페이지는 자동으로 생성된 미디어위키 API 도움말 문서입니다.

설명 문서 및 예시: https://www.mediawiki.org/wiki/API

action=opensearch

(main | opensearch)
  • 이 모듈은 read 권한을 요구합니다.
  • 출처: MediaWiki
  • 라이선스: GPL-2.0+

OpenSearch 프로토콜을 이용하여 위키 검색하기

변수:
search

문자열 검색

이 변수는 필수 입력 사항입니다.
namespace

검색할 이름공간.

값 (|로 구분): 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 828, 829, 2300, 2301, 2302, 2303
기본값: 0
limit

반환할 결과의 최대 수

500 초과는 허용되지 않습니다. (봇의 경우 5,000)
유형: 정수 또는 max
기본값: 10
suggest

Do nothing if $wgEnableOpenSearchSuggest is false.

유형: 부울 (자세한 정보)
redirects

How to handle redirects:

return
Return the redirect itself.
resolve
Return the target page. May return fewer than limit results.

For historical reasons, the default is "return" for format=json and "resolve" for other formats.

다음 값 중 하나: return, resolve
format

출력 포맷.

다음 값 중 하나: json, jsonfm, xml, xmlfm
기본값: json
warningsaserror

If warnings are raised with format=json, return an API error instead of ignoring them.

유형: 부울 (자세한 정보)