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

Timezone parameter

By default, this API returns data for Europe/Berlin timezone. Users can choose from 3 timezones:

1/ America/New_York
2/ Asia/Singapore
3/ Europe/Berlin

Request

Method URL           
GET idata/get_articles/

 

 

Params Values  
class_nameid string “nameid” will be concat of class type and id. eg: x_<id>

where x is:

●    in : index

●    pl: place

●    c: company

●    o:source

●    bl:blog (use bl_all for all blogs)

●    cm: commodity

●    top: topic

subclass_nameid string This is an optional field.

“nameid” will be concat of class type and id. eg: x_<id>

where x is:

●    s : sector

●    i: industry

●    si : subindustry

●    c: company

●    t: tag

●    o:source

offset number Default value is 0
count number default value is 15
start_date number This is the maximum value. The format is “YYYY-MM-DD”
end_date number This is the minimum value. The format is “YYYY-MM-DD

If start_date is given, then the default end_date is 24 hours past start_date.

last_update number values:

●    0 means, there is no valid last updated data

●    In case of any non zero value, the response will have valid “data” only if the current data at server is newer than the last updated version reported by the client

 

 

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

 

The table shows the possible values of subclass_nameid for a given class_nameid

 

class nameid subclass_nameid
in : index ●    s : sector

●    i: industry

●    si : subindustry

●    c: company

●    t: tag

●    o:source

pl: place ●    s : sector

●    i: industry

●    si : subindustry

●    c: company

●    t: tag

●    o:source

c: company ●    t: tag

●    o:source

●    tp:static tag

o:source

 

Response

Status Response
200 Response will have the JSON structure as below

[

{

“last_update”: <integer timestamp> value ‘0’ will return current data

“data”:

{

title: <article title>,

hms: <hour:min:sec>

teaser: <teaser>,

image_name: <image name>

url:<url>

date: <string in dd-mm-yyyy format>

domain: <domain name>

domain_id: <name id for the domain>

sentiment: <between 1 to 10>

relevance: <high,medium,low>

},

{ … }

]

}

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