{ "opencollection": "1.0.0", "info": { "name": "MediaWiki Action articles Page content API", "version": "1.45" }, "items": [ { "info": { "name": "Page content", "type": "folder" }, "items": [ { "info": { "name": "Wikimedia REST List Page-related API Entry Points.", "type": "http" }, "http": { "method": "GET", "url": "https://en.wikipedia.org/w/page/" }, "docs": "Stability: [stable](https://www.mediawiki.org/wiki/API_versioning#Stable)\n" }, { "info": { "name": "Wikimedia REST Get Revision Metadata for a Title.", "type": "http" }, "http": { "method": "GET", "url": "https://en.wikipedia.org/w/page/title/:title", "params": [ { "name": "title", "value": "", "type": "path", "description": "Page title. Use underscores instead of spaces. Use percent-encoding. Example: `Main_Page`." } ] }, "docs": "Returns the revision metadata for the given title. If a revision ID is provided,\nmetadata for that revision is returned, otherwise the latest revision ID is assumed.\n\nStability: [stable](https://www.mediawiki.org/wiki/API_versioning#Stable).\n" }, { "info": { "name": "Wikimedia REST Get Revision Metadata for a Title.", "type": "http" }, "http": { "method": "GET", "url": "https://en.wikipedia.org/w/page/title/:title/:revision", "params": [ { "name": "title", "value": "", "type": "path", "description": "Page title. Use underscores instead of spaces. Use percent-encoding. Example: `Main_Page`." }, { "name": "revision", "value": "", "type": "path", "description": "The revision id" } ] }, "docs": "Returns the revision metadata for the given title. If a revision ID is provided,\nmetadata for that revision is returned, otherwise the latest revision ID is assumed.\n\nStability: [stable](https://www.mediawiki.org/wiki/API_versioning#Stable).\n" }, { "info": { "name": "Wikimedia REST Get Latest HTML for a Title.", "type": "http" }, "http": { "method": "GET", "url": "https://en.wikipedia.org/w/page/html/:title", "headers": [ { "name": "Accept-Language", "value": "" } ], "params": [ { "name": "title", "value": "", "type": "path", "description": "Page title. Use underscores instead of spaces. Use percent-encoding. Example: `Main_Page`." }, { "name": "redirect", "value": "", "type": "query", "description": "Requests for [redirect pages](https://www.mediawiki.org/wiki/Help:Redirects) return HTTP 302 with a redirect target in `Location` header and content in the body.\nTo get a 200 response instead, supply `false` to the `redirect` parameter.\n" }, { "name": "stash", "value": "", "type": "query", "description": "Whether to temporary stash data-parsoid metadata in order to support transforming the\nmodified content later. If this parameter is set, requests are rate-limited on\na per-client basis (max 5 requests per second per client)\n" } ] }, "docs": "Stability: [stable](https://www.mediawiki.org/wiki/API_versioning#Stable)\n" }, { "info": { "name": "Wikimedia REST Get HTML for a Specific Title/revision & Optionally Timeuuid.", "type": "http" }, "http": { "method": "GET", "url": "https://en.wikipedia.org/w/page/html/:title/:revision", "headers": [ { "name": "Accept-Language", "value": "" } ], "params": [ { "name": "title", "value": "", "type": "path", "description": "Page title. Use underscores instead of spaces. Use percent-encoding. Example: `Main_Page`." }, { "name": "revision", "value": "", "type": "path", "description": "The revision" }, { "name": "redirect", "value": "", "type": "query", "description": "Requests for [redirect pages](https://www.mediawiki.org/wiki/Help:Redirects) return HTTP 302 with a redirect target in `Location` header and content in the body.\nTo get a 200 response instead, supply `false` to the `redirect` parameter.\n" }, { "name": "stash", "value": "", "type": "query", "description": "Whether to temporary stash data-parsoid metadata in order to support transforming the\nmodified content later. If this parameter is set, requests are rate-limited on\na per-client basis (max 5 requests per second per client)\n" } ] }, "docs": "Stability: [stable](https://www.mediawiki.org/wiki/API_versioning#Stable)\n" }, { "info": { "name": "Wikimedia REST Get the Linter Errors for a Specific Title/revision.", "type": "http" }, "http": { "method": "GET", "url": "https://en.wikipedia.org/w/page/lint/:title", "params": [ { "name": "title", "value": "", "type": "path", "description": "Page title. Use underscores instead of spaces. Use percent-encoding. Example: `Main_Page`." } ] }, "docs": "Stability: [experimental](https://www.mediawiki.org/wiki/API_versioning#Experimental)\n" }, { "info": { "name": "Wikimedia REST Get the Linter Errors for a Specific Title/revision.", "type": "http" }, "http": { "method": "GET", "url": "https://en.wikipedia.org/w/page/lint/:title/:revision", "params": [ { "name": "title", "value": "", "type": "path", "description": "Page title. Use underscores instead of spaces. Use percent-encoding. Example: `Main_Page`." }, { "name": "revision", "value": "", "type": "path", "description": "The revision" } ] }, "docs": "Stability: [experimental](https://www.mediawiki.org/wiki/API_versioning#Experimental)\n" }, { "info": { "name": "Wikimedia REST Get Basic Metadata and Simplified Article Introduction.", "type": "http" }, "http": { "method": "GET", "url": "https://en.wikipedia.org/w/page/summary/:title", "headers": [ { "name": "Accept-Language", "value": "" } ], "params": [ { "name": "title", "value": "", "type": "path", "description": "Page title. Use underscores instead of spaces. Use percent-encoding. Example: `Main_Page`." }, { "name": "redirect", "value": "", "type": "query", "description": "Requests for [redirect pages](https://www.mediawiki.org/wiki/Help:Redirects) return HTTP 302 with a redirect target in `Location` header and content in the body.\nTo get a 200 response instead, supply `false` to the `redirect` parameter.\n" } ] }, "docs": "The summary response includes an extract of the first paragraph of the page in plain text\nand HTML as well as the type of page. This is useful for page previews (fka. Hovercards,\naka. Popups) on the web and link previews in the apps.\n\nStability: [stable](https://www.mediawiki.org/wiki/Wikimedia_Product/Wikimedia_Product_Infrastructure_team/API_endpoint_stability_policy#Stable)\n\nPlease follow [wikitech-l](https://lists.wikimedia.org/mailman/listinfo/wikitech-l) or [mediawiki-api-announce](https:/" }, { "info": { "name": "Wikimedia REST Get List of Media Files Used on a Page.", "type": "http" }, "http": { "method": "GET", "url": "https://en.wikipedia.org/w/page/media-list/:title", "params": [ { "name": "title", "value": "", "type": "path", "description": "Page title. Use underscores instead of spaces. Use percent-encoding. Example: `Main_Page`." }, { "name": "redirect", "value": "", "type": "query", "description": "Requests for [redirect pages](https://www.mediawiki.org/wiki/Help:Redirects) return HTTP 302 with a redirect target in `Location` header and content in the body.\nTo get a 200 response instead, supply `false` to the `redirect` parameter.\n" } ] }, "docs": "Gets the list of media items (images, audio, and video) in the order in which they appear on a\ngiven wiki page.\n\nStability: [unstable](https://www.mediawiki.org/wiki/Wikimedia_Product/Wikimedia_Product_Infrastructure_team/API_endpoint_stability_policy#Unstable)\n\nPlease 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.\n" }, { "info": { "name": "Wikimedia REST Get List of Media Files Used on a Page.", "type": "http" }, "http": { "method": "GET", "url": "https://en.wikipedia.org/w/page/media-list/:title/:revision", "params": [ { "name": "title", "value": "", "type": "path", "description": "Page title. Use underscores instead of spaces. Use percent-encoding. Example: `Main_Page`." }, { "name": "revision", "value": "", "type": "path", "description": "Optional page revision. Note that older revisions are not stored, so request latency with the revision would be higher.\n" }, { "name": "redirect", "value": "", "type": "query", "description": "Requests for [redirect pages](https://www.mediawiki.org/wiki/Help:Redirects) return HTTP 302 with a redirect target in `Location` header and content in the body.\nTo get a 200 response instead, supply `false` to the `redirect` parameter.\n" } ] }, "docs": "Gets the list of media items (images, audio, and video) in the order in which they appear on a\ngiven wiki page.\n\nStability: [unstable](https://www.mediawiki.org/wiki/Wikimedia_Product/Wikimedia_Product_Infrastructure_team/API_endpoint_stability_policy#Unstable)\n\nPlease 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.\n" }, { "info": { "name": "Wikimedia REST Get Page Content HTML Optimized for Mobile Consumption.", "type": "http" }, "http": { "method": "GET", "url": "https://en.wikipedia.org/w/page/mobile-html/:title", "params": [ { "name": "title", "value": "", "type": "path", "description": "Page title. Use underscores instead of spaces. Use percent-encoding. Example: `Main_Page`." }, { "name": "redirect", "value": "", "type": "query", "description": "Requests for [redirect pages](https://www.mediawiki.org/wiki/Help:Redirects) return HTTP 302 with a redirect target in `Location` header and content in the body.\nTo get a 200 response instead, supply `false` to the `redirect` parameter.\n" } ] }, "docs": "Gets the content HTML optimized for mobile consumption for the given page. This content\nis derived from Parsoid HTML (see `/page/html/{title}` endpoint).\nThe difference to Parsoid HTML is roughly:\n* Some elements and attributes not needed for the reading case are removed.\n* LeadIntroductionTransform: The introductory paragraph is moved before an infobox.\n* RedLinks: Red links are flattened (=turned into span elements).\n* WidenImage: images that should be displayed in gallery are widened.\n* Secti" }, { "info": { "name": "Wikimedia REST Get Page Content HTML Optimized for Mobile Consumption.", "type": "http" }, "http": { "method": "GET", "url": "https://en.wikipedia.org/w/page/mobile-html/:title/:revision", "params": [ { "name": "title", "value": "", "type": "path", "description": "Page title. Use underscores instead of spaces. Use percent-encoding. Example: `Main_Page`." }, { "name": "revision", "value": "", "type": "path", "description": "Optional page revision. Note that older revisions are not stored, so request latency with the revision would be higher.\n" }, { "name": "redirect", "value": "", "type": "query", "description": "Requests for [redirect pages](https://www.mediawiki.org/wiki/Help:Redirects) return HTTP 302 with a redirect target in `Location` header and content in the body.\nTo get a 200 response instead, supply `false` to the `redirect` parameter.\n" } ] }, "docs": "Gets the content HTML optimized for mobile consumption for the given page. This content\nis derived from Parsoid HTML (see `/page/html/{title}` endpoint).\nThe difference to Parsoid HTML is roughly:\n* Some elements and attributes not needed for the reading case are removed.\n* LeadIntroductionTransform: The introductory paragraph is moved before an infobox.\n* RedLinks: Red links are flattened (=turned into span elements).\n* WidenImage: images that should be displayed in gallery are widened.\n* Secti" }, { "info": { "name": "Wikimedia REST Get Styles and Scripts for Offline Consumption of Mobile-html-formatted Pages", "type": "http" }, "http": { "method": "GET", "url": "https://en.wikipedia.org/w/page/mobile-html-offline-resources/:title", "params": [ { "name": "title", "value": "", "type": "path", "description": "Page title. Use underscores instead of spaces. Use percent-encoding. Example: `Main_Page`." } ] }, "docs": "Provides links to scripts and styles needed for viewing mobile-html-formatted pages offline.\n\nStability: [experimental](https://www.mediawiki.org/wiki/API_versioning#Experimental)\n" }, { "info": { "name": "Wikimedia REST Get Styles and Scripts for Offline Consumption of Mobile-html-formatted Pages", "type": "http" }, "http": { "method": "GET", "url": "https://en.wikipedia.org/w/page/mobile-html-offline-resources/:title/:revision", "params": [ { "name": "title", "value": "", "type": "path", "description": "Page title. Use underscores instead of spaces. Use percent-encoding. Example: `Main_Page`." }, { "name": "revision", "value": "", "type": "path", "description": "Optional page revision. Note that older revisions are not stored, so request latency with the revision would be higher.\n" } ] }, "docs": "Provides links to scripts and styles needed for viewing mobile-html-formatted pages offline.\n\nStability: [experimental](https://www.mediawiki.org/wiki/API_versioning#Experimental)\n" } ] } ], "bundled": true }