News in DataScope Select REST API?

I would like to access news - both All News and TRNA (News Analytics) using the DSS REST API. I cannot see an example or reference to this in the REST API documentation.

Best Answer

  • nityanand.koppad
    Answer ✓
    POST https://hosted.datascopeapi.reuters.com/RestApi/v1/Extractions/ExtractWithNotes
    Authorization: Token <your_auth_token_goes_here>
    Prefer: respond-async
    Content-Type: application/json; odata=minimalmetadata
    {
    "ExtractionRequest": {
    "@odata.type": "#ThomsonReuters.Dss.Api.Extractions.ExtractionRequests.NewsAnalyticsExtractionRequest",
    "ContentFieldNames": [
    "Stock RIC",
    "Relevance",
    "Sentiment",
    "Sentiment - Negative",
    "Sentiment - Neutral",
    "Sentiment - Positive",
    "Item Type",
    "Item Genre",
    "Headline",
    "PNAC",
    "Take Date Time",
    "Story Date Time",
    "Attribution",
    "Topics",
    "Related RICs",
    "Sentiment Words",
    "Total Words",
    "First Mention",
    "Total Sentences",
    "Broker Action",
    "Products",
    "Market Commentary"
    ],
    "IdentifierList": {
    "@odata.type": "#ThomsonReuters.Dss.Api.Extractions.ExtractionRequests.InstrumentIdentifierList",
    "InstrumentIdentifiers": [
    {
    "Identifier": "IBM.N",
    "IdentifierType": "Ric"
    }
    ],
    "ValidationOptions": null,
    "UseUserPreferencesForValidationOptions": false
    },
    "Condition": {
    "ReportDateRange": "Delta",
    "DaysAgo": 1,
    "HoursAgo": 20,
    "MinutesAgo": 40,
    "NewsAnalyticsRelevanceOperator": "GreaterThanOrEqualTo",
    "NewsRelevanceValue": 0.5,
    "NewsAnalyticsPrevailingSentiment": "Positive",
    "NewsAnalyticsNovelty": "Novelty5Day",
    "NewsFilterNoveltyOperator": "GreaterThanOrEqualTo",
    "NewsNoveltyValue": 20,
    "NewsTopicsCodes": [
    "GDP",
    "ECI",
    "MCE"
    ],
    "IncludeImbalace": true,
    "NewsAnalyticsSource": "ArticlesAndAlerts",
    "NewsAttributionsCodes": [
    "RTRS",
    "JSE"
    ]
    }
    }
    }