swagger

package module
v0.0.0-...-72e2d6b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 13, 2023 License: MIT Imports: 21 Imported by: 0

README

Go API client for swagger

This API provides cacheable and straightforward access to Wikimedia content and data, in machine-readable formats. ### Global Rules - Limit your clients to no more than 200 requests/s to this API. Each API endpoint's documentation may detail more specific usage limits. - Set a unique User-Agent or Api-User-Agent header that allows us to contact you quickly. Email addresses or URLs of contact pages work well. By using this API, you agree to Wikimedia's Terms of Use and Privacy Policy. Unless otherwise specified in the endpoint documentation below, content accessed via this API is licensed under the CC-BY-SA 3.0 and GFDL licenses, and you irrevocably agree to release modifications or additions made through this API under these licenses. See https://www.mediawiki.org/wiki/REST_API for background and details. ### Endpoint documentation Please consult each endpoint's documentation for details on: - Licensing information for the specific type of content and data served via the endpoint. - Stability markers to inform you about development status and change policy, according to our API version policy. - Endpoint specific usage limits.

Overview

This API client was generated by the swagger-codegen project. By using the swagger-spec from a remote server, you can easily generate an API client.

  • API version: 1.0.0
  • Package version: 1.0.0
  • Build package: io.swagger.codegen.v3.generators.go.GoClientCodegen For more information, please visit http://mediawiki.org/wiki/REST_API

Installation

Put the package under your project folder and add the following in import:

import "./swagger"

Documentation for API Endpoints

All URIs are relative to /api/rest_v1

Class Method HTTP request Description
CitationApi GetCitation Get /data/citation/{format}/{query} Get citation data given an article identifier.
FeedApi AggregatedFeed Get /feed/featured/{yyyy}/{mm}/{dd} Aggregated featured content
FeedApi FeedAnnouncementsGet Get /feed/announcements Current announcements to display
FeedApi OnThisDay Get /feed/onthisday/{type}/{mm}/{dd} Events on this day
MathApi MediaMathCheckTypePost Post /media/math/check/{type} Check and normalize a TeX formula.
MathApi MediaMathFormulaHashGet Get /media/math/formula/{hash} Get a previously-stored formula
MathApi MediaMathRenderFormatHashGet Get /media/math/render/{format}/{hash} Get rendered formula in the given format.
MobileApi DataCssMobileTypeGet Get /data/css/mobile/{type} Get CSS for mobile apps.
MobileApi DataI18nTypeGet Get /data/i18n/{type} Get internationalization info
MobileApi DataJavascriptMobileTypeGet Get /data/javascript/mobile/{type} Get JavaScript for mobileapps
MobileApi GetSections Get /page/mobile-sections/{title} Get mobile-optimized HTML sections for a title.
MobileApi GetSectionsLead Get /page/mobile-sections-lead/{title} Get mobile-optimized HTML lead section and metadata for a title.
MobileApi GetSectionsLeadWithRevision Get /page/mobile-sections-lead/{title}/{revision} Get mobile-optimized HTML lead section and metadata for a title.
MobileApi GetSectionsRemaining Get /page/mobile-sections-remaining/{title} Get non-lead mobile-optimized HTML sections for a title.
MobileApi GetSectionsRemainingWithRevision Get /page/mobile-sections-remaining/{title}/{revision} Get non-lead mobile-optimized HTML sections for a title.
MobileApi GetSectionsWithRevision Get /page/mobile-sections/{title}/{revision} Get mobile-optimized HTML sections for a title.
OfflineApi PageMobileHtmlOfflineResourcesTitleGet Get /page/mobile-html-offline-resources/{title} Get styles and scripts for offline consumption of mobile-html-formatted pages
OfflineApi PageMobileHtmlOfflineResourcesTitleRevisionGet Get /page/mobile-html-offline-resources/{title}/{revision} Get styles and scripts for offline consumption of mobile-html-formatted pages
PageContentApi GetContentMediaList Get /page/media-list/{title} Get list of media files used on a page.
PageContentApi GetContentMobileHtml Get /page/mobile-html/{title} Get page content HTML optimized for mobile consumption.
PageContentApi GetContentWithRevisionMediaList Get /page/media-list/{title}/{revision} Get list of media files used on a page.
PageContentApi GetContentWithRevisionMobileHtml Get /page/mobile-html/{title}/{revision} Get page content HTML optimized for mobile consumption.
PageContentApi GetFormatRevision Get /page/html/{title}/{revision} Get HTML for a specific title/revision & optionally timeuuid.
PageContentApi GetRelatedPages Get /page/related/{title} Get pages related to the given title
PageContentApi PageDataParsoidTitleRevisionTidGet Get /page/data-parsoid/{title}/{revision}/{tid} Get data-parsoid metadata for a specific title/revision/tid.
PageContentApi PageGet Get /page/ List page-related API entry points.
PageContentApi PageHtmlTitleGet Get /page/html/{title} Get latest HTML for a title.
PageContentApi PageHtmlTitlePost Post /page/html/{title} Save a new revision using HTML.
PageContentApi PageLintTitleGet Get /page/lint/{title} Get the linter errors for a specific title/revision.
PageContentApi PageLintTitleRevisionGet Get /page/lint/{title}/{revision} Get the linter errors for a specific title/revision.
PageContentApi PageMobileHtmlOfflineResourcesTitleGet Get /page/mobile-html-offline-resources/{title} Get styles and scripts for offline consumption of mobile-html-formatted pages
PageContentApi PageMobileHtmlOfflineResourcesTitleRevisionGet Get /page/mobile-html-offline-resources/{title}/{revision} Get styles and scripts for offline consumption of mobile-html-formatted pages
PageContentApi PagePdfTitleFormatGet Get /page/pdf/{title}/{format} Get a page as PDF
PageContentApi PagePdfTitleFormatTypeGet Get /page/pdf/{title}/{format}/{type} Get a page as PDF
PageContentApi PagePdfTitleGet Get /page/pdf/{title} Get a page as PDF
PageContentApi PageRandomFormatGet Get /page/random/{format} Get content for a random page
PageContentApi PageSegmentsTitleGet Get /page/segments/{title} Fetches a segmented page to be used in machine translation
PageContentApi PageSegmentsTitleRevisionGet Get /page/segments/{title}/{revision} Fetches a segmented page to be used in machine translation
PageContentApi PageSummaryTitleGet Get /page/summary/{title} Get basic metadata and simplified article introduction.
PageContentApi PageTitleTitleGet Get /page/title/{title} Get revision metadata for a title.
PageContentApi PageTitleTitleRevisionGet Get /page/title/{title}/{revision} Get revision metadata for a title.
PageContentApi PageWikitextTitlePost Post /page/wikitext/{title} Save a new revision of a page using Wikitext.
ReadingListsApi DataListsBatchPost Post /data/lists/batch Create multiple new lists for the current user.
ReadingListsApi DataListsChangesSinceDateGet Get /data/lists/changes/since/{date} Get recent changes to the lists
ReadingListsApi DataListsGet Get /data/lists/ Get all lists of the current user.
ReadingListsApi DataListsIdDelete Delete /data/lists/{id} Delete a list.
ReadingListsApi DataListsIdEntriesBatchPost Post /data/lists/{id}/entries/batch Create multiple new list entries.
ReadingListsApi DataListsIdEntriesEntryIdDelete Delete /data/lists/{id}/entries/{entry_id} Delete a list entry.
ReadingListsApi DataListsIdEntriesPost Post /data/lists/{id}/entries/ Create a new list entry.
ReadingListsApi DataListsIdPut Put /data/lists/{id} Update a list.
ReadingListsApi DataListsPagesProjectTitleGet Get /data/lists/pages/{project}/{title} Get lists of the current user which contain a given page.
ReadingListsApi DataListsPost Post /data/lists/ Create a new list for the current user.
ReadingListsApi DataListsSetupPost Post /data/lists/setup Opt in to use reading lists.
ReadingListsApi DataListsTeardownPost Post /data/lists/teardown Opt out from using reading lists.
ReadingListsApi GetListEntries Get /data/lists/{id}/entries/ Get all entries of a given list.
RecommendationApi DataRecommendationArticleCreationMorelikeSeedArticleGet Get /data/recommendation/article/creation/morelike/{seed_article} Recommend missing articles
RecommendationApi DataRecommendationArticleCreationTranslationFromLangGet Get /data/recommendation/article/creation/translation/{from_lang} Recommend articles for translation.
RecommendationApi DataRecommendationArticleCreationTranslationFromLangSeedArticleGet Get /data/recommendation/article/creation/translation/{from_lang}/{seed_article} Recommend articles for translation.
TalkPagesApi PageTalkTitleGet Get /page/talk/{title} Get structured talk page contents
TalkPagesApi PageTalkTitleRevisionGet Get /page/talk/{title}/{revision} Get structured talk page contents
TransformsApi DoDict Get /transform/word/from/{from}/{word} Fetch the dictionary meaning of a word
TransformsApi DoDictProvider Get /transform/word/from/{from}/{word}/{provider} Fetch the dictionary meaning of a word
TransformsApi DoMT Post /transform/html/from/{from} Machine-translate content
TransformsApi DoMTProvider Post /transform/html/from/{from}/{provider} Machine-translate content
TransformsApi TransformHtmlToWikitextPost Post /transform/html/to/wikitext Transform HTML to Wikitext
TransformsApi TransformHtmlToWikitextTitlePost Post /transform/html/to/wikitext/{title} Transform HTML to Wikitext
TransformsApi TransformHtmlToWikitextTitleRevisionPost Post /transform/html/to/wikitext/{title}/{revision} Transform HTML to Wikitext
TransformsApi TransformWikitextToHtmlPost Post /transform/wikitext/to/html Transform Wikitext to HTML
TransformsApi TransformWikitextToHtmlTitlePost Post /transform/wikitext/to/html/{title} Transform Wikitext to HTML
TransformsApi TransformWikitextToHtmlTitleRevisionPost Post /transform/wikitext/to/html/{title}/{revision} Transform Wikitext to HTML
TransformsApi TransformWikitextToLintPost Post /transform/wikitext/to/lint Check Wikitext for lint errors
TransformsApi TransformWikitextToLintTitlePost Post /transform/wikitext/to/lint/{title} Check Wikitext for lint errors
TransformsApi TransformWikitextToLintTitleRevisionPost Post /transform/wikitext/to/lint/{title}/{revision} Check Wikitext for lint errors
TransformsApi TransformWikitextToMobileHtml Post /transform/wikitext/to/mobile-html/{title} Transform Wikitext to Mobile HTML

Documentation For Models

Documentation For Authorization

Endpoints do not require authorization.

Author

Documentation

Overview

