Search
Returns news based on search parameters
POST /api/v2/search HTTP/1.1
Request Body
{
"startDate": "start_date",
"endDate": "end_date",
"group": "group",
"companyIds": "company_ids",
"triggerCodes": "trigger_codes"
}
Param
Mandatory
Description
startDate
Y
It will return news published from this date in format DD/MM/YYYY
endDate
Y
It will return news published till this date in format DD/MM/YYYY
group
Y
It will return news for the Companies and Triggers under this Group Name
companyIds
N
Array of company ids. It will return news for these company ids
triggerCodes
N
Array of trigger codes. It will return news for these trigger codes
If companyIds is not passed, it will return news for all the tracked companies under the passed 'group'.
If triggerCodes is not passed, it will return news for all the tracked triggers under the passed 'group'.
If both companyIds and triggerCodes are not passed, it will return news for all tracked companies and tracked triggers under the passed 'group'.
Response body
{
"status": "status_code",
"news": [
{
"_id": "new_id",
"publisher": "news_publisher",
"title": "new_title",
"url": "new_url",
"desc": "news_description",
"publishDate": "news_published_date",
"companyIds": ["Intellizence_company_id_1", "Intellizence_company_id_2"],
, "companies": ["company_1", "company_2"],
"triggerCodes": ["Intellizence_trigger_code_1", "Intellizence_trigger_code_2"],
"triggers": ["trigger_1", "trigger_2"]
"topics": ["topic_1", "topic_2"]
}
]
}
Status code
Description
0
Success
-1
Start date and/or end date missing in request body
-2
If endDate - startDate > 7. You can get only 7 days of signals
-3
No company ids or trigger codes found.
Copy link