Notifications enable you to recognise what has changed recently. In general, when you begin consuming the notification resource, use the current date and time; if you want to consume historical notifications, please contact your support representative. The response includes a list of Notifications, where each Notification resource represents content that has been modified on or after the values provided in the request; and a list of links, containing the url to use in retrieving the next set of results, so that you don’t miss any changes.
GET https://api.ft.com/content/notifications
When you are following the next link from a previous notifications response, you should use that URI without alteration. Otherwise, you can make a request with the following query parameters:
Parameter Name | Value | Required | Description |
---|---|---|---|
since |
datetime |
yes | The start date and time: any content created, updated or deleted since this date should be returned. A valid since parameter must be supplied, and it must be in RFC3339 date time format, for UTC timezone: e.g. 2017-01-06T10:00:00.000Z The date and time must not be in the future. |
Do not supply a request body with this method.
Http Status | Description |
---|---|
200 OK | A list of notifications for content that has been updated based on the query parameters supplied. This may be an empty list if no content has changed. |
400 Bad Request | The request could not be understood by the server due to malformed syntax |
If successful, this method returns a list of content notifications resources. The maximum number of resources returned in one set of notifications is 200.
The next URL in the links array should be used to retrieve the next set of results.
{ “requestUrl”: string, “notifications”: [ { “type”: string, “id”: string, “apiUrl”: string } ] , “links”: [ { “href”: string, “rel”: string } ] }
E.g. Retrieve the notifications for content changed since 10am UTC on 6th January 2017
GET http://api.ft.com/content/notifications?apiKey=yourApiKey&since=2017-01-06T10:00:00.000Z
{ “requestUrl”: “http://api.ft.com/content/notifications?since=2017-01-06T10:00:00.000Z", “notifications”: [ { “type”: “http://www.ft.com/thing/ThingChangeType/UPDATE", “id”: “http://www.ft.com/thing/7348edd8-0403-11de-845b-000077b07658", “apiUrl”: “http://api.ft.com/content/7348edd8-0403-11de-845b-000077b07658" } ], “links”: [ { “href”: “http://api.ft.com/content/notifications?since=2017-01-06T18:42:35.000Z&page=MjAxNy0wMS0wNlQxODo0MjozNVojMCMxMjM0NTY3OA==", “rel”: “next” } ] }