* Wikimedia REST API * * This API provides cacheable and straightforward access to Wikimedia content and data, in machine-readable formats. ### Global Rules - Limit your clients to no more than 200 requests/s to this API. Each API endpoint's documentation may detail more specific usage limits. - Set a unique `User-Agent` or `Api-User-Agent` header that allows us to contact you quickly. Email addresses or URLs of contact pages work well. By using this API, you agree to Wikimedia's [Terms of Use](https://wikimediafoundation.org/wiki/Terms_of_Use) and [Privacy Policy](https://wikimediafoundation.org/wiki/Privacy_policy). Unless otherwise specified in the endpoint documentation below, content accessed via this API is licensed under the [CC-BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/) and [GFDL](https://www.gnu.org/copyleft/fdl.html) licenses, and you irrevocably agree to release modifications or additions made through this API under these licenses. See https://www.mediawiki.org/wiki/REST_API for background and details. ### Endpoint documentation Please consult each endpoint's documentation for details on: - Licensing information for the specific type of content and data served via the endpoint. - Stability markers to inform you about development status and change policy, according to [our API version policy](https://www.mediawiki.org/wiki/API_versioning). - Endpoint specific usage limits. * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Wikimedia REST API * * This API provides cacheable and straightforward access to Wikimedia content and data, in machine-readable formats. ### Global Rules - Limit your clients to no more than 200 requests/s to this API. Each API endpoint's documentation may detail more specific usage limits. - Set a unique `User-Agent` or `Api-User-Agent` header that allows us to contact you quickly. Email addresses or URLs of contact pages work well. By using this API, you agree to Wikimedia's [Terms of Use](https://wikimediafoundation.org/wiki/Terms_of_Use) and [Privacy Policy](https://wikimediafoundation.org/wiki/Privacy_policy). Unless otherwise specified in the endpoint documentation below, content accessed via this API is licensed under the [CC-BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/) and [GFDL](https://www.gnu.org/copyleft/fdl.html) licenses, and you irrevocably agree to release modifications or additions made through this API under these licenses. See https://www.mediawiki.org/wiki/REST_API for background and details. ### Endpoint documentation Please consult each endpoint's documentation for details on: - Licensing information for the specific type of content and data served via the endpoint. - Stability markers to inform you about development status and change policy, according to [our API version policy](https://www.mediawiki.org/wiki/API_versioning). - Endpoint specific usage limits. * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Wikimedia REST API * * This API provides cacheable and straightforward access to Wikimedia content and data, in machine-readable formats. ### Global Rules - Limit your clients to no more than 200 requests/s to this API. Each API endpoint's documentation may detail more specific usage limits. - Set a unique `User-Agent` or `Api-User-Agent` header that allows us to contact you quickly. Email addresses or URLs of contact pages work well. By using this API, you agree to Wikimedia's [Terms of Use](https://wikimediafoundation.org/wiki/Terms_of_Use) and [Privacy Policy](https://wikimediafoundation.org/wiki/Privacy_policy). Unless otherwise specified in the endpoint documentation below, content accessed via this API is licensed under the [CC-BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/) and [GFDL](https://www.gnu.org/copyleft/fdl.html) licenses, and you irrevocably agree to release modifications or additions made through this API under these licenses. See https://www.mediawiki.org/wiki/REST_API for background and details. ### Endpoint documentation Please consult each endpoint's documentation for details on: - Licensing information for the specific type of content and data served via the endpoint. - Stability markers to inform you about development status and change policy, according to [our API version policy](https://www.mediawiki.org/wiki/API_versioning). - Endpoint specific usage limits. * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Wikimedia REST API * * This API provides cacheable and straightforward access to Wikimedia content and data, in machine-readable formats. ### Global Rules - Limit your clients to no more than 200 requests/s to this API. Each API endpoint's documentation may detail more specific usage limits. - Set a unique `User-Agent` or `Api-User-Agent` header that allows us to contact you quickly. Email addresses or URLs of contact pages work well. By using this API, you agree to Wikimedia's [Terms of Use](https://wikimediafoundation.org/wiki/Terms_of_Use) and [Privacy Policy](https://wikimediafoundation.org/wiki/Privacy_policy). Unless otherwise specified in the endpoint documentation below, content accessed via this API is licensed under the [CC-BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/) and [GFDL](https://www.gnu.org/copyleft/fdl.html) licenses, and you irrevocably agree to release modifications or additions made through this API under these licenses. See https://www.mediawiki.org/wiki/REST_API for background and details. ### Endpoint documentation Please consult each endpoint's documentation for details on: - Licensing information for the specific type of content and data served via the endpoint. - Stability markers to inform you about development status and change policy, according to [our API version policy](https://www.mediawiki.org/wiki/API_versioning). - Endpoint specific usage limits. * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Wikimedia REST API * * This API provides cacheable and straightforward access to Wikimedia content and data, in machine-readable formats. ### Global Rules - Limit your clients to no more than 200 requests/s to this API. Each API endpoint's documentation may detail more specific usage limits. - Set a unique `User-Agent` or `Api-User-Agent` header that allows us to contact you quickly. Email addresses or URLs of contact pages work well. By using this API, you agree to Wikimedia's [Terms of Use](https://wikimediafoundation.org/wiki/Terms_of_Use) and [Privacy Policy](https://wikimediafoundation.org/wiki/Privacy_policy). Unless otherwise specified in the endpoint documentation below, content accessed via this API is licensed under the [CC-BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/) and [GFDL](https://www.gnu.org/copyleft/fdl.html) licenses, and you irrevocably agree to release modifications or additions made through this API under these licenses. See https://www.mediawiki.org/wiki/REST_API for background and details. ### Endpoint documentation Please consult each endpoint's documentation for details on: - Licensing information for the specific type of content and data served via the endpoint. - Stability markers to inform you about development status and change policy, according to [our API version policy](https://www.mediawiki.org/wiki/API_versioning). - Endpoint specific usage limits. * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Wikimedia REST API * * This API provides cacheable and straightforward access to Wikimedia content and data, in machine-readable formats. ### Global Rules - Limit your clients to no more than 200 requests/s to this API. Each API endpoint's documentation may detail more specific usage limits. - Set a unique `User-Agent` or `Api-User-Agent` header that allows us to contact you quickly. Email addresses or URLs of contact pages work well. By using this API, you agree to Wikimedia's [Terms of Use](https://wikimediafoundation.org/wiki/Terms_of_Use) and [Privacy Policy](https://wikimediafoundation.org/wiki/Privacy_policy). Unless otherwise specified in the endpoint documentation below, content accessed via this API is licensed under the [CC-BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/) and [GFDL](https://www.gnu.org/copyleft/fdl.html) licenses, and you irrevocably agree to release modifications or additions made through this API under these licenses. See https://www.mediawiki.org/wiki/REST_API for background and details. ### Endpoint documentation Please consult each endpoint's documentation for details on: - Licensing information for the specific type of content and data served via the endpoint. - Stability markers to inform you about development status and change policy, according to [our API version policy](https://www.mediawiki.org/wiki/API_versioning). - Endpoint specific usage limits. * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Wikimedia REST API * * This API provides cacheable and straightforward access to Wikimedia content and data, in machine-readable formats. ### Global Rules - Limit your clients to no more than 200 requests/s to this API. Each API endpoint's documentation may detail more specific usage limits. - Set a unique `User-Agent` or `Api-User-Agent` header that allows us to contact you quickly. Email addresses or URLs of contact pages work well. By using this API, you agree to Wikimedia's [Terms of Use](https://wikimediafoundation.org/wiki/Terms_of_Use) and [Privacy Policy](https://wikimediafoundation.org/wiki/Privacy_policy). Unless otherwise specified in the endpoint documentation below, content accessed via this API is licensed under the [CC-BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/) and [GFDL](https://www.gnu.org/copyleft/fdl.html) licenses, and you irrevocably agree to release modifications or additions made through this API under these licenses. See https://www.mediawiki.org/wiki/REST_API for background and details. ### Endpoint documentation Please consult each endpoint's documentation for details on: - Licensing information for the specific type of content and data served via the endpoint. - Stability markers to inform you about development status and change policy, according to [our API version policy](https://www.mediawiki.org/wiki/API_versioning). - Endpoint specific usage limits. * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Wikimedia REST API * * This API provides cacheable and straightforward access to Wikimedia content and data, in machine-readable formats. ### Global Rules - Limit your clients to no more than 200 requests/s to this API. Each API endpoint's documentation may detail more specific usage limits. - Set a unique `User-Agent` or `Api-User-Agent` header that allows us to contact you quickly. Email addresses or URLs of contact pages work well. By using this API, you agree to Wikimedia's [Terms of Use](https://wikimediafoundation.org/wiki/Terms_of_Use) and [Privacy Policy](https://wikimediafoundation.org/wiki/Privacy_policy). Unless otherwise specified in the endpoint documentation below, content accessed via this API is licensed under the [CC-BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/) and [GFDL](https://www.gnu.org/copyleft/fdl.html) licenses, and you irrevocably agree to release modifications or additions made through this API under these licenses. See https://www.mediawiki.org/wiki/REST_API for background and details. ### Endpoint documentation Please consult each endpoint's documentation for details on: - Licensing information for the specific type of content and data served via the endpoint. - Stability markers to inform you about development status and change policy, according to [our API version policy](https://www.mediawiki.org/wiki/API_versioning). - Endpoint specific usage limits. * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Wikimedia REST API * * This API provides cacheable and straightforward access to Wikimedia content and data, in machine-readable formats. ### Global Rules - Limit your clients to no more than 200 requests/s to this API. Each API endpoint's documentation may detail more specific usage limits. - Set a unique `User-Agent` or `Api-User-Agent` header that allows us to contact you quickly. Email addresses or URLs of contact pages work well. By using this API, you agree to Wikimedia's [Terms of Use](https://wikimediafoundation.org/wiki/Terms_of_Use) and [Privacy Policy](https://wikimediafoundation.org/wiki/Privacy_policy). Unless otherwise specified in the endpoint documentation below, content accessed via this API is licensed under the [CC-BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/) and [GFDL](https://www.gnu.org/copyleft/fdl.html) licenses, and you irrevocably agree to release modifications or additions made through this API under these licenses. See https://www.mediawiki.org/wiki/REST_API for background and details. ### Endpoint documentation Please consult each endpoint's documentation for details on: - Licensing information for the specific type of content and data served via the endpoint. - Stability markers to inform you about development status and change policy, according to [our API version policy](https://www.mediawiki.org/wiki/API_versioning). - Endpoint specific usage limits. * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Wikimedia REST API * * This API provides cacheable and straightforward access to Wikimedia content and data, in machine-readable formats. ### Global Rules - Limit your clients to no more than 200 requests/s to this API. Each API endpoint's documentation may detail more specific usage limits. - Set a unique `User-Agent` or `Api-User-Agent` header that allows us to contact you quickly. Email addresses or URLs of contact pages work well. By using this API, you agree to Wikimedia's [Terms of Use](https://wikimediafoundation.org/wiki/Terms_of_Use) and [Privacy Policy](https://wikimediafoundation.org/wiki/Privacy_policy). Unless otherwise specified in the endpoint documentation below, content accessed via this API is licensed under the [CC-BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/) and [GFDL](https://www.gnu.org/copyleft/fdl.html) licenses, and you irrevocably agree to release modifications or additions made through this API under these licenses. See https://www.mediawiki.org/wiki/REST_API for background and details. ### Endpoint documentation Please consult each endpoint's documentation for details on: - Licensing information for the specific type of content and data served via the endpoint. - Stability markers to inform you about development status and change policy, according to [our API version policy](https://www.mediawiki.org/wiki/API_versioning). - Endpoint specific usage limits. * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Wikimedia REST API * * This API provides cacheable and straightforward access to Wikimedia content and data, in machine-readable formats. ### Global Rules - Limit your clients to no more than 200 requests/s to this API. Each API endpoint's documentation may detail more specific usage limits. - Set a unique `User-Agent` or `Api-User-Agent` header that allows us to contact you quickly. Email addresses or URLs of contact pages work well. By using this API, you agree to Wikimedia's [Terms of Use](https://wikimediafoundation.org/wiki/Terms_of_Use) and [Privacy Policy](https://wikimediafoundation.org/wiki/Privacy_policy). Unless otherwise specified in the endpoint documentation below, content accessed via this API is licensed under the [CC-BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/) and [GFDL](https://www.gnu.org/copyleft/fdl.html) licenses, and you irrevocably agree to release modifications or additions made through this API under these licenses. See https://www.mediawiki.org/wiki/REST_API for background and details. ### Endpoint documentation Please consult each endpoint's documentation for details on: - Licensing information for the specific type of content and data served via the endpoint. - Stability markers to inform you about development status and change policy, according to [our API version policy](https://www.mediawiki.org/wiki/API_versioning). - Endpoint specific usage limits. * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Wikimedia REST API * * This API provides cacheable and straightforward access to Wikimedia content and data, in machine-readable formats. ### Global Rules - Limit your clients to no more than 200 requests/s to this API. Each API endpoint's documentation may detail more specific usage limits. - Set a unique `User-Agent` or `Api-User-Agent` header that allows us to contact you quickly. Email addresses or URLs of contact pages work well. By using this API, you agree to Wikimedia's [Terms of Use](https://wikimediafoundation.org/wiki/Terms_of_Use) and [Privacy Policy](https://wikimediafoundation.org/wiki/Privacy_policy). Unless otherwise specified in the endpoint documentation below, content accessed via this API is licensed under the [CC-BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/) and [GFDL](https://www.gnu.org/copyleft/fdl.html) licenses, and you irrevocably agree to release modifications or additions made through this API under these licenses. See https://www.mediawiki.org/wiki/REST_API for background and details. ### Endpoint documentation Please consult each endpoint's documentation for details on: - Licensing information for the specific type of content and data served via the endpoint. - Stability markers to inform you about development status and change policy, according to [our API version policy](https://www.mediawiki.org/wiki/API_versioning). - Endpoint specific usage limits. * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Wikimedia REST API * * This API provides cacheable and straightforward access to Wikimedia content and data, in machine-readable formats. ### Global Rules - Limit your clients to no more than 200 requests/s to this API. Each API endpoint's documentation may detail more specific usage limits. - Set a unique `User-Agent` or `Api-User-Agent` header that allows us to contact you quickly. Email addresses or URLs of contact pages work well. By using this API, you agree to Wikimedia's [Terms of Use](https://wikimediafoundation.org/wiki/Terms_of_Use) and [Privacy Policy](https://wikimediafoundation.org/wiki/Privacy_policy). Unless otherwise specified in the endpoint documentation below, content accessed via this API is licensed under the [CC-BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/) and [GFDL](https://www.gnu.org/copyleft/fdl.html) licenses, and you irrevocably agree to release modifications or additions made through this API under these licenses. See https://www.mediawiki.org/wiki/REST_API for background and details. ### Endpoint documentation Please consult each endpoint's documentation for details on: - Licensing information for the specific type of content and data served via the endpoint. - Stability markers to inform you about development status and change policy, according to [our API version policy](https://www.mediawiki.org/wiki/API_versioning). - Endpoint specific usage limits. * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Wikimedia REST API * * This API provides cacheable and straightforward access to Wikimedia content and data, in machine-readable formats. ### Global Rules - Limit your clients to no more than 200 requests/s to this API. Each API endpoint's documentation may detail more specific usage limits. - Set a unique `User-Agent` or `Api-User-Agent` header that allows us to contact you quickly. Email addresses or URLs of contact pages work well. By using this API, you agree to Wikimedia's [Terms of Use](https://wikimediafoundation.org/wiki/Terms_of_Use) and [Privacy Policy](https://wikimediafoundation.org/wiki/Privacy_policy). Unless otherwise specified in the endpoint documentation below, content accessed via this API is licensed under the [CC-BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/) and [GFDL](https://www.gnu.org/copyleft/fdl.html) licenses, and you irrevocably agree to release modifications or additions made through this API under these licenses. See https://www.mediawiki.org/wiki/REST_API for background and details. ### Endpoint documentation Please consult each endpoint's documentation for details on: - Licensing information for the specific type of content and data served via the endpoint. - Stability markers to inform you about development status and change policy, according to [our API version policy](https://www.mediawiki.org/wiki/API_versioning). - Endpoint specific usage limits. * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Wikimedia REST API * * This API provides cacheable and straightforward access to Wikimedia content and data, in machine-readable formats. ### Global Rules - Limit your clients to no more than 200 requests/s to this API. Each API endpoint's documentation may detail more specific usage limits. - Set a unique `User-Agent` or `Api-User-Agent` header that allows us to contact you quickly. Email addresses or URLs of contact pages work well. By using this API, you agree to Wikimedia's [Terms of Use](https://wikimediafoundation.org/wiki/Terms_of_Use) and [Privacy Policy](https://wikimediafoundation.org/wiki/Privacy_policy). Unless otherwise specified in the endpoint documentation below, content accessed via this API is licensed under the [CC-BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/) and [GFDL](https://www.gnu.org/copyleft/fdl.html) licenses, and you irrevocably agree to release modifications or additions made through this API under these licenses. See https://www.mediawiki.org/wiki/REST_API for background and details. ### Endpoint documentation Please consult each endpoint's documentation for details on: - Licensing information for the specific type of content and data served via the endpoint. - Stability markers to inform you about development status and change policy, according to [our API version policy](https://www.mediawiki.org/wiki/API_versioning). - Endpoint specific usage limits. * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Wikimedia REST API * * This API provides cacheable and straightforward access to Wikimedia content and data, in machine-readable formats. ### Global Rules - Limit your clients to no more than 200 requests/s to this API. Each API endpoint's documentation may detail more specific usage limits. - Set a unique `User-Agent` or `Api-User-Agent` header that allows us to contact you quickly. Email addresses or URLs of contact pages work well. By using this API, you agree to Wikimedia's [Terms of Use](https://wikimediafoundation.org/wiki/Terms_of_Use) and [Privacy Policy](https://wikimediafoundation.org/wiki/Privacy_policy). Unless otherwise specified in the endpoint documentation below, content accessed via this API is licensed under the [CC-BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/) and [GFDL](https://www.gnu.org/copyleft/fdl.html) licenses, and you irrevocably agree to release modifications or additions made through this API under these licenses. See https://www.mediawiki.org/wiki/REST_API for background and details. ### Endpoint documentation Please consult each endpoint's documentation for details on: - Licensing information for the specific type of content and data served via the endpoint. - Stability markers to inform you about development status and change policy, according to [our API version policy](https://www.mediawiki.org/wiki/API_versioning). - Endpoint specific usage limits. * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Wikimedia REST API * * This API provides cacheable and straightforward access to Wikimedia content and data, in machine-readable formats. ### Global Rules - Limit your clients to no more than 200 requests/s to this API. Each API endpoint's documentation may detail more specific usage limits. - Set a unique `User-Agent` or `Api-User-Agent` header that allows us to contact you quickly. Email addresses or URLs of contact pages work well. By using this API, you agree to Wikimedia's [Terms of Use](https://wikimediafoundation.org/wiki/Terms_of_Use) and [Privacy Policy](https://wikimediafoundation.org/wiki/Privacy_policy). Unless otherwise specified in the endpoint documentation below, content accessed via this API is licensed under the [CC-BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/) and [GFDL](https://www.gnu.org/copyleft/fdl.html) licenses, and you irrevocably agree to release modifications or additions made through this API under these licenses. See https://www.mediawiki.org/wiki/REST_API for background and details. ### Endpoint documentation Please consult each endpoint's documentation for details on: - Licensing information for the specific type of content and data served via the endpoint. - Stability markers to inform you about development status and change policy, according to [our API version policy](https://www.mediawiki.org/wiki/API_versioning). - Endpoint specific usage limits. * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Wikimedia REST API * * This API provides cacheable and straightforward access to Wikimedia content and data, in machine-readable formats. ### Global Rules - Limit your clients to no more than 200 requests/s to this API. Each API endpoint's documentation may detail more specific usage limits. - Set a unique `User-Agent` or `Api-User-Agent` header that allows us to contact you quickly. Email addresses or URLs of contact pages work well. By using this API, you agree to Wikimedia's [Terms of Use](https://wikimediafoundation.org/wiki/Terms_of_Use) and [Privacy Policy](https://wikimediafoundation.org/wiki/Privacy_policy). Unless otherwise specified in the endpoint documentation below, content accessed via this API is licensed under the [CC-BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/) and [GFDL](https://www.gnu.org/copyleft/fdl.html) licenses, and you irrevocably agree to release modifications or additions made through this API under these licenses. See https://www.mediawiki.org/wiki/REST_API for background and details. ### Endpoint documentation Please consult each endpoint's documentation for details on: - Licensing information for the specific type of content and data served via the endpoint. - Stability markers to inform you about development status and change policy, according to [our API version policy](https://www.mediawiki.org/wiki/API_versioning). - Endpoint specific usage limits. * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Wikimedia REST API * * This API provides cacheable and straightforward access to Wikimedia content and data, in machine-readable formats. ### Global Rules - Limit your clients to no more than 200 requests/s to this API. Each API endpoint's documentation may detail more specific usage limits. - Set a unique `User-Agent` or `Api-User-Agent` header that allows us to contact you quickly. Email addresses or URLs of contact pages work well. By using this API, you agree to Wikimedia's [Terms of Use](https://wikimediafoundation.org/wiki/Terms_of_Use) and [Privacy Policy](https://wikimediafoundation.org/wiki/Privacy_policy). Unless otherwise specified in the endpoint documentation below, content accessed via this API is licensed under the [CC-BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/) and [GFDL](https://www.gnu.org/copyleft/fdl.html) licenses, and you irrevocably agree to release modifications or additions made through this API under these licenses. See https://www.mediawiki.org/wiki/REST_API for background and details. ### Endpoint documentation Please consult each endpoint's documentation for details on: - Licensing information for the specific type of content and data served via the endpoint. - Stability markers to inform you about development status and change policy, according to [our API version policy](https://www.mediawiki.org/wiki/API_versioning). - Endpoint specific usage limits. * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Wikimedia REST API * * This API provides cacheable and straightforward access to Wikimedia content and data, in machine-readable formats. ### Global Rules - Limit your clients to no more than 200 requests/s to this API. Each API endpoint's documentation may detail more specific usage limits. - Set a unique `User-Agent` or `Api-User-Agent` header that allows us to contact you quickly. Email addresses or URLs of contact pages work well. By using this API, you agree to Wikimedia's [Terms of Use](https://wikimediafoundation.org/wiki/Terms_of_Use) and [Privacy Policy](https://wikimediafoundation.org/wiki/Privacy_policy). Unless otherwise specified in the endpoint documentation below, content accessed via this API is licensed under the [CC-BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/) and [GFDL](https://www.gnu.org/copyleft/fdl.html) licenses, and you irrevocably agree to release modifications or additions made through this API under these licenses. See https://www.mediawiki.org/wiki/REST_API for background and details. ### Endpoint documentation Please consult each endpoint's documentation for details on: - Licensing information for the specific type of content and data served via the endpoint. - Stability markers to inform you about development status and change policy, according to [our API version policy](https://www.mediawiki.org/wiki/API_versioning). - Endpoint specific usage limits. * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Wikimedia REST API * * This API provides cacheable and straightforward access to Wikimedia content and data, in machine-readable formats. ### Global Rules - Limit your clients to no more than 200 requests/s to this API. Each API endpoint's documentation may detail more specific usage limits. - Set a unique `User-Agent` or `Api-User-Agent` header that allows us to contact you quickly. Email addresses or URLs of contact pages work well. By using this API, you agree to Wikimedia's [Terms of Use](https://wikimediafoundation.org/wiki/Terms_of_Use) and [Privacy Policy](https://wikimediafoundation.org/wiki/Privacy_policy). Unless otherwise specified in the endpoint documentation below, content accessed via this API is licensed under the [CC-BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/) and [GFDL](https://www.gnu.org/copyleft/fdl.html) licenses, and you irrevocably agree to release modifications or additions made through this API under these licenses. See https://www.mediawiki.org/wiki/REST_API for background and details. ### Endpoint documentation Please consult each endpoint's documentation for details on: - Licensing information for the specific type of content and data served via the endpoint. - Stability markers to inform you about development status and change policy, according to [our API version policy](https://www.mediawiki.org/wiki/API_versioning). - Endpoint specific usage limits. * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Wikimedia REST API * * This API provides cacheable and straightforward access to Wikimedia content and data, in machine-readable formats. ### Global Rules - Limit your clients to no more than 200 requests/s to this API. Each API endpoint's documentation may detail more specific usage limits. - Set a unique `User-Agent` or `Api-User-Agent` header that allows us to contact you quickly. Email addresses or URLs of contact pages work well. By using this API, you agree to Wikimedia's [Terms of Use](https://wikimediafoundation.org/wiki/Terms_of_Use) and [Privacy Policy](https://wikimediafoundation.org/wiki/Privacy_policy). Unless otherwise specified in the endpoint documentation below, content accessed via this API is licensed under the [CC-BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/) and [GFDL](https://www.gnu.org/copyleft/fdl.html) licenses, and you irrevocably agree to release modifications or additions made through this API under these licenses. See https://www.mediawiki.org/wiki/REST_API for background and details. ### Endpoint documentation Please consult each endpoint's documentation for details on: - Licensing information for the specific type of content and data served via the endpoint. - Stability markers to inform you about development status and change policy, according to [our API version policy](https://www.mediawiki.org/wiki/API_versioning). - Endpoint specific usage limits. * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Wikimedia REST API * * This API provides cacheable and straightforward access to Wikimedia content and data, in machine-readable formats. ### Global Rules - Limit your clients to no more than 200 requests/s to this API. Each API endpoint's documentation may detail more specific usage limits. - Set a unique `User-Agent` or `Api-User-Agent` header that allows us to contact you quickly. Email addresses or URLs of contact pages work well. By using this API, you agree to Wikimedia's [Terms of Use](https://wikimediafoundation.org/wiki/Terms_of_Use) and [Privacy Policy](https://wikimediafoundation.org/wiki/Privacy_policy). Unless otherwise specified in the endpoint documentation below, content accessed via this API is licensed under the [CC-BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/) and [GFDL](https://www.gnu.org/copyleft/fdl.html) licenses, and you irrevocably agree to release modifications or additions made through this API under these licenses. See https://www.mediawiki.org/wiki/REST_API for background and details. ### Endpoint documentation Please consult each endpoint's documentation for details on: - Licensing information for the specific type of content and data served via the endpoint. - Stability markers to inform you about development status and change policy, according to [our API version policy](https://www.mediawiki.org/wiki/API_versioning). - Endpoint specific usage limits. * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Wikimedia REST API * * This API provides cacheable and straightforward access to Wikimedia content and data, in machine-readable formats. ### Global Rules - Limit your clients to no more than 200 requests/s to this API. Each API endpoint's documentation may detail more specific usage limits. - Set a unique `User-Agent` or `Api-User-Agent` header that allows us to contact you quickly. Email addresses or URLs of contact pages work well. By using this API, you agree to Wikimedia's [Terms of Use](https://wikimediafoundation.org/wiki/Terms_of_Use) and [Privacy Policy](https://wikimediafoundation.org/wiki/Privacy_policy). Unless otherwise specified in the endpoint documentation below, content accessed via this API is licensed under the [CC-BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/) and [GFDL](https://www.gnu.org/copyleft/fdl.html) licenses, and you irrevocably agree to release modifications or additions made through this API under these licenses. See https://www.mediawiki.org/wiki/REST_API for background and details. ### Endpoint documentation Please consult each endpoint's documentation for details on: - Licensing information for the specific type of content and data served via the endpoint. - Stability markers to inform you about development status and change policy, according to [our API version policy](https://www.mediawiki.org/wiki/API_versioning). - Endpoint specific usage limits. * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Wikimedia REST API * * This API provides cacheable and straightforward access to Wikimedia content and data, in machine-readable formats. ### Global Rules - Limit your clients to no more than 200 requests/s to this API. Each API endpoint's documentation may detail more specific usage limits. - Set a unique `User-Agent` or `Api-User-Agent` header that allows us to contact you quickly. Email addresses or URLs of contact pages work well. By using this API, you agree to Wikimedia's [Terms of Use](https://wikimediafoundation.org/wiki/Terms_of_Use) and [Privacy Policy](https://wikimediafoundation.org/wiki/Privacy_policy). Unless otherwise specified in the endpoint documentation below, content accessed via this API is licensed under the [CC-BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/) and [GFDL](https://www.gnu.org/copyleft/fdl.html) licenses, and you irrevocably agree to release modifications or additions made through this API under these licenses. See https://www.mediawiki.org/wiki/REST_API for background and details. ### Endpoint documentation Please consult each endpoint's documentation for details on: - Licensing information for the specific type of content and data served via the endpoint. - Stability markers to inform you about development status and change policy, according to [our API version policy](https://www.mediawiki.org/wiki/API_versioning). - Endpoint specific usage limits. * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Wikimedia REST API * * This API provides cacheable and straightforward access to Wikimedia content and data, in machine-readable formats. ### Global Rules - Limit your clients to no more than 200 requests/s to this API. Each API endpoint's documentation may detail more specific usage limits. - Set a unique `User-Agent` or `Api-User-Agent` header that allows us to contact you quickly. Email addresses or URLs of contact pages work well. By using this API, you agree to Wikimedia's [Terms of Use](https://wikimediafoundation.org/wiki/Terms_of_Use) and [Privacy Policy](https://wikimediafoundation.org/wiki/Privacy_policy). Unless otherwise specified in the endpoint documentation below, content accessed via this API is licensed under the [CC-BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/) and [GFDL](https://www.gnu.org/copyleft/fdl.html) licenses, and you irrevocably agree to release modifications or additions made through this API under these licenses. See https://www.mediawiki.org/wiki/REST_API for background and details. ### Endpoint documentation Please consult each endpoint's documentation for details on: - Licensing information for the specific type of content and data served via the endpoint. - Stability markers to inform you about development status and change policy, according to [our API version policy](https://www.mediawiki.org/wiki/API_versioning). - Endpoint specific usage limits. * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Wikimedia REST API * * This API provides cacheable and straightforward access to Wikimedia content and data, in machine-readable formats. ### Global Rules - Limit your clients to no more than 200 requests/s to this API. Each API endpoint's documentation may detail more specific usage limits. - Set a unique `User-Agent` or `Api-User-Agent` header that allows us to contact you quickly. Email addresses or URLs of contact pages work well. By using this API, you agree to Wikimedia's [Terms of Use](https://wikimediafoundation.org/wiki/Terms_of_Use) and [Privacy Policy](https://wikimediafoundation.org/wiki/Privacy_policy). Unless otherwise specified in the endpoint documentation below, content accessed via this API is licensed under the [CC-BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/) and [GFDL](https://www.gnu.org/copyleft/fdl.html) licenses, and you irrevocably agree to release modifications or additions made through this API under these licenses. See https://www.mediawiki.org/wiki/REST_API for background and details. ### Endpoint documentation Please consult each endpoint's documentation for details on: - Licensing information for the specific type of content and data served via the endpoint. - Stability markers to inform you about development status and change policy, according to [our API version policy](https://www.mediawiki.org/wiki/API_versioning). - Endpoint specific usage limits. * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Wikimedia REST API * * This API provides cacheable and straightforward access to Wikimedia content and data, in machine-readable formats. ### Global Rules - Limit your clients to no more than 200 requests/s to this API. Each API endpoint's documentation may detail more specific usage limits. - Set a unique `User-Agent` or `Api-User-Agent` header that allows us to contact you quickly. Email addresses or URLs of contact pages work well. By using this API, you agree to Wikimedia's [Terms of Use](https://wikimediafoundation.org/wiki/Terms_of_Use) and [Privacy Policy](https://wikimediafoundation.org/wiki/Privacy_policy). Unless otherwise specified in the endpoint documentation below, content accessed via this API is licensed under the [CC-BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/) and [GFDL](https://www.gnu.org/copyleft/fdl.html) licenses, and you irrevocably agree to release modifications or additions made through this API under these licenses. See https://www.mediawiki.org/wiki/REST_API for background and details. ### Endpoint documentation Please consult each endpoint's documentation for details on: - Licensing information for the specific type of content and data served via the endpoint. - Stability markers to inform you about development status and change policy, according to [our API version policy](https://www.mediawiki.org/wiki/API_versioning). - Endpoint specific usage limits. * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Wikimedia REST API * * This API provides cacheable and straightforward access to Wikimedia content and data, in machine-readable formats. ### Global Rules - Limit your clients to no more than 200 requests/s to this API. Each API endpoint's documentation may detail more specific usage limits. - Set a unique `User-Agent` or `Api-User-Agent` header that allows us to contact you quickly. Email addresses or URLs of contact pages work well. By using this API, you agree to Wikimedia's [Terms of Use](https://wikimediafoundation.org/wiki/Terms_of_Use) and [Privacy Policy](https://wikimediafoundation.org/wiki/Privacy_policy). Unless otherwise specified in the endpoint documentation below, content accessed via this API is licensed under the [CC-BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/) and [GFDL](https://www.gnu.org/copyleft/fdl.html) licenses, and you irrevocably agree to release modifications or additions made through this API under these licenses. See https://www.mediawiki.org/wiki/REST_API for background and details. ### Endpoint documentation Please consult each endpoint's documentation for details on: - Licensing information for the specific type of content and data served via the endpoint. - Stability markers to inform you about development status and change policy, according to [our API version policy](https://www.mediawiki.org/wiki/API_versioning). - Endpoint specific usage limits. * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Wikimedia REST API * * This API provides cacheable and straightforward access to Wikimedia content and data, in machine-readable formats. ### Global Rules - Limit your clients to no more than 200 requests/s to this API. Each API endpoint's documentation may detail more specific usage limits. - Set a unique `User-Agent` or `Api-User-Agent` header that allows us to contact you quickly. Email addresses or URLs of contact pages work well. By using this API, you agree to Wikimedia's [Terms of Use](https://wikimediafoundation.org/wiki/Terms_of_Use) and [Privacy Policy](https://wikimediafoundation.org/wiki/Privacy_policy). Unless otherwise specified in the endpoint documentation below, content accessed via this API is licensed under the [CC-BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/) and [GFDL](https://www.gnu.org/copyleft/fdl.html) licenses, and you irrevocably agree to release modifications or additions made through this API under these licenses. See https://www.mediawiki.org/wiki/REST_API for background and details. ### Endpoint documentation Please consult each endpoint's documentation for details on: - Licensing information for the specific type of content and data served via the endpoint. - Stability markers to inform you about development status and change policy, according to [our API version policy](https://www.mediawiki.org/wiki/API_versioning). - Endpoint specific usage limits. * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Wikimedia REST API * * This API provides cacheable and straightforward access to Wikimedia content and data, in machine-readable formats. ### Global Rules - Limit your clients to no more than 200 requests/s to this API. Each API endpoint's documentation may detail more specific usage limits. - Set a unique `User-Agent` or `Api-User-Agent` header that allows us to contact you quickly. Email addresses or URLs of contact pages work well. By using this API, you agree to Wikimedia's [Terms of Use](https://wikimediafoundation.org/wiki/Terms_of_Use) and [Privacy Policy](https://wikimediafoundation.org/wiki/Privacy_policy). Unless otherwise specified in the endpoint documentation below, content accessed via this API is licensed under the [CC-BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/) and [GFDL](https://www.gnu.org/copyleft/fdl.html) licenses, and you irrevocably agree to release modifications or additions made through this API under these licenses. See https://www.mediawiki.org/wiki/REST_API for background and details. ### Endpoint documentation Please consult each endpoint's documentation for details on: - Licensing information for the specific type of content and data served via the endpoint. - Stability markers to inform you about development status and change policy, according to [our API version policy](https://www.mediawiki.org/wiki/API_versioning). - Endpoint specific usage limits. * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Wikimedia REST API * * This API provides cacheable and straightforward access to Wikimedia content and data, in machine-readable formats. ### Global Rules - Limit your clients to no more than 200 requests/s to this API. Each API endpoint's documentation may detail more specific usage limits. - Set a unique `User-Agent` or `Api-User-Agent` header that allows us to contact you quickly. Email addresses or URLs of contact pages work well. By using this API, you agree to Wikimedia's [Terms of Use](https://wikimediafoundation.org/wiki/Terms_of_Use) and [Privacy Policy](https://wikimediafoundation.org/wiki/Privacy_policy). Unless otherwise specified in the endpoint documentation below, content accessed via this API is licensed under the [CC-BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/) and [GFDL](https://www.gnu.org/copyleft/fdl.html) licenses, and you irrevocably agree to release modifications or additions made through this API under these licenses. See https://www.mediawiki.org/wiki/REST_API for background and details. ### Endpoint documentation Please consult each endpoint's documentation for details on: - Licensing information for the specific type of content and data served via the endpoint. - Stability markers to inform you about development status and change policy, according to [our API version policy](https://www.mediawiki.org/wiki/API_versioning). - Endpoint specific usage limits. * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Wikimedia REST API * * This API provides cacheable and straightforward access to Wikimedia content and data, in machine-readable formats. ### Global Rules - Limit your clients to no more than 200 requests/s to this API. Each API endpoint's documentation may detail more specific usage limits. - Set a unique `User-Agent` or `Api-User-Agent` header that allows us to contact you quickly. Email addresses or URLs of contact pages work well. By using this API, you agree to Wikimedia's [Terms of Use](https://wikimediafoundation.org/wiki/Terms_of_Use) and [Privacy Policy](https://wikimediafoundation.org/wiki/Privacy_policy). Unless otherwise specified in the endpoint documentation below, content accessed via this API is licensed under the [CC-BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/) and [GFDL](https://www.gnu.org/copyleft/fdl.html) licenses, and you irrevocably agree to release modifications or additions made through this API under these licenses. See https://www.mediawiki.org/wiki/REST_API for background and details. ### Endpoint documentation Please consult each endpoint's documentation for details on: - Licensing information for the specific type of content and data served via the endpoint. - Stability markers to inform you about development status and change policy, according to [our API version policy](https://www.mediawiki.org/wiki/API_versioning). - Endpoint specific usage limits. * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Wikimedia REST API * * This API provides cacheable and straightforward access to Wikimedia content and data, in machine-readable formats. ### Global Rules - Limit your clients to no more than 200 requests/s to this API. Each API endpoint's documentation may detail more specific usage limits. - Set a unique `User-Agent` or `Api-User-Agent` header that allows us to contact you quickly. Email addresses or URLs of contact pages work well. By using this API, you agree to Wikimedia's [Terms of Use](https://wikimediafoundation.org/wiki/Terms_of_Use) and [Privacy Policy](https://wikimediafoundation.org/wiki/Privacy_policy). Unless otherwise specified in the endpoint documentation below, content accessed via this API is licensed under the [CC-BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/) and [GFDL](https://www.gnu.org/copyleft/fdl.html) licenses, and you irrevocably agree to release modifications or additions made through this API under these licenses. See https://www.mediawiki.org/wiki/REST_API for background and details. ### Endpoint documentation Please consult each endpoint's documentation for details on: - Licensing information for the specific type of content and data served via the endpoint. - Stability markers to inform you about development status and change policy, according to [our API version policy](https://www.mediawiki.org/wiki/API_versioning). - Endpoint specific usage limits. * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Wikimedia REST API * * This API provides cacheable and straightforward access to Wikimedia content and data, in machine-readable formats. ### Global Rules - Limit your clients to no more than 200 requests/s to this API. Each API endpoint's documentation may detail more specific usage limits. - Set a unique `User-Agent` or `Api-User-Agent` header that allows us to contact you quickly. Email addresses or URLs of contact pages work well. By using this API, you agree to Wikimedia's [Terms of Use](https://wikimediafoundation.org/wiki/Terms_of_Use) and [Privacy Policy](https://wikimediafoundation.org/wiki/Privacy_policy). Unless otherwise specified in the endpoint documentation below, content accessed via this API is licensed under the [CC-BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/) and [GFDL](https://www.gnu.org/copyleft/fdl.html) licenses, and you irrevocably agree to release modifications or additions made through this API under these licenses. See https://www.mediawiki.org/wiki/REST_API for background and details. ### Endpoint documentation Please consult each endpoint's documentation for details on: - Licensing information for the specific type of content and data served via the endpoint. - Stability markers to inform you about development status and change policy, according to [our API version policy](https://www.mediawiki.org/wiki/API_versioning). - Endpoint specific usage limits. * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Wikimedia REST API * * This API provides cacheable and straightforward access to Wikimedia content and data, in machine-readable formats. ### Global Rules - Limit your clients to no more than 200 requests/s to this API. Each API endpoint's documentation may detail more specific usage limits. - Set a unique `User-Agent` or `Api-User-Agent` header that allows us to contact you quickly. Email addresses or URLs of contact pages work well. By using this API, you agree to Wikimedia's [Terms of Use](https://wikimediafoundation.org/wiki/Terms_of_Use) and [Privacy Policy](https://wikimediafoundation.org/wiki/Privacy_policy). Unless otherwise specified in the endpoint documentation below, content accessed via this API is licensed under the [CC-BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/) and [GFDL](https://www.gnu.org/copyleft/fdl.html) licenses, and you irrevocably agree to release modifications or additions made through this API under these licenses. See https://www.mediawiki.org/wiki/REST_API for background and details. ### Endpoint documentation Please consult each endpoint's documentation for details on: - Licensing information for the specific type of content and data served via the endpoint. - Stability markers to inform you about development status and change policy, according to [our API version policy](https://www.mediawiki.org/wiki/API_versioning). - Endpoint specific usage limits. * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Wikimedia REST API * * This API provides cacheable and straightforward access to Wikimedia content and data, in machine-readable formats. ### Global Rules - Limit your clients to no more than 200 requests/s to this API. Each API endpoint's documentation may detail more specific usage limits. - Set a unique `User-Agent` or `Api-User-Agent` header that allows us to contact you quickly. Email addresses or URLs of contact pages work well. By using this API, you agree to Wikimedia's [Terms of Use](https://wikimediafoundation.org/wiki/Terms_of_Use) and [Privacy Policy](https://wikimediafoundation.org/wiki/Privacy_policy). Unless otherwise specified in the endpoint documentation below, content accessed via this API is licensed under the [CC-BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/) and [GFDL](https://www.gnu.org/copyleft/fdl.html) licenses, and you irrevocably agree to release modifications or additions made through this API under these licenses. See https://www.mediawiki.org/wiki/REST_API for background and details. ### Endpoint documentation Please consult each endpoint's documentation for details on: - Licensing information for the specific type of content and data served via the endpoint. - Stability markers to inform you about development status and change policy, according to [our API version policy](https://www.mediawiki.org/wiki/API_versioning). - Endpoint specific usage limits. * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Wikimedia REST API * * This API provides cacheable and straightforward access to Wikimedia content and data, in machine-readable formats. ### Global Rules - Limit your clients to no more than 200 requests/s to this API. Each API endpoint's documentation may detail more specific usage limits. - Set a unique `User-Agent` or `Api-User-Agent` header that allows us to contact you quickly. Email addresses or URLs of contact pages work well. By using this API, you agree to Wikimedia's [Terms of Use](https://wikimediafoundation.org/wiki/Terms_of_Use) and [Privacy Policy](https://wikimediafoundation.org/wiki/Privacy_policy). Unless otherwise specified in the endpoint documentation below, content accessed via this API is licensed under the [CC-BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/) and [GFDL](https://www.gnu.org/copyleft/fdl.html) licenses, and you irrevocably agree to release modifications or additions made through this API under these licenses. See https://www.mediawiki.org/wiki/REST_API for background and details. ### Endpoint documentation Please consult each endpoint's documentation for details on: - Licensing information for the specific type of content and data served via the endpoint. - Stability markers to inform you about development status and change policy, according to [our API version policy](https://www.mediawiki.org/wiki/API_versioning). - Endpoint specific usage limits. * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Wikimedia REST API * * This API provides cacheable and straightforward access to Wikimedia content and data, in machine-readable formats. ### Global Rules - Limit your clients to no more than 200 requests/s to this API. Each API endpoint's documentation may detail more specific usage limits. - Set a unique `User-Agent` or `Api-User-Agent` header that allows us to contact you quickly. Email addresses or URLs of contact pages work well. By using this API, you agree to Wikimedia's [Terms of Use](https://wikimediafoundation.org/wiki/Terms_of_Use) and [Privacy Policy](https://wikimediafoundation.org/wiki/Privacy_policy). Unless otherwise specified in the endpoint documentation below, content accessed via this API is licensed under the [CC-BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/) and [GFDL](https://www.gnu.org/copyleft/fdl.html) licenses, and you irrevocably agree to release modifications or additions made through this API under these licenses. See https://www.mediawiki.org/wiki/REST_API for background and details. ### Endpoint documentation Please consult each endpoint's documentation for details on: - Licensing information for the specific type of content and data served via the endpoint. - Stability markers to inform you about development status and change policy, according to [our API version policy](https://www.mediawiki.org/wiki/API_versioning). - Endpoint specific usage limits. * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Wikimedia REST API * * This API provides cacheable and straightforward access to Wikimedia content and data, in machine-readable formats. ### Global Rules - Limit your clients to no more than 200 requests/s to this API. Each API endpoint's documentation may detail more specific usage limits. - Set a unique `User-Agent` or `Api-User-Agent` header that allows us to contact you quickly. Email addresses or URLs of contact pages work well. By using this API, you agree to Wikimedia's [Terms of Use](https://wikimediafoundation.org/wiki/Terms_of_Use) and [Privacy Policy](https://wikimediafoundation.org/wiki/Privacy_policy). Unless otherwise specified in the endpoint documentation below, content accessed via this API is licensed under the [CC-BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/) and [GFDL](https://www.gnu.org/copyleft/fdl.html) licenses, and you irrevocably agree to release modifications or additions made through this API under these licenses. See https://www.mediawiki.org/wiki/REST_API for background and details. ### Endpoint documentation Please consult each endpoint's documentation for details on: - Licensing information for the specific type of content and data served via the endpoint. - Stability markers to inform you about development status and change policy, according to [our API version policy](https://www.mediawiki.org/wiki/API_versioning). - Endpoint specific usage limits. * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Wikimedia REST API * * This API provides cacheable and straightforward access to Wikimedia content and data, in machine-readable formats. ### Global Rules - Limit your clients to no more than 200 requests/s to this API. Each API endpoint's documentation may detail more specific usage limits. - Set a unique `User-Agent` or `Api-User-Agent` header that allows us to contact you quickly. Email addresses or URLs of contact pages work well. By using this API, you agree to Wikimedia's [Terms of Use](https://wikimediafoundation.org/wiki/Terms_of_Use) and [Privacy Policy](https://wikimediafoundation.org/wiki/Privacy_policy). Unless otherwise specified in the endpoint documentation below, content accessed via this API is licensed under the [CC-BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/) and [GFDL](https://www.gnu.org/copyleft/fdl.html) licenses, and you irrevocably agree to release modifications or additions made through this API under these licenses. See https://www.mediawiki.org/wiki/REST_API for background and details. ### Endpoint documentation Please consult each endpoint's documentation for details on: - Licensing information for the specific type of content and data served via the endpoint. - Stability markers to inform you about development status and change policy, according to [our API version policy](https://www.mediawiki.org/wiki/API_versioning). - Endpoint specific usage limits. * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Wikimedia REST API * * This API provides cacheable and straightforward access to Wikimedia content and data, in machine-readable formats. ### Global Rules - Limit your clients to no more than 200 requests/s to this API. Each API endpoint's documentation may detail more specific usage limits. - Set a unique `User-Agent` or `Api-User-Agent` header that allows us to contact you quickly. Email addresses or URLs of contact pages work well. By using this API, you agree to Wikimedia's [Terms of Use](https://wikimediafoundation.org/wiki/Terms_of_Use) and [Privacy Policy](https://wikimediafoundation.org/wiki/Privacy_policy). Unless otherwise specified in the endpoint documentation below, content accessed via this API is licensed under the [CC-BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/) and [GFDL](https://www.gnu.org/copyleft/fdl.html) licenses, and you irrevocably agree to release modifications or additions made through this API under these licenses. See https://www.mediawiki.org/wiki/REST_API for background and details. ### Endpoint documentation Please consult each endpoint's documentation for details on: - Licensing information for the specific type of content and data served via the endpoint. - Stability markers to inform you about development status and change policy, according to [our API version policy](https://www.mediawiki.org/wiki/API_versioning). - Endpoint specific usage limits. * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Wikimedia REST API * * This API provides cacheable and straightforward access to Wikimedia content and data, in machine-readable formats. ### Global Rules - Limit your clients to no more than 200 requests/s to this API. Each API endpoint's documentation may detail more specific usage limits. - Set a unique `User-Agent` or `Api-User-Agent` header that allows us to contact you quickly. Email addresses or URLs of contact pages work well. By using this API, you agree to Wikimedia's [Terms of Use](https://wikimediafoundation.org/wiki/Terms_of_Use) and [Privacy Policy](https://wikimediafoundation.org/wiki/Privacy_policy). Unless otherwise specified in the endpoint documentation below, content accessed via this API is licensed under the [CC-BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/) and [GFDL](https://www.gnu.org/copyleft/fdl.html) licenses, and you irrevocably agree to release modifications or additions made through this API under these licenses. See https://www.mediawiki.org/wiki/REST_API for background and details. ### Endpoint documentation Please consult each endpoint's documentation for details on: - Licensing information for the specific type of content and data served via the endpoint. - Stability markers to inform you about development status and change policy, according to [our API version policy](https://www.mediawiki.org/wiki/API_versioning). - Endpoint specific usage limits. * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Wikimedia REST API * * This API provides cacheable and straightforward access to Wikimedia content and data, in machine-readable formats. ### Global Rules - Limit your clients to no more than 200 requests/s to this API. Each API endpoint's documentation may detail more specific usage limits. - Set a unique `User-Agent` or `Api-User-Agent` header that allows us to contact you quickly. Email addresses or URLs of contact pages work well. By using this API, you agree to Wikimedia's [Terms of Use](https://wikimediafoundation.org/wiki/Terms_of_Use) and [Privacy Policy](https://wikimediafoundation.org/wiki/Privacy_policy). Unless otherwise specified in the endpoint documentation below, content accessed via this API is licensed under the [CC-BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/) and [GFDL](https://www.gnu.org/copyleft/fdl.html) licenses, and you irrevocably agree to release modifications or additions made through this API under these licenses. See https://www.mediawiki.org/wiki/REST_API for background and details. ### Endpoint documentation Please consult each endpoint's documentation for details on: - Licensing information for the specific type of content and data served via the endpoint. - Stability markers to inform you about development status and change policy, according to [our API version policy](https://www.mediawiki.org/wiki/API_versioning). - Endpoint specific usage limits. * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Wikimedia REST API * * This API provides cacheable and straightforward access to Wikimedia content and data, in machine-readable formats. ### Global Rules - Limit your clients to no more than 200 requests/s to this API. Each API endpoint's documentation may detail more specific usage limits. - Set a unique `User-Agent` or `Api-User-Agent` header that allows us to contact you quickly. Email addresses or URLs of contact pages work well. By using this API, you agree to Wikimedia's [Terms of Use](https://wikimediafoundation.org/wiki/Terms_of_Use) and [Privacy Policy](https://wikimediafoundation.org/wiki/Privacy_policy). Unless otherwise specified in the endpoint documentation below, content accessed via this API is licensed under the [CC-BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/) and [GFDL](https://www.gnu.org/copyleft/fdl.html) licenses, and you irrevocably agree to release modifications or additions made through this API under these licenses. See https://www.mediawiki.org/wiki/REST_API for background and details. ### Endpoint documentation Please consult each endpoint's documentation for details on: - Licensing information for the specific type of content and data served via the endpoint. - Stability markers to inform you about development status and change policy, according to [our API version policy](https://www.mediawiki.org/wiki/API_versioning). - Endpoint specific usage limits. * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Wikimedia REST API * * This API provides cacheable and straightforward access to Wikimedia content and data, in machine-readable formats. ### Global Rules - Limit your clients to no more than 200 requests/s to this API. Each API endpoint's documentation may detail more specific usage limits. - Set a unique `User-Agent` or `Api-User-Agent` header that allows us to contact you quickly. Email addresses or URLs of contact pages work well. By using this API, you agree to Wikimedia's [Terms of Use](https://wikimediafoundation.org/wiki/Terms_of_Use) and [Privacy Policy](https://wikimediafoundation.org/wiki/Privacy_policy). Unless otherwise specified in the endpoint documentation below, content accessed via this API is licensed under the [CC-BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/) and [GFDL](https://www.gnu.org/copyleft/fdl.html) licenses, and you irrevocably agree to release modifications or additions made through this API under these licenses. See https://www.mediawiki.org/wiki/REST_API for background and details. ### Endpoint documentation Please consult each endpoint's documentation for details on: - Licensing information for the specific type of content and data served via the endpoint. - Stability markers to inform you about development status and change policy, according to [our API version policy](https://www.mediawiki.org/wiki/API_versioning). - Endpoint specific usage limits. * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Wikimedia REST API * * This API provides cacheable and straightforward access to Wikimedia content and data, in machine-readable formats. ### Global Rules - Limit your clients to no more than 200 requests/s to this API. Each API endpoint's documentation may detail more specific usage limits. - Set a unique `User-Agent` or `Api-User-Agent` header that allows us to contact you quickly. Email addresses or URLs of contact pages work well. By using this API, you agree to Wikimedia's [Terms of Use](https://wikimediafoundation.org/wiki/Terms_of_Use) and [Privacy Policy](https://wikimediafoundation.org/wiki/Privacy_policy). Unless otherwise specified in the endpoint documentation below, content accessed via this API is licensed under the [CC-BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/) and [GFDL](https://www.gnu.org/copyleft/fdl.html) licenses, and you irrevocably agree to release modifications or additions made through this API under these licenses. See https://www.mediawiki.org/wiki/REST_API for background and details. ### Endpoint documentation Please consult each endpoint's documentation for details on: - Licensing information for the specific type of content and data served via the endpoint. - Stability markers to inform you about development status and change policy, according to [our API version policy](https://www.mediawiki.org/wiki/API_versioning). - Endpoint specific usage limits. * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Wikimedia REST API * * This API provides cacheable and straightforward access to Wikimedia content and data, in machine-readable formats. ### Global Rules - Limit your clients to no more than 200 requests/s to this API. Each API endpoint's documentation may detail more specific usage limits. - Set a unique `User-Agent` or `Api-User-Agent` header that allows us to contact you quickly. Email addresses or URLs of contact pages work well. By using this API, you agree to Wikimedia's [Terms of Use](https://wikimediafoundation.org/wiki/Terms_of_Use) and [Privacy Policy](https://wikimediafoundation.org/wiki/Privacy_policy). Unless otherwise specified in the endpoint documentation below, content accessed via this API is licensed under the [CC-BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/) and [GFDL](https://www.gnu.org/copyleft/fdl.html) licenses, and you irrevocably agree to release modifications or additions made through this API under these licenses. See https://www.mediawiki.org/wiki/REST_API for background and details. ### Endpoint documentation Please consult each endpoint's documentation for details on: - Licensing information for the specific type of content and data served via the endpoint. - Stability markers to inform you about development status and change policy, according to [our API version policy](https://www.mediawiki.org/wiki/API_versioning). - Endpoint specific usage limits. * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Wikimedia REST API * * This API provides cacheable and straightforward access to Wikimedia content and data, in machine-readable formats. ### Global Rules - Limit your clients to no more than 200 requests/s to this API. Each API endpoint's documentation may detail more specific usage limits. - Set a unique `User-Agent` or `Api-User-Agent` header that allows us to contact you quickly. Email addresses or URLs of contact pages work well. By using this API, you agree to Wikimedia's [Terms of Use](https://wikimediafoundation.org/wiki/Terms_of_Use) and [Privacy Policy](https://wikimediafoundation.org/wiki/Privacy_policy). Unless otherwise specified in the endpoint documentation below, content accessed via this API is licensed under the [CC-BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/) and [GFDL](https://www.gnu.org/copyleft/fdl.html) licenses, and you irrevocably agree to release modifications or additions made through this API under these licenses. See https://www.mediawiki.org/wiki/REST_API for background and details. ### Endpoint documentation Please consult each endpoint's documentation for details on: - Licensing information for the specific type of content and data served via the endpoint. - Stability markers to inform you about development status and change policy, according to [our API version policy](https://www.mediawiki.org/wiki/API_versioning). - Endpoint specific usage limits. * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Wikimedia REST API * * This API provides cacheable and straightforward access to Wikimedia content and data, in machine-readable formats. ### Global Rules - Limit your clients to no more than 200 requests/s to this API. Each API endpoint's documentation may detail more specific usage limits. - Set a unique `User-Agent` or `Api-User-Agent` header that allows us to contact you quickly. Email addresses or URLs of contact pages work well. By using this API, you agree to Wikimedia's [Terms of Use](https://wikimediafoundation.org/wiki/Terms_of_Use) and [Privacy Policy](https://wikimediafoundation.org/wiki/Privacy_policy). Unless otherwise specified in the endpoint documentation below, content accessed via this API is licensed under the [CC-BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/) and [GFDL](https://www.gnu.org/copyleft/fdl.html) licenses, and you irrevocably agree to release modifications or additions made through this API under these licenses. See https://www.mediawiki.org/wiki/REST_API for background and details. ### Endpoint documentation Please consult each endpoint's documentation for details on: - Licensing information for the specific type of content and data served via the endpoint. - Stability markers to inform you about development status and change policy, according to [our API version policy](https://www.mediawiki.org/wiki/API_versioning). - Endpoint specific usage limits. * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Wikimedia REST API * * This API provides cacheable and straightforward access to Wikimedia content and data, in machine-readable formats. ### Global Rules - Limit your clients to no more than 200 requests/s to this API. Each API endpoint's documentation may detail more specific usage limits. - Set a unique `User-Agent` or `Api-User-Agent` header that allows us to contact you quickly. Email addresses or URLs of contact pages work well. By using this API, you agree to Wikimedia's [Terms of Use](https://wikimediafoundation.org/wiki/Terms_of_Use) and [Privacy Policy](https://wikimediafoundation.org/wiki/Privacy_policy). Unless otherwise specified in the endpoint documentation below, content accessed via this API is licensed under the [CC-BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/) and [GFDL](https://www.gnu.org/copyleft/fdl.html) licenses, and you irrevocably agree to release modifications or additions made through this API under these licenses. See https://www.mediawiki.org/wiki/REST_API for background and details. ### Endpoint documentation Please consult each endpoint's documentation for details on: - Licensing information for the specific type of content and data served via the endpoint. - Stability markers to inform you about development status and change policy, according to [our API version policy](https://www.mediawiki.org/wiki/API_versioning). - Endpoint specific usage limits. * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Wikimedia REST API * * This API provides cacheable and straightforward access to Wikimedia content and data, in machine-readable formats. ### Global Rules - Limit your clients to no more than 200 requests/s to this API. Each API endpoint's documentation may detail more specific usage limits. - Set a unique `User-Agent` or `Api-User-Agent` header that allows us to contact you quickly. Email addresses or URLs of contact pages work well. By using this API, you agree to Wikimedia's [Terms of Use](https://wikimediafoundation.org/wiki/Terms_of_Use) and [Privacy Policy](https://wikimediafoundation.org/wiki/Privacy_policy). Unless otherwise specified in the endpoint documentation below, content accessed via this API is licensed under the [CC-BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/) and [GFDL](https://www.gnu.org/copyleft/fdl.html) licenses, and you irrevocably agree to release modifications or additions made through this API under these licenses. See https://www.mediawiki.org/wiki/REST_API for background and details. ### Endpoint documentation Please consult each endpoint's documentation for details on: - Licensing information for the specific type of content and data served via the endpoint. - Stability markers to inform you about development status and change policy, according to [our API version policy](https://www.mediawiki.org/wiki/API_versioning). - Endpoint specific usage limits. * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Wikimedia REST API * * This API provides cacheable and straightforward access to Wikimedia content and data, in machine-readable formats. ### Global Rules - Limit your clients to no more than 200 requests/s to this API. Each API endpoint's documentation may detail more specific usage limits. - Set a unique `User-Agent` or `Api-User-Agent` header that allows us to contact you quickly. Email addresses or URLs of contact pages work well. By using this API, you agree to Wikimedia's [Terms of Use](https://wikimediafoundation.org/wiki/Terms_of_Use) and [Privacy Policy](https://wikimediafoundation.org/wiki/Privacy_policy). Unless otherwise specified in the endpoint documentation below, content accessed via this API is licensed under the [CC-BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/) and [GFDL](https://www.gnu.org/copyleft/fdl.html) licenses, and you irrevocably agree to release modifications or additions made through this API under these licenses. See https://www.mediawiki.org/wiki/REST_API for background and details. ### Endpoint documentation Please consult each endpoint's documentation for details on: - Licensing information for the specific type of content and data served via the endpoint. - Stability markers to inform you about development status and change policy, according to [our API version policy](https://www.mediawiki.org/wiki/API_versioning). - Endpoint specific usage limits. * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Wikimedia REST API * * This API provides cacheable and straightforward access to Wikimedia content and data, in machine-readable formats. ### Global Rules - Limit your clients to no more than 200 requests/s to this API. Each API endpoint's documentation may detail more specific usage limits. - Set a unique `User-Agent` or `Api-User-Agent` header that allows us to contact you quickly. Email addresses or URLs of contact pages work well. By using this API, you agree to Wikimedia's [Terms of Use](https://wikimediafoundation.org/wiki/Terms_of_Use) and [Privacy Policy](https://wikimediafoundation.org/wiki/Privacy_policy). Unless otherwise specified in the endpoint documentation below, content accessed via this API is licensed under the [CC-BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/) and [GFDL](https://www.gnu.org/copyleft/fdl.html) licenses, and you irrevocably agree to release modifications or additions made through this API under these licenses. See https://www.mediawiki.org/wiki/REST_API for background and details. ### Endpoint documentation Please consult each endpoint's documentation for details on: - Licensing information for the specific type of content and data served via the endpoint. - Stability markers to inform you about development status and change policy, according to [our API version policy](https://www.mediawiki.org/wiki/API_versioning). - Endpoint specific usage limits. * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Wikimedia REST API * * This API provides cacheable and straightforward access to Wikimedia content and data, in machine-readable formats. ### Global Rules - Limit your clients to no more than 200 requests/s to this API. Each API endpoint's documentation may detail more specific usage limits. - Set a unique `User-Agent` or `Api-User-Agent` header that allows us to contact you quickly. Email addresses or URLs of contact pages work well. By using this API, you agree to Wikimedia's [Terms of Use](https://wikimediafoundation.org/wiki/Terms_of_Use) and [Privacy Policy](https://wikimediafoundation.org/wiki/Privacy_policy). Unless otherwise specified in the endpoint documentation below, content accessed via this API is licensed under the [CC-BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/) and [GFDL](https://www.gnu.org/copyleft/fdl.html) licenses, and you irrevocably agree to release modifications or additions made through this API under these licenses. See https://www.mediawiki.org/wiki/REST_API for background and details. ### Endpoint documentation Please consult each endpoint's documentation for details on: - Licensing information for the specific type of content and data served via the endpoint. - Stability markers to inform you about development status and change policy, according to [our API version policy](https://www.mediawiki.org/wiki/API_versioning). - Endpoint specific usage limits. * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Wikimedia REST API * * This API provides cacheable and straightforward access to Wikimedia content and data, in machine-readable formats. ### Global Rules - Limit your clients to no more than 200 requests/s to this API. Each API endpoint's documentation may detail more specific usage limits. - Set a unique `User-Agent` or `Api-User-Agent` header that allows us to contact you quickly. Email addresses or URLs of contact pages work well. By using this API, you agree to Wikimedia's [Terms of Use](https://wikimediafoundation.org/wiki/Terms_of_Use) and [Privacy Policy](https://wikimediafoundation.org/wiki/Privacy_policy). Unless otherwise specified in the endpoint documentation below, content accessed via this API is licensed under the [CC-BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/) and [GFDL](https://www.gnu.org/copyleft/fdl.html) licenses, and you irrevocably agree to release modifications or additions made through this API under these licenses. See https://www.mediawiki.org/wiki/REST_API for background and details. ### Endpoint documentation Please consult each endpoint's documentation for details on: - Licensing information for the specific type of content and data served via the endpoint. - Stability markers to inform you about development status and change policy, according to [our API version policy](https://www.mediawiki.org/wiki/API_versioning). - Endpoint specific usage limits. * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Wikimedia REST API * * This API provides cacheable and straightforward access to Wikimedia content and data, in machine-readable formats. ### Global Rules - Limit your clients to no more than 200 requests/s to this API. Each API endpoint's documentation may detail more specific usage limits. - Set a unique `User-Agent` or `Api-User-Agent` header that allows us to contact you quickly. Email addresses or URLs of contact pages work well. By using this API, you agree to Wikimedia's [Terms of Use](https://wikimediafoundation.org/wiki/Terms_of_Use) and [Privacy Policy](https://wikimediafoundation.org/wiki/Privacy_policy). Unless otherwise specified in the endpoint documentation below, content accessed via this API is licensed under the [CC-BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/) and [GFDL](https://www.gnu.org/copyleft/fdl.html) licenses, and you irrevocably agree to release modifications or additions made through this API under these licenses. See https://www.mediawiki.org/wiki/REST_API for background and details. ### Endpoint documentation Please consult each endpoint's documentation for details on: - Licensing information for the specific type of content and data served via the endpoint. - Stability markers to inform you about development status and change policy, according to [our API version policy](https://www.mediawiki.org/wiki/API_versioning). - Endpoint specific usage limits. * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Wikimedia REST API * * This API provides cacheable and straightforward access to Wikimedia content and data, in machine-readable formats. ### Global Rules - Limit your clients to no more than 200 requests/s to this API. Each API endpoint's documentation may detail more specific usage limits. - Set a unique `User-Agent` or `Api-User-Agent` header that allows us to contact you quickly. Email addresses or URLs of contact pages work well. By using this API, you agree to Wikimedia's [Terms of Use](https://wikimediafoundation.org/wiki/Terms_of_Use) and [Privacy Policy](https://wikimediafoundation.org/wiki/Privacy_policy). Unless otherwise specified in the endpoint documentation below, content accessed via this API is licensed under the [CC-BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/) and [GFDL](https://www.gnu.org/copyleft/fdl.html) licenses, and you irrevocably agree to release modifications or additions made through this API under these licenses. See https://www.mediawiki.org/wiki/REST_API for background and details. ### Endpoint documentation Please consult each endpoint's documentation for details on: - Licensing information for the specific type of content and data served via the endpoint. - Stability markers to inform you about development status and change policy, according to [our API version policy](https://www.mediawiki.org/wiki/API_versioning). - Endpoint specific usage limits. * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Wikimedia REST API * * This API provides cacheable and straightforward access to Wikimedia content and data, in machine-readable formats. ### Global Rules - Limit your clients to no more than 200 requests/s to this API. Each API endpoint's documentation may detail more specific usage limits. - Set a unique `User-Agent` or `Api-User-Agent` header that allows us to contact you quickly. Email addresses or URLs of contact pages work well. By using this API, you agree to Wikimedia's [Terms of Use](https://wikimediafoundation.org/wiki/Terms_of_Use) and [Privacy Policy](https://wikimediafoundation.org/wiki/Privacy_policy). Unless otherwise specified in the endpoint documentation below, content accessed via this API is licensed under the [CC-BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/) and [GFDL](https://www.gnu.org/copyleft/fdl.html) licenses, and you irrevocably agree to release modifications or additions made through this API under these licenses. See https://www.mediawiki.org/wiki/REST_API for background and details. ### Endpoint documentation Please consult each endpoint's documentation for details on: - Licensing information for the specific type of content and data served via the endpoint. - Stability markers to inform you about development status and change policy, according to [our API version policy](https://www.mediawiki.org/wiki/API_versioning). - Endpoint specific usage limits. * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Wikimedia REST API * * This API provides cacheable and straightforward access to Wikimedia content and data, in machine-readable formats. ### Global Rules - Limit your clients to no more than 200 requests/s to this API. Each API endpoint's documentation may detail more specific usage limits. - Set a unique `User-Agent` or `Api-User-Agent` header that allows us to contact you quickly. Email addresses or URLs of contact pages work well. By using this API, you agree to Wikimedia's [Terms of Use](https://wikimediafoundation.org/wiki/Terms_of_Use) and [Privacy Policy](https://wikimediafoundation.org/wiki/Privacy_policy). Unless otherwise specified in the endpoint documentation below, content accessed via this API is licensed under the [CC-BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/) and [GFDL](https://www.gnu.org/copyleft/fdl.html) licenses, and you irrevocably agree to release modifications or additions made through this API under these licenses. See https://www.mediawiki.org/wiki/REST_API for background and details. ### Endpoint documentation Please consult each endpoint's documentation for details on: - Licensing information for the specific type of content and data served via the endpoint. - Stability markers to inform you about development status and change policy, according to [our API version policy](https://www.mediawiki.org/wiki/API_versioning). - Endpoint specific usage limits. * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Wikimedia REST API * * This API provides cacheable and straightforward access to Wikimedia content and data, in machine-readable formats. ### Global Rules - Limit your clients to no more than 200 requests/s to this API. Each API endpoint's documentation may detail more specific usage limits. - Set a unique `User-Agent` or `Api-User-Agent` header that allows us to contact you quickly. Email addresses or URLs of contact pages work well. By using this API, you agree to Wikimedia's [Terms of Use](https://wikimediafoundation.org/wiki/Terms_of_Use) and [Privacy Policy](https://wikimediafoundation.org/wiki/Privacy_policy). Unless otherwise specified in the endpoint documentation below, content accessed via this API is licensed under the [CC-BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/) and [GFDL](https://www.gnu.org/copyleft/fdl.html) licenses, and you irrevocably agree to release modifications or additions made through this API under these licenses. See https://www.mediawiki.org/wiki/REST_API for background and details. ### Endpoint documentation Please consult each endpoint's documentation for details on: - Licensing information for the specific type of content and data served via the endpoint. - Stability markers to inform you about development status and change policy, according to [our API version policy](https://www.mediawiki.org/wiki/API_versioning). - Endpoint specific usage limits. * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Wikimedia REST API * * This API provides cacheable and straightforward access to Wikimedia content and data, in machine-readable formats. ### Global Rules - Limit your clients to no more than 200 requests/s to this API. Each API endpoint's documentation may detail more specific usage limits. - Set a unique `User-Agent` or `Api-User-Agent` header that allows us to contact you quickly. Email addresses or URLs of contact pages work well. By using this API, you agree to Wikimedia's [Terms of Use](https://wikimediafoundation.org/wiki/Terms_of_Use) and [Privacy Policy](https://wikimediafoundation.org/wiki/Privacy_policy). Unless otherwise specified in the endpoint documentation below, content accessed via this API is licensed under the [CC-BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/) and [GFDL](https://www.gnu.org/copyleft/fdl.html) licenses, and you irrevocably agree to release modifications or additions made through this API under these licenses. See https://www.mediawiki.org/wiki/REST_API for background and details. ### Endpoint documentation Please consult each endpoint's documentation for details on: - Licensing information for the specific type of content and data served via the endpoint. - Stability markers to inform you about development status and change policy, according to [our API version policy](https://www.mediawiki.org/wiki/API_versioning). - Endpoint specific usage limits. * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Wikimedia REST API * * This API provides cacheable and straightforward access to Wikimedia content and data, in machine-readable formats. ### Global Rules - Limit your clients to no more than 200 requests/s to this API. Each API endpoint's documentation may detail more specific usage limits. - Set a unique `User-Agent` or `Api-User-Agent` header that allows us to contact you quickly. Email addresses or URLs of contact pages work well. By using this API, you agree to Wikimedia's [Terms of Use](https://wikimediafoundation.org/wiki/Terms_of_Use) and [Privacy Policy](https://wikimediafoundation.org/wiki/Privacy_policy). Unless otherwise specified in the endpoint documentation below, content accessed via this API is licensed under the [CC-BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/) and [GFDL](https://www.gnu.org/copyleft/fdl.html) licenses, and you irrevocably agree to release modifications or additions made through this API under these licenses. See https://www.mediawiki.org/wiki/REST_API for background and details. ### Endpoint documentation Please consult each endpoint's documentation for details on: - Licensing information for the specific type of content and data served via the endpoint. - Stability markers to inform you about development status and change policy, according to [our API version policy](https://www.mediawiki.org/wiki/API_versioning). - Endpoint specific usage limits. * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Wikimedia REST API * * This API provides cacheable and straightforward access to Wikimedia content and data, in machine-readable formats. ### Global Rules - Limit your clients to no more than 200 requests/s to this API. Each API endpoint's documentation may detail more specific usage limits. - Set a unique `User-Agent` or `Api-User-Agent` header that allows us to contact you quickly. Email addresses or URLs of contact pages work well. By using this API, you agree to Wikimedia's [Terms of Use](https://wikimediafoundation.org/wiki/Terms_of_Use) and [Privacy Policy](https://wikimediafoundation.org/wiki/Privacy_policy). Unless otherwise specified in the endpoint documentation below, content accessed via this API is licensed under the [CC-BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/) and [GFDL](https://www.gnu.org/copyleft/fdl.html) licenses, and you irrevocably agree to release modifications or additions made through this API under these licenses. See https://www.mediawiki.org/wiki/REST_API for background and details. ### Endpoint documentation Please consult each endpoint's documentation for details on: - Licensing information for the specific type of content and data served via the endpoint. - Stability markers to inform you about development status and change policy, according to [our API version policy](https://www.mediawiki.org/wiki/API_versioning). - Endpoint specific usage limits. * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Wikimedia REST API * * This API provides cacheable and straightforward access to Wikimedia content and data, in machine-readable formats. ### Global Rules - Limit your clients to no more than 200 requests/s to this API. Each API endpoint's documentation may detail more specific usage limits. - Set a unique `User-Agent` or `Api-User-Agent` header that allows us to contact you quickly. Email addresses or URLs of contact pages work well. By using this API, you agree to Wikimedia's [Terms of Use](https://wikimediafoundation.org/wiki/Terms_of_Use) and [Privacy Policy](https://wikimediafoundation.org/wiki/Privacy_policy). Unless otherwise specified in the endpoint documentation below, content accessed via this API is licensed under the [CC-BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/) and [GFDL](https://www.gnu.org/copyleft/fdl.html) licenses, and you irrevocably agree to release modifications or additions made through this API under these licenses. See https://www.mediawiki.org/wiki/REST_API for background and details. ### Endpoint documentation Please consult each endpoint's documentation for details on: - Licensing information for the specific type of content and data served via the endpoint. - Stability markers to inform you about development status and change policy, according to [our API version policy](https://www.mediawiki.org/wiki/API_versioning). - Endpoint specific usage limits. * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Wikimedia REST API * * This API provides cacheable and straightforward access to Wikimedia content and data, in machine-readable formats. ### Global Rules - Limit your clients to no more than 200 requests/s to this API. Each API endpoint's documentation may detail more specific usage limits. - Set a unique `User-Agent` or `Api-User-Agent` header that allows us to contact you quickly. Email addresses or URLs of contact pages work well. By using this API, you agree to Wikimedia's [Terms of Use](https://wikimediafoundation.org/wiki/Terms_of_Use) and [Privacy Policy](https://wikimediafoundation.org/wiki/Privacy_policy). Unless otherwise specified in the endpoint documentation below, content accessed via this API is licensed under the [CC-BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/) and [GFDL](https://www.gnu.org/copyleft/fdl.html) licenses, and you irrevocably agree to release modifications or additions made through this API under these licenses. See https://www.mediawiki.org/wiki/REST_API for background and details. ### Endpoint documentation Please consult each endpoint's documentation for details on: - Licensing information for the specific type of content and data served via the endpoint. - Stability markers to inform you about development status and change policy, according to [our API version policy](https://www.mediawiki.org/wiki/API_versioning). - Endpoint specific usage limits. * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Wikimedia REST API * * This API provides cacheable and straightforward access to Wikimedia content and data, in machine-readable formats. ### Global Rules - Limit your clients to no more than 200 requests/s to this API. Each API endpoint's documentation may detail more specific usage limits. - Set a unique `User-Agent` or `Api-User-Agent` header that allows us to contact you quickly. Email addresses or URLs of contact pages work well. By using this API, you agree to Wikimedia's [Terms of Use](https://wikimediafoundation.org/wiki/Terms_of_Use) and [Privacy Policy](https://wikimediafoundation.org/wiki/Privacy_policy). Unless otherwise specified in the endpoint documentation below, content accessed via this API is licensed under the [CC-BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/) and [GFDL](https://www.gnu.org/copyleft/fdl.html) licenses, and you irrevocably agree to release modifications or additions made through this API under these licenses. See https://www.mediawiki.org/wiki/REST_API for background and details. ### Endpoint documentation Please consult each endpoint's documentation for details on: - Licensing information for the specific type of content and data served via the endpoint. - Stability markers to inform you about development status and change policy, according to [our API version policy](https://www.mediawiki.org/wiki/API_versioning). - Endpoint specific usage limits. * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Wikimedia REST API * * This API provides cacheable and straightforward access to Wikimedia content and data, in machine-readable formats. ### Global Rules - Limit your clients to no more than 200 requests/s to this API. Each API endpoint's documentation may detail more specific usage limits. - Set a unique `User-Agent` or `Api-User-Agent` header that allows us to contact you quickly. Email addresses or URLs of contact pages work well. By using this API, you agree to Wikimedia's [Terms of Use](https://wikimediafoundation.org/wiki/Terms_of_Use) and [Privacy Policy](https://wikimediafoundation.org/wiki/Privacy_policy). Unless otherwise specified in the endpoint documentation below, content accessed via this API is licensed under the [CC-BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/) and [GFDL](https://www.gnu.org/copyleft/fdl.html) licenses, and you irrevocably agree to release modifications or additions made through this API under these licenses. See https://www.mediawiki.org/wiki/REST_API for background and details. ### Endpoint documentation Please consult each endpoint's documentation for details on: - Licensing information for the specific type of content and data served via the endpoint. - Stability markers to inform you about development status and change policy, according to [our API version policy](https://www.mediawiki.org/wiki/API_versioning). - Endpoint specific usage limits. * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Wikimedia REST API * * This API provides cacheable and straightforward access to Wikimedia content and data, in machine-readable formats. ### Global Rules - Limit your clients to no more than 200 requests/s to this API. Each API endpoint's documentation may detail more specific usage limits. - Set a unique `User-Agent` or `Api-User-Agent` header that allows us to contact you quickly. Email addresses or URLs of contact pages work well. By using this API, you agree to Wikimedia's [Terms of Use](https://wikimediafoundation.org/wiki/Terms_of_Use) and [Privacy Policy](https://wikimediafoundation.org/wiki/Privacy_policy). Unless otherwise specified in the endpoint documentation below, content accessed via this API is licensed under the [CC-BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/) and [GFDL](https://www.gnu.org/copyleft/fdl.html) licenses, and you irrevocably agree to release modifications or additions made through this API under these licenses. See https://www.mediawiki.org/wiki/REST_API for background and details. ### Endpoint documentation Please consult each endpoint's documentation for details on: - Licensing information for the specific type of content and data served via the endpoint. - Stability markers to inform you about development status and change policy, according to [our API version policy](https://www.mediawiki.org/wiki/API_versioning). - Endpoint specific usage limits. * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Wikimedia REST API * * This API provides cacheable and straightforward access to Wikimedia content and data, in machine-readable formats. ### Global Rules - Limit your clients to no more than 200 requests/s to this API. Each API endpoint's documentation may detail more specific usage limits. - Set a unique `User-Agent` or `Api-User-Agent` header that allows us to contact you quickly. Email addresses or URLs of contact pages work well. By using this API, you agree to Wikimedia's [Terms of Use](https://wikimediafoundation.org/wiki/Terms_of_Use) and [Privacy Policy](https://wikimediafoundation.org/wiki/Privacy_policy). Unless otherwise specified in the endpoint documentation below, content accessed via this API is licensed under the [CC-BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/) and [GFDL](https://www.gnu.org/copyleft/fdl.html) licenses, and you irrevocably agree to release modifications or additions made through this API under these licenses. See https://www.mediawiki.org/wiki/REST_API for background and details. ### Endpoint documentation Please consult each endpoint's documentation for details on: - Licensing information for the specific type of content and data served via the endpoint. - Stability markers to inform you about development status and change policy, according to [our API version policy](https://www.mediawiki.org/wiki/API_versioning). - Endpoint specific usage limits. * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Wikimedia REST API * * This API provides cacheable and straightforward access to Wikimedia content and data, in machine-readable formats. ### Global Rules - Limit your clients to no more than 200 requests/s to this API. Each API endpoint's documentation may detail more specific usage limits. - Set a unique `User-Agent` or `Api-User-Agent` header that allows us to contact you quickly. Email addresses or URLs of contact pages work well. By using this API, you agree to Wikimedia's [Terms of Use](https://wikimediafoundation.org/wiki/Terms_of_Use) and [Privacy Policy](https://wikimediafoundation.org/wiki/Privacy_policy). Unless otherwise specified in the endpoint documentation below, content accessed via this API is licensed under the [CC-BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/) and [GFDL](https://www.gnu.org/copyleft/fdl.html) licenses, and you irrevocably agree to release modifications or additions made through this API under these licenses. See https://www.mediawiki.org/wiki/REST_API for background and details. ### Endpoint documentation Please consult each endpoint's documentation for details on: - Licensing information for the specific type of content and data served via the endpoint. - Stability markers to inform you about development status and change policy, according to [our API version policy](https://www.mediawiki.org/wiki/API_versioning). - Endpoint specific usage limits. * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Wikimedia REST API * * This API provides cacheable and straightforward access to Wikimedia content and data, in machine-readable formats. ### Global Rules - Limit your clients to no more than 200 requests/s to this API. Each API endpoint's documentation may detail more specific usage limits. - Set a unique `User-Agent` or `Api-User-Agent` header that allows us to contact you quickly. Email addresses or URLs of contact pages work well. By using this API, you agree to Wikimedia's [Terms of Use](https://wikimediafoundation.org/wiki/Terms_of_Use) and [Privacy Policy](https://wikimediafoundation.org/wiki/Privacy_policy). Unless otherwise specified in the endpoint documentation below, content accessed via this API is licensed under the [CC-BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/) and [GFDL](https://www.gnu.org/copyleft/fdl.html) licenses, and you irrevocably agree to release modifications or additions made through this API under these licenses. See https://www.mediawiki.org/wiki/REST_API for background and details. ### Endpoint documentation Please consult each endpoint's documentation for details on: - Licensing information for the specific type of content and data served via the endpoint. - Stability markers to inform you about development status and change policy, according to [our API version policy](https://www.mediawiki.org/wiki/API_versioning). - Endpoint specific usage limits. * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Wikimedia REST API * * This API provides cacheable and straightforward access to Wikimedia content and data, in machine-readable formats. ### Global Rules - Limit your clients to no more than 200 requests/s to this API. Each API endpoint's documentation may detail more specific usage limits. - Set a unique `User-Agent` or `Api-User-Agent` header that allows us to contact you quickly. Email addresses or URLs of contact pages work well. By using this API, you agree to Wikimedia's [Terms of Use](https://wikimediafoundation.org/wiki/Terms_of_Use) and [Privacy Policy](https://wikimediafoundation.org/wiki/Privacy_policy). Unless otherwise specified in the endpoint documentation below, content accessed via this API is licensed under the [CC-BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/) and [GFDL](https://www.gnu.org/copyleft/fdl.html) licenses, and you irrevocably agree to release modifications or additions made through this API under these licenses. See https://www.mediawiki.org/wiki/REST_API for background and details. ### Endpoint documentation Please consult each endpoint's documentation for details on: - Licensing information for the specific type of content and data served via the endpoint. - Stability markers to inform you about development status and change policy, according to [our API version policy](https://www.mediawiki.org/wiki/API_versioning). - Endpoint specific usage limits. * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Wikimedia REST API * * This API provides cacheable and straightforward access to Wikimedia content and data, in machine-readable formats. ### Global Rules - Limit your clients to no more than 200 requests/s to this API. Each API endpoint's documentation may detail more specific usage limits. - Set a unique `User-Agent` or `Api-User-Agent` header that allows us to contact you quickly. Email addresses or URLs of contact pages work well. By using this API, you agree to Wikimedia's [Terms of Use](https://wikimediafoundation.org/wiki/Terms_of_Use) and [Privacy Policy](https://wikimediafoundation.org/wiki/Privacy_policy). Unless otherwise specified in the endpoint documentation below, content accessed via this API is licensed under the [CC-BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/) and [GFDL](https://www.gnu.org/copyleft/fdl.html) licenses, and you irrevocably agree to release modifications or additions made through this API under these licenses. See https://www.mediawiki.org/wiki/REST_API for background and details. ### Endpoint documentation Please consult each endpoint's documentation for details on: - Licensing information for the specific type of content and data served via the endpoint. - Stability markers to inform you about development status and change policy, according to [our API version policy](https://www.mediawiki.org/wiki/API_versioning). - Endpoint specific usage limits. * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Wikimedia REST API * * This API provides cacheable and straightforward access to Wikimedia content and data, in machine-readable formats. ### Global Rules - Limit your clients to no more than 200 requests/s to this API. Each API endpoint's documentation may detail more specific usage limits. - Set a unique `User-Agent` or `Api-User-Agent` header that allows us to contact you quickly. Email addresses or URLs of contact pages work well. By using this API, you agree to Wikimedia's [Terms of Use](https://wikimediafoundation.org/wiki/Terms_of_Use) and [Privacy Policy](https://wikimediafoundation.org/wiki/Privacy_policy). Unless otherwise specified in the endpoint documentation below, content accessed via this API is licensed under the [CC-BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/) and [GFDL](https://www.gnu.org/copyleft/fdl.html) licenses, and you irrevocably agree to release modifications or additions made through this API under these licenses. See https://www.mediawiki.org/wiki/REST_API for background and details. ### Endpoint documentation Please consult each endpoint's documentation for details on: - Licensing information for the specific type of content and data served via the endpoint. - Stability markers to inform you about development status and change policy, according to [our API version policy](https://www.mediawiki.org/wiki/API_versioning). - Endpoint specific usage limits. * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Wikimedia REST API * * This API provides cacheable and straightforward access to Wikimedia content and data, in machine-readable formats. ### Global Rules - Limit your clients to no more than 200 requests/s to this API. Each API endpoint's documentation may detail more specific usage limits. - Set a unique `User-Agent` or `Api-User-Agent` header that allows us to contact you quickly. Email addresses or URLs of contact pages work well. By using this API, you agree to Wikimedia's [Terms of Use](https://wikimediafoundation.org/wiki/Terms_of_Use) and [Privacy Policy](https://wikimediafoundation.org/wiki/Privacy_policy). Unless otherwise specified in the endpoint documentation below, content accessed via this API is licensed under the [CC-BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/) and [GFDL](https://www.gnu.org/copyleft/fdl.html) licenses, and you irrevocably agree to release modifications or additions made through this API under these licenses. See https://www.mediawiki.org/wiki/REST_API for background and details. ### Endpoint documentation Please consult each endpoint's documentation for details on: - Licensing information for the specific type of content and data served via the endpoint. - Stability markers to inform you about development status and change policy, according to [our API version policy](https://www.mediawiki.org/wiki/API_versioning). - Endpoint specific usage limits. * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Wikimedia REST API * * This API provides cacheable and straightforward access to Wikimedia content and data, in machine-readable formats. ### Global Rules - Limit your clients to no more than 200 requests/s to this API. Each API endpoint's documentation may detail more specific usage limits. - Set a unique `User-Agent` or `Api-User-Agent` header that allows us to contact you quickly. Email addresses or URLs of contact pages work well. By using this API, you agree to Wikimedia's [Terms of Use](https://wikimediafoundation.org/wiki/Terms_of_Use) and [Privacy Policy](https://wikimediafoundation.org/wiki/Privacy_policy). Unless otherwise specified in the endpoint documentation below, content accessed via this API is licensed under the [CC-BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/) and [GFDL](https://www.gnu.org/copyleft/fdl.html) licenses, and you irrevocably agree to release modifications or additions made through this API under these licenses. See https://www.mediawiki.org/wiki/REST_API for background and details. ### Endpoint documentation Please consult each endpoint's documentation for details on: - Licensing information for the specific type of content and data served via the endpoint. - Stability markers to inform you about development status and change policy, according to [our API version policy](https://www.mediawiki.org/wiki/API_versioning). - Endpoint specific usage limits. * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Wikimedia REST API * * This API provides cacheable and straightforward access to Wikimedia content and data, in machine-readable formats. ### Global Rules - Limit your clients to no more than 200 requests/s to this API. Each API endpoint's documentation may detail more specific usage limits. - Set a unique `User-Agent` or `Api-User-Agent` header that allows us to contact you quickly. Email addresses or URLs of contact pages work well. By using this API, you agree to Wikimedia's [Terms of Use](https://wikimediafoundation.org/wiki/Terms_of_Use) and [Privacy Policy](https://wikimediafoundation.org/wiki/Privacy_policy). Unless otherwise specified in the endpoint documentation below, content accessed via this API is licensed under the [CC-BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/) and [GFDL](https://www.gnu.org/copyleft/fdl.html) licenses, and you irrevocably agree to release modifications or additions made through this API under these licenses. See https://www.mediawiki.org/wiki/REST_API for background and details. ### Endpoint documentation Please consult each endpoint's documentation for details on: - Licensing information for the specific type of content and data served via the endpoint. - Stability markers to inform you about development status and change policy, according to [our API version policy](https://www.mediawiki.org/wiki/API_versioning). - Endpoint specific usage limits. * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Wikimedia REST API * * This API provides cacheable and straightforward access to Wikimedia content and data, in machine-readable formats. ### Global Rules - Limit your clients to no more than 200 requests/s to this API. Each API endpoint's documentation may detail more specific usage limits. - Set a unique `User-Agent` or `Api-User-Agent` header that allows us to contact you quickly. Email addresses or URLs of contact pages work well. By using this API, you agree to Wikimedia's [Terms of Use](https://wikimediafoundation.org/wiki/Terms_of_Use) and [Privacy Policy](https://wikimediafoundation.org/wiki/Privacy_policy). Unless otherwise specified in the endpoint documentation below, content accessed via this API is licensed under the [CC-BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/) and [GFDL](https://www.gnu.org/copyleft/fdl.html) licenses, and you irrevocably agree to release modifications or additions made through this API under these licenses. See https://www.mediawiki.org/wiki/REST_API for background and details. ### Endpoint documentation Please consult each endpoint's documentation for details on: - Licensing information for the specific type of content and data served via the endpoint. - Stability markers to inform you about development status and change policy, according to [our API version policy](https://www.mediawiki.org/wiki/API_versioning). - Endpoint specific usage limits. * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Wikimedia REST API * * This API provides cacheable and straightforward access to Wikimedia content and data, in machine-readable formats. ### Global Rules - Limit your clients to no more than 200 requests/s to this API. Each API endpoint's documentation may detail more specific usage limits. - Set a unique `User-Agent` or `Api-User-Agent` header that allows us to contact you quickly. Email addresses or URLs of contact pages work well. By using this API, you agree to Wikimedia's [Terms of Use](https://wikimediafoundation.org/wiki/Terms_of_Use) and [Privacy Policy](https://wikimediafoundation.org/wiki/Privacy_policy). Unless otherwise specified in the endpoint documentation below, content accessed via this API is licensed under the [CC-BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/) and [GFDL](https://www.gnu.org/copyleft/fdl.html) licenses, and you irrevocably agree to release modifications or additions made through this API under these licenses. See https://www.mediawiki.org/wiki/REST_API for background and details. ### Endpoint documentation Please consult each endpoint's documentation for details on: - Licensing information for the specific type of content and data served via the endpoint. - Stability markers to inform you about development status and change policy, according to [our API version policy](https://www.mediawiki.org/wiki/API_versioning). - Endpoint specific usage limits. * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Wikimedia REST API * * This API provides cacheable and straightforward access to Wikimedia content and data, in machine-readable formats. ### Global Rules - Limit your clients to no more than 200 requests/s to this API. Each API endpoint's documentation may detail more specific usage limits. - Set a unique `User-Agent` or `Api-User-Agent` header that allows us to contact you quickly. Email addresses or URLs of contact pages work well. By using this API, you agree to Wikimedia's [Terms of Use](https://wikimediafoundation.org/wiki/Terms_of_Use) and [Privacy Policy](https://wikimediafoundation.org/wiki/Privacy_policy). Unless otherwise specified in the endpoint documentation below, content accessed via this API is licensed under the [CC-BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/) and [GFDL](https://www.gnu.org/copyleft/fdl.html) licenses, and you irrevocably agree to release modifications or additions made through this API under these licenses. See https://www.mediawiki.org/wiki/REST_API for background and details. ### Endpoint documentation Please consult each endpoint's documentation for details on: - Licensing information for the specific type of content and data served via the endpoint. - Stability markers to inform you about development status and change policy, according to [our API version policy](https://www.mediawiki.org/wiki/API_versioning). - Endpoint specific usage limits. * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Wikimedia REST API * * This API provides cacheable and straightforward access to Wikimedia content and data, in machine-readable formats. ### Global Rules - Limit your clients to no more than 200 requests/s to this API. Each API endpoint's documentation may detail more specific usage limits. - Set a unique `User-Agent` or `Api-User-Agent` header that allows us to contact you quickly. Email addresses or URLs of contact pages work well. By using this API, you agree to Wikimedia's [Terms of Use](https://wikimediafoundation.org/wiki/Terms_of_Use) and [Privacy Policy](https://wikimediafoundation.org/wiki/Privacy_policy). Unless otherwise specified in the endpoint documentation below, content accessed via this API is licensed under the [CC-BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/) and [GFDL](https://www.gnu.org/copyleft/fdl.html) licenses, and you irrevocably agree to release modifications or additions made through this API under these licenses. See https://www.mediawiki.org/wiki/REST_API for background and details. ### Endpoint documentation Please consult each endpoint's documentation for details on: - Licensing information for the specific type of content and data served via the endpoint. - Stability markers to inform you about development status and change policy, according to [our API version policy](https://www.mediawiki.org/wiki/API_versioning). - Endpoint specific usage limits. * * API version: 1.0.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

