{ "opencollection": "1.0.0", "info": { "name": "Wikimedia Enterprise API spec articles Page content API", "version": "2.0.0" }, "request": { "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "items": [ { "info": { "name": "Page content", "type": "folder" }, "items": [ { "info": { "name": "List page-related API entry points.", "type": "http" }, "http": { "method": "GET", "url": "https://api.enterprise.wikimedia.com/page/" }, "docs": "Stability: [stable](https://www.mediawiki.org/wiki/API_versioning#Stable)\n" }, { "info": { "name": "Get revision metadata for a title.", "type": "http" }, "http": { "method": "GET", "url": "https://api.enterprise.wikimedia.com/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": "Get revision metadata for a title.", "type": "http" }, "http": { "method": "GET", "url": "https://api.enterprise.wikimedia.com/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": "Get latest HTML for a title.", "type": "http" }, "http": { "method": "GET", "url": "https://api.enterprise.wikimedia.com/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": "Get HTML for a specific title/revision & optionally timeuuid.", "type": "http" }, "http": { "method": "GET", "url": "https://api.enterprise.wikimedia.com/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": "Get the linter errors for a specific title/revision.", "type": "http" }, "http": { "method": "GET", "url": "https://api.enterprise.wikimedia.com/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": "Get the linter errors for a specific title/revision.", "type": "http" }, "http": { "method": "GET", "url": "https://api.enterprise.wikimedia.com/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": "Get basic metadata and simplified article introduction.", "type": "http" }, "http": { "method": "GET", "url": "https://api.enterprise.wikimedia.com/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": "Get list of media files used on a page.", "type": "http" }, "http": { "method": "GET", "url": "https://api.enterprise.wikimedia.com/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": "Get list of media files used on a page.", "type": "http" }, "http": { "method": "GET", "url": "https://api.enterprise.wikimedia.com/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": "Get page content HTML optimized for mobile consumption.", "type": "http" }, "http": { "method": "GET", "url": "https://api.enterprise.wikimedia.com/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": "Get page content HTML optimized for mobile consumption.", "type": "http" }, "http": { "method": "GET", "url": "https://api.enterprise.wikimedia.com/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": "Get styles and scripts for offline consumption of mobile-html-formatted pages", "type": "http" }, "http": { "method": "GET", "url": "https://api.enterprise.wikimedia.com/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": "Get styles and scripts for offline consumption of mobile-html-formatted pages", "type": "http" }, "http": { "method": "GET", "url": "https://api.enterprise.wikimedia.com/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 }