Retrieve news headlines

​

Retrieve news headlines using a wide range of search filters

Query Parameters

  • Date and time to retrieve the headlines from in GMT.

  • Date and time to retrieve the headlines to in GMT.

  • Comma delimited list of news vendor codes to filter on.

  • Comma delimited list of securities.

  • Whether to return only market sensitive stories or not.

  • Comma delimited list of category IDs to filter on.

  • Full text search to filter on either headlines or stories. May contain operators 'OR', 'AND', 'AND NOT' and '"'.

  • Specify what fields the text search applies to. headlines only or headlines and stories.

  • Specify what conditions for the search to match. all conditions or any condition. This applies to the Securities, CategoryIds, and TextSearch input parameters.

Headers

  • The unique identifier of the request. This will be used for identifying the request using updates. It is recommended that this be set to a globally unique identifier (GUID).

Responses

  • application/json
Request Example for get/headlines/v1
curl 'https://test-news-api.openmarkets.com.au/headlines/v1?dateTimeFrom=2018-01-01T00%3A00%3A00&dateTimeTo=2018-12-01T00%3A00%3A00&vendorCodes=ASXH&securities=CBA.ASX%40TM%2CBHP.ASX%40TM&onlyMarketSensitive=true&categoryIds=101321%2C354351&textSearch=halt&textSearchType=HeadlineOnly&matchOnType=AllConditions' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
[
  {
    "headlineId": 1020905857342243100,
    "headlineDateTime": "2018-03-29T04:18:06",
    "hasTextStory": false,
    "hasUrl": true,
    "hasHtmlTextStory": false,
    "headlineText": "BHP: in REG_HALT",
    "securities": [
      {
        "securityCode": "BHP",
        "exchange": "ASX",
        "marketSensitive": true
      }
    ],
    "vendorCode": "ASXH",
    "categoryIds": [
      105000000
    ],
    "storyUrl": "https://test-news-api.openmarkets.com.au/stories/1020905857342243100",
    "marketSensitive": true,
    "newsSummary": "Trading in BHP has been placed in a regulatory halt."
  },
  {
    "headlineId": 1024219243148739100,
    "headlineDateTime": "2018-03-29T05:02:44",
    "hasTextStory": true,
    "hasUrl": false,
    "hasHtmlTextStory": false,
    "headlineText": "CBA: Half Year Results Announcement",
    "securities": [
      {
        "securityCode": "CBA",
        "exchange": "ASX",
        "marketSensitive": true
      }
    ],
    "vendorCode": "ASXH",
    "categoryIds": [
      105000000,
      105001000
    ],
    "storyUrl": null,
    "marketSensitive": true,
    "newsSummary": "Commonwealth Bank has released its half year results."
  }
]