Index

Constants

This section is empty.

Variables

View Source
var (
	// ContextOAuth2 takes a oauth2.TokenSource as authentication for the request.
	ContextOAuth2 = contextKey("token")

	// ContextBasicAuth takes BasicAuth as authentication for the request.
	ContextBasicAuth = contextKey("basic")

	// ContextAccessToken takes a string oauth2 access token as authentication for the request.
	ContextAccessToken = contextKey("accesstoken")

	// ContextAPIKey takes an APIKey as authentication for the request
	ContextAPIKey = contextKey("apikey")
)

Functions

func CacheExpires

func CacheExpires(r *http.Response) time.Time

CacheExpires helper function to determine remaining time before repeating a request.

Types

type APIClient

type APIClient struct {
	CitationApi *CitationApiService

	FeedApi *FeedApiService

	MathApi *MathApiService

	MobileApi *MobileApiService

	OfflineApi *OfflineApiService

	PageContentApi *PageContentApiService

	ReadingListsApi *ReadingListsApiService

	RecommendationApi *RecommendationApiService

	TalkPagesApi *TalkPagesApiService

	TransformsApi *TransformsApiService
	// contains filtered or unexported fields
}

APIClient manages communication with the Wikimedia REST API API v1.0.0 In most cases there should be only one, shared, APIClient.

