For a deeper look into our Eikon Data API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
7 1 0 4

How to do this in .net api ? .. python has ek.get_news_headlines('xxx'),

Hi I am trying to get the newsbody through PNAC, but only get partial.. NEXT_LR field is not retrieving any information.. for example, n#1UqLS902 is the next_lr value for PNAC nBSE9CMH5f .. and i dont see any result retrieved for n#1UqLS902.. Is it possible to retrieve the detail in .net API.. In python, i think there is a method to get ek.get_news_headlines('xxx'), how to do that in .NET API?

here is the details of the object i get i subscribe to pnac:

Story Detail { "nJseJ0066a": { "RECORDTYPE": { "Field": "RECORDTYPE", "Value": { "IsEmpty": false, "RawValue": 232 }, "Descriptor": { "Id": 259, "Name": "RECORDTYPE", "Type": "Int" } }, "X_RIC_NAME": { "Field": "X_RIC_NAME", "Value": { "IsEmpty": false, "RawValue": "nJseJ0066a" }, "Descriptor": { "Id": -1, "Name": "X_RIC_NAME", "Type": "Alpha" } }, "SEG_TEXT": { "Field": "SEG_TEXT", "Value": { "IsEmpty": false, "RawValue": "=====================\nAcquisition of Thornhill Shopping Centre\n\nSAFARI INVESTMENTS RSA LIMITED\n(Incorporated in the Republic of South Africa)\nRegistration number: 2000/015002/06\nApproved as a REIT by the JSE Limited\nShare code: SAR\nISIN number: " }, "Descriptor": { "Id": 258, "Name": "SEG_TEXT", "Type": "Alpha" } }, "PROD_PERM": { "Field": "PROD_PERM", "Value": { "IsEmpty": false, "RawValue": 511 }, "Descriptor": { "Id": 1, "Name": "PROD_PERM", "Type": "Int" } }, "RDNDISPLAY": { "Field": "RDNDISPLAY", "Value": { "IsEmpty": false, "RawValue": 136 }, "Descriptor": { "Id": 2, "Name": "RDNDISPLAY", "Type": "Int" } }, "PREV_LR": { "Field": "PREV_LR", "Value": { "IsEmpty": true, "RawValue": null }, "Descriptor": { "Id": 237, "Name": "PREV_LR", "Type": "Null" } }, "UNIQUE_SN": { "Field": "UNIQUE_SN", "Value": { "IsEmpty": false, "RawValue": "nJseJ0066a" }, "Descriptor": { "Id": 254, "Name": "UNIQUE_SN", "Type": "Alpha" } }, "NEXT_LR": { "Field": "NEXT_LR", "Value": { "IsEmpty": false, "RawValue": "n#1UqLT102" }, "Descriptor": { "Id": 238, "Name": "NEXT_LR", "Type": "Alpha" } }, "PROC_TIME": { "Field": "PROC_TIME", "Value": { "IsEmpty": false, "RawValue": "09:36:00" }, "Descriptor": { "Id": 256, "Name": "PROC_TIME", "Type": "Time" } }, "PROC_DATE": { "Field": "PROC_DATE", "Value": { "IsEmpty": false, "RawValue": "2018-09-10T00:00:00" }, "Descriptor": { "Id": 255, "Name": "PROC_DATE", "Type": "Date" } }, "AREA_ID": { "Field": "AREA_ID", "Value": { "IsEmpty": false, "RawValue": "LN" }, "Descriptor": { "Id": 1685, "Name": "AREA_ID", "Type": "Alpha" } }, "REG_ID1": { "Field": "REG_ID1", "Value": { "IsEmpty": false, "RawValue": "2" }, "Descriptor": { "Id": 456, "Name": "REG_ID1", "Type": "Alpha" } }, "REG_FIELD1": { "Field": "REG_FIELD1", "Value": { "IsEmpty": false, "RawValue": "" }, "Descriptor": { "Id": 457, "Name": "REG_FIELD1", "Type": "Alpha" } }, "TABTEXT": { "Field": "TABTEXT", "Value": { "IsEmpty": false, "RawValue": "T" }, "Descriptor": { "Id": 723, "Name": "TABTEXT", "Type": "Alpha" } }, "MORE_NEWS": { "Field": "MORE_NEWS", "Value": { "IsEmpty": false, "RawValue": "R" }, "Descriptor": { "Id": 727, "Name": "MORE_NEWS", "Type": "Alpha" } }, "SF_NAME": { "Field": "SF_NAME", "Value": { "IsEmpty": false, "RawValue": "LDUCDP" }, "Descriptor": { "Id": 1686, "Name": "SF_NAME", "Type": "Alpha" } }, "DDS_DSO_ID": { "Field": "DDS_DSO_ID", "Value": { "IsEmpty": false, "RawValue": "12303" }, "Descriptor": { "Id": 6401, "Name": "DDS_DSO_ID", "Type": "Alpha" } }, "SPS_SP_RIC": { "Field": "SPS_SP_RIC", "Value": { "IsEmpty": false, "RawValue": ".[SPSIDNEM12005" }, "Descriptor": { "Id": 6480, "Name": "SPS_SP_RIC", "Type": "Alpha" } } } } End Story Detail**

eikoneikon-data-apiworkspaceworkspace-data-apirefinitiv-dataplatform-eikonpython
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Upvote
Accepted
4.6k 26 7 22

.NET API does not have a News API, so you will have to retrieve the contents of NEXT_LR PNAC manually.

Try opening the PNAC in the quote app:

And NEXT_LR:


icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

i want to mark this as answer

Upvotes
7 1 0 4

Thanks, i got it.. Is there any way to get the body text in html? or is there a better way to do this in .net api?

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

I'm afraid the answer is no to both: you cannot get the body in html and there's no other way to retrieve news stories using Eikon .NET API.

Click below to post an Idea Post Idea