How can you get financial data relating to a specific business segment of a company through the api?

I have attached a screenshot of the data I would like to be able to extract using a python script. For example data such as:

Rio Tinto 'External Revenue' from Aluminium in 2020

or

Rio Tinto 'Employees' in the Aluminium business segment in 2020

financial-segments.png


(screenshot is taken on a Workspace desktop)

Best Answer

  • @oliver.rogers19 Please try the following - I hope this can help.

    df2, err =ek.get_data(['RIO.L'],['TR.F.ASRBusinessSegments.segmentName','TR.F.BUSExtRevASR','TR.F.BUSEmpFTEEquivPrdEndASR'],{'Period': 'FY0','Frq':'FY'})

    df2

    1624281713423.png