func NewAPIClient

func NewAPIClient(cfg *Configuration) *APIClient

NewAPIClient creates a new API client. Requires a userAgent string describing your application. optionally a custom http.Client to allow for advanced features such as caching.

func (*APIClient) ChangeBasePath

func (c *APIClient) ChangeBasePath(path string)

Change base path to allow switching to mocks

type APIKey

type APIKey struct {
	Key    string
	Prefix string
}

APIKey provides API key based authentication to a request passed via context using ContextAPIKey

type APIResponse

type APIResponse struct {
	*http.Response `json:"-"`
	Message        string `json:"message,omitempty"`
	// Operation is the name of the swagger operation.
	Operation string `json:"operation,omitempty"`
	// RequestURL is the request URL. This value is always available, even if the
	// embedded *http.Response is nil.
	RequestURL string `json:"url,omitempty"`
	// Method is the HTTP method used for the request.  This value is always
	// available, even if the embedded *http.Response is nil.
	Method string `json:"method,omitempty"`
	// Payload holds the contents of the response body (which may be nil or empty).
	// This is provided here as the raw response.Body() reader will have already
	// been drained.
	Payload []byte `json:"-"`
}

func NewAPIResponse

func NewAPIResponse(r *http.Response) *APIResponse

func NewAPIResponseWithError

