Specs/Summary/1.3.0: Difference between revisions
Appearance
< Specs
Content deleted Content added
Copy from 1.2.0 |
Mark as draft |
||
Line 1: | Line 1: | ||
{{Draft}} |
|||
This page defines the spec for the [https://en.wikipedia.org/api/rest_v1/#!/Page_content/get_page_summary_title RESTBase summary endpoint] response format. |
This page defines the spec for the [https://en.wikipedia.org/api/rest_v1/#!/Page_content/get_page_summary_title RESTBase summary endpoint] response format. |
||
Revision as of 05:38, 12 January 2018
This page is currently a draft.
|
This page defines the spec for the RESTBase summary endpoint response format.
Summary response is a JSON object with the following fields:
Name | Type | Description |
---|---|---|
title | string | Normalized title of the page |
displaytitle | string | Display title of the page |
pageid | integer | MediaWiki id of the page |
extract | string | First several sentences of an article in plain text |
extract_html | string | First several sentences of an article in HTML |
description | string | Wikidata description of the page |
thumbnail | object | A thumbnail of the lead image from the page |
thumbnail.uri | string | Thumbnail image URI |
thumbnail.width | integer | Thumbnail width |
thumbnail.height | integer | Thumbnail height |
originalimage | object | The lead image from the page as it was uploaded |
originalimage.uri | string | Original image URI |
originalimage.width | integer | Original width |
originalimage.height | integer | Original height |
lang | string | Page language code |
dir | enum | Page language direction ("ltr", "rtl") |
timestamp | datetime | The time when the page was last edited in the ISO 8601 format |
coordinates | object | The primary coordinates if there is one associated with the page |
coordinates.lat | decimal | The latitude of the primary coordinate |
coordinates.lon | decimal | The longitude of the primary coordinate |