List the main page items available on a published www.ft.com page.
GET http://api.ft.com/site/v1/pages/pageId/main-content
Parameter Name | Value | Description |
---|---|---|
pageId |
string | The id of the page. |
feature.blogposts |
string | Allows to enable or disable filtering of blogPosts from the response. Valid values are ‘on’ or ‘off’. |
Do not supply a request body with this method.
HTTP Status | Description |
---|---|
200 OK | Page exists and list of associated main page items has been returned |
404 Not Found | Page does not exist |
410 Gone | Page no longer exists |
If successful, this method returns a list of page item resources, a subset of the page resource and the name of the page item list (e.g. main-content) in a standard api response body.
{ “requestUrl”: string, “total”: number, “page”: { “id”: string, “title”: string, “apiUrl”: string, “webUrl”: string }, “pageItemsListName”: string, “pageItems”: [ { “title”: { “title”: string }, “lifecycle”: { “initialPublishDateTime”: datetime, “lastPublishDateTime”: datetime }, … see page item resource representation for full details … } ] }
If the page does not exist this method returns a standard api error response body
{ “requestUrl”: string, “message”: string }
If the page does not exist this method returns a standard api error response body
{ “requestUrl”: string, “message”: string }
E.g. Retrieve the main content from the UK Home Page
GET http://api.ft.com/site/v1/pages/4c499f12-4e94-11de-8d4c-00144feabdc0/main-content?apiKey=yourApiKey
{ “requestUrl”: “http://api.ft.com/site/v1/pages/4c499f12-4e94-11de-8d4c-00144feabdc0/main-content", “total”: 10, “page”:{ “ id”: “8e082a2a-2edc-11e0-9877-00144feabdc0”, “ title”: “adventures”, “apiUrl”: “http://test.api.ft.com/site/v1/pages/8e082a2a-2edc-11e0-9877-00144feabdc0", “webUrl”: “http://www.ft.com/cms/8e082a2a-2edc-11e0-9877-00144feabdc0.html" }, “pageItemsListName”: “main-content”, “pageItems”: [ { “title”: { “title”: “Whistleblowers drawn by tip-off payouts” }, “lifecycle”: { “initialPublishDateTime”: “2012-03-12T21:33:01.000Z”, “lastPublishDateTime”: “2012-03-12T21:33:01.000Z” }, … } ] }