func NewAPIResponseWithError(errorMessage string) *APIResponse

type Action

type Action struct {
	// The title to display on the button that performs the action
	Title string `json:"title"`
	// The URL to navigate to when the button is pressed
	Url string `json:"url"`
}

type Announcement

type Announcement struct {
	// Unique ID of the announcement
	Id string `json:"id"`
	// The type of announcement. Possible values are \"survey\" or \"fundraising\"
	Type_ string `json:"type"`
	// The date to begin showing the announcement
	StartTime string `json:"start_time"`
	// The date to stop showing the announcement
	EndTime string `json:"end_time"`
	// An array of platforms to display the announcement. Possible values are \"iOSApp\" or \"AndroidApp\"
	Platforms []string `json:"platforms"`
	// The text of the announcement
	Text string `json:"text"`
	// The URL of the image for the announcement
	Image  string  `json:"image,omitempty"`
	Action *Action `json:"action,omitempty"`
	// HTML to display below the announcement. Usually a privacy statment and link to a policy
	CaptionHTML string `json:"caption_HTML,omitempty"`
	// An array of country codes in which to display the announcement. Clients should derive the country from 'GeoIP' portion of the Set-Cookie header
	Countries []string `json:"countries"`
}

type AnnouncementsResponse

type AnnouncementsResponse struct {
	Announce []Announcement `json:"announce"`
}

