Get the articles for sector, industry, sub-industry and companies.

HTTP Request URL:

GET: /idata/get_articles

Parameters:

  • class_nameid [String]

class_nameid is mandatory parameter. The possible values are:

    • company id [c_id]
    • index id [in_id]
    • topic id [top_id]
    • source id [o_id] and multiple sources can be passed as comma separated values
    • forex id [fx_id]
    • blog id [o_id]
    • commodity id [cm_id] and
    • commodity all [cm_ALL]
    • commodity_sector id [cs_id]
  • timezone [string]
    By default timezone is Europe/Berlin. The possible values are:
    • America/New_York
    • Asia/Singapore
    • Europe/Berlin
  • subclass_nameid [string]
    There a number of possible values for subclass_nameid parameter which starts with tp_ip.
  • offset [number]
    Default value will be 0. By increasing the value of offset number days ranges used for fetching articles will be increased.
  • count [number]
    Default value will be 50. it defines the number of articles returning in an API call.
  • start_date [String]
    The format is YYYY-MM-DD. This is the maximum date.
  • end_date [String]
    The format is YYYY-MM-DD. This is the minimum date.
  • last_update [number]
    0 means, there is no valid last updated data.
    Non zero means current updated data is newer then last updated data

Note: for retrieving news just for a day, provide values just for the start_date.

Examples:

https://feed.finsents.com/idata/get_articles?company=FIS:US

https://feed.finsents.com/idata/get_articles?company=MSF:GR

https://feed.finsents.com/idata/get_articles?index=SP500

https://feed.finsents.com/idata/get_articles?forex=EUR/USD

https://feed.finsents.com/idata/get_articles?commodity=GOLD

https://feed.finsents.com/idata/get_articles?crypto=BTC

Response:

200 Response will have the JSON structure as below
[ { “last_update”: , “data”:title: < Title of the article>, “hms”: < Hour / Minute / Second>, “teaser”: < Teaser of the article > , “image_name”: < > “url”: < URL of the article> “date”: < Date in dd-mm-yyyy format > “domain: < Domain  > “domain_id: < Internal domain Id > “sentiment: < 1 to 10  sentiment > “relevance: < Relevance score > ” <high,medium,low> }, { … } ] }

400 {“error”:”Invalid params”}
401 {“error”:”Invalid Auth key.”}
500 {“error”:”Something went wrong. Please try again later.”}