Retrieve news headlines
Retrieve news headlines using a wide range of search filters
Query Parameters
- Type: stringFormat: date-timedate
Time From requiredDate and time to retrieve the headlines from in GMT.
- Type: stringFormat: date-timedate
Time To Date and time to retrieve the headlines to in GMT.
- Type: array of stringvendor
Codes requiredComma delimited list of news vendor codes to filter on.
- Type: array of stringsecurities
Comma delimited list of securities.
- Type: booleanonly
Market Sensitive Whether to return only market sensitive stories or not.
- Type: array of integerFormat: int32category
Ids Comma delimited list of category IDs to filter on.
- Type: stringtext
Search Full text search to filter on either headlines or stories. May contain operators 'OR', 'AND', 'AND NOT' and '"'.
- Type: "HeadlineOnly" or "HeadlineAndStory"enumtext
Search Type Specify what fields the text search applies to. headlines only or headlines and stories.
- Type: "AllConditions" or "AnyConditions"enummatch
On Type Specify what conditions for the search to match. all conditions or any condition. This applies to the Securities, CategoryIds, and TextSearch input parameters.
Headers
- Type: stringX
- Request - I D 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
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."
}
]