type BasicAuth

type BasicAuth struct {
	UserName string `json:"userName,omitempty"`
	Password string `json:"password,omitempty"`
}

BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth

type Batch

type Batch struct {
	Batch []ListWrite `json:"batch"`
}

type CheckTypeBody

type CheckTypeBody struct {
	// The formula to check
	Q string `json:"q"`
}

type CitationApiGetCitationOpts

type CitationApiGetCitationOpts struct {
	AcceptLanguage optional.String
}

type CitationApiService

type CitationApiService service

func (*CitationApiService) GetCitation

func (a *CitationApiService) GetCitation(ctx context.Context, format string, query string, localVarOptionals *CitationApiGetCitationOpts) (Result, *http.Response, error)

type Configuration

type Configuration struct {
	BasePath      string            `json:"basePath,omitempty"`
	Host          string            `json:"host,omitempty"`
	Scheme        string            `json:"scheme,omitempty"`
	DefaultHeader map[string]string `json:"defaultHeader,omitempty"`
	UserAgent     string            `json:"userAgent,omitempty"`
	HTTPClient    *http.Client
}

func NewConfiguration

func NewConfiguration() *Configuration

func (*Configuration) AddDefaultHeader

func (c *Configuration) AddDefaultHeader(key string, value string)

type CxDict

type CxDict struct {
	// the original word to look up
	Source string `json:"source,omitempty"`
	// the translations found
	Translations []CxDictTranslations `json:"translations,omitempty"`
}

type CxDictTranslations

type CxDictTranslations struct {
	// the translated phrase
	Phrase string `json:"phrase,omitempty"`
	// extra information about the phrase
	Info string `json:"info,omitempty"`
	// the source dictionary used for the translation
	Sources string `json:"sources,omitempty"`
}

type CxMt

type CxMt struct {
	// the translated content
	Contents string `json:"contents,omitempty"`
}

type DataParsoid

type DataParsoid struct {
	Counter int32        `json:"counter"`
	Ids     *interface{} `json:"ids"`
}

Result format for Parsoid data queries

type EntriesBatchBody

type EntriesBatchBody struct {
	Batch []ListEntryWrite `json:"batch"`
}

type Feed

type Feed struct {
	Tfa       *Summary          `json:"tfa,omitempty"`
	Mostread  *Mostread         `json:"mostread,omitempty"`
	News      *[]NewsItem       `json:"news,omitempty"`
	Image     *Image            `json:"image,omitempty"`
	Onthisday *[]OnthisdayInner `json:"onthisday,omitempty"`
}

Aggregated feed content for a given date

type FeedApiService

type FeedApiService service

func (*FeedApiService) AggregatedFeed

func (a *FeedApiService) AggregatedFeed(ctx context.Context, yyyy string, mm string, dd string) (Feed, *http.Response, error)

FeedApiService Aggregated featured content Provides the aggregated feed content for the given date. The endpoint returns the featured article of the day, most read articles for the previous day, news content and the featured image and video of the day. Stability: [unstable](https://www.mediawiki.org/wiki/API_versioning#Unstable)

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param yyyy Year the aggregated content is requested for
  • @param mm Month the aggregated content is requested for, 0-padded
  • @param dd Day of the month the aggregated content is requested for, 0-padded

@return Feed

func (*FeedApiService) FeedAnnouncementsGet

func (a *FeedApiService) FeedAnnouncementsGet(ctx context.Context) (AnnouncementsResponse, *http.Response, error)

FeedApiService Current announcements to display Gets announcements for display in the official Wikipedia iOS and Android apps. Stability: [experimental](https://www.mediawiki.org/wiki/API_versioning#Experimental)

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().

@return AnnouncementsResponse

func (*FeedApiService) OnThisDay

func (a *FeedApiService) OnThisDay(ctx context.Context, type_ string, mm string, dd string) (OnthisdayResponse, *http.Response, error)

FeedApiService Events on this day Provides events that historically happened on the provided day and month. Supported types of events are: - All: all of the following - Selected: a list of a few selected anniversaries which occur on the provided day and month; often the entries are curated for the current year - Births: a list of birthdays which happened on the provided day and month - Deaths: a list of deaths which happened on the provided day and month - Holidays: a list of fixed holidays celebrated on the provided day and month - Events: a list of significant events which happened on the provided day and month and which are not covered by the other types yet Stability: [experimental](https://www.mediawiki.org/wiki/API_versioning#Experimental)

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param type_ Type of events
  • @param mm Month events are requested for, 0-padded
  • @param dd Day of the month events are requested for, 0-padded

@return OnthisdayResponse

type FromFromBody

type FromFromBody struct {
	// The HTML content to translate
	Html string `json:"html"`
}

type FromProviderBody

type FromProviderBody struct {
	// The HTML content to translate
	Html string `json:"html"`
}

type GenericSwaggerError

type GenericSwaggerError struct {
	// contains filtered or unexported fields
}

GenericSwaggerError Provides access to the body, error and model on returned errors.

func (GenericSwaggerError) Body

func (e GenericSwaggerError) Body() []byte

Body returns the raw bytes of the response

func (GenericSwaggerError) Error

func (e GenericSwaggerError) Error() string

Error returns non-empty string if there was an error.

func (GenericSwaggerError) Model

func (e GenericSwaggerError) Model() interface{}

Model returns the unpacked model of the error

type HtmlTitleBody

type HtmlTitleBody struct {
	// ETag header of the revision the edit is based on. Should be supplied for all existing pages to ensure clean round-tripping.
	BaseEtag string `json:"base_etag,omitempty"`
	// HTML of the page to save.
	Html string `json:"html"`
	// CSRF edit token provided by the MW API.
	CsrfToken string `json:"csrf_token"`
	// Comment summarizing the change.
	Comment string `json:"comment,omitempty"`
	// Flag indicating a minor change.
	IsMinor bool `json:"is_minor,omitempty"`
	// Flag indicating a bot edit.
	IsBot bool `json:"is_bot,omitempty"`
}

type HtmlTitleBody1

type HtmlTitleBody1 struct {
	// The Wikitext to transform to HTML
	Wikitext string `json:"wikitext"`
	// Return only `body.innerHTML`
	BodyOnly bool `json:"body_only,omitempty"`
	// Whether to temporarily stash the result of the transformation
	Stash bool `json:"stash,omitempty"`
}

type Image

type Image struct {
	// Image title
	Title       string            `json:"title"`
	Thumbnail   *Thumbnail        `json:"thumbnail"`
	Image       *Thumbnail        `json:"image"`
	Description *ImageDescription `json:"description,omitempty"`
}

type ImageDescription

type ImageDescription struct {
	// Text of the description
	Text string `json:"text"`
	// Language code of the description
	Lang string `json:"lang"`
}

type InlineResponse200

type InlineResponse200 struct {
	// The source language of the page
	SourceLanguage string `json:"sourceLanguage,omitempty"`
	// The title of the segmented page returned
	Title string `json:"title,omitempty"`
	// The revision ID of the segmented page
	Revision int32 `json:"revision,omitempty"`
	// The segmented HTML body of the contents of the page
	SegmentedContent string `json:"segmentedContent,omitempty"`
}

type InlineResponse2001

type InlineResponse2001 struct {
	Lists []ListRead `json:"lists,omitempty"`
	// Continuation token.
	Next string `json:"next,omitempty"`
	// Timestamp to sync from, to be used with the `GET /lists/changes/since/{date}` endpoint.
	ContinueFrom time.Time `json:"continue-from,omitempty"`
}

type InlineResponse2002

type InlineResponse2002 struct {
	// List ID.  Deprecated, will be removed. Use the full list object.
	Id   int32     `json:"id"`
	List *ListRead `json:"list"`
}

type InlineResponse2003

type InlineResponse2003 struct {
	Entries []ListEntryRead `json:"entries,omitempty"`
	// Continuation token.
	Next string `json:"next,omitempty"`
}

type InlineResponse2004

type InlineResponse2004 struct {
	// List entry ID  Deprecated, will be removed. Use the full entry object instead.
	Id    int32          `json:"id"`
	Entry *ListEntryRead `json:"entry"`
}

type InlineResponse2005

type InlineResponse2005 struct {
	Batch   []InlineResponse2005Batch `json:"batch"`
	Entries []ListEntryRead           `json:"entries"`
}

type InlineResponse2005Batch

type InlineResponse2005Batch struct {
	// List entry ID
	Id int32 `json:"id,omitempty"`
}

type InlineResponse2006

type InlineResponse2006 struct {
	Lists []ListRead `json:"lists,omitempty"`
	// Continuation token.
	Next string `json:"next,omitempty"`
}

type LintTitleBody

type LintTitleBody struct {
	// The Wikitext to check
	Wikitext string `json:"wikitext"`
}

type ListCreateBatch

type ListCreateBatch struct {
	// Deprecated, will be removed. Use the full list objects instead.
	Batch []ListId   `json:"batch"`
	Lists []ListRead `json:"lists"`
}

type ListEntryRead

type ListEntryRead struct {
	Id int32 `json:"id,omitempty"`
	// Domain of the wiki containing the page.
	Project string `json:"project,omitempty"`
	// Title of the page containing the page, in database format.
	Title string `json:"title,omitempty"`
	// Creation date (in ISO 8601)
	Created time.Time `json:"created,omitempty"`
	// Last modification date (in ISO 8601)
	Updated time.Time `json:"updated,omitempty"`
}

type ListEntryWrite

type ListEntryWrite struct {
	// Domain of the wiki containing the page.
	Project string `json:"project"`
	// Title of the page containing the page, in database format.
	Title string `json:"title"`
}

type ListId

type ListId struct {
	// List ID
	Id int32 `json:"id"`
}

type ListRead

type ListRead struct {
	Id          int32  `json:"id"`
	Name        string `json:"name"`
	Description string `json:"description,omitempty"`
	// Creation date (in ISO 8601)
	Created time.Time `json:"created"`
	// Last modification date (in ISO 8601)
	Updated time.Time `json:"updated"`
}

type ListWrite

type ListWrite struct {
	Name        string `json:"name"`
	Description string `json:"description,omitempty"`
}

type Listing

type Listing struct {
	Items []string      `json:"items"`
	Links *ListingLinks `json:"_links,omitempty"`
}

The result format for listings

type ListingLinks struct {
	Next *ListingLinksNext `json:"next,omitempty"`
}

type ListingLinksNext

type ListingLinksNext struct {
	// Relative link to next result page.
	Href string `json:"href,omitempty"`
}

type MathApiService

type MathApiService service

func (*MathApiService) MediaMathCheckTypePost

func (a *MathApiService) MediaMathCheckTypePost(ctx context.Context, q string, type_ string) (interface{}, *http.Response, error)

MathApiService Check and normalize a TeX formula. Checks the supplied TeX formula for correctness and returns the normalised formula representation as well as information about identifiers. Available types are tex and inline-tex. The response contains the `x-resource-location` header which can be used to retrieve the render of the checked formula in one of the supported rendering formats. Just append the value of the header to `/media/math/{format}/` and perform a GET request against that URL. Stability: [stable](https://www.mediawiki.org/wiki/API_versioning#Stable).

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param q
  • @param type_ The input type of the given formula; can be tex or inline-tex

@return interface{}

func (*MathApiService) MediaMathFormulaHashGet

func (a *MathApiService) MediaMathFormulaHashGet(ctx context.Context, hash string) (interface{}, *http.Response, error)

MathApiService Get a previously-stored formula Returns the previously-stored formula via `/media/math/check/{type}` for the given hash. Stability: [stable](https://www.mediawiki.org/wiki/API_versioning#Stable).

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param hash The hash string of the previous POST data

@return interface{}

func (*MathApiService) MediaMathRenderFormatHashGet

func (a *MathApiService) MediaMathRenderFormatHashGet(ctx context.Context, format string, hash string) (string, *http.Response, error)

MathApiService Get rendered formula in the given format. Given a request hash, renders a TeX formula into its mathematic representation in the given format. When a request is issued to the `/media/math/check/{format}` POST endpoint, the response contains the `x-resource-location` header denoting the hash ID of the POST data. Once obtained, this endpoint has to be used to obtain the actual render. Stability: [stable](https://www.mediawiki.org/wiki/API_versioning#Stable).

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param format The output format; can be svg or mml
  • @param hash The hash string of the previous POST data

@return string

type MediaItem

type MediaItem struct {
	// The file page title
	Title string `json:"title,omitempty"`
	Type_ string `json:"type"`
	// section ID in which the item is found on the page
	SectionId int32 `json:"section_id"`
	// whether the client should show the file in an image gallery presentation
	ShowInGallery bool               `json:"showInGallery"`
	Caption       *MediaItemCaption  `json:"caption,omitempty"`
	Original      *MediaItemOriginal `json:"original,omitempty"`
}

type MediaItemCaption

type MediaItemCaption struct {
	// on-wiki caption for the media item, including all HTML markup
	Html string `json:"html,omitempty"`
	// plain text of the on-wiki caption for the media item
	Text string `json:"text,omitempty"`
}

type MediaItemOriginal

type MediaItemOriginal struct {
	// Mathoid image render URL
	Source string `json:"source,omitempty"`
	// the Mathoid image mime type
	Mime string `json:"mime,omitempty"`
}

reference to a Mathoid-rendered math formula image

type MediaList

type MediaList struct {
	// the revision ID used to create the list
	Revision string `json:"revision"`
	// the time uuid of the page rendering used to create the list
	Tid string `json:"tid"`
	// a list of media items
	Items []MediaItem `json:"items"`
}

type MobileApiGetSectionsLeadOpts

type MobileApiGetSectionsLeadOpts struct {
	Redirect       optional.Bool
	AcceptLanguage optional.String
}

type MobileApiGetSectionsLeadWithRevisionOpts

type MobileApiGetSectionsLeadWithRevisionOpts struct {
	Redirect       optional.Bool
	AcceptLanguage optional.String
}

type MobileApiGetSectionsOpts

type MobileApiGetSectionsOpts struct {
	Redirect       optional.Bool
	AcceptLanguage optional.String
}

type MobileApiGetSectionsRemainingOpts

type MobileApiGetSectionsRemainingOpts struct {
	Redirect       optional.Bool
	AcceptLanguage optional.String
}

type MobileApiGetSectionsRemainingWithRevisionOpts

type MobileApiGetSectionsRemainingWithRevisionOpts struct {
	Redirect       optional.Bool
	AcceptLanguage optional.String
}

type MobileApiGetSectionsWithRevisionOpts

type MobileApiGetSectionsWithRevisionOpts struct {
	Redirect       optional.Bool
	AcceptLanguage optional.String
}

type MobileApiService

type MobileApiService service

func (*MobileApiService) DataCssMobileTypeGet

func (a *MobileApiService) DataCssMobileTypeGet(ctx context.Context, type_ string) (interface{}, *http.Response, error)

MobileApiService Get CSS for mobile apps. Gets common CSS mobile apps need to properly display pages using Page Content Service. In most cases all of the types are needed (preferably in this order): * base (Common mobile CSS from ResourceLoader) * site (Site-specific, mobile CSS from ResourceLoader, as defined in MediaWiki\\:Mobile.css) * pcs (CSS for the Page Content Service) The `base` and `pcs` responses are the same regardless of what domain is used. For these we suggest meta.wikimedia.org. You can still pass pagelib for type, but this is a legacy version of the CSS for existing app clients. Stability: [unstable](https://www.mediawiki.org/wiki/Wikimedia_Product/Wikimedia_Product_Infrastructure_team/API_endpoint_stability_policy#Unstable) Please follow [wikitech-l](https://lists.wikimedia.org/mailman/listinfo/wikitech-l) or [mediawiki-api-announce](https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce) for announcements of breaking changes.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param type_ The desired CSS bundle

@return interface{}

func (*MobileApiService) DataI18nTypeGet

func (a *MobileApiService) DataI18nTypeGet(ctx context.Context, type_ string) (interface{}, *http.Response, error)

MobileApiService Get internationalization info Gets internationalization information for the given site. Currently the only supported type is pcs for the Page Content Service. Stability: [experimental](https://www.mediawiki.org/wiki/API_versioning#Experimental)

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param type_ The desired internationalization bundle

@return interface{}

func (*MobileApiService) DataJavascriptMobileTypeGet

func (a *MobileApiService) DataJavascriptMobileTypeGet(ctx context.Context, type_ string) (interface{}, *http.Response, error)

MobileApiService Get JavaScript for mobileapps Gets the JavaScript bundle so that clients can have convenient access to that for consuming the page HTML. Amongst other things, * it allows to detect the platform and through that enable platform specific CSS rules, * has code to lazy load images on the page, * code for collapsing and expanding tables. Valid types are pagelib or pcs. Passing pcs will return the JavaScript for the Page Content Service. Passing pagelib will return a deprecated legacy version of the wikimedia-page-library JavaScript to support existing app clients. Stability: [unstable](https://www.mediawiki.org/wiki/Wikimedia_Product/Wikimedia_Product_Infrastructure_team/API_endpoint_stability_policy#Unstable) Please follow [wikitech-l](https://lists.wikimedia.org/mailman/listinfo/wikitech-l) or [mediawiki-api-announce](https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce) for announcements of breaking changes.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param type_ The desired JavaScript bundle

@return interface{}

func (*MobileApiService) GetSections

func (a *MobileApiService) GetSections(ctx context.Context, title string, localVarOptionals *MobileApiGetSectionsOpts) (interface{}, *http.Response, error)

func (*MobileApiService) GetSectionsLead

func (a *MobileApiService) GetSectionsLead(ctx context.Context, title string, localVarOptionals *MobileApiGetSectionsLeadOpts) (interface{}, *http.Response, error)

func (*MobileApiService) GetSectionsLeadWithRevision

func (a *MobileApiService) GetSectionsLeadWithRevision(ctx context.Context, title string, revision int32, localVarOptionals *MobileApiGetSectionsLeadWithRevisionOpts) (interface{}, *http.Response, error)

func (*MobileApiService) GetSectionsRemaining

func (a *MobileApiService) GetSectionsRemaining(ctx context.Context, title string, localVarOptionals *MobileApiGetSectionsRemainingOpts) (interface{}, *http.Response, error)

func (*MobileApiService) GetSectionsRemainingWithRevision

func (a *MobileApiService) GetSectionsRemainingWithRevision(ctx context.Context, title string, revision int32, localVarOptionals *MobileApiGetSectionsRemainingWithRevisionOpts) (interface{}, *http.Response, error)

func (*MobileApiService) GetSectionsWithRevision

func (a *MobileApiService) GetSectionsWithRevision(ctx context.Context, title string, revision int32, localVarOptionals *MobileApiGetSectionsWithRevisionOpts) (interface{}, *http.Response, error)

type MobilehtmlTitleBody

type MobilehtmlTitleBody struct {
	// The Wikitext to transform to HTML
	Wikitext string `json:"wikitext"`
}

type MorelikeResultInner

type MorelikeResultInner struct {
	// Wikidata ID for the item
	WikidataId string `json:"wikidata_id,omitempty"`
	// Score of the recommendation. The higher the score, the more important the recommendation is.
	Score float64 `json:"score,omitempty"`
	// Source of the recommendation -- which wiki is recommending the current article.
	SourceLanguage string `json:"source_language,omitempty"`
}

type Mostread

type Mostread struct {
	// The date which the data correspond to
	Date string `json:"date"`
	// Array of most popular articles
	Articles []MostreadArticle `json:"articles"`
}

type MostreadArticle

type MostreadArticle struct {
	// Article title in a form of DB key
	Title string `json:"title"`
	// Article title as it should be presented to the user
	Normalizedtitle string `json:"normalizedtitle"`
	// Number of views on the requested day
	Views int32 `json:"views"`
	// Position in the list of most viewed articles
	Rank      int32      `json:"rank"`
	Thumbnail *Thumbnail `json:"thumbnail,omitempty"`
	// Wikidata description of the article
	Description string `json:"description,omitempty"`
	// First several sentences of an article in plain text
	Extract string `json:"extract,omitempty"`
}

type NewsItem

type NewsItem struct {
	// A cover story for the news item
	Story string `json:"story"`
	// A collection of articles related to the news item
	Links []Summary `json:"links"`
}

type OfflineApiService

type OfflineApiService service

func (*OfflineApiService) PageMobileHtmlOfflineResourcesTitleGet

func (a *OfflineApiService) PageMobileHtmlOfflineResourcesTitleGet(ctx context.Context, title string) (string, *http.Response, error)

OfflineApiService Get styles and scripts for offline consumption of mobile-html-formatted pages Provides links to scripts and styles needed for viewing mobile-html-formatted pages offline. Stability: [experimental](https://www.mediawiki.org/wiki/API_versioning#Experimental)

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param title Page title. Use underscores instead of spaces. Use percent-encoding. Example: `Main_Page`.

@return string

func (*OfflineApiService) PageMobileHtmlOfflineResourcesTitleRevisionGet

func (a *OfflineApiService) PageMobileHtmlOfflineResourcesTitleRevisionGet(ctx context.Context, title string, revision int32) (string, *http.Response, error)

OfflineApiService Get styles and scripts for offline consumption of mobile-html-formatted pages Provides links to scripts and styles needed for viewing mobile-html-formatted pages offline. Stability: [experimental](https://www.mediawiki.org/wiki/API_versioning#Experimental)

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param title Page title. Use underscores instead of spaces. Use percent-encoding. Example: `Main_Page`.
  • @param revision Optional page revision. Note that older revisions are not stored, so request latency with the revision would be higher.

@return string

type OnthisdayInner

type OnthisdayInner struct {
	// Short description of the event
	Text string `json:"text,omitempty"`
	// List of pages related to the event
	Pages []Summary `json:"pages,omitempty"`
}

type OnthisdayResponse

type OnthisdayResponse struct {
	Births   *[]OnthisdayInner `json:"births,omitempty"`
	Deaths   *[]OnthisdayInner `json:"deaths,omitempty"`
	Events   *[]OnthisdayInner `json:"events,omitempty"`
	Holidays *[]OnthisdayInner `json:"holidays,omitempty"`
	Selected *[]OnthisdayInner `json:"selected,omitempty"`
}

Lists of events which happened on the provided day and month

type Originalimage

type Originalimage struct {
	// Original image URI
	Source string `json:"source"`
	// Original image width
	Width int32 `json:"width"`
	// Original image height
	Height int32 `json:"height"`
}

type PageContentApiGetContentMediaListOpts

type PageContentApiGetContentMediaListOpts struct {
	Redirect optional.Bool
}

type PageContentApiGetContentMobileHtmlOpts

type PageContentApiGetContentMobileHtmlOpts struct {
	Redirect optional.Bool
}

type PageContentApiGetContentWithRevisionMediaListOpts

type PageContentApiGetContentWithRevisionMediaListOpts struct {
	Redirect optional.Bool
}

type PageContentApiGetContentWithRevisionMobileHtmlOpts

type PageContentApiGetContentWithRevisionMobileHtmlOpts struct {
	Redirect optional.Bool
}

type PageContentApiGetFormatRevisionOpts

type PageContentApiGetFormatRevisionOpts struct {
	Redirect       optional.Bool
	Stash          optional.Bool
	AcceptLanguage optional.String
}

type PageContentApiPageDataParsoidTitleRevisionTidGetOpts

type PageContentApiPageDataParsoidTitleRevisionTidGetOpts struct {
	Redirect optional.Bool
}

type PageContentApiPageHtmlTitleGetOpts

type PageContentApiPageHtmlTitleGetOpts struct {
	Redirect       optional.Bool
	Stash          optional.Bool
	AcceptLanguage optional.String
}

type PageContentApiPageSummaryTitleGetOpts

type PageContentApiPageSummaryTitleGetOpts struct {
	Redirect       optional.Bool
	AcceptLanguage optional.String
}

type PageContentApiService

type PageContentApiService service

func (*PageContentApiService) GetContentMediaList

func (a *PageContentApiService) GetContentMediaList(ctx context.Context, title string, localVarOptionals *PageContentApiGetContentMediaListOpts) (MediaList, *http.Response, error)

func (*PageContentApiService) GetContentMobileHtml

func (a *PageContentApiService) GetContentMobileHtml(ctx context.Context, title string, localVarOptionals *PageContentApiGetContentMobileHtmlOpts) (string, *http.Response, error)

func (*PageContentApiService) GetContentWithRevisionMediaList

func (a *PageContentApiService) GetContentWithRevisionMediaList(ctx context.Context, title string, revision int32, localVarOptionals *PageContentApiGetContentWithRevisionMediaListOpts) (MediaList, *http.Response, error)

func (*PageContentApiService) GetContentWithRevisionMobileHtml

func (a *PageContentApiService) GetContentWithRevisionMobileHtml(ctx context.Context, title string, revision int32, localVarOptionals *PageContentApiGetContentWithRevisionMobileHtmlOpts) (string, *http.Response, error)

func (*PageContentApiService) GetFormatRevision

func (a *PageContentApiService) GetFormatRevision(ctx context.Context, title string, revision int32, localVarOptionals *PageContentApiGetFormatRevisionOpts) (string, *http.Response, error)

func (*PageContentApiService) GetRelatedPages

func (a *PageContentApiService) GetRelatedPages(ctx context.Context, title string) (Related, *http.Response, error)

PageContentApiService Get pages related to the given title Returns summaries for 20 pages related to the given page. Summaries include page title, namespace and id along with short text description of the page and a thumbnail. Stability: [experimental](https://www.mediawiki.org/wiki/API_versioning#Experimental)

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param title Page title. Use underscores instead of spaces. Use percent-encoding. Example: `Main_Page`.

@return Related

func (*PageContentApiService) PageDataParsoidTitleRevisionTidGet

func (a *PageContentApiService) PageDataParsoidTitleRevisionTidGet(ctx context.Context, title string, revision int32, tid string, localVarOptionals *PageContentApiPageDataParsoidTitleRevisionTidGetOpts) (DataParsoid, *http.Response, error)

func (*PageContentApiService) PageGet

PageContentApiService List page-related API entry points. Stability: [stable](https://www.mediawiki.org/wiki/API_versioning#Stable)

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().

@return Listing

func (*PageContentApiService) PageHtmlTitleGet

func (a *PageContentApiService) PageHtmlTitleGet(ctx context.Context, title string, localVarOptionals *PageContentApiPageHtmlTitleGetOpts) (string, *http.Response, error)

func (*PageContentApiService) PageHtmlTitlePost

func (a *PageContentApiService) PageHtmlTitlePost(ctx context.Context, baseEtag string, html string, csrfToken string, comment string, isMinor bool, isBot bool, title string) (interface{}, *http.Response, error)

PageContentApiService Save a new revision using HTML. Save a new revision of a page given in [Parsoid HTML](https://www.mediawiki.org/wiki/Parsoid/MediaWiki_DOM_spec) format. For new pages, or when editting the latest revision of a page, the `base_etag` parameter should be left empty. For editing old revisions, it should contain the `ETag` header of the revision the edit is derived from. The latest page revision ETag header could be provided in the If-Match header to detect edit conflicts. If the new page is created, appropriate user cookies must be provided. Stability: [unstable](https://www.mediawiki.org/wiki/API_versioning#Unstable)

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param baseEtag
  • @param html
  • @param csrfToken
  • @param comment
  • @param isMinor
  • @param isBot
  • @param title Page title. Use underscores instead of spaces. Use percent-encoding. Example: `Main_Page`.

@return interface{}

func (*PageContentApiService) PageLintTitleGet

func (a *PageContentApiService) PageLintTitleGet(ctx context.Context, title string) (interface{}, *http.Response, error)

PageContentApiService Get the linter errors for a specific title/revision. Stability: [experimental](https://www.mediawiki.org/wiki/API_versioning#Experimental)

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param title Page title. Use underscores instead of spaces. Use percent-encoding. Example: `Main_Page`.

@return interface{}

func (*PageContentApiService) PageLintTitleRevisionGet

func (a *PageContentApiService) PageLintTitleRevisionGet(ctx context.Context, title string, revision int32) (interface{}, *http.Response, error)

PageContentApiService Get the linter errors for a specific title/revision. Stability: [experimental](https://www.mediawiki.org/wiki/API_versioning#Experimental)

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param title Page title. Use underscores instead of spaces. Use percent-encoding. Example: `Main_Page`.
  • @param revision The revision

@return interface{}

func (*PageContentApiService) PageMobileHtmlOfflineResourcesTitleGet

func (a *PageContentApiService) PageMobileHtmlOfflineResourcesTitleGet(ctx context.Context, title string) (string, *http.Response, error)

PageContentApiService Get styles and scripts for offline consumption of mobile-html-formatted pages Provides links to scripts and styles needed for viewing mobile-html-formatted pages offline. Stability: [experimental](https://www.mediawiki.org/wiki/API_versioning#Experimental)

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param title Page title. Use underscores instead of spaces. Use percent-encoding. Example: `Main_Page`.

@return string

func (*PageContentApiService) PageMobileHtmlOfflineResourcesTitleRevisionGet

func (a *PageContentApiService) PageMobileHtmlOfflineResourcesTitleRevisionGet(ctx context.Context, title string, revision int32) (string, *http.Response, error)

PageContentApiService Get styles and scripts for offline consumption of mobile-html-formatted pages Provides links to scripts and styles needed for viewing mobile-html-formatted pages offline. Stability: [experimental](https://www.mediawiki.org/wiki/API_versioning#Experimental)

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param title Page title. Use underscores instead of spaces. Use percent-encoding. Example: `Main_Page`.
  • @param revision Optional page revision. Note that older revisions are not stored, so request latency with the revision would be higher.

@return string

func (*PageContentApiService) PagePdfTitleFormatGet

func (a *PageContentApiService) PagePdfTitleFormatGet(ctx context.Context, title string, format string) (string, *http.Response, error)

PageContentApiService Get a page as PDF Renders the page content as PDF. Format and type are optional parameters and the default values are \"a4\" for format and \"desktop\" for type. Stability: [experimental](https://www.mediawiki.org/wiki/API_versioning#Experimental)

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param title Page title. Use underscores instead of spaces. Use percent-encoding. Example: `Main_Page`.
  • @param format PDF format

@return string

func (*PageContentApiService) PagePdfTitleFormatTypeGet

func (a *PageContentApiService) PagePdfTitleFormatTypeGet(ctx context.Context, title string, format string, type_ string) (string, *http.Response, error)

PageContentApiService Get a page as PDF Renders the page content as PDF. Format and type are optional parameters and the default values are \"a4\" for format and \"desktop\" for type. Stability: [experimental](https://www.mediawiki.org/wiki/API_versioning#Experimental)

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param title Page title. Use underscores instead of spaces. Use percent-encoding. Example: `Main_Page`.
  • @param format PDF format
  • @param type_ PDF type - `mobile` (optimized for reading on mobile devices) or `desktop` (regular PDF). `desktop` is the default render mode and it will used if param `type` is not passed

@return string

func (*PageContentApiService) PagePdfTitleGet

func (a *PageContentApiService) PagePdfTitleGet(ctx context.Context, title string) (string, *http.Response, error)

PageContentApiService Get a page as PDF Renders the page content as PDF. Format and type are optional parameters and the default values are \"a4\" for format and \"desktop\" for type. Stability: [experimental](https://www.mediawiki.org/wiki/API_versioning#Experimental)

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param title Page title. Use underscores instead of spaces. Use percent-encoding. Example: `Main_Page`.

@return string

func (*PageContentApiService) PageRandomFormatGet

func (a *PageContentApiService) PageRandomFormatGet(ctx context.Context, format string) (Problem, *http.Response, error)

PageContentApiService Get content for a random page Redirects the client to the URI for the desired format for a random page title. Stability: [unstable](https://www.mediawiki.org/wiki/API_versioning#Unstable)

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param format The desired return format

@return Problem

func (*PageContentApiService) PageSegmentsTitleGet

func (a *PageContentApiService) PageSegmentsTitleGet(ctx context.Context, title string) (InlineResponse200, *http.Response, error)

PageContentApiService Fetches a segmented page to be used in machine translation Use this end point to fetch the segmented content of a page. Clients should use the returned content in conjunction with the [language transform API](https://wikimedia.org/api/rest_v1/#!/Transform). Stability: [experimental](https://www.mediawiki.org/wiki/API_versioning#Experimental)

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param title Page title. Use underscores instead of spaces. Use percent-encoding. Example: `Main_Page`.

@return InlineResponse200

func (*PageContentApiService) PageSegmentsTitleRevisionGet

func (a *PageContentApiService) PageSegmentsTitleRevisionGet(ctx context.Context, title string, revision int32) (InlineResponse200, *http.Response, error)

PageContentApiService Fetches a segmented page to be used in machine translation Use this end point to fetch the segmented content of a page. Clients should use the returned content in conjunction with the [language transform API](https://wikimedia.org/api/rest_v1/#!/Transform). Stability: [experimental](https://www.mediawiki.org/wiki/API_versioning#Experimental)

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param title Page title. Use underscores instead of spaces. Use percent-encoding. Example: `Main_Page`.
  • @param revision The revision id

@return InlineResponse200

func (*PageContentApiService) PageSummaryTitleGet

func (a *PageContentApiService) PageSummaryTitleGet(ctx context.Context, title string, localVarOptionals *PageContentApiPageSummaryTitleGetOpts) (Summary, *http.Response, error)

func (*PageContentApiService) PageTitleTitleGet

func (a *PageContentApiService) PageTitleTitleGet(ctx context.Context, title string) (Revision, *http.Response, error)

PageContentApiService Get revision metadata for a title. Returns the revision metadata for the given title. If a revision ID is provided, metadata for that revision is returned, otherwise the latest revision ID is assumed. Stability: [stable](https://www.mediawiki.org/wiki/API_versioning#Stable).

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param title Page title. Use underscores instead of spaces. Use percent-encoding. Example: `Main_Page`.

@return Revision

func (*PageContentApiService) PageTitleTitleRevisionGet

func (a *PageContentApiService) PageTitleTitleRevisionGet(ctx context.Context, title string, revision int32) (Revision, *http.Response, error)

PageContentApiService Get revision metadata for a title. Returns the revision metadata for the given title. If a revision ID is provided, metadata for that revision is returned, otherwise the latest revision ID is assumed. Stability: [stable](https://www.mediawiki.org/wiki/API_versioning#Stable).

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param title Page title. Use underscores instead of spaces. Use percent-encoding. Example: `Main_Page`.
  • @param revision The revision id

@return Revision

func (*PageContentApiService) PageWikitextTitlePost

func (a *PageContentApiService) PageWikitextTitlePost(ctx context.Context, baseEtag string, wikitext string, csrfToken string, comment string, isMinor bool, isBot bool, title string) (*http.Response, error)

PageContentApiService Save a new revision of a page using Wikitext. For new pages, or when editting the latest revision of a page, the `base_etag` parameter should be left empty. For editing old revisions, it should contain the ETag header of the revision the edit is derived from. The latest page revision ETag header should be provided in the If-Match header to detect edit conflicts. If the new page is created, appropriate user cookies must be provided. Stability: [unstable](https://www.mediawiki.org/wiki/API_versioning#Unstable)

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param baseEtag
  • @param wikitext
  • @param csrfToken
  • @param comment
  • @param isMinor
  • @param isBot
  • @param title Page title. Use underscores instead of spaces. Use percent-encoding. Example: `Main_Page`.

type Problem

type Problem struct {
	Type_    string `json:"type"`
	Title    string `json:"title,omitempty"`
	Detail   string `json:"detail,omitempty"`
	Instance string `json:"instance,omitempty"`
}

type ReadingListsApiDataListsChangesSinceDateGetOpts

type ReadingListsApiDataListsChangesSinceDateGetOpts struct {
	Next optional.String
}

type ReadingListsApiDataListsGetOpts

type ReadingListsApiDataListsGetOpts struct {
	Next optional.String
	Sort optional.String
}

type ReadingListsApiDataListsIdPutOpts

type ReadingListsApiDataListsIdPutOpts struct {
	Body optional.Interface
}

type ReadingListsApiDataListsPagesProjectTitleGetOpts

type ReadingListsApiDataListsPagesProjectTitleGetOpts struct {
	Next optional.String
}

type ReadingListsApiGetListEntriesOpts

type ReadingListsApiGetListEntriesOpts struct {
	Next optional.String
	Sort optional.String
}

type ReadingListsApiService

type ReadingListsApiService service

func (*ReadingListsApiService) DataListsBatchPost

func (a *ReadingListsApiService) DataListsBatchPost(ctx context.Context, body Batch, csrfToken string) (ListCreateBatch, *http.Response, error)

ReadingListsApiService Create multiple new lists for the current user. See `POST /lists/`. Stability: [unstable](https://www.mediawiki.org/wiki/API_versioning#Unstable)

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param body
  • @param csrfToken The CRSF edit token provided by the MediaWiki API

@return ListCreateBatch

func (*ReadingListsApiService) DataListsChangesSinceDateGet

func (a *ReadingListsApiService) DataListsChangesSinceDateGet(ctx context.Context, date time.Time, localVarOptionals *ReadingListsApiDataListsChangesSinceDateGetOpts) (InlineResponse2001, *http.Response, error)

func (*ReadingListsApiService) DataListsGet

func (*ReadingListsApiService) DataListsIdDelete

func (a *ReadingListsApiService) DataListsIdDelete(ctx context.Context, id int32) (interface{}, *http.Response, error)

ReadingListsApiService Delete a list. List must belong to current user and request must be authenticated with a MediaWiki session cookie. Stability: [unstable](https://www.mediawiki.org/wiki/API_versioning#Unstable)

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id

@return interface{}

func (*ReadingListsApiService) DataListsIdEntriesBatchPost

func (a *ReadingListsApiService) DataListsIdEntriesBatchPost(ctx context.Context, body EntriesBatchBody, csrfToken string, id int32) (InlineResponse2005, *http.Response, error)

ReadingListsApiService Create multiple new list entries. See `POST /lists/{id}/entries/`. Stability: [unstable](https://www.mediawiki.org/wiki/API_versioning#Unstable)

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param body
  • @param csrfToken The CRSF edit token provided by the MediaWiki API
  • @param id

@return InlineResponse2005

func (*ReadingListsApiService) DataListsIdEntriesEntryIdDelete

func (a *ReadingListsApiService) DataListsIdEntriesEntryIdDelete(ctx context.Context, id int32, entryId int32) (interface{}, *http.Response, error)

ReadingListsApiService Delete a list entry. Deletes a given list entry. The list must belong to the current user and the request must be authenticated with a MediaWiki session cookie. Stability: [unstable](https://www.mediawiki.org/wiki/API_versioning#Unstable)

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param id
  • @param entryId

@return interface{}

func (*ReadingListsApiService) DataListsIdEntriesPost

func (a *ReadingListsApiService) DataListsIdEntriesPost(ctx context.Context, body ListEntryWrite, csrfToken string, id int32) (InlineResponse2004, *http.Response, error)

ReadingListsApiService Create a new list entry. Creates a new list entry in the given list. On conflict, does nothing and returns the data of an existing list. The list must belong to the current user and the request must be authenticated with a MediaWiki session cookie. Stability: [unstable](https://www.mediawiki.org/wiki/API_versioning#Unstable) This endpoint is deprecated and might be removed without warning. Use the batch version instead.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param body
  • @param csrfToken The CRSF edit token provided by the MediaWiki API
  • @param id

@return InlineResponse2004

func (*ReadingListsApiService) DataListsIdPut

func (a *ReadingListsApiService) DataListsIdPut(ctx context.Context, csrfToken string, id int32, localVarOptionals *ReadingListsApiDataListsIdPutOpts) (InlineResponse2002, *http.Response, error)

func (*ReadingListsApiService) DataListsPagesProjectTitleGet

func (a *ReadingListsApiService) DataListsPagesProjectTitleGet(ctx context.Context, project string, title string, localVarOptionals *ReadingListsApiDataListsPagesProjectTitleGetOpts) (InlineResponse2006, *http.Response, error)

func (*ReadingListsApiService) DataListsPost

func (a *ReadingListsApiService) DataListsPost(ctx context.Context, body ListWrite, csrfToken string) (InlineResponse2002, *http.Response, error)

ReadingListsApiService Create a new list for the current user. Creates a new empty list. On name conflict, does nothing and returns the data of an existing list. Request must be authenticated with a MediaWiki session cookie. Stability: [unstable](https://www.mediawiki.org/wiki/API_versioning#Unstable) This endpoint is deprecated and might be removed without warning. Use the batch version instead.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param body
  • @param csrfToken The CRSF edit token provided by the MediaWiki API

@return InlineResponse2002

func (*ReadingListsApiService) DataListsSetupPost

func (a *ReadingListsApiService) DataListsSetupPost(ctx context.Context, csrfToken string) (interface{}, *http.Response, error)

ReadingListsApiService Opt in to use reading lists. Must precede other list operations. Request must be authenticated with a MediaWiki session cookie. Stability: [unstable](https://www.mediawiki.org/wiki/API_versioning#Unstable)

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param csrfToken The CRSF edit token provided by the MediaWiki API

@return interface{}

func (*ReadingListsApiService) DataListsTeardownPost

func (a *ReadingListsApiService) DataListsTeardownPost(ctx context.Context, csrfToken string) (interface{}, *http.Response, error)

ReadingListsApiService Opt out from using reading lists. Deletes all data. User needs to opt in again before being able to do anything. Request must be authenticated with a MediaWiki session cookie. Stability: [unstable](https://www.mediawiki.org/wiki/API_versioning#Unstable)

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param csrfToken The CRSF edit token provided by the MediaWiki API

@return interface{}

func (*ReadingListsApiService) GetListEntries

type RecommendationApiDataRecommendationArticleCreationTranslationFromLangGetOpts

type RecommendationApiDataRecommendationArticleCreationTranslationFromLangGetOpts struct {
	Count optional.Int32
}

type RecommendationApiDataRecommendationArticleCreationTranslationFromLangSeedArticleGetOpts

type RecommendationApiDataRecommendationArticleCreationTranslationFromLangSeedArticleGetOpts struct {
	Count optional.Int32
}

type RecommendationApiService

type RecommendationApiService service

func (*RecommendationApiService) DataRecommendationArticleCreationMorelikeSeedArticleGet

func (a *RecommendationApiService) DataRecommendationArticleCreationMorelikeSeedArticleGet(ctx context.Context, seedArticle string) ([]MorelikeResultInner, *http.Response, error)

RecommendationApiService Recommend missing articles Recommends articles similar to the seed article but are missing from the domain language Wikipedia. Stability: [unstable](https://www.mediawiki.org/wiki/API_versioning#Unstable)

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param seedArticle The article title used to search similar but missing articles

@return []MorelikeResultInner

func (*RecommendationApiService) DataRecommendationArticleCreationTranslationFromLangGet

func (a *RecommendationApiService) DataRecommendationArticleCreationTranslationFromLangGet(ctx context.Context, fromLang string, localVarOptionals *RecommendationApiDataRecommendationArticleCreationTranslationFromLangGetOpts) (RecommendationResult, *http.Response, error)

func (*RecommendationApiService) DataRecommendationArticleCreationTranslationFromLangSeedArticleGet

func (a *RecommendationApiService) DataRecommendationArticleCreationTranslationFromLangSeedArticleGet(ctx context.Context, fromLang string, seedArticle string, localVarOptionals *RecommendationApiDataRecommendationArticleCreationTranslationFromLangSeedArticleGetOpts) (RecommendationResult, *http.Response, error)

type RecommendationResult

type RecommendationResult struct {
	// the number of recommendations returned
	Count int32 `json:"count,omitempty"`
	// the list of articles recommended for translation
	Items []RecommendationResultItems `json:"items,omitempty"`
}

type RecommendationResultItems

type RecommendationResultItems struct {
	// wikidata id for the item
	WikidataId string `json:"wikidata_id,omitempty"`
	// title of the article in the source language
	Title string `json:"title,omitempty"`
	// count of sites the wikidata item is linked to
	SitelinkCount int32 `json:"sitelink_count,omitempty"`
}
type Related struct {
	Pages []Summary `json:"pages,omitempty"`
}

type Result

type Result struct {
	ItemType string `json:"itemType"`
	Title    string `json:"title"`
	Url      string `json:"url"`
}

type Revision

type Revision struct {
	Count int32         `json:"count"`
	Items *RevisionInfo `json:"items"`
}

Result format for revision items

type RevisionIdentifier

type RevisionIdentifier struct {
	Revision int32  `json:"revision,omitempty"`
	Tid      string `json:"tid,omitempty"`
}

Unique revision identifier

type RevisionInfo

type RevisionInfo struct {
	Title        string    `json:"title,omitempty"`
	PageId       int32     `json:"page_id,omitempty"`
	Rev          int32     `json:"rev,omitempty"`
	Tid          string    `json:"tid,omitempty"`
	Comment      string    `json:"comment,omitempty"`
	Restrictions []string  `json:"restrictions,omitempty"`
	Tags         []string  `json:"tags,omitempty"`
	UserId       int32     `json:"user_id,omitempty"`
	UserText     string    `json:"user_text,omitempty"`
	Timestamp    time.Time `json:"timestamp,omitempty"`
	Redirect     bool      `json:"redirect,omitempty"`
	PageLanguage string    `json:"page_language,omitempty"`
}

Complete information about the revision

type Revisions

type Revisions struct {
	Items *RevisionIdentifier `json:"items"`
}

The result format for revision listing

type Summary

type Summary struct {
	Titles *TitlesSet `json:"titles"`
	// The page title. Deprecated: Use `titles.normalized` instead.
	Title string `json:"title,omitempty"`
	// The page title how it should be shown to the user. Deprecated: Use `titles.display` instead.
	Displaytitle string `json:"displaytitle,omitempty"`
	// The page ID
	Pageid int32 `json:"pageid,omitempty"`
	// First several sentences of an article in plain text
	Extract string `json:"extract"`
	// First several sentences of an article in simple HTML format
	ExtractHtml   string         `json:"extract_html,omitempty"`
	Thumbnail     *Thumbnail     `json:"thumbnail,omitempty"`
	Originalimage *Originalimage `json:"originalimage,omitempty"`
	// The page language code
	Lang string `json:"lang"`
	// The page language direction code
	Dir string `json:"dir"`
	// The time when the page was last edited in the [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format
	Timestamp string `json:"timestamp,omitempty"`
	// Wikidata description for the page
	Description string              `json:"description,omitempty"`
	Coordinates *SummaryCoordinates `json:"coordinates,omitempty"`
}

type SummaryCoordinates

type SummaryCoordinates struct {
	// The latitude
	Lat float64 `json:"lat"`
	// The longitude
	Lon float64 `json:"lon"`
}

The coordinates of the item

type TalkPagesApiPageTalkTitleGetOpts

type TalkPagesApiPageTalkTitleGetOpts struct {
	Redirect optional.Bool
}

type TalkPagesApiPageTalkTitleRevisionGetOpts

type TalkPagesApiPageTalkTitleRevisionGetOpts struct {
	Redirect optional.Bool
}

type TalkPagesApiService

type TalkPagesApiService service

func (*TalkPagesApiService) PageTalkTitleGet

func (a *TalkPagesApiService) PageTalkTitleGet(ctx context.Context, title string, localVarOptionals *TalkPagesApiPageTalkTitleGetOpts) (string, *http.Response, error)

func (*TalkPagesApiService) PageTalkTitleRevisionGet

func (a *TalkPagesApiService) PageTalkTitleRevisionGet(ctx context.Context, title string, revision int32, localVarOptionals *TalkPagesApiPageTalkTitleRevisionGetOpts) (string, *http.Response, error)

type Thumbnail

type Thumbnail struct {
	// Thumbnail image URI
	Source string `json:"source"`
	// Thumbnail width
	Width int32 `json:"width"`
	// Thumnail height
	Height int32 `json:"height"`
}

type TitleRevisionBody

type TitleRevisionBody struct {
	// The HTML to transform
	Html string `json:"html"`
	// Normalise the DOM to yield cleaner wikitext?
	ScrubWikitext bool `json:"scrub_wikitext,omitempty"`
}

type TitleRevisionBody1

type TitleRevisionBody1 struct {
	// The Wikitext to transform to HTML
	Wikitext string `json:"wikitext"`
	// Return only `body.innerHTML`
	BodyOnly bool `json:"body_only,omitempty"`
	// Whether to temporarily stash the result of the transformation
	Stash bool `json:"stash,omitempty"`
}

type TitleRevisionBody2

type TitleRevisionBody2 struct {
	// The Wikitext to check
	Wikitext string `json:"wikitext"`
}

type TitlesSet

type TitlesSet struct {
	// the DB key (non-prefixed), e.g. may have _ instead of spaces, best for making request URIs, still requires Percent-encoding
	Canonical string `json:"canonical"`
	// the normalized title (https://www.mediawiki.org/wiki/API:Query#Example_2:_Title_normalization), e.g. may have spaces instead of _
	Normalized string `json:"normalized"`
	// the title as it should be displayed to the user
	Display string `json:"display"`
}

a good example of the differences can be seen in https://en.wikipedia.org/api/rest_v1/page/summary/IOS_13

type ToHtmlBody

type ToHtmlBody struct {
	// The Wikitext to transform to HTML
	Wikitext string `json:"wikitext"`
	// Return only `body.innerHTML`
	BodyOnly bool `json:"body_only,omitempty"`
	// Whether to temporarily stash the result of the transformation
	Stash bool `json:"stash,omitempty"`
}

type ToLintBody

type ToLintBody struct {
	// The Wikitext to check
	Wikitext string `json:"wikitext"`
}

type ToLintBody1

type ToLintBody1 struct {
	// The Wikitext to check
	Wikitext string `json:"wikitext"`
}

type ToWikitextBody

type ToWikitextBody struct {
	// The HTML to transform
	Html string `json:"html"`
	// Normalise the DOM to yield cleaner wikitext?
	ScrubWikitext bool `json:"scrub_wikitext,omitempty"`
}

type TransformsApiService

type TransformsApiService service

func (*TransformsApiService) DoDict

func (a *TransformsApiService) DoDict(ctx context.Context, from string, word string) (CxDict, *http.Response, error)

TransformsApiService Fetch the dictionary meaning of a word Fetches the dictionary meaning of a word from a language and displays it in the target language. Stability: [unstable](https://www.mediawiki.org/wiki/API_versioning#Unstable)

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param from The source language code
  • @param word The word to lookup

@return CxDict

func (*TransformsApiService) DoDictProvider

func (a *TransformsApiService) DoDictProvider(ctx context.Context, from string, word string, provider string) (CxDict, *http.Response, error)

TransformsApiService Fetch the dictionary meaning of a word Fetches the dictionary meaning of a word from a language and displays it in the target language. Stability: [unstable](https://www.mediawiki.org/wiki/API_versioning#Unstable)

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param from The source language code
  • @param word The word to lookup
  • @param provider The dictionary provider id

@return CxDict

func (*TransformsApiService) DoMT

func (a *TransformsApiService) DoMT(ctx context.Context, html string, from string) (CxMt, *http.Response, error)

TransformsApiService Machine-translate content Fetches the machine translation for the posted content from the source to the language of this wiki. Stability: [unstable](https://www.mediawiki.org/wiki/API_versioning#Unstable)

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param html
  • @param from The source language code

@return CxMt

func (*TransformsApiService) DoMTProvider

func (a *TransformsApiService) DoMTProvider(ctx context.Context, html string, from string, provider string) (CxMt, *http.Response, error)

TransformsApiService Machine-translate content Fetches the machine translation for the posted content from the source to the language of this wiki. Stability: [unstable](https://www.mediawiki.org/wiki/API_versioning#Unstable)

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param html
  • @param from The source language code
  • @param provider The machine translation provider id

@return CxMt

func (*TransformsApiService) TransformHtmlToWikitextPost

func (a *TransformsApiService) TransformHtmlToWikitextPost(ctx context.Context, html string, scrubWikitext bool, localVarOptionals *TransformsApiTransformHtmlToWikitextPostOpts) (string, *http.Response, error)

func (*TransformsApiService) TransformHtmlToWikitextTitlePost

func (a *TransformsApiService) TransformHtmlToWikitextTitlePost(ctx context.Context, html string, scrubWikitext bool, title string, localVarOptionals *TransformsApiTransformHtmlToWikitextTitlePostOpts) (string, *http.Response, error)

func (*TransformsApiService) TransformHtmlToWikitextTitleRevisionPost

func (a *TransformsApiService) TransformHtmlToWikitextTitleRevisionPost(ctx context.Context, html string, scrubWikitext bool, title string, revision int32, localVarOptionals *TransformsApiTransformHtmlToWikitextTitleRevisionPostOpts) (string, *http.Response, error)

func (*TransformsApiService) TransformWikitextToHtmlPost

func (a *TransformsApiService) TransformWikitextToHtmlPost(ctx context.Context, wikitext string, bodyOnly bool, stash bool) (string, *http.Response, error)

TransformsApiService Transform Wikitext to HTML Transform wikitext to HTML. Note that if you set `stash: true`, you also need to supply the title. - Stability: [stable](https://www.mediawiki.org/wiki/API_versioning#Stable) - Rate limit: 25 req/s (5 req/s when `stash: true`)

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param wikitext
  • @param bodyOnly
  • @param stash

@return string

func (*TransformsApiService) TransformWikitextToHtmlTitlePost

func (a *TransformsApiService) TransformWikitextToHtmlTitlePost(ctx context.Context, wikitext string, bodyOnly bool, stash bool, title string) (string, *http.Response, error)

TransformsApiService Transform Wikitext to HTML Transform wikitext to HTML. Note that if you set `stash: true`, you also need to supply the title. - Stability: [stable](https://www.mediawiki.org/wiki/API_versioning#Stable) - Rate limit: 25 req/s (5 req/s when `stash: true`)

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param wikitext
  • @param bodyOnly
  • @param stash
  • @param title Page title. Use underscores instead of spaces. Use percent-encoding. Example: `Main_Page`.

@return string

func (*TransformsApiService) TransformWikitextToHtmlTitleRevisionPost

func (a *TransformsApiService) TransformWikitextToHtmlTitleRevisionPost(ctx context.Context, wikitext string, bodyOnly bool, stash bool, title string, revision int32) (string, *http.Response, error)

TransformsApiService Transform Wikitext to HTML Transform wikitext to HTML. Note that if you set `stash: true`, you also need to supply the title. - Stability: [stable](https://www.mediawiki.org/wiki/API_versioning#Stable) - Rate limit: 25 req/s (5 req/s when `stash: true`)

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param wikitext
  • @param bodyOnly
  • @param stash
  • @param title Page title. Use underscores instead of spaces. Use percent-encoding. Example: `Main_Page`.
  • @param revision The page revision

@return string

func (*TransformsApiService) TransformWikitextToLintPost

func (a *TransformsApiService) TransformWikitextToLintPost(ctx context.Context, wikitext string) (interface{}, *http.Response, error)

TransformsApiService Check Wikitext for lint errors Parse the supplied wikitext and check it for lint errors. - Stability: [experimental](https://www.mediawiki.org/wiki/API_versioning#Experimental) - Rate limit: 25 req/s

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param wikitext

@return interface{}

func (*TransformsApiService) TransformWikitextToLintTitlePost

func (a *TransformsApiService) TransformWikitextToLintTitlePost(ctx context.Context, wikitext string, title string) (interface{}, *http.Response, error)

TransformsApiService Check Wikitext for lint errors Parse the supplied wikitext and check it for lint errors. - Stability: [experimental](https://www.mediawiki.org/wiki/API_versioning#Experimental) - Rate limit: 25 req/s

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param wikitext
  • @param title Page title. Use underscores instead of spaces. Use percent-encoding. Example: `Main_Page`.

@return interface{}

func (*TransformsApiService) TransformWikitextToLintTitleRevisionPost

func (a *TransformsApiService) TransformWikitextToLintTitleRevisionPost(ctx context.Context, wikitext string, title string, revision int32) (interface{}, *http.Response, error)

TransformsApiService Check Wikitext for lint errors Parse the supplied wikitext and check it for lint errors. - Stability: [experimental](https://www.mediawiki.org/wiki/API_versioning#Experimental) - Rate limit: 25 req/s

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param wikitext
  • @param title Page title. Use underscores instead of spaces. Use percent-encoding. Example: `Main_Page`.
  • @param revision The page revision

@return interface{}

func (*TransformsApiService) TransformWikitextToMobileHtml

func (a *TransformsApiService) TransformWikitextToMobileHtml(ctx context.Context, wikitext string, title string, localVarOptionals *TransformsApiTransformWikitextToMobileHtmlOpts) (string, *http.Response, error)

type TransformsApiTransformHtmlToWikitextPostOpts

type TransformsApiTransformHtmlToWikitextPostOpts struct {
	IfMatch optional.String
}

type TransformsApiTransformHtmlToWikitextTitlePostOpts

type TransformsApiTransformHtmlToWikitextTitlePostOpts struct {
	IfMatch optional.String
}

type TransformsApiTransformHtmlToWikitextTitleRevisionPostOpts

type TransformsApiTransformHtmlToWikitextTitleRevisionPostOpts struct {
	IfMatch optional.String
}

type TransformsApiTransformWikitextToMobileHtmlOpts

type TransformsApiTransformWikitextToMobileHtmlOpts struct {
	AcceptLanguage optional.String
	OutputMode     optional.String
}

type WikitextTitleBody

type WikitextTitleBody struct {
	// The ETag header of the revision the edit is based on.
	BaseEtag string `json:"base_etag,omitempty"`
	// The wikitext source of the page to save
	Wikitext string `json:"wikitext"`
	// The CRSF edit token provided by the MW API
	CsrfToken string `json:"csrf_token"`
	// The summary of the change
	Comment string `json:"comment,omitempty"`
	// Whether this represents a minor change
	IsMinor bool `json:"is_minor,omitempty"`
	// Whether the change is being made by a bot
	IsBot bool `json:"is_bot,omitempty"`
}

type WikitextTitleBody1

type WikitextTitleBody1 struct {
	// The HTML to transform
	Html string `json:"html"`
	// Normalise the DOM to yield cleaner wikitext?
	ScrubWikitext bool `json:"scrub_wikitext,omitempty"`
